]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: sun6i: The blue led on the Mele M9 is a power led
authorHans de Goede <hdegoede@redhat.com>
Sun, 5 Jun 2016 12:23:13 +0000 (14:23 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 4 Jul 2016 19:18:03 +0000 (21:18 +0200)
The blue led on the Mele M9 is wired to light up as soon as the board
has powered (it will be on while the gpio is still in input / floating
mode), also its location on the top-set box clearly signals "power led".

Until now we've been treating this as a generic usr function led, which
means that when you plug power into the top-set box, the power-led lights
and then turns off as soon as the kernel loads, which looks wrong.

This renames the led from m9:blue:usr to m9:blue:pwr and marks
it as default on, fixing this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
arch/arm/boot/dts/sun6i-a31-m9.dts

index 6e0e5687a09c73a03a6512bf2bf7f8015c6b4b12..66d29b866abe4dfd04e2d43d2224d2fc375b0b3c 100644 (file)
@@ -65,8 +65,9 @@ leds {
                pinctrl-0 = <&led_pins_m9>;
 
                blue {
-                       label = "m9:blue:usr";
+                       label = "m9:blue:pwr";
                        gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>;
+                       default-state = "on";
                };
        };
 };