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) Bindings for Linear Technologies LT3593 LED controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) - compatible:		Should be "lltc,lt3593".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) - lltc,ctrl-gpios:	A handle to the GPIO that is connected to the 'CTRL'
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 			pin of the chip.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) The hardware supports only one LED. The properties of this LED are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) configured in a sub-node in the device node.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Optional sub-node properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - function:		See Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - color:		See Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) - label:		A label for the LED. If none is given, the LED will be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 			named "lt3595::" (deprecated)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - linux,default-trigger: The default trigger for the LED.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 			See Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) - default-state:	The initial state of the LED.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 			See Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) If multiple chips of this type are found in a design, each one needs to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) be handled by its own device node.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #include <dt-bindings/leds/common.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) led-controller {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	compatible = "lltc,lt3593";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	lltc,ctrl-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	led {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 		function = LED_FUNCTION_BACKLIGHT;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 		color = <LED_COLOR_ID_WHITE>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 		default-state = "on";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) };