Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) Nuvoton NAU8824 audio codec
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) This device supports I2C only.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)   - compatible : Must be "nuvoton,nau8824"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)   - reg : the I2C address of the device. This is either 0x1a (CSB=0) or 0x1b (CSB=1).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)   - nuvoton,jkdet-polarity: JKDET pin polarity. 0 - active high, 1 - active low.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)   - nuvoton,vref-impedance: VREF Impedance selection
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)       0 - Open
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)       1 - 25 kOhm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)       2 - 125 kOhm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)       3 - 2.5 kOhm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)   - nuvoton,micbias-voltage: Micbias voltage level.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)       0 - VDDA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)       1 - VDDA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)       2 - VDDA * 1.1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)       3 - VDDA * 1.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)       4 - VDDA * 1.3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)       5 - VDDA * 1.4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)       6 - VDDA * 1.53
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)       7 - VDDA * 1.53
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)   - nuvoton,sar-threshold-num: Number of buttons supported
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)   - nuvoton,sar-threshold: Impedance threshold for each button. Array that contains up to 8 buttons configuration. SAR value is calculated as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)     SAR = 255 * MICBIAS / SAR_VOLTAGE * R / (2000 + R)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)     where MICBIAS is configured by 'nuvoton,micbias-voltage', SAR_VOLTAGE is configured by 'nuvoton,sar-voltage', R - button impedance.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)     Refer datasheet section 10.2 for more information about threshold calculation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)   - nuvoton,sar-hysteresis: Button impedance measurement hysteresis.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)   - nuvoton,sar-voltage: Reference voltage for button impedance measurement.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)       0 - VDDA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)       1 - VDDA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)       2 - VDDA * 1.1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)       3 - VDDA * 1.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)       4 - VDDA * 1.3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)       5 - VDDA * 1.4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44)       6 - VDDA * 1.53
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)       7 - VDDA * 1.53
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)   - nuvoton,sar-compare-time: SAR compare time
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)       0 - 500 ns
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)       1 - 1 us
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)       2 - 2 us
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)       3 - 4 us
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)   - nuvoton,sar-sampling-time: SAR sampling time
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)       0 - 2 us
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)       1 - 4 us
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56)       2 - 8 us
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)       3 - 16 us
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59)   - nuvoton,short-key-debounce: Button short key press debounce time.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)       0 - 30 ms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61)       1 - 50 ms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)       2 - 100 ms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64)   - nuvoton,jack-eject-debounce: Jack ejection debounce time.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)       0 - 0 ms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66)       1 - 1 ms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67)       2 - 10 ms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72)   headset: nau8824@1a {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73)       compatible = "nuvoton,nau8824";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74)       reg = <0x1a>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)       interrupt-parent = <&gpio>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76)       interrupts = <TEGRA_GPIO(E, 6) IRQ_TYPE_LEVEL_LOW>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77)       nuvoton,vref-impedance = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78)       nuvoton,micbias-voltage = <6>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79)       // Setup 4 buttons impedance according to Android specification
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80)       nuvoton,sar-threshold-num = <4>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81)       nuvoton,sar-threshold = <0xc 0x1e 0x38 0x60>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82)       nuvoton,sar-hysteresis = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83)       nuvoton,sar-voltage = <6>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)       nuvoton,sar-compare-time = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85)       nuvoton,sar-sampling-time = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86)       nuvoton,short-key-debounce = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87)       nuvoton,jack-eject-debounce = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88)   };