Lines Matching +full:vref +full:- +full:impedance

1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - John Hsu <KCHSU0@nuvoton.com>
13 - $ref: dai-common.yaml#
18 - nuvoton,nau8824
23 '#sound-dai-cells':
28 - description: The phandle of the master clock to the CODEC
30 clock-names:
32 - const: mclk
37 nuvoton,jkdet-polarity:
42 - 0 # active high
43 - 1 # active low
46 nuvoton,vref-impedance:
49 VREF Impedance selection.
51 - 0 # Open
52 - 1 # 25 kOhm
53 - 2 # 125 kOhm
54 - 3 # 2.5 kOhm
57 nuvoton,micbias-voltage:
62 - 0 # VDDA
63 - 1 # VDDA
64 - 2 # VDDA * 1.1
65 - 3 # VDDA * 1.2
66 - 4 # VDDA * 1.3
67 - 5 # VDDA * 1.4
68 - 6 # VDDA * 1.53
69 - 7 # VDDA * 1.53
72 nuvoton,sar-threshold-num:
80 nuvoton,sar-threshold:
81 $ref: /schemas/types.yaml#/definitions/uint32-array
83 Impedance threshold for each button. Array that contains up to 8 buttons
86 configured by 'nuvoton,micbias-voltage', SAR_VOLTAGE is configured by
87 'nuvoton,sar-voltage', R - button impedance.
96 nuvoton,sar-hysteresis:
99 Button impedance measurement hysteresis.
102 nuvoton,sar-voltage:
105 Reference voltage for button impedance measurement.
107 - 0 # VDDA
108 - 1 # VDDA
109 - 2 # VDDA * 1.1
110 - 3 # VDDA * 1.2
111 - 4 # VDDA * 1.3
112 - 5 # VDDA * 1.4
113 - 6 # VDDA * 1.53
114 - 7 # VDDA * 1.53
117 nuvoton,sar-compare-time:
122 - 0 # 500ns
123 - 1 # 1us
124 - 2 # 2us
125 - 3 # 4us
128 nuvoton,sar-sampling-time:
133 - 0 # 2us
134 - 1 # 4us
135 - 2 # 8us
136 - 3 # 16us
139 nuvoton,short-key-debounce:
144 - 0 # 30 ms
145 - 1 # 50 ms
146 - 2 # 100 ms
149 nuvoton,jack-eject-debounce:
154 - 0 # 0 ms
155 - 1 # 1 ms
156 - 2 # 10 ms
160 - compatible
161 - reg
166 - |
167 #include <dt-bindings/gpio/gpio.h>
168 #include <dt-bindings/interrupt-controller/irq.h>
170 #address-cells = <1>;
171 #size-cells = <0>;
173 #sound-dai-cells = <0>;
176 interrupt-parent = <&gpio>;
178 nuvoton,vref-impedance = <2>;
179 nuvoton,micbias-voltage = <6>;
180 nuvoton,sar-threshold-num = <4>;
181 // Setup 4 buttons impedance according to Android specification
182 nuvoton,sar-threshold = <0xc 0x1e 0x38 0x60>;
183 nuvoton,sar-hysteresis = <0>;
184 nuvoton,sar-voltage = <6>;
185 nuvoton,sar-compare-time = <1>;
186 nuvoton,sar-sampling-time = <1>;
187 nuvoton,short-key-debounce = <0>;
188 nuvoton,jack-eject-debounce = <1>;