ARM: dts: sun4i: The blue led on the Mele A1000 is a power led
Subsystems (2)
PATCH 1/3 ARM: dts: sun4i: The blue led on the Mele A1000 is a power led
The blue led on the Mele A1000 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 a1000:blue:usr to a1000:blue:pwr and marks it as default on, fixing this.
--- arch/arm/boot/dts/sun4i-a10-a1000.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/sun4i-a10-a1000.dts +2 -1
@@ -72,8 +72,9 @@ }; blue { - label = "a1000:blue:usr"; + label = "a1000:blue:pwr"; gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; + default-state = "on"; }; };
Signature · 1 line
2.7.4
PATCH 2/3 ARM: dts: sun6i: The blue led on the Mele A1000G quad is a power led
The blue led on the Mele A1000 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 a1000g:blue:pwr (fixing a copy and paste error in the prefix while at it) and marks it as default on, fixing this.
--- arch/arm/boot/dts/sun6i-a31-mele-a1000g-quad.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/sun6i-a31-mele-a1000g-quad.dts +2 -1
@@ -65,8 +65,9 @@ pinctrl-0 = <&led_pins_m9>; blue { - label = "m9:blue:usr"; + label = "a1000g:blue:pwr"; gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>; + default-state = "on"; }; }; };
Signature · 1 line
2.7.4
PATCH 2/3 ARM: dts: sun6i: The blue led on the Mele A1000G quad is a power led
Quoted 8 lines · Hans de Goede
The blue led on the Mele A1000 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.
Quoted 5 lines
This renames the led from m9:blue:usr to a1000g:blue:pwr (fixing a copy and paste error in the prefix while at it) and marks it as default on, fixing this.
Signed-off-by Hans de Goede <[email protected]>
PATCH 3/3 ARM: dts: sun6i: The blue led on the Mele M9 is a power led
In reply to Hans de GoedeThe 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.
--- arch/arm/boot/dts/sun6i-a31-m9.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/sun6i-a31-m9.dts +2 -1
@@ -65,8 +65,9 @@ pinctrl-0 = <&led_pins_m9>; blue { - label = "m9:blue:usr"; + label = "m9:blue:pwr"; gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>; + default-state = "on"; }; }; };
Signature · 1 line
2.7.4
PATCH 3/3 ARM: dts: sun6i: The blue led on the Mele M9 is a power led
Quoted 4 lines · Hans de Goede
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".
Quoted 8 lines
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 <[email protected]>
PATCH 1/3 ARM: dts: sun4i: The blue led on the Mele A1000 is a power led
In reply to Hans de GoedeQuoted 4 lines · Hans de Goede
The blue led on the Mele A1000 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".
Quoted 8 lines
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 a1000:blue:usr to a1000:blue:pwr and marks it as default on, fixing this.
Signed-off-by Hans de Goede <[email protected]>
PATCH 1/3 ARM: dts: sun4i: The blue led on the Mele A1000 is a power led
Quoted 9 lines · Chen-Yu Tsai
Quoted 8 lines · Hans de Goede
The blue led on the Mele A1000 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.
Quoted 6 lines
Quoted 4 lines
This renames the led from a1000:blue:usr to a1000:blue:pwr and marks it as default on, fixing this.
Signed-off-by Hans de Goede <[email protected]>Acked-by Chen-Yu Tsai <[email protected]>
BTW, the kernel now supports using an LED as a panic indicator. Would it be useful to use the power LED for this?
ChenYu
PATCH 1/3 ARM: dts: sun4i: The blue led on the Mele A1000 is a power led
Hi,
Quoted 13 lines · Chen-Yu Tsai
Quoted 12 lines · Chen-Yu Tsai
Quoted 11 lines · Hans de Goede
The blue led on the Mele A1000 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 a1000:blue:usr to a1000:blue:pwr and marks it as default on, fixing this.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Hans de Goede <[email protected]>Acked-by Chen-Yu Tsai <[email protected]>BTW, the kernel now supports using an LED as a panic indicator. Would it be useful to use the power LED for this?
Maybe I'm not 100% sure either way.
Regards,
Hans
PATCH 1/3 ARM: dts: sun4i: The blue led on the Mele A1000 is a power led
In reply to Hans de GoedeQuoted 7 lines · Hans de Goede
The blue led on the Mele A1000 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.
I'm not sure I understand the relationship between usr vs pwr led and the fact that it's disabled.
Quoted 2 lines
This renames the led from a1000:blue:usr to a1000:blue:pwr and marks it as default on, fixing this.
however, the default on might. Is it just a confusing commit log, or am I overlooking something?
thanks,
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160607/a71af183/attachment-0001.sig>
PATCH 1/3 ARM: dts: sun4i: The blue led on the Mele A1000 is a power led
Hi,
Quoted 11 lines · Maxime Ripard
Quoted 7 lines · Hans de Goede
The blue led on the Mele A1000 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.
I'm not sure I understand the relationship between usr vs pwr led and the fact that it's disabled.
There is no relation, other then that pwr leds typically have default-state = "on"; set whereas usr leds do not.
Quoted 5 lines
Quoted 2 lines
This renames the led from a1000:blue:usr to a1000:blue:pwr and marks it as default on, fixing this.
however, the default on might. Is it just a confusing commit log, or am I overlooking something?
Just a slightly confusing commit log.
Regards,
Hans
PATCH 1/3 ARM: dts: sun4i: The blue led on the Mele A1000 is a power led
Quoted 18 lines · Hans de Goede
Hi,
Quoted 11 lines · Maxime Ripard
Quoted 7 lines · Hans de Goede
The blue led on the Mele A1000 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.
I'm not sure I understand the relationship between usr vs pwr led and the fact that it's disabled.
There is no relation, other then that pwr leds typically have default-state = "on"; set whereas usr leds do not.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
This renames the led from a1000:blue:usr to a1000:blue:pwr and marks it as default on, fixing this.
however, the default on might. Is it just a confusing commit log, or am I overlooking something?
Just a slightly confusing commit log.
Ok, applied all three.
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160611/1fed2eb6/attachment.sig>