1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/dialog,da7219.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Dialog Semiconductor DA7219 Audio Codec
10 - David Rau <David.Rau.opensource@dm.renesas.com>
13 The DA7219 is an ultra low-power audio codec with
14 in-built advanced accessory detection (AAD) for mobile
15 computing and accessory applications, which supports
16 sample rates up to 96 kHz at 24-bit resolution.
30 VDD power supply for the device.
34 VDDMIC power supply for the device.
38 VDDIO power supply for the device.
42 Should be "wakeup" if interrupt is to be used to wake system,
43 otherwise "irq" should be used.
51 Flag to indicate this device can wake system (suspend/resume).
60 Name given for DAI WCLK and BCLK outputs.
65 phandle and clock specifier for codec MCLK.
71 enum: [1600, 1800, 2000, 2200, 2400, 2600]
73 Voltage (mV) for Mic Bias.
74 $ref: /schemas/types.yaml#/definitions/uint32
77 enum: [diff, se_p, se_n]
79 Mic input source type.
84 Positive differential analog microphone input.
87 Negative differential analog microphone input.
88 $ref: /schemas/types.yaml#/definitions/string
92 additionalProperties: false
94 Configuration of advanced accessory detection.
96 dlg,micbias-pulse-lvl:
99 Mic bias higher voltage pulse level (mV).
100 $ref: /schemas/types.yaml#/definitions/uint32
102 dlg,micbias-pulse-time:
104 Mic bias higher voltage pulse duration (ms).
105 $ref: /schemas/types.yaml#/definitions/uint32
109 enum: [2, 5, 10, 50, 100, 200, 500]
111 Periodic button press measurements for 4-pole jack (ms).
112 $ref: /schemas/types.yaml#/definitions/uint32
115 enum: [200, 500, 750, 1000]
117 Impedance threshold for mic detection measurement (Ohms).
118 $ref: /schemas/types.yaml#/definitions/uint32
121 enum: [5, 10, 20, 50, 100, 200, 500, 1000]
123 Debounce time for jack insertion (ms).
124 $ref: /schemas/types.yaml#/definitions/uint32
126 dlg,jack-ins-det-pty:
129 Polarity for jack insertion detection.
130 $ref: /schemas/types.yaml#/definitions/string
133 enum: ["32_64", "64_128", "128_256", "256_512"]
135 Jack type (3/4 pole) detection latency (ms).
136 $ref: /schemas/types.yaml#/definitions/string
141 Debounce time for jack removal (ms).
142 $ref: /schemas/types.yaml#/definitions/uint32
146 Impedance threshold between buttons A and D.
147 $ref: /schemas/types.yaml#/definitions/uint32
153 Impedance threshold between buttons D and B.
154 $ref: /schemas/types.yaml#/definitions/uint32
160 Impedance threshold between buttons B and C.
161 $ref: /schemas/types.yaml#/definitions/uint32
167 Impedance threshold between button C and Mic.
168 $ref: /schemas/types.yaml#/definitions/uint32
175 Number of 8-bit readings for averaged button measurement.
176 $ref: /schemas/types.yaml#/definitions/uint32
181 Repeat count for 1-bit button measurement.
182 $ref: /schemas/types.yaml#/definitions/uint32
192 additionalProperties: false
196 #include <dt-bindings/interrupt-controller/irq.h>
198 #address-cells = <1>;
202 compatible = "dlg,da7219";
205 interrupt-parent = <&gpio6>;
206 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
208 VDD-supply = <&vdd_reg>;
209 VDDMIC-supply = <&vddmic_reg>;
210 VDDIO-supply = <&vddio_reg>;
213 clock-output-names = "da7219-dai-wclk", "da7219-dai-bclk";
215 clocks = <&clks 201>;
216 clock-names = "mclk";
218 dlg,micbias-lvl = <2600>;
219 dlg,mic-amp-in-sel = "diff";
223 dlg,mic-det-thr = <500>;
224 dlg,jack-ins-deb = <20>;
225 dlg,jack-ins-det-pty = "low";
226 dlg,jack-det-rate = "32_64";
227 dlg,jack-rem-deb = <1>;
229 dlg,a-d-btn-thr = <0xa>;
230 dlg,d-b-btn-thr = <0x16>;
231 dlg,b-c-btn-thr = <0x21>;
232 dlg,c-mic-btn-thr = <0x3E>;
235 dlg,adc-1bit-rpt = <1>;