summaryrefslogtreecommitdiff
path: root/bindings/sound
diff options
context:
space:
mode:
authorAditya Bavanari <abavanar@qti.qualcomm.com>2020-03-10 12:46:54 +0530
committerAditya Bavanari <abavanar@qti.qualcomm.com>2020-03-11 11:28:36 +0530
commitf7d898aa3cb5cf59d371ef843560ac4424afa7e1 (patch)
tree7fb6deace533f53c6d51816ec6c9b488d465da6a /bindings/sound
parente8111380c9bede1d7b144b1792e021b85556c739 (diff)
downloaddevicetree-f7d898aa3cb5cf59d371ef843560ac4424afa7e1.tar.gz
ARM: dts: msm: Add audio support for scuba
Add changes to support audio on scuba target. Change-Id: Id6e7d2e44af229508fec7dc2ea1f3e3aaca0bf69
Diffstat (limited to 'bindings/sound')
-rw-r--r--bindings/sound/wcd_codec.txt113
1 files changed, 113 insertions, 0 deletions
diff --git a/bindings/sound/wcd_codec.txt b/bindings/sound/wcd_codec.txt
index 43a0698c..f718b8a3 100644
--- a/bindings/sound/wcd_codec.txt
+++ b/bindings/sound/wcd_codec.txt
@@ -157,6 +157,9 @@ Example:
wcd938x_tx_slave: wcd938x-tx-slave {
compatible = "qcom,wcd938x-slave";
};
+ rouleur_tx_slave: rouleur-tx-slave {
+ compatible = "qcom,rouleur-slave";
+ };
};
};
};
@@ -174,6 +177,9 @@ Example:
wcd937x_rx_slave: wcd937x-rx-slave {
compatible = "qcom,wcd937x-slave";
};
+ rouleur_rx_slave: rouleur-rx-slave {
+ compatible = "qcom,rouleur-slave";
+ };
};
};
};
@@ -438,3 +444,110 @@ wsa883x_0221: wsa883x@02170221 {
qcom,cdc-vdd-1p8-current = <20000>;
qcom,cdc-static-supplies = "cdc-vdd-1p8";
};
+
+PM2250 SPMI node
+
+pm2250_spmi: Child node of SPMI bus required for rouleur codec
+ in order to access SPMI register to reset the peripheral.
+
+Required properties:
+ -compatible: "qcom,pm2250-spmi";
+
+&spmi_bus {
+ pm2250_spmi: qcom,pm2250-spmi {
+ compatible = "qcom,pm2250-spmi";
+ };
+};
+
+
+Rouleur Codec
+
+Required properties:
+ - compatible: "qcom,rouleur-codec";
+ - qcom,split-codec: Property to check on split codec support.
+ - qcom,rx_swr_ch_map: mapping of swr rx slave port configuration to port_type and also
+ corresponding master port type it need to attach.
+ format: <port_id, slave_port_type, ch_mask, ch_rate, master_port_type>
+ same port_id configurations have to be grouped, and in ascending order.
+ - qcom,tx_swr_ch_map: mapping of swr tx slave port configuration to port_type and also
+ corresponding master port type it need to attach.
+ format: <port_id,slave_port_type, ch_mask, ch_rate, master_port_type>
+ same port_id configurations have to be grouped, and in ascending order.
+ - qcom,pmic-spmi-node: Phandle reference to the PMIC SPMI DT node.
+ - qcom,wcd-reset-reg: Reset register address in PMIC for rouleur codec.
+ - qcom,rx-slave: phandle reference of Soundwire Rx slave device.
+ - qcom,tx-slave: phandle reference of Soundwire Tx slave device.
+
+Optional properties:
+
+ - cdc-pa-vpos-supply: phandle of pa vpos supply's regulator device tree node.
+ - qcom,cdc-pa-vpos-voltage: pa vpos supply's voltage level min and max in mV.
+ - qcom,cdc-pa-vpos-current: pa vpos supply's max current in mA.
+
+ - cdc-vdd-io-supply: phandle of io supply's regulator device tree node.
+ - qcom,cdc-vdd-io-voltage: io supply's voltage level min and max in mV.
+ - qcom,cdc-vdd-io-current: io supply's max current in mA.
+
+ - cdc-vdd-cp-supply: phandle of vdd cp supply's regulator device tree node.
+ - qcom,cdc-vdd-cp-voltage: vdd cp supply's voltage level min and max in mV.
+ - qcom,cdc-vdd-cp-current: vdd cp supply's max current in mA.
+
+ - cdc-vdd-mic-bias-supply: phandle of mic bias supply's regulator device tree node.
+ - qcom,cdc-vdd-mic-bias-voltage: mic bias supply's voltage level min and max in mV.
+ - qcom,cdc-vdd-mic-bias-current: mic bias supply's max current in mA.
+
+ - qcom,cdc-static-supplies: List of supplies to be enabled prior to codec
+ hardware probe. Supplies in this list will be
+ stay enabled.
+
+ - qcom,cdc-on-demand-supplies: List of supplies which can be enabled
+ dynamically.
+ Supplies in this list are off by default.
+
+Example:
+
+ rouleur_codec: rouleur-codec {
+ compatible = "qcom,rouleur-codec";
+ qcom,split-codec = <1>;
+ qcom,pmic-spmi-node = <&pm2250_spmi>;
+ qcom,wcd-reset-reg = <0x0000F3DB>;
+ qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>,
+ <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>,
+ <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>,
+ <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>,
+ <4 DSD_R 0x2 0 DSD_R>;
+ qcom,tx_swr_ch_map = <0 ADC1 0x1 0 ADC1>,
+ <0 ADC2 0x2 0 ADC2>, <0 DMIC0 0x4 0 ADC3>,
+ <0 MBHC 0x8 0 ADC4>, <1 DMIC0 0x1 0 DMIC0>,
+ <1 DMIC1 0x2 0 DMIC1>, <1 ADC1 0x4 0 DMIC2>,
+ <1 MBHC 0x8 0 DMIC3>;
+
+ qcom,rx-slave = <&rouleur_rx_slave>;
+ qcom,tx-slave = <&rouleur_tx_slave>;
+
+ cdc-vdd-io-supply = <&L15A>;
+ qcom,cdc-vdd-io-voltage = <1800000 1800000>;
+ qcom,cdc-vdd-io-current = <10000>;
+
+ cdc-vdd-cp-supply = <&S4A>;
+ qcom,cdc-vdd-cp-voltage = <2040000 2040000>;
+ qcom,cdc-vdd-cp-current = <300000>;
+
+ cdc-pa-vpos-supply = <&S4A>;
+ qcom,cdc-pa-vpos-voltage = <2040000 2040000>;
+ qcom,cdc-pa-vpos-current = <2400000>;
+
+ cdc-vdd-mic-bias-supply = <&L22A>;
+ qcom,cdc-vdd-mic-bias-voltage = <3304000 3304000>;
+ qcom,cdc-vdd-mic-bias-current = <50000>;
+
+ qcom,cdc-micbias1-mv = <1800>;
+ qcom,cdc-micbias2-mv = <1800>;
+ qcom,cdc-micbias3-mv = <1800>;
+
+ qcom,cdc-static-supplies = "cdc-vdd-cp",
+ "cdc-vdd-io";
+ qcom,cdc-on-demand-supplies = "cdc-pa-vpos",
+ "cdc-vdd-mic-bias";
+ };
+};