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) Device Tree Bindings for LED support on MT6323 PMIC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) MT6323 LED controller is subfunction provided by MT6323 PMIC, so the LED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) controllers are defined as the subnode of the function node provided by MT6323
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) PMIC controller that is being defined as one kind of Muti-Function Device (MFD)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) using shared bus called PMIC wrapper for each subfunction to access remote
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) MT6323 PMIC hardware.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) For MT6323 MFD bindings see:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Documentation/devicetree/bindings/mfd/mt6397.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) For MediaTek PMIC wrapper bindings see:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) Documentation/devicetree/bindings/soc/mediatek/pwrap.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) - compatible : Must be "mediatek,mt6323-led"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - address-cells : Must be 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - size-cells : Must be 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) Each led is represented as a child node of the mediatek,mt6323-led that
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) describes the initial behavior for each LED physically and currently only four
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) LED child nodes can be supported.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Required properties for the LED child node:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) - reg : LED channel number (0..3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) Optional properties for the LED child node:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) - label : See Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) - linux,default-trigger : See Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) - default-state: See Documentation/devicetree/bindings/leds/common.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	mt6323: pmic {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 		compatible = "mediatek,mt6323";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 		...
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 		mt6323led: leds {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 			compatible = "mediatek,mt6323-led";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 			#address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 			#size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 			led@0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 				reg = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 				label = "LED0";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 				linux,default-trigger = "timer";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 				default-state = "on";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 			};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 			led@1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 				reg = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 				label = "LED1";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 				default-state = "off";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 			};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 			led@2 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 				reg = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 				label = "LED2";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 				default-state = "on";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 			};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 		};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 	};