Commit | Line | Data |
---|---|---|
d3cb2de2 BL |
1 | RT5659/RT5658 audio CODEC |
2 | ||
3 | This device supports I2C only. | |
4 | ||
5 | Required properties: | |
6 | ||
7 | - compatible : One of "realtek,rt5659" or "realtek,rt5658". | |
8 | ||
9 | - reg : The I2C address of the device. | |
10 | ||
11 | - interrupts : The CODEC's interrupt output. | |
12 | ||
13 | Optional properties: | |
14 | ||
c6f8769b NC |
15 | - clocks: The phandle of the master clock to the CODEC |
16 | - clock-names: Should be "mclk" | |
17 | ||
d3cb2de2 BL |
18 | - realtek,in1-differential |
19 | - realtek,in3-differential | |
20 | - realtek,in4-differential | |
21 | Boolean. Indicate MIC1/3/4 input are differential, rather than single-ended. | |
22 | ||
23 | - realtek,dmic1-data-pin | |
24 | 0: dmic1 is not used | |
25 | 1: using IN2N pin as dmic1 data pin | |
26 | 2: using GPIO5 pin as dmic1 data pin | |
27 | 3: using GPIO9 pin as dmic1 data pin | |
28 | 4: using GPIO11 pin as dmic1 data pin | |
29 | ||
30 | - realtek,dmic2-data-pin | |
31 | 0: dmic2 is not used | |
32 | 1: using IN2P pin as dmic2 data pin | |
33 | 2: using GPIO6 pin as dmic2 data pin | |
34 | 3: using GPIO10 pin as dmic2 data pin | |
35 | 4: using GPIO12 pin as dmic2 data pin | |
36 | ||
37 | - realtek,jd-src | |
38 | 0: No JD is used | |
39 | 1: using JD3 as JD source | |
40 | ||
41 | - realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin. | |
42 | - realtek,reset-gpios : The GPIO that controls the CODEC's RESET pin. | |
43 | ||
44 | Pins on the device (for linking into audio routes) for RT5659/RT5658: | |
45 | ||
46 | * DMIC L1 | |
47 | * DMIC R1 | |
48 | * DMIC L2 | |
49 | * DMIC R2 | |
50 | * IN1P | |
51 | * IN1N | |
52 | * IN2P | |
53 | * IN2N | |
54 | * IN3P | |
55 | * IN3N | |
56 | * IN4P | |
57 | * IN4N | |
58 | * HPOL | |
59 | * HPOR | |
60 | * SPOL | |
61 | * SPOR | |
62 | * LOUTL | |
63 | * LOUTR | |
64 | * MONOOUT | |
65 | * PDML | |
66 | * PDMR | |
67 | * SPDIF | |
68 | ||
69 | Example: | |
70 | ||
71 | rt5659 { | |
72 | compatible = "realtek,rt5659"; | |
73 | reg = <0x1b>; | |
74 | interrupt-parent = <&gpio>; | |
75 | interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>; | |
76 | realtek,ldo1-en-gpios = | |
77 | <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; | |
78 | }; |