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) RT5650/RT5645 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) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) - compatible : One of "realtek,rt5645" or "realtek,rt5650".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) - reg : The I2C address of the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - interrupts : The CODEC's interrupt output.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - avdd-supply: Power supply for AVDD, providing 1.8V.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) - cpvdd-supply: Power supply for CPVDD, providing 3.5V.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) - hp-detect-gpios:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)   a GPIO spec for the external headphone detect pin. If jd-mode = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)   we will get the JD status by getting the value of hp-detect-gpios.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) - realtek,in2-differential
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)   Boolean. Indicate MIC2 input are differential, rather than single-ended.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) - realtek,dmic1-data-pin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)   0: dmic1 is not used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)   1: using IN2P pin as dmic1 data pin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)   2: using GPIO6 pin as dmic1 data pin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)   3: using GPIO10 pin as dmic1 data pin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)   4: using GPIO12 pin as dmic1 data pin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) - realtek,dmic2-data-pin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)   0: dmic2 is not used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)   1: using IN2N pin as dmic2 data pin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)   2: using GPIO5 pin as dmic2 data pin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)   3: using GPIO11 pin as dmic2 data pin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) -- realtek,jd-mode : The JD mode of rt5645/rt5650
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)    0 : rt5645/rt5650 JD function is not used
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)    1 : Mode-0 (VDD=3.3V), two port jack detection
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)    2 : Mode-1 (VDD=3.3V), one port jack detection
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)    3 : Mode-2 (VDD=1.8V), one port jack detection
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) Pins on the device (for linking into audio routes) for RT5645/RT5650:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)   * DMIC L1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)   * DMIC R1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)   * DMIC L2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50)   * DMIC R2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)   * IN1P
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52)   * IN1N
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)   * IN2P
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)   * IN2N
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)   * Haptic Generator
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56)   * HPOL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)   * HPOR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58)   * LOUTL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59)   * LOUTR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)   * PDM1L
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61)   * PDM1R
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)   * SPOL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63)   * SPOR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) codec: rt5650@1a {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) 	compatible = "realtek,rt5650";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) 	reg = <0x1a>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) 	hp-detect-gpios = <&gpio 19 0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) 	interrupt-parent = <&gpio>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) 	interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) 	realtek,dmic-en = "true";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) 	realtek,en-jd-func = "true";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) 	realtek,jd-mode = <3>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) };