Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | RT5665/RT5666 audio CODEC |
| 2 | |
| 3 | This device supports I2C only. |
| 4 | |
| 5 | Required properties: |
| 6 | |
| 7 | - compatible : One of "realtek,rt5665", "realtek,rt5666". |
| 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 | - realtek,in3-differential |
| 18 | - realtek,in4-differential |
| 19 | Boolean. Indicate MIC1/2/3/4 input are differential, rather than single-ended. |
| 20 | |
| 21 | - realtek,dmic1-data-pin |
| 22 | 0: dmic1 is not used |
| 23 | 1: using GPIO4 pin as dmic1 data pin |
| 24 | 2: using IN2N pin as dmic2 data pin |
| 25 | |
| 26 | - realtek,dmic2-data-pin |
| 27 | 0: dmic2 is not used |
| 28 | 1: using GPIO5 pin as dmic2 data pin |
| 29 | 2: using IN2P pin as dmic2 data pin |
| 30 | |
| 31 | - realtek,jd-src |
| 32 | 0: No JD is used |
| 33 | 1: using JD1 as JD source |
| 34 | |
| 35 | - realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin. |
| 36 | |
| 37 | Pins on the device (for linking into audio routes) for RT5659/RT5658: |
| 38 | |
| 39 | * DMIC L1 |
| 40 | * DMIC R1 |
| 41 | * DMIC L2 |
| 42 | * DMIC R2 |
| 43 | * IN1P |
| 44 | * IN1N |
| 45 | * IN2P |
| 46 | * IN2N |
| 47 | * IN3P |
| 48 | * IN3N |
| 49 | * IN4P |
| 50 | * IN4N |
| 51 | * HPOL |
| 52 | * HPOR |
| 53 | * LOUTL |
| 54 | * LOUTR |
| 55 | * MONOOUT |
| 56 | * PDML |
| 57 | * PDMR |
| 58 | |
| 59 | Example: |
| 60 | |
| 61 | rt5659 { |
| 62 | compatible = "realtek,rt5665"; |
| 63 | reg = <0x1b>; |
| 64 | interrupt-parent = <&gpio>; |
| 65 | interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_HIGH>; |
| 66 | realtek,ldo1-en-gpios = |
| 67 | <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; |
| 68 | }; |