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) Kernel driver w1_ds2423
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) =======================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) Supported chips:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)   * Maxim DS2423 based counter devices.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) supported family codes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)         ===============	====
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	W1_THERM_DS2423	0x1D
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)         ===============	====
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Author: Mika Laitio <lamikr@pilppa.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Description
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) -----------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) Support is provided through the sysfs w1_slave file. Each opening and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) read sequence of w1_slave file initiates the read of counters and ram
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) available in DS2423 pages 12 - 15.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Result of each page is provided as an ASCII output where each counter
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) value and associated ram buffer is outpputed to own line.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) Each lines will contain the values of 42 bytes read from the counter and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) memory page along the crc=YES or NO for indicating whether the read operation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) was successful and CRC matched.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) If the operation was successful, there is also in the end of each line
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) a counter value expressed as an integer after c=
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Meaning of 42 bytes represented is following:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)  - 1 byte from ram page
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)  - 4 bytes for the counter value
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)  - 4 zero bytes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)  - 2 bytes for crc16 which was calculated from the data read since the previous crc bytes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)  - 31 remaining bytes from the ram page
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)  - crc=YES/NO indicating whether read was ok and crc matched
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)  - c=<int> current counter value
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) example from the successful read::
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44)   00 02 00 00 00 00 00 00 00 6d 38 00 ff ff 00 00 fe ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)   00 02 00 00 00 00 00 00 00 e0 1f 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)   00 29 c6 5d 18 00 00 00 00 04 37 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=408798761
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)   00 05 00 00 00 00 00 00 00 8d 39 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff crc=YES c=5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) example from the read with crc errors::
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)   00 02 00 00 00 00 00 00 00 6d 38 00 ff ff 00 00 fe ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52)   00 02 00 00 22 00 00 00 00 e0 1f 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=NO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)   00 e1 61 5d 19 00 00 00 00 df 0b 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=NO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)   00 05 00 00 20 00 00 00 00 8d 39 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff crc=NO