Skip to contentSkip to conversation

ARM: dts: sun4i: The blue led on the Mele A1000 is a power led

PATCH New Hans de Goede 3 participants 11 messages Jun 5, 2016 – Jun 11, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index fa70b8f..39e368e 100644
@@ -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
#1 lore raw

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
index 4dd70cc..e063dab 100644
@@ -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
#2 lore raw

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.

#3 lore raw

PATCH 3/3 ARM: dts: sun6i: The blue led on the Mele M9 is a power led

In reply to 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".

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
index 6e0e5687..66d29b8 100644
@@ -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
#4 lore raw

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.

#5 lore raw

PATCH 1/3 ARM: dts: sun4i: The blue led on the Mele A1000 is a power led

In reply to Hans de Goede
Quoted 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.

#6 lore raw

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.

BTW, the kernel now supports using an LED as a panic indicator. Would it be useful to use the power LED for this?

ChenYu

#7 lore raw

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

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

#8 lore raw

PATCH 1/3 ARM: dts: sun4i: The blue led on the Mele A1000 is a power led

In reply to Hans de Goede
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.

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>
#9 lore raw

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

#10 lore raw

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>