ramips: assign LEDs for RAVPower RP-WD03
According to the User Manual, there is a "Wi-Fi LED" with blue and green colors, doing the following by default: Flashing Blue: System loading Solid Blue: System loaded Flashing Green: Connecting to the Internet Solid Green: Connected to the Internet According to this vendor behavior, we keep refer to the LED as "wifi" but implement the according default behavior as in OEM firmware. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
		@@ -11,6 +11,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	aliases {
 | 
						aliases {
 | 
				
			||||||
		label-mac-device = ðernet;
 | 
							label-mac-device = ðernet;
 | 
				
			||||||
 | 
							led-boot = &led_wifi_blue;
 | 
				
			||||||
 | 
							led-failsafe = &led_wifi_blue;
 | 
				
			||||||
 | 
							led-running = &led_wifi_blue;
 | 
				
			||||||
 | 
							led-upgrade = &led_wifi_blue;
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	chosen {
 | 
						chosen {
 | 
				
			||||||
@@ -20,12 +24,12 @@
 | 
				
			|||||||
	leds {
 | 
						leds {
 | 
				
			||||||
		compatible = "gpio-leds";
 | 
							compatible = "gpio-leds";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		green-wifi {
 | 
							wifi_green {
 | 
				
			||||||
			label = "rp-wd03:green:wifi";
 | 
								label = "rp-wd03:green:wifi";
 | 
				
			||||||
			gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
 | 
								gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		blue-wifi {
 | 
							led_wifi_blue: wifi_blue {
 | 
				
			||||||
			label = "rp-wd03:blue:wifi";
 | 
								label = "rp-wd03:blue:wifi";
 | 
				
			||||||
			gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
 | 
								gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -179,6 +179,9 @@ planex,mzk-ex750np|\
 | 
				
			|||||||
zbtlink,zbt-we826-e)
 | 
					zbtlink,zbt-we826-e)
 | 
				
			||||||
	set_wifi_led "$boardname:red:wifi"
 | 
						set_wifi_led "$boardname:red:wifi"
 | 
				
			||||||
	;;
 | 
						;;
 | 
				
			||||||
 | 
					ravpower,rp-wd03)
 | 
				
			||||||
 | 
						ucidef_set_led_netdev "internet" "internet" "$boardname:green:wifi" "eth0"
 | 
				
			||||||
 | 
						;;
 | 
				
			||||||
tplink,archer-c2-v1)
 | 
					tplink,archer-c2-v1)
 | 
				
			||||||
	ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch1" "0x1e"
 | 
						ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch1" "0x1e"
 | 
				
			||||||
	ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch1" "0x01"
 | 
						ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch1" "0x01"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user