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) GMT G762/G763 PWM Fan controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) Required node properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  - "compatible": must be either "gmt,g762" or "gmt,g763"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  - "reg": I2C bus address of the device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  - "clocks": a fixed clock providing input clock frequency
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 	     on CLK pin of the chip.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  - "fan_startv": fan startup voltage. Accepted values are 0, 1, 2 and 3.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	       The higher the more.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  - "pwm_polarity": pwm polarity. Accepted values are 0 (positive duty)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	       and 1 (negative duty).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)  - "fan_gear_mode": fan gear mode. Supported values are 0, 1 and 2.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) If an optional property is not set in .dts file, then current value is kept
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) unmodified (e.g. u-boot installed value).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Additional information on operational parameters for the device is available
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) in Documentation/hwmon/g762.rst. A detailed datasheet for the device is available
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) at http://natisbad.org/NAS/refs/GMT_EDS-762_763-080710-0.2.pdf.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) Example g762 node:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)    clocks {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	#address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	#size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	g762_clk: fixedclk {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 		 compatible = "fixed-clock";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 		 #clock-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 		 clock-frequency = <8192>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 	}
^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)    g762: g762@3e {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	compatible = "gmt,g762";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	reg = <0x3e>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 	clocks = <&g762_clk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	fan_gear_mode = <0>; /* chip default */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 	fan_startv = <1>;    /* chip default */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 	pwm_polarity = <0>;  /* chip default */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)    };