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 max6650
^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 MAX6650
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)     Prefix: 'max6650'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)     Addresses scanned: none
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)     Datasheet: http://pdfserv.maxim-ic.com/en/ds/MAX6650-MAX6651.pdf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)   * Maxim MAX6651
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)     Prefix: 'max6651'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)     Addresses scanned: none
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)     Datasheet: http://pdfserv.maxim-ic.com/en/ds/MAX6650-MAX6651.pdf
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Authors:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)     - Hans J. Koch <hjk@hansjkoch.de>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)     - John Morris <john.morris@spirentcom.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)     - Claus Gindhart <claus.gindhart@kontron.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) Description
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) -----------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) This driver implements support for the Maxim MAX6650 and MAX6651.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) The 2 devices are very similar, but the MAX6550 has a reduced feature
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) set, e.g. only one fan-input, instead of 4 for the MAX6651.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) The driver is not able to distinguish between the 2 devices.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) The driver provides the following sensor accesses in sysfs:
^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) fan1_input	ro	fan tachometer speed in RPM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) fan2_input	ro	"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) fan3_input	ro	"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) fan4_input	ro	"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) fan1_target	rw	desired fan speed in RPM (closed loop mode only)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) pwm1_enable	rw	regulator mode, 0=full on, 1=open loop, 2=closed loop
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 			3=off
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) pwm1		rw	relative speed (0-255), 255=max. speed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 			Used in open loop mode only.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) fan1_div	rw	sets the speed range the inputs can handle. Legal
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 			values are 1, 2, 4, and 8. Use lower values for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 			faster fans.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) =============== ======= =======================================================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) Usage notes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) -----------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) This driver does not auto-detect devices. You will have to instantiate the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) devices explicitly. Please see Documentation/i2c/instantiating-devices.rst for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) Module parameters
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) -----------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) If your board has a BIOS that initializes the MAX6650/6651 correctly, you can
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) simply load your module without parameters. It won't touch the configuration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) registers then. If your board BIOS doesn't initialize the chip, or you want
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) different settings, you can set the following parameters:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) voltage_12V: 5=5V fan, 12=12V fan, 0=don't change
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) prescaler: Possible values are 1,2,4,8,16, or 0 for don't change
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) clock: The clock frequency in Hz of the chip the driver should assume [254000]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) Please have a look at the MAX6650/6651 data sheet and make sure that you fully
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) understand the meaning of these parameters before you attempt to change them.