1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/realtek,rt5659.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: RT5659/RT5658 audio CODEC
10 - Animesh Agarwal <animeshagarwal28@gmail.com>
13 This device supports I2C only.
15 Pins on the device (for linking into audio routes) for RT5659/RT5658:
40 - $ref: dai-common.yaml#
60 realtek,dmic1-data-pin:
61 $ref: /schemas/types.yaml#/definitions/uint32
63 - 0 # dmic1 is not used
64 - 1 # using IN2N pin as dmic1 data pin
65 - 2 # using GPIO5 pin as dmic1 data pin
66 - 3 # using GPIO9 pin as dmic1 data pin
67 - 4 # using GPIO11 pin as dmic1 data pin
68 description: Specify which pin to be used as DMIC1 data pin.
71 realtek,dmic2-data-pin:
72 $ref: /schemas/types.yaml#/definitions/uint32
74 - 0 # dmic2 is not used
75 - 1 # using IN2P pin as dmic2 data pin
76 - 2 # using GPIO6 pin as dmic2 data pin
77 - 3 # using GPIO10 pin as dmic2 data pin
78 - 4 # using GPIO12 pin as dmic2 data pin
79 description: Specify which pin to be used as DMIC2 data pin.
83 $ref: /schemas/types.yaml#/definitions/uint32
86 - 1 # using JD3 as JD source
87 - 2 # JD source for Intel HDA header
88 description: Specify which JD source be used.
91 realtek,ldo1-en-gpios:
93 description: CODEC's LDO1_EN pin.
97 description: CODEC's RESET pin.
100 $ref: /schemas/graph.yaml#/properties/ports
103 $ref: audio-graph-port.yaml#
104 unevaluatedProperties: false
111 unevaluatedProperties: false
115 #include <dt-bindings/gpio/gpio.h>
116 #include <dt-bindings/interrupt-controller/irq.h>
119 #address-cells = <1>;
123 compatible = "realtek,rt5659";
125 interrupt-parent = <&gpio>;
126 interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
127 realtek,ldo1-en-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;