mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-04 06:54:27 -05:00 
			
		
		
		
	ramips: change status LED of Samsung CY-SWR1100
Use power LED for status indication and free WPS LED for other uses. Signed-off-by: Sungbo Eo <mans0n@gorani.run>
This commit is contained in:
		
							parent
							
								
									aabdf6991c
								
							
						
					
					
						commit
						fe6a04a8fe
					
				@ -10,8 +10,10 @@
 | 
				
			|||||||
	model = "Samsung CY-SWR1100";
 | 
						model = "Samsung CY-SWR1100";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	aliases {
 | 
						aliases {
 | 
				
			||||||
		led-boot = &led_wps;
 | 
							led-boot = &led_power;
 | 
				
			||||||
		led-failsafe = &led_wps;
 | 
							led-failsafe = &led_power;
 | 
				
			||||||
 | 
							led-running = &led_power;
 | 
				
			||||||
 | 
							led-upgrade = &led_power;
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	nor-flash@1c000000 {
 | 
						nor-flash@1c000000 {
 | 
				
			||||||
@ -88,7 +90,7 @@
 | 
				
			|||||||
	leds {
 | 
						leds {
 | 
				
			||||||
		compatible = "gpio-leds";
 | 
							compatible = "gpio-leds";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		led_wps: wps {
 | 
							wps {
 | 
				
			||||||
			label = "cy-swr1100:blue:wps";
 | 
								label = "cy-swr1100:blue:wps";
 | 
				
			||||||
			gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
 | 
								gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
@ -100,7 +102,7 @@
 | 
				
			|||||||
			linux,default-trigger = "usbport";
 | 
								linux,default-trigger = "usbport";
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		power {
 | 
							led_power: power {
 | 
				
			||||||
			label = "cy-swr1100:blue:power";
 | 
								label = "cy-swr1100:blue:power";
 | 
				
			||||||
			gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
 | 
								gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user