ARM: mvebu: dts: remove unneeded linux,default-state from led nodes

Generally, power LEDs should indicate when power is applied, and go out
once power is removed.  _Not_ annoy the developer with migraine-inducing
blinking reminicent of some badly animated television series designed to
sell sugar to children.

On a more serious note, most of these OS-specific properties aren't
necessary and should be removed.  I left two that are legitimately tying
disk LEDs to disk activity.  Other than that, we keep the state the
bootloader left them in until userspace changes the state via sysfs.

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
This commit is contained in:
Jason Cooper 2013-10-14 17:37:55 +00:00
parent 6ce4eac1f6
commit dcdf14c729
16 changed files with 18 additions and 19 deletions

View file

@ -74,13 +74,13 @@ gpio_leds {
green_pwr_led { green_pwr_led {
label = "mirabox:green:pwr"; label = "mirabox:green:pwr";
gpios = <&gpio1 31 1>; gpios = <&gpio1 31 1>;
linux,default-trigger = "heartbeat"; default-state = "keep";
}; };
blue_stat_led { blue_stat_led {
label = "mirabox:blue:stat"; label = "mirabox:blue:stat";
gpios = <&gpio2 0 1>; gpios = <&gpio2 0 1>;
linux,default-trigger = "cpu0"; default-state = "off";
}; };
green_stat_led { green_stat_led {

View file

@ -138,7 +138,7 @@ &sata2_led_pin
blue_power_led { blue_power_led {
label = "rn102:blue:pwr"; label = "rn102:blue:pwr";
gpios = <&gpio1 25 1>; /* GPIO 57 Active Low */ gpios = <&gpio1 25 1>; /* GPIO 57 Active Low */
linux,default-trigger = "heartbeat"; default-state = "keep";
}; };
green_sata1_led { green_sata1_led {

View file

@ -103,8 +103,7 @@ yellow_led {
green_led { green_led {
label = "green_led"; label = "green_led";
gpios = <&gpio1 21 1>; gpios = <&gpio1 21 1>;
default-state = "off"; default-state = "keep";
linux,default-trigger = "heartbeat";
}; };
}; };

View file

@ -23,7 +23,7 @@ leds {
power { power {
label = "Power"; label = "Power";
gpios = <&gpio0 18 1>; gpios = <&gpio0 18 1>;
linux,default-trigger = "default-on"; default-state = "keep";
}; };
}; };

View file

@ -25,7 +25,7 @@ &pmx_led_red_left_hdd &pmx_led_red_right_hdd
blue-power { blue-power {
label = "dns320:blue:power"; label = "dns320:blue:power";
gpios = <&gpio0 26 1>; /* GPIO 26 Active Low */ gpios = <&gpio0 26 1>; /* GPIO 26 Active Low */
linux,default-trigger = "default-on"; default-state = "keep";
}; };
blue-usb { blue-usb {
label = "dns320:blue:usb"; label = "dns320:blue:usb";

View file

@ -25,7 +25,7 @@ &pmx_led_red_left_hdd &pmx_led_red_right_hdd
white-power { white-power {
label = "dns325:white:power"; label = "dns325:white:power";
gpios = <&gpio0 26 1>; /* GPIO 26 Active Low */ gpios = <&gpio0 26 1>; /* GPIO 26 Active Low */
linux,default-trigger = "default-on"; default-state = "keep";
}; };
white-usb { white-usb {
label = "dns325:white:usb"; label = "dns325:white:usb";

View file

@ -43,7 +43,7 @@ gpio-leds {
health { health {
label = "status:green:health"; label = "status:green:health";
gpios = <&gpio1 14 1>; gpios = <&gpio1 14 1>;
linux,default-trigger = "default-on"; default-state = "keep";
}; };
fault { fault {
label = "status:orange:fault"; label = "status:orange:fault";

View file

@ -86,7 +86,7 @@ &pmx_led_right_cap_2 &pmx_led_right_cap_3
health { health {
label = "status:green:health"; label = "status:green:health";
gpios = <&gpio1 14 1>; gpios = <&gpio1 14 1>;
linux,default-trigger = "default-on"; default-state = "keep";
}; };
fault { fault {
label = "status:orange:fault"; label = "status:orange:fault";

View file

@ -82,7 +82,7 @@ gpio-leds {
green-os { green-os {
label = "ib62x0:green:os"; label = "ib62x0:green:os";
gpios = <&gpio0 25 0>; gpios = <&gpio0 25 0>;
linux,default-trigger = "default-on"; default-state = "keep";
}; };
red-os { red-os {
label = "ib62x0:red:os"; label = "ib62x0:red:os";

View file

@ -95,12 +95,12 @@ &pmx_led_usb2 &pmx_led_usb3
led-level { led-level {
label = "led_level"; label = "led_level";
gpios = <&gpio1 9 0>; gpios = <&gpio1 9 0>;
linux,default-trigger = "default-on"; default-state = "on";
}; };
power-blue { power-blue {
label = "power:blue"; label = "power:blue";
gpios = <&gpio1 10 0>; gpios = <&gpio1 10 0>;
linux,default-trigger = "timer"; default-state = "keep";
}; };
power-red { power-red {
label = "power:red"; label = "power:red";

View file

@ -128,7 +128,7 @@ gpio-leds {
power_led { power_led {
label = "status:white:power_led"; label = "status:white:power_led";
gpios = <&gpio0 16 0>; gpios = <&gpio0 16 0>;
linux,default-trigger = "default-on"; default-state = "keep";
}; };
rebuild_led { rebuild_led {
label = "status:white:rebuild_led"; label = "status:white:rebuild_led";

View file

@ -150,7 +150,7 @@ led@3 {
led@4 { led@4 {
label = "lsxl:blue:power"; label = "lsxl:blue:power";
gpios = <&gpio1 7 1>; gpios = <&gpio1 7 1>;
linux,default-trigger = "default-on"; default-state = "keep";
}; };
led@5 { led@5 {

View file

@ -113,7 +113,7 @@ &pmx_led_blue_disk1 &pmx_led_blue_disk2
power_led { power_led {
label = "status:blue:power_led"; label = "status:blue:power_led";
gpios = <&gpio0 31 1>; /* GPIO 31 Active Low */ gpios = <&gpio0 31 1>; /* GPIO 31 Active Low */
linux,default-trigger = "default-on"; default-state = "keep";
}; };
activity_led { activity_led {
label = "status:blue:activity_led"; label = "status:blue:activity_led";

View file

@ -26,7 +26,7 @@ gpio-leds {
blue-sata { blue-sata {
label = "ns2:blue:sata"; label = "ns2:blue:sata";
gpios = <&gpio0 30 1>; gpios = <&gpio0 30 1>;
linux,default-trigger = "default-on"; linux,default-trigger = "ide-disk";
}; };
}; };
}; };

View file

@ -37,7 +37,7 @@ gpio-leds {
health { health {
label = "sheevaplug:blue:health"; label = "sheevaplug:blue:health";
gpios = <&gpio1 17 1>; gpios = <&gpio1 17 1>;
linux,default-trigger = "default-on"; default-state = "keep";
}; };
}; };
}; };

View file

@ -32,7 +32,7 @@ gpio-leds {
health { health {
label = "sheevaplug:blue:health"; label = "sheevaplug:blue:health";
gpios = <&gpio1 17 1>; gpios = <&gpio1 17 1>;
linux,default-trigger = "default-on"; default-state = "keep";
}; };
misc { misc {