18c2ecf20Sopenharmony_ciRT5668B audio CODEC
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThis device supports I2C only.
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciRequired properties:
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci- compatible : "realtek,rt5668b"
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci- reg : The I2C address of the device.
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciOptional properties:
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci- interrupts : The CODEC's interrupt output.
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci- realtek,dmic1-data-pin
168c2ecf20Sopenharmony_ci  0: dmic1 is not used
178c2ecf20Sopenharmony_ci  1: using GPIO2 pin as dmic1 data pin
188c2ecf20Sopenharmony_ci  2: using GPIO5 pin as dmic1 data pin
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci- realtek,dmic1-clk-pin
218c2ecf20Sopenharmony_ci  0: using GPIO1 pin as dmic1 clock pin
228c2ecf20Sopenharmony_ci  1: using GPIO3 pin as dmic1 clock pin
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci- realtek,jd-src
258c2ecf20Sopenharmony_ci  0: No JD is used
268c2ecf20Sopenharmony_ci  1: using JD1 as JD source
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci- realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciPins on the device (for linking into audio routes) for RT5668B:
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci  * DMIC L1
338c2ecf20Sopenharmony_ci  * DMIC R1
348c2ecf20Sopenharmony_ci  * IN1P
358c2ecf20Sopenharmony_ci  * HPOL
368c2ecf20Sopenharmony_ci  * HPOR
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ciExample:
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_cirt5668 {
418c2ecf20Sopenharmony_ci	compatible = "realtek,rt5668b";
428c2ecf20Sopenharmony_ci	reg = <0x1a>;
438c2ecf20Sopenharmony_ci	interrupt-parent = <&gpio>;
448c2ecf20Sopenharmony_ci	interrupts = <TEGRA_GPIO(U, 6) IRQ_TYPE_LEVEL_HIGH>;
458c2ecf20Sopenharmony_ci	realtek,ldo1-en-gpios =
468c2ecf20Sopenharmony_ci		<&gpio TEGRA_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
478c2ecf20Sopenharmony_ci	realtek,dmic1-data-pin = <1>;
488c2ecf20Sopenharmony_ci	realtek,dmic1-clk-pin = <1>;
498c2ecf20Sopenharmony_ci	realtek,jd-src = <1>;
508c2ecf20Sopenharmony_ci};
51