mvebu: LS421DE: improve the HDD leds
[openwrt/openwrt.git] / target / linux / mvebu / files / arch / arm / boot / dts / armada-370-buffalo-ls421de.dts
index ea392f9e415b4fda3a3983b1e9900059612c680d..ebcc4692d53cee32faa3e8c7b282d5eb5f049d6d 100644 (file)
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
 /*
  * Device Tree file for Buffalo LinkStation LS421DE
  *
                        label = "ls421de:red:hdd1";
                        gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
-                       linux,default-trigger = "disk-activity";
+                       linux,default-trigger = "ata1";
                };
 
                hdd2_red {
                        label = "ls421de:red:hdd2";
                        gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
-                       linux,default-trigger = "disk-activity";
+                       linux,default-trigger = "ata2";
                };
        };
 
                        gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
        };
-
-       /* FIXME: this driver needs to be aware of the LED2 eth phy use,
-          which must be set to off state before shutting down the machine */
-       restart_poweroff {
-               compatible = "restart-poweroff";
-       };
 };
 
 &eth1 {
 
        ethphy0: ethernet-phy@0 { /* Marvell 88E1518 */
                reg = <0>;
-               /*
-                * LED2 is used to inform, at restart time, if the power
-                * switch was slided to the "off" position.
-                * Page 0x3, Register 0x10, bits 8-11:
-                *     0x800: LED2 off, power off the machine
-                *     0x900: LED2 on, boot the machine
-                */
                marvell,reg-init = <0x3 0x10 0x1 0x1991>, /* LED function */
                                   <0x3 0x11 0x1 0x4401>, /* LED polarity */
                                   <0x3 0x12 0x1 0x4905>; /* LED timer */