1 Nuvoton NAU8824 audio codec
3 This device supports I2C only.
6 - compatible : Must be "nuvoton,nau8824"
8 - reg : the I2C address of the device. This is either 0x1a (CSB=0) or 0x1b (CSB=1).
11 - nuvoton,jkdet-polarity: JKDET pin polarity. 0 - active high, 1 - active low.
13 - nuvoton,vref-impedance: VREF Impedance selection
19 - nuvoton,micbias-voltage: Micbias voltage level.
29 - nuvoton,sar-threshold-num: Number of buttons supported
30 - nuvoton,sar-threshold: Impedance threshold for each button. Array that contains up to 8 buttons configuration. SAR value is calculated as
31 SAR = 255 * MICBIAS / SAR_VOLTAGE * R / (2000 + R)
32 where MICBIAS is configured by 'nuvoton,micbias-voltage', SAR_VOLTAGE is configured by 'nuvoton,sar-voltage', R - button impedance.
33 Refer datasheet section 10.2 for more information about threshold calculation.
35 - nuvoton,sar-hysteresis: Button impedance measurement hysteresis.
37 - nuvoton,sar-voltage: Reference voltage for button impedance measurement.
47 - nuvoton,sar-compare-time: SAR compare time
53 - nuvoton,sar-sampling-time: SAR sampling time
59 - nuvoton,short-key-debounce: Button short key press debounce time.
64 - nuvoton,jack-eject-debounce: Jack ejection debounce time.
73 compatible = "nuvoton,nau8824";
75 interrupt-parent = <&gpio>;
76 interrupts = <TEGRA_GPIO(E, 6) IRQ_TYPE_LEVEL_LOW>;
77 nuvoton,vref-impedance = <2>;
78 nuvoton,micbias-voltage = <6>;
79 // Setup 4 buttons impedance according to Android specification
80 nuvoton,sar-threshold-num = <4>;
81 nuvoton,sar-threshold = <0xc 0x1e 0x38 0x60>;
82 nuvoton,sar-hysteresis = <0>;
83 nuvoton,sar-voltage = <6>;
84 nuvoton,sar-compare-time = <1>;
85 nuvoton,sar-sampling-time = <1>;
86 nuvoton,short-key-debounce = <0>;
87 nuvoton,jack-eject-debounce = <1>;