ipq40xx: MR33: Fix LP5562 LED driver probe
Add the reg and color property to each channel node. This update is to accommodate the multicolor framework. Refer to: <https://lore.kernel.org/all/20200622185919.2131-9-dmurphy@ti.com> <https://lore.kernel.org/all/20210818070209.1540451-1-michal.vokac@ysoft.com> Signed-off-by: Tan Zien <nabsdh9@gmail.com> [replaced links to lore, wrote something of a commit message] Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						Christian Lamparter
					
				
			
			
				
	
			
			
			
						parent
						
							94c41ef2ef
						
					
				
				
					commit
					85a42fa9cb
				
			@@ -16,6 +16,7 @@
 | 
			
		||||
#include <dt-bindings/gpio/gpio.h>
 | 
			
		||||
#include <dt-bindings/input/input.h>
 | 
			
		||||
#include <dt-bindings/soc/qcom,tcsr.h>
 | 
			
		||||
#include <dt-bindings/leds/common.h>
 | 
			
		||||
 | 
			
		||||
/ {
 | 
			
		||||
	model = "Meraki MR33 Access Point";
 | 
			
		||||
@@ -166,30 +167,40 @@
 | 
			
		||||
		reg = <0x30>;
 | 
			
		||||
		clock-mode = /bits/8 <2>;
 | 
			
		||||
		enable-gpio = <&tlmm 48 GPIO_ACTIVE_HIGH>;
 | 
			
		||||
		#address-cells = <1>;
 | 
			
		||||
		#size-cells = <0>;
 | 
			
		||||
 | 
			
		||||
		/* RGB led */
 | 
			
		||||
		status_red: chan0 {
 | 
			
		||||
		status_red: chan@0 {
 | 
			
		||||
			chan-name = "red:status";
 | 
			
		||||
			led-cur = /bits/ 8 <0x20>;
 | 
			
		||||
			max-cur = /bits/ 8 <0x60>;
 | 
			
		||||
			reg = <0>;
 | 
			
		||||
			color = <LED_COLOR_ID_RED>;
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		status_green: chan1 {
 | 
			
		||||
		status_green: chan@1 {
 | 
			
		||||
			chan-name = "green:status";
 | 
			
		||||
			led-cur = /bits/ 8 <0x20>;
 | 
			
		||||
			max-cur = /bits/ 8 <0x60>;
 | 
			
		||||
			reg = <1>;
 | 
			
		||||
			color = <LED_COLOR_ID_GREEN>;
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		chan2 {
 | 
			
		||||
		chan@2 {
 | 
			
		||||
			chan-name = "blue:status";
 | 
			
		||||
			led-cur = /bits/ 8 <0x20>;
 | 
			
		||||
			max-cur = /bits/ 8 <0x60>;
 | 
			
		||||
			reg = <2>;
 | 
			
		||||
			color = <LED_COLOR_ID_BLUE>;
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		chan3 {
 | 
			
		||||
		chan@3 {
 | 
			
		||||
			chan-name = "white:status";
 | 
			
		||||
			led-cur = /bits/ 8 <0x20>;
 | 
			
		||||
			max-cur = /bits/ 8 <0x60>;
 | 
			
		||||
			reg = <3>;
 | 
			
		||||
			color = <LED_COLOR_ID_WHITE>;
 | 
			
		||||
		};
 | 
			
		||||
	};
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user