1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/realtek,rt5682s.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Realtek rt5682s codec devicetree bindings
10 - Derek Fang <derek.fang@realtek.com>
13 Rt5682s(ALC5682I-VS) is a rt5682i variant which supports I2C only.
17 const: realtek,rt5682s
21 description: I2C address of the device.
25 description: The CODEC's interrupt output.
27 realtek,dmic1-data-pin:
28 $ref: /schemas/types.yaml#/definitions/uint32
30 - 0 # dmic1 data is not used
31 - 1 # using GPIO2 pin as dmic1 data pin
32 - 2 # using GPIO5 pin as dmic1 data pin
34 Specify which GPIO pin be used as DMIC1 data pin.
36 realtek,dmic1-clk-pin:
37 $ref: /schemas/types.yaml#/definitions/uint32
39 - 0 # dmic1 clk is not used
40 - 1 # using GPIO1 pin as dmic1 clock pin
41 - 2 # using GPIO3 pin as dmic1 clock pin
43 Specify which GPIO pin be used as DMIC1 clk pin.
46 $ref: /schemas/types.yaml#/definitions/uint32
49 - 1 # using JD1 as JD source
51 Specify which JD source be used.
53 realtek,ldo1-en-gpios:
55 The GPIO that controls the CODEC's LDO1_EN pin.
57 realtek,dmic-clk-rate-hz:
59 Set the clock rate (hz) for the requirement of the particular DMIC.
61 realtek,dmic-delay-ms:
63 Set the delay time (ms) for the requirement of the particular DMIC.
65 realtek,amic-delay-ms:
67 Set the delay time (ms) for the requirement of the particular platform or AMIC.
69 realtek,dmic-clk-driving-high:
72 Set the high driving of the DMIC clock out.
76 - description: phandle and clock specifier for codec MCLK.
88 description: Name given for DAI word clock and bit clock outputs.
90 additionalProperties: false
98 #include <dt-bindings/gpio/gpio.h>
99 #include <dt-bindings/interrupt-controller/irq.h>
102 #address-cells = <1>;
106 compatible = "realtek,rt5682s";
108 interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
109 realtek,ldo1-en-gpios =
110 <&gpio 2 GPIO_ACTIVE_HIGH>;
111 realtek,dmic1-data-pin = <1>;
112 realtek,dmic1-clk-pin = <1>;
113 realtek,jd-src = <1>;
116 clock-output-names = "rt5682-dai-wclk", "rt5682-dai-bclk";
119 clock-names = "mclk";