blob: c1fa379f5f3ea1388ed9e54ea8fef66d4645d673 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001RT5650/RT5645 audio CODEC
2
3This device supports I2C only.
4
5Required properties:
6
7- compatible : One of "realtek,rt5645" or "realtek,rt5650".
8
9- reg : The I2C address of the device.
10
11- interrupts : The CODEC's interrupt output.
12
13- avdd-supply: Power supply for AVDD, providing 1.8V.
14
15- cpvdd-supply: Power supply for CPVDD, providing 3.5V.
16
17Optional properties:
18
19- hp-detect-gpios:
20 a GPIO spec for the external headphone detect pin. If jd-mode = 0,
21 we will get the JD status by getting the value of hp-detect-gpios.
22
Tom Rini6bb92fc2024-05-20 09:54:58 -060023- cbj-sleeve-gpios:
24 a GPIO spec to control the external combo jack circuit to tie the sleeve/ring2
25 contacts to the ground or floating. It could avoid some electric noise from the
26 active speaker jacks.
27
Tom Rini53633a82024-02-29 12:33:36 -050028- realtek,in2-differential
29 Boolean. Indicate MIC2 input are differential, rather than single-ended.
30
31- realtek,dmic1-data-pin
32 0: dmic1 is not used
33 1: using IN2P pin as dmic1 data pin
34 2: using GPIO6 pin as dmic1 data pin
35 3: using GPIO10 pin as dmic1 data pin
36 4: using GPIO12 pin as dmic1 data pin
37
38- realtek,dmic2-data-pin
39 0: dmic2 is not used
40 1: using IN2N pin as dmic2 data pin
41 2: using GPIO5 pin as dmic2 data pin
42 3: using GPIO11 pin as dmic2 data pin
43
44-- realtek,jd-mode : The JD mode of rt5645/rt5650
45 0 : rt5645/rt5650 JD function is not used
46 1 : Mode-0 (VDD=3.3V), two port jack detection
47 2 : Mode-1 (VDD=3.3V), one port jack detection
48 3 : Mode-2 (VDD=1.8V), one port jack detection
49
50Pins on the device (for linking into audio routes) for RT5645/RT5650:
51
52 * DMIC L1
53 * DMIC R1
54 * DMIC L2
55 * DMIC R2
56 * IN1P
57 * IN1N
58 * IN2P
59 * IN2N
60 * Haptic Generator
61 * HPOL
62 * HPOR
63 * LOUTL
64 * LOUTR
65 * PDM1L
66 * PDM1R
67 * SPOL
68 * SPOR
69
70Example:
71
72codec: rt5650@1a {
73 compatible = "realtek,rt5650";
74 reg = <0x1a>;
75 hp-detect-gpios = <&gpio 19 0>;
Tom Rini6bb92fc2024-05-20 09:54:58 -060076 cbj-sleeve-gpios = <&gpio 20 0>;
Tom Rini53633a82024-02-29 12:33:36 -050077 interrupt-parent = <&gpio>;
78 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
79 realtek,dmic-en = "true";
80 realtek,en-jd-func = "true";
81 realtek,jd-mode = <3>;
82};