1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/nuvoton,nau8821.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: NAU88L21 audio codec
10 - Seven Lee <wtli@nuvoton.com>
13 - $ref: dai-common.yaml#
17 const: nuvoton,nau8821
26 description: Enable jack detection via JKDET pin.
29 nuvoton,jkdet-pull-enable:
30 description: Enable JKDET pin pull. If set - pin pull enabled,
31 otherwise pin in high impedance state.
34 nuvoton,jkdet-pull-up:
35 description: Pull-up JKDET pin. If set then JKDET pin is pull up,
40 description: handles key press detection.
43 nuvoton,jkdet-polarity:
44 description: JKDET pin polarity.
45 $ref: /schemas/types.yaml#/definitions/uint32
51 nuvoton,micbias-voltage:
52 description: MICBIAS output level select.
53 $ref: /schemas/types.yaml#/definitions/uint32
65 nuvoton,vref-impedance:
66 description: VMID Tie-off impedance select.
67 $ref: /schemas/types.yaml#/definitions/uint32
75 nuvoton,jack-insert-debounce:
76 description: number from 0 to 7 that sets debounce time to 2^(n+2)ms.
77 $ref: /schemas/types.yaml#/definitions/uint32
81 nuvoton,jack-eject-debounce:
82 description: number from 0 to 7 that sets debounce time to 2^(n+2)ms.
83 $ref: /schemas/types.yaml#/definitions/uint32
87 nuvoton,dmic-clk-threshold:
88 description: DMIC clock speed expected value. Unit is Hz.
89 $ref: /schemas/types.yaml#/definitions/uint32
92 nuvoton,dmic-slew-rate:
93 description: The range 0 to 7 represents the speed of DMIC slew rate.
94 The lowest value 0 means the slowest rate and the highest value
95 7 means the fastest rate.
96 $ref: /schemas/types.yaml#/definitions/uint32
100 nuvoton,left-input-single-end:
101 description: Enable left input with single-ended settings if set.
102 For the headset mic application, the single-ended control is
103 just limited to the left adc for design demand.
106 nuvoton,adc-delay-ms:
107 description: Delay (in ms) to make input path stable and avoid pop noise.
119 unevaluatedProperties: false
123 #include <dt-bindings/gpio/gpio.h>
124 #include <dt-bindings/interrupt-controller/irq.h>
126 #address-cells = <1>;
129 compatible = "nuvoton,nau8821";
131 interrupt-parent = <&gpio>;
132 interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
133 nuvoton,jkdet-enable;
134 nuvoton,jkdet-pull-enable;
135 nuvoton,jkdet-pull-up;
137 nuvoton,left-input-single-end;
138 nuvoton,jkdet-polarity = <GPIO_ACTIVE_LOW>;
139 nuvoton,micbias-voltage = <6>;
140 nuvoton,vref-impedance = <2>;
141 nuvoton,jack-insert-debounce = <7>;
142 nuvoton,jack-eject-debounce = <0>;
143 nuvoton,dmic-clk-threshold = <3072000>;
144 nuvoton,dmic-slew-rate = <0>;
145 nuvoton,adc-delay-ms = <125>;
146 #sound-dai-cells = <0>;