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 ltc4260
^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)   * Linear Technology LTC4260
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)     Prefix: 'ltc4260'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)     Addresses scanned: -
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)     Datasheet:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	http://cds.linear.com/docs/en/datasheet/4260fc.pdf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Author: Guenter Roeck <linux@roeck-us.net>
^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) Description
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) -----------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) The LTC4260 Hot Swap controller allows a board to be safely inserted
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) and removed from a live backplane.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) Usage Notes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) -----------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) This driver does not probe for LTC4260 devices, since there is no register
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) which can be safely used to identify the chip. You will have to instantiate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) the devices explicitly.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) Example: the following will load the driver for an LTC4260 at address 0x10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) on I2C bus #1::
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	$ modprobe ltc4260
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 	$ echo ltc4260 0x10 > /sys/bus/i2c/devices/i2c-1/new_device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) Sysfs entries
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) -------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) Voltage readings provided by this driver are reported as obtained from the ADC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) registers. If a set of voltage divider resistors is installed, calculate the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) real voltage by multiplying the reported value with (R1+R2)/R2, where R1 is the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) value of the divider resistor against the measured voltage and R2 is the value
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) of the divider resistor against Ground.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) Current reading provided by this driver is reported as obtained from the ADC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) Current Sense register. The reported value assumes that a 1 mOhm sense resistor
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) is installed. If a different sense resistor is installed, calculate the real
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) current by dividing the reported value by the sense resistor value in mOhm.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) ======================= =======================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) in1_input		SOURCE voltage (mV)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) in1_min_alarm		Undervoltage alarm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) in1_max_alarm		Overvoltage alarm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) in2_input		ADIN voltage (mV)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) in2_alarm		Power bad alarm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) curr1_input		SENSE current (mA)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) curr1_alarm		SENSE overcurrent alarm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) ======================= =======================