Message ID | 69744fcdf2e72cacbc01795fb71c511ad6af9112.1539626110.git.chunkeey@gmail.com |
---|---|
State | Accepted |
Delegated to: | Hauke Mehrtens |
Headers | show |
Series | [OpenWrt-Devel,1/5] build: remove obsolete -rc kernel testing rewrites | expand |
diff --git a/target/linux/apm821xx/base-files/etc/board.d/01_leds b/target/linux/apm821xx/base-files/etc/board.d/01_leds index 8ba57bdf06..632d22a470 100755 --- a/target/linux/apm821xx/base-files/etc/board.d/01_leds +++ b/target/linux/apm821xx/base-files/etc/board.d/01_leds @@ -23,12 +23,7 @@ meraki,mx60) ucidef_set_led_switch "lan4" "LAN4" "mx60:green:lan4" "switch0" "0x02" ;; -wd,mybooklive) - ucidef_set_led_ide "sata" "SATA" "mbl:blue:power" - ;; - netgear,wndr4700) - ucidef_set_led_ide "sata" "SATA" "wndr4700:green:hd" ucidef_set_led_switch "wan_green" "WAN (green)" "wndr4700:green:wan" "switch0" "0x20" ucidef_set_led_netdev "wan_yellow" "WAN (yellow)" "wndr4700:yellow:wan" "eth0.2" "tx rx" ucidef_set_led_usbport "usb3" "USB3" "wndr4700:blue:usb" "usb2-port1" "usb2-port2" "usb3-port1" "usb3-port2" diff --git a/target/linux/apm821xx/dts/netgear-wndr4700.dts b/target/linux/apm821xx/dts/netgear-wndr4700.dts index a8f73e8a04..6a8c9990e6 100644 --- a/target/linux/apm821xx/dts/netgear-wndr4700.dts +++ b/target/linux/apm821xx/dts/netgear-wndr4700.dts @@ -390,6 +390,7 @@ hd-green { label = "wndr4700:green:hd"; gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "disk-activity"; }; hd-red { diff --git a/target/linux/apm821xx/dts/wd-mybooklive.dts b/target/linux/apm821xx/dts/wd-mybooklive.dts index 4c61987119..9412f38d4a 100644 --- a/target/linux/apm821xx/dts/wd-mybooklive.dts +++ b/target/linux/apm821xx/dts/wd-mybooklive.dts @@ -103,6 +103,7 @@ power-blue { label = "mbl:blue:power"; gpios = <&GPIO1 6 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "disk-activity"; }; };
The WNDR4700 and the MBL have a dedicated HDD activity LED. This patch adds the default led triggers to the DTS and removes the entries in 01_leds. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> --- target/linux/apm821xx/base-files/etc/board.d/01_leds | 5 ----- target/linux/apm821xx/dts/netgear-wndr4700.dts | 1 + target/linux/apm821xx/dts/wd-mybooklive.dts | 1 + 3 files changed, 2 insertions(+), 5 deletions(-)