Kiran Kandi | 725f849 | 2012-08-06 13:45:16 -0700 | [diff] [blame] | 1 | taiko audio CODEC |
| 2 | |
| 3 | Required properties: |
| 4 | |
| 5 | - compatible : "qcom,taiko-slim-pgd" |
| 6 | - elemental-addr: codec slimbus slave PGD enumeration address.(48 bits) |
| 7 | |
| 8 | - qcom,cdc-reset-gpio: gpio used for codec SOC reset. |
| 9 | |
| 10 | - <supply-name>-supply: phandle to the regulator device tree node |
| 11 | - qcom,<supply-name>-voltage - specifies voltage levels for supply. Should be |
| 12 | specified in pairs (min, max), units mV. |
| 13 | - qcom,<supply-name>-current - specifies max current in mA that can drawn |
| 14 | from the <supply-name>. |
| 15 | |
| 16 | above three properties with "supply-name" set to "qcom,cdc-vdd-buck", "qcom,cdc-vdd-tx-h", |
| 17 | "qcom,cdc-vdd-rx-h", "qcom,cdc-vddpx-1", "qcom,cdc-vdd-a-1p2v", "qcom,cdc-vddcx-1", |
| 18 | "qcom,cdc-vddcx-2" should be present. |
| 19 | |
| 20 | - qcom,cdc-micbias-ldoh-v - LDOH output in volts ( should be 1.95 V and 3.00 V). |
| 21 | |
| 22 | - qcom,cdc-micbias-cfilt1-mv - cfilt1 output voltage in milli volts. |
| 23 | - qcom,cdc-micbias-cfilt2-mv - cfilt2 output voltage in milli volts. |
| 24 | - qcom,cdc-micbias-cfilt3-mv - cfilt3 output voltage in milli volts. |
Venkat Sudhir | a41630a | 2012-10-27 00:57:31 -0700 | [diff] [blame^] | 25 | cfilt voltage can be set to max of qcom,cdc-micbias-ldoh-v - 0.15V. |
Kiran Kandi | 725f849 | 2012-08-06 13:45:16 -0700 | [diff] [blame] | 26 | |
| 27 | - qcom,cdc-micbias1-cfilt-sel = cfilt to use for micbias1 (should be from 1 to 3). |
| 28 | - qcom,cdc-micbias2-cfilt-sel = cfilt to use for micbias2 (should be from 1 to 3). |
| 29 | - qcom,cdc-micbias3-cfilt-sel = cfilt to use for micbias3 (should be from 1 to 3). |
| 30 | - qcom,cdc-micbias4-cfilt-sel = cfilt to use for micbias4 (should be from 1 to 3). |
Venkat Sudhir | a41630a | 2012-10-27 00:57:31 -0700 | [diff] [blame^] | 31 | This value represents the connected CFLIT to MIC Bias. |
| 32 | |
Joonwoo Park | adf2597 | 2012-10-18 13:18:08 -0700 | [diff] [blame] | 33 | - qcom,cdc-micbias1-ext-cap: Boolean. Enable micbias 1 external capacitor mode. |
| 34 | - qcom,cdc-micbias2-ext-cap: Boolean. Enable micbias 2 external capacitor mode. |
| 35 | - qcom,cdc-micbias3-ext-cap: Boolean. Enable micbias 3 external capacitor mode. |
| 36 | - qcom,cdc-micbias4-ext-cap: Boolean. Enable micbias 4 external capacitor mode. |
Kiran Kandi | 725f849 | 2012-08-06 13:45:16 -0700 | [diff] [blame] | 37 | |
| 38 | - qcom,cdc-slim-ifd-dev - namme of the codec slim interface device. |
| 39 | - qcom,cdc-slim-ifd-elemental-addr - codec slimbus slave interface device |
| 40 | enumeration address. |
| 41 | Example: |
| 42 | |
| 43 | taiko_codec { |
| 44 | compatible = "qcom,taiko-slim-pgd"; |
| 45 | elemental-addr = [00 01 A0 00 17 02]; |
| 46 | |
| 47 | qcom,cdc-reset-gpio = <&msmgpio 63 0>; |
| 48 | |
| 49 | cdc-vdd-buck-supply = <&pm8941_s2>; |
| 50 | qcom,cdc-vdd-buck-voltage = <2150000 2150000>; |
| 51 | qcom,cdc-vdd-buck-current = <500000>; |
| 52 | |
| 53 | cdc-vdd-tx-h-supply = <&pm8941_s3>; |
| 54 | qcom,cdc-vdd-tx-h-voltage = <1800000 1800000>; |
| 55 | qcom,cdc-vdd-tx-h-current = <200000>; |
| 56 | |
| 57 | cdc-vdd-rx-h-supply = <&pm8941_s3>; |
| 58 | qcom,cdc-vdd-rx-h-voltage = <1800000 1800000>; |
| 59 | qcom,cdc-vdd-rx-h-current = <200000>; |
| 60 | |
| 61 | cdc-vddpx-1-supply = <&pm8941_s3>; |
| 62 | qcom,cdc-vddpx-1-voltage = <1800000 1800000>; |
| 63 | qcom,cdc-vddpx-1-current = <5000>; |
| 64 | |
| 65 | cdc-vdd-a-1p2v-supply = <&pm8941_l1>; |
| 66 | qcom,cdc-vdd-a-1p2v-voltage = <1225000 1225000>; |
| 67 | qcom,cdc-vdd-a-1p2v-current = <5000>; |
| 68 | |
| 69 | cdc-vddcx-1-supply = <&pm8941_l1>; |
| 70 | qcom,cdc-vddcx-1-voltage = <1225000 1225000>; |
| 71 | qcom,cdc-vddcx-1-current = <5000>; |
| 72 | |
| 73 | cdc-vddcx-2-supply = <&pm8941_l1>; |
| 74 | qcom,cdc-vddcx-2-voltage = <1225000 1225000>; |
| 75 | qcom,cdc-vddcx-2-current = <5000>; |
| 76 | |
| 77 | qcom,cdc-micbias-ldoh-v = <0x3>; |
| 78 | qcom,cdc-micbias-cfilt1-mv = <1800>; |
| 79 | qcom,cdc-micbias-cfilt2-mv = <2700>; |
| 80 | qcom,cdc-micbias-cfilt3-mv = <1800>; |
| 81 | qcom,cdc-micbias1-cfilt-sel = <0x0>; |
| 82 | qcom,cdc-micbias2-cfilt-sel = <0x1>; |
| 83 | qcom,cdc-micbias3-cfilt-sel = <0x2>; |
| 84 | qcom,cdc-micbias4-cfilt-sel = <0x2>; |
Joonwoo Park | adf2597 | 2012-10-18 13:18:08 -0700 | [diff] [blame] | 85 | qcom,cdc-micbias1-ext-cap; |
| 86 | qcom,cdc-micbias2-ext-cap; |
| 87 | qcom,cdc-micbias3-ext-cap; |
| 88 | qcom,cdc-micbias4-ext-cap; |
Kiran Kandi | 725f849 | 2012-08-06 13:45:16 -0700 | [diff] [blame] | 89 | |
| 90 | qcom,cdc-slim-ifd = "taiko-slim-ifd"; |
| 91 | qcom,cdc-slim-ifd-elemental-addr = [00 00 A0 00 17 02]; |
| 92 | }; |
Venkat Sudhir | a41630a | 2012-10-27 00:57:31 -0700 | [diff] [blame^] | 93 | |
| 94 | Wcd9xxx audio CODEC in I2C mode |
| 95 | |
| 96 | - compatible = "qcom,wcd9xxx-i2c-device"; |
| 97 | - reg: represents the slave address provided to the I2C driver. |
| 98 | - qcom,cdc-reset-gpio: gpio used for codec SOC reset. |
| 99 | - <supply-name>-supply: phandle to the regulator device tree node. |
| 100 | - qcom,<supply-name>-voltage - specifies voltage levels for supply. Should be |
| 101 | specified in pairs (min, max), units mV. |
| 102 | - qcom,<supply-name>-current - specifies max current in mA that can drawn |
| 103 | from the <supply-name>. |
| 104 | |
| 105 | above three properties with "supply-name" set to "qcom,cdc-vdd-buck", "qcom,cdc-vdd-tx-h", |
| 106 | "qcom,cdc-vdd-rx-h", "qcom,cdc-vddpx-1", "qcom,cdc-vdd-a-1p2v", "qcom,cdc-vddcx-1", |
| 107 | "qcom,cdc-vddcx-2" should be present. |
| 108 | |
| 109 | - qcom,cdc-micbias-ldoh-v - LDOH output in volts ( should be 1.95 V and 3.00 V). |
| 110 | |
| 111 | - qcom,cdc-micbias-cfilt1-mv - cfilt1 output voltage in milli volts. |
| 112 | - qcom,cdc-micbias-cfilt2-mv - cfilt2 output voltage in milli volts. |
| 113 | - qcom,cdc-micbias-cfilt3-mv - cfilt3 output voltage in milli volts. |
| 114 | cfilt voltage can be set to max of qcom,cdc-micbias-ldoh-v - 0.15V. |
| 115 | |
| 116 | - qcom,cdc-micbias1-cfilt-sel = cfilt to use for micbias1 (should be from 1 to 3). |
| 117 | - qcom,cdc-micbias2-cfilt-sel = cfilt to use for micbias2 (should be from 1 to 3). |
| 118 | - qcom,cdc-micbias3-cfilt-sel = cfilt to use for micbias3 (should be from 1 to 3). |
| 119 | - qcom,cdc-micbias4-cfilt-sel = cfilt to use for micbias4 (should be from 1 to 3). |
| 120 | This value represents the connected CFLIT to MIC Bias. |
| 121 | |
| 122 | - qcom,cdc-micbias1-ext-cap: Boolean. Enable micbias 1 external capacitor mode. |
| 123 | - qcom,cdc-micbias2-ext-cap: Boolean. Enable micbias 2 external capacitor mode. |
| 124 | - qcom,cdc-micbias3-ext-cap: Boolean. Enable micbias 3 external capacitor mode. |
| 125 | - qcom,cdc-micbias4-ext-cap: Boolean. Enable micbias 4 external capacitor mode. |
| 126 | |
| 127 | Example: |
| 128 | i2c@f9925000 { |
| 129 | cell-index = <3>; |
| 130 | compatible = "qcom,i2c-qup"; |
| 131 | reg = <0xf9925000 0x1000>; |
| 132 | #address-cells = <1>; |
| 133 | #size-cells = <0>; |
| 134 | reg-names = "qup_phys_addr"; |
| 135 | interrupts = <0 97 0>; |
| 136 | interrupt-names = "qup_err_intr"; |
| 137 | qcom,i2c-bus-freq = <100000>; |
| 138 | qcom,i2c-src-freq = <24000000>; |
| 139 | |
| 140 | wcd9xxx_codec@0d{ |
| 141 | compatible = "qcom,wcd9xxx-i2c"; |
| 142 | reg = <0x0d>; |
| 143 | qcom,cdc-reset-gpio = <&msmgpio 22 0>; |
| 144 | interrupt-parent = <&wcd9xxx_intc>; |
| 145 | interrupts = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28>; |
| 146 | |
| 147 | cdc-vdd-buck-supply = <&pm8019_l11>; |
| 148 | qcom,cdc-vdd-buck-voltage = <1800000 1800000>; |
| 149 | qcom,cdc-vdd-buck-current = <25000>; |
| 150 | |
| 151 | cdc-vdd-tx-h-supply = <&pm8019_l11>; |
| 152 | qcom,cdc-vdd-tx-h-voltage = <1800000 1800000>; |
| 153 | qcom,cdc-vdd-tx-h-current = <25000>; |
| 154 | |
| 155 | cdc-vdd-rx-h-supply = <&pm8019_l11>; |
| 156 | qcom,cdc-vdd-rx-h-voltage = <1800000 1800000>; |
| 157 | qcom,cdc-vdd-rx-h-current = <25000>; |
| 158 | |
| 159 | cdc-vddpx-1-supply = <&pm8019_l11>; |
| 160 | qcom,cdc-vddpx-1-voltage = <1800000 1800000>; |
| 161 | qcom,cdc-vddpx-1-current = <10000>; |
| 162 | |
| 163 | cdc-vdd-a-1p2v-supply = <&pm8019_l9>; |
| 164 | qcom,cdc-vdd-a-1p2v-voltage = <1200000 1200000>; |
| 165 | qcom,cdc-vdd-a-1p2v-current = <10000>; |
| 166 | |
| 167 | cdc-vddcx-1-supply = <&pm8019_l9>; |
| 168 | qcom,cdc-vddcx-1-voltage = <1200000 1200000>; |
| 169 | qcom,cdc-vddcx-1-current = <10000>; |
| 170 | |
| 171 | cdc-vddcx-2-supply = <&pm8019_l9>; |
| 172 | qcom,cdc-vddcx-2-voltage = <1200000 1200000>; |
| 173 | qcom,cdc-vddcx-2-current = <10000>; |
| 174 | |
| 175 | qcom,cdc-micbias-ldoh-v = <0x3>; |
| 176 | qcom,cdc-micbias-cfilt1-mv = <1800>; |
| 177 | qcom,cdc-micbias-cfilt2-mv = <2700>; |
| 178 | qcom,cdc-micbias-cfilt3-mv = <1800>; |
| 179 | qcom,cdc-micbias1-cfilt-sel = <0x0>; |
| 180 | qcom,cdc-micbias2-cfilt-sel = <0x1>; |
| 181 | qcom,cdc-micbias3-cfilt-sel = <0x2>; |
| 182 | qcom,cdc-micbias4-cfilt-sel = <0x2>; |
| 183 | }; |
| 184 | |
| 185 | wcd9xxx_codec@77{ |
| 186 | compatible = "qcom,wcd9xxx-i2c"; |
| 187 | reg = <0x77>; |
| 188 | }; |
| 189 | |
| 190 | wcd9xxx_codec@66{ |
| 191 | compatible = "qcom,wcd9xxx-i2c"; |
| 192 | reg = <0x66>; |
| 193 | }; |
| 194 | wcd9xxx_codec@55{ |
| 195 | compatible = "qcom,wcd9xxx-i2c"; |
| 196 | reg = <0x55>; |
| 197 | }; |
| 198 | }; |