xref: /freebsd/sys/contrib/device-tree/Bindings/sound/rt5668.txt (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1RT5668B audio CODEC
2
3This device supports I2C only.
4
5Required properties:
6
7- compatible : "realtek,rt5668b"
8
9- reg : The I2C address of the device.
10
11Optional properties:
12
13- interrupts : The CODEC's interrupt output.
14
15- realtek,dmic1-data-pin
16  0: dmic1 is not used
17  1: using GPIO2 pin as dmic1 data pin
18  2: using GPIO5 pin as dmic1 data pin
19
20- realtek,dmic1-clk-pin
21  0: using GPIO1 pin as dmic1 clock pin
22  1: using GPIO3 pin as dmic1 clock pin
23
24- realtek,jd-src
25  0: No JD is used
26  1: using JD1 as JD source
27
28- realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
29
30Pins on the device (for linking into audio routes) for RT5668B:
31
32  * DMIC L1
33  * DMIC R1
34  * IN1P
35  * HPOL
36  * HPOR
37
38Example:
39
40rt5668 {
41	compatible = "realtek,rt5668b";
42	reg = <0x1a>;
43	interrupt-parent = <&gpio>;
44	interrupts = <TEGRA_GPIO(U, 6) IRQ_TYPE_LEVEL_HIGH>;
45	realtek,ldo1-en-gpios =
46		<&gpio TEGRA_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
47	realtek,dmic1-data-pin = <1>;
48	realtek,dmic1-clk-pin = <1>;
49	realtek,jd-src = <1>;
50};
51