ramips: use phy trigger for various Netgear boards
This commit switches the default trigger for the WiFi LED from a netdev trigger on "wlan0" to a wireless-phy based trigger. THis allows the LED to work, even when the wireless interface is not named "wlan0" without modifiying the LED settings. Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
		| @@ -296,7 +296,6 @@ netgear,r6220|\ | |||||||
| netgear,r6350|\ | netgear,r6350|\ | ||||||
| netgear,wndr3700-v5) | netgear,wndr3700-v5) | ||||||
| 	ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" | 	ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10" | ||||||
| 	set_wifi_led "$boardname:green:wifi" |  | ||||||
| 	;; | 	;; | ||||||
| omnima,hpm) | omnima,hpm) | ||||||
| 	ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0" | 	ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0" | ||||||
|   | |||||||
| @@ -39,6 +39,7 @@ | |||||||
|  |  | ||||||
| 		led_wifi: wifi { | 		led_wifi: wifi { | ||||||
| 			gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,default-trigger = "phy0tpt"; | ||||||
| 		}; | 		}; | ||||||
|  |  | ||||||
| 		led_wps: wps { | 		led_wps: wps { | ||||||
|   | |||||||
| @@ -44,6 +44,7 @@ | |||||||
| 		wifi { | 		wifi { | ||||||
| 			label = "r6350:green:wifi"; | 			label = "r6350:green:wifi"; | ||||||
| 			gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; | 			gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; | ||||||
|  | 			linux,default-trigger = "phy0tpt"; | ||||||
| 		}; | 		}; | ||||||
| 	}; | 	}; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 David Bauer
					David Bauer