18c2ecf20Sopenharmony_ciRT5665/RT5666 audio CODEC
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThis device supports I2C only.
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciRequired properties:
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci- compatible : One of "realtek,rt5665", "realtek,rt5666".
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci- reg : The I2C address of the device.
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci- interrupts : The CODEC's interrupt output.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciOptional properties:
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci- realtek,in1-differential
168c2ecf20Sopenharmony_ci- realtek,in2-differential
178c2ecf20Sopenharmony_ci- realtek,in3-differential
188c2ecf20Sopenharmony_ci- realtek,in4-differential
198c2ecf20Sopenharmony_ci  Boolean. Indicate MIC1/2/3/4 input are differential, rather than single-ended.
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci- realtek,dmic1-data-pin
228c2ecf20Sopenharmony_ci  0: dmic1 is not used
238c2ecf20Sopenharmony_ci  1: using GPIO4 pin as dmic1 data pin
248c2ecf20Sopenharmony_ci  2: using IN2N pin as dmic2 data pin
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci- realtek,dmic2-data-pin
278c2ecf20Sopenharmony_ci  0: dmic2 is not used
288c2ecf20Sopenharmony_ci  1: using GPIO5 pin as dmic2 data pin
298c2ecf20Sopenharmony_ci  2: using IN2P pin as dmic2 data pin
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci- realtek,jd-src
328c2ecf20Sopenharmony_ci  0: No JD is used
338c2ecf20Sopenharmony_ci  1: using JD1 as JD source
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci- realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciPins on the device (for linking into audio routes) for RT5659/RT5658:
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci  * DMIC L1
408c2ecf20Sopenharmony_ci  * DMIC R1
418c2ecf20Sopenharmony_ci  * DMIC L2
428c2ecf20Sopenharmony_ci  * DMIC R2
438c2ecf20Sopenharmony_ci  * IN1P
448c2ecf20Sopenharmony_ci  * IN1N
458c2ecf20Sopenharmony_ci  * IN2P
468c2ecf20Sopenharmony_ci  * IN2N
478c2ecf20Sopenharmony_ci  * IN3P
488c2ecf20Sopenharmony_ci  * IN3N
498c2ecf20Sopenharmony_ci  * IN4P
508c2ecf20Sopenharmony_ci  * IN4N
518c2ecf20Sopenharmony_ci  * HPOL
528c2ecf20Sopenharmony_ci  * HPOR
538c2ecf20Sopenharmony_ci  * LOUTL
548c2ecf20Sopenharmony_ci  * LOUTR
558c2ecf20Sopenharmony_ci  * MONOOUT
568c2ecf20Sopenharmony_ci  * PDML
578c2ecf20Sopenharmony_ci  * PDMR
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ciExample:
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_cirt5659 {
628c2ecf20Sopenharmony_ci	compatible = "realtek,rt5665";
638c2ecf20Sopenharmony_ci	reg = <0x1b>;
648c2ecf20Sopenharmony_ci	interrupt-parent = <&gpio>;
658c2ecf20Sopenharmony_ci	interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_HIGH>;
668c2ecf20Sopenharmony_ci	realtek,ldo1-en-gpios =
678c2ecf20Sopenharmony_ci		<&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
688c2ecf20Sopenharmony_ci};
69