apm821xx: add disk-activity triggers via DT.
authorChristian Lamparter <chunkeey@gmail.com>
Mon, 15 Oct 2018 18:00:09 +0000 (20:00 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 20 Oct 2018 14:13:39 +0000 (16:13 +0200)
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
target/linux/apm821xx/dts/netgear-wndr4700.dts
target/linux/apm821xx/dts/wd-mybooklive.dts

index 8ba57bdf060bc950174d6b88595ccaaf3ce00967..632d22a4704d58444233b8a3e072c34ef10cb5cb 100755 (executable)
@@ -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"
index a8f73e8a04c77a16427f652bbc94e6cb40798d0a..6a8c9990e68c1d9e5333d996b4c8350aa7161668 100644 (file)
                hd-green {
                        label = "wndr4700:green:hd";
                        gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "disk-activity";
                };
 
                hd-red {
index 4c619871196f0a6d9de5f92b03c5aa5a0173982a..9412f38d4a7b47bedbf1af70d43875f905b25a8e 100644 (file)
                power-blue {
                        label = "mbl:blue:power";
                        gpios = <&GPIO1 6 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "disk-activity";
                };
        };