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) ==============================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) Cirrus Logic EP93xx ADC driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) ==============================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 1. Overview
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) ===========
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) The driver is intended to work on both low-end (EP9301, EP9302) devices with
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 5-channel ADC and high-end (EP9307, EP9312, EP9315) devices with 10-channel
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) touchscreen/ADC module.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 2. Channel numbering
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) ====================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Numbering scheme for channels 0..4 is defined in EP9301 and EP9302 datasheets.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) EP9307, EP9312 and EP9312 have 3 channels more (total 8), but the numbering is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) not defined. So the last three are numbered randomly, let's say.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) Assuming ep93xx_adc is IIO device0, you'd find the following entries under
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) /sys/bus/iio/devices/iio:device0/:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)   +-----------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)   | sysfs entry     | ball/pin name |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)   +=================+===============+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)   | in_voltage0_raw | YM            |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)   +-----------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)   | in_voltage1_raw | SXP           |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)   +-----------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)   | in_voltage2_raw | SXM           |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)   +-----------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)   | in_voltage3_raw | SYP           |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)   +-----------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)   | in_voltage4_raw | SYM           |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)   +-----------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)   | in_voltage5_raw | XP            |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)   +-----------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)   | in_voltage6_raw | XM            |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)   +-----------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)   | in_voltage7_raw | YP            |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)   +-----------------+---------------+