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. |
| 25 | cfilt volatge can be set to max of qcom,cdc-micbias-ldoh-v - 0.15V. |
| 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). |
Joonwoo Park | adf2597 | 2012-10-18 13:18:08 -0700 | [diff] [blame^] | 31 | - qcom,cdc-micbias1-ext-cap: Boolean. Enable micbias 1 external capacitor mode. |
| 32 | - qcom,cdc-micbias2-ext-cap: Boolean. Enable micbias 2 external capacitor mode. |
| 33 | - qcom,cdc-micbias3-ext-cap: Boolean. Enable micbias 3 external capacitor mode. |
| 34 | - qcom,cdc-micbias4-ext-cap: Boolean. Enable micbias 4 external capacitor mode. |
Kiran Kandi | 725f849 | 2012-08-06 13:45:16 -0700 | [diff] [blame] | 35 | |
| 36 | - qcom,cdc-slim-ifd-dev - namme of the codec slim interface device. |
| 37 | - qcom,cdc-slim-ifd-elemental-addr - codec slimbus slave interface device |
| 38 | enumeration address. |
| 39 | Example: |
| 40 | |
| 41 | taiko_codec { |
| 42 | compatible = "qcom,taiko-slim-pgd"; |
| 43 | elemental-addr = [00 01 A0 00 17 02]; |
| 44 | |
| 45 | qcom,cdc-reset-gpio = <&msmgpio 63 0>; |
| 46 | |
| 47 | cdc-vdd-buck-supply = <&pm8941_s2>; |
| 48 | qcom,cdc-vdd-buck-voltage = <2150000 2150000>; |
| 49 | qcom,cdc-vdd-buck-current = <500000>; |
| 50 | |
| 51 | cdc-vdd-tx-h-supply = <&pm8941_s3>; |
| 52 | qcom,cdc-vdd-tx-h-voltage = <1800000 1800000>; |
| 53 | qcom,cdc-vdd-tx-h-current = <200000>; |
| 54 | |
| 55 | cdc-vdd-rx-h-supply = <&pm8941_s3>; |
| 56 | qcom,cdc-vdd-rx-h-voltage = <1800000 1800000>; |
| 57 | qcom,cdc-vdd-rx-h-current = <200000>; |
| 58 | |
| 59 | cdc-vddpx-1-supply = <&pm8941_s3>; |
| 60 | qcom,cdc-vddpx-1-voltage = <1800000 1800000>; |
| 61 | qcom,cdc-vddpx-1-current = <5000>; |
| 62 | |
| 63 | cdc-vdd-a-1p2v-supply = <&pm8941_l1>; |
| 64 | qcom,cdc-vdd-a-1p2v-voltage = <1225000 1225000>; |
| 65 | qcom,cdc-vdd-a-1p2v-current = <5000>; |
| 66 | |
| 67 | cdc-vddcx-1-supply = <&pm8941_l1>; |
| 68 | qcom,cdc-vddcx-1-voltage = <1225000 1225000>; |
| 69 | qcom,cdc-vddcx-1-current = <5000>; |
| 70 | |
| 71 | cdc-vddcx-2-supply = <&pm8941_l1>; |
| 72 | qcom,cdc-vddcx-2-voltage = <1225000 1225000>; |
| 73 | qcom,cdc-vddcx-2-current = <5000>; |
| 74 | |
| 75 | qcom,cdc-micbias-ldoh-v = <0x3>; |
| 76 | qcom,cdc-micbias-cfilt1-mv = <1800>; |
| 77 | qcom,cdc-micbias-cfilt2-mv = <2700>; |
| 78 | qcom,cdc-micbias-cfilt3-mv = <1800>; |
| 79 | qcom,cdc-micbias1-cfilt-sel = <0x0>; |
| 80 | qcom,cdc-micbias2-cfilt-sel = <0x1>; |
| 81 | qcom,cdc-micbias3-cfilt-sel = <0x2>; |
| 82 | qcom,cdc-micbias4-cfilt-sel = <0x2>; |
Joonwoo Park | adf2597 | 2012-10-18 13:18:08 -0700 | [diff] [blame^] | 83 | qcom,cdc-micbias1-ext-cap; |
| 84 | qcom,cdc-micbias2-ext-cap; |
| 85 | qcom,cdc-micbias3-ext-cap; |
| 86 | qcom,cdc-micbias4-ext-cap; |
Kiran Kandi | 725f849 | 2012-08-06 13:45:16 -0700 | [diff] [blame] | 87 | |
| 88 | qcom,cdc-slim-ifd = "taiko-slim-ifd"; |
| 89 | qcom,cdc-slim-ifd-elemental-addr = [00 00 A0 00 17 02]; |
| 90 | }; |