Oder Chiou | 908b703 | 2014-04-10 10:57:35 +0800 | [diff] [blame] | 1 | RT5640/RT5639 audio CODEC |
Stephen Warren | dcad9f0 | 2013-06-12 11:34:30 -0600 | [diff] [blame] | 2 | |
| 3 | This device supports I2C only. |
| 4 | |
| 5 | Required properties: |
| 6 | |
Oder Chiou | 908b703 | 2014-04-10 10:57:35 +0800 | [diff] [blame] | 7 | - compatible : One of "realtek,rt5640" or "realtek,rt5639". |
Stephen Warren | dcad9f0 | 2013-06-12 11:34:30 -0600 | [diff] [blame] | 8 | |
| 9 | - reg : The I2C address of the device. |
| 10 | |
| 11 | - interrupts : The CODEC's interrupt output. |
| 12 | |
| 13 | Optional properties: |
| 14 | |
| 15 | - realtek,in1-differential |
| 16 | - realtek,in2-differential |
| 17 | Boolean. Indicate MIC1/2 input are differential, rather than single-ended. |
| 18 | |
| 19 | - realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin. |
| 20 | |
Oder Chiou | 908b703 | 2014-04-10 10:57:35 +0800 | [diff] [blame] | 21 | Pins on the device (for linking into audio routes) for RT5639/RT5640: |
Mark Brown | b33d1f0 | 2013-08-11 18:59:20 +0100 | [diff] [blame] | 22 | |
| 23 | * DMIC1 |
| 24 | * DMIC2 |
| 25 | * MICBIAS1 |
| 26 | * IN1P |
| 27 | * IN1R |
| 28 | * IN2P |
| 29 | * IN2R |
| 30 | * HPOL |
| 31 | * HPOR |
| 32 | * LOUTL |
| 33 | * LOUTR |
Mark Brown | b33d1f0 | 2013-08-11 18:59:20 +0100 | [diff] [blame] | 34 | * SPOLP |
| 35 | * SPOLN |
| 36 | * SPORP |
| 37 | * SPORN |
| 38 | |
Oder Chiou | 908b703 | 2014-04-10 10:57:35 +0800 | [diff] [blame] | 39 | Additional pins on the device for RT5640: |
| 40 | |
| 41 | * MONOP |
| 42 | * MONON |
| 43 | |
Stephen Warren | dcad9f0 | 2013-06-12 11:34:30 -0600 | [diff] [blame] | 44 | Example: |
| 45 | |
| 46 | rt5640 { |
| 47 | compatible = "realtek,rt5640"; |
| 48 | reg = <0x1c>; |
| 49 | interrupt-parent = <&gpio>; |
| 50 | interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>; |
| 51 | realtek,ldo1-en-gpios = |
| 52 | <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; |
| 53 | }; |