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) * Texas Instruments - LM3692x Highly Efficient White LED Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) The LM3692x is an ultra-compact, highly efficient,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) white-LED driver designed for LCD display backlighting.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) The main difference between the LM36922 and LM36923 is the number of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) LED strings it supports.  The LM36922 supports two strings while the LM36923
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) supports three strings.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	- compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 		"ti,lm36922"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 		"ti,lm36923"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	- reg :  I2C slave address
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	- #address-cells : 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	- #size-cells : 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	- enable-gpios : gpio pin to enable/disable the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	- vled-supply : LED supply
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	- ti,ovp-microvolt: Overvoltage protection in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	    micro-volt, can be 17000000, 21000000, 25000000 or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	    29000000. If ti,ovp-microvolt is not specified it
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	    defaults to 29000000.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) Required child properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	- reg : 0 - Will enable all LED sync paths
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 		1 - Will enable the LED1 sync
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 		2 - Will enable the LED2 sync
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 		3 - Will enable the LED3 sync (LM36923 only)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Optional child properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	- function : see Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	- color : see Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	- label : see Documentation/devicetree/bindings/leds/common.txt (deprecated)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	- linux,default-trigger :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 	   see Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 	- led-max-microamp :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 	   see Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #include <dt-bindings/leds/common.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) led-controller@36 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 	compatible = "ti,lm3692x";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	reg = <0x36>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 	#address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 	#size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 	enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 	vled-supply = <&vbatt>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 	ti,ovp-microvolt = <29000000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 	led@0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 		reg = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 		function = LED_FUNCTION_BACKLIGHT;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 		color = <LED_COLOR_ID_WHITE>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 		linux,default-trigger = "backlight";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 		led-max-microamp = <20000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) 	};
^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) For more product information please see the link below:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) https://www.ti.com/lit/ds/snvsa29/snvsa29.pdf