Skip to contentSkip to conversation

ARM: dts: shmobile: remove label property from led

PATCH New Simon Horman 3 participants 8 messages Aug 26, 2016 – Aug 30, 2016 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 ARM: dts: shmobile: remove label property from led

Remove label property from led nodes. This seems to have little value and is used inconsistently amongst Renesas SoCs.

Based on renesas-devel-20160824-v4.8-rc3

Simon Horman (4):
ARM: dts: armadillo800eva: remove label property from led nodes
ARM: dts: koelsch: remove label property from led nodes
ARM: dts: gose: remove label property from led nodes
ARM: dts: kzm9g: remove label property from led nodes

 arch/arm/boot/dts/r8a7740-armadillo800eva.dts | 4 ----
 arch/arm/boot/dts/r8a7791-koelsch.dts         | 3 ---
 arch/arm/boot/dts/r8a7793-gose.dts            | 3 ---
 arch/arm/boot/dts/sh73a0-kzm9g.dts            | 4 ----
 4 files changed, 14 deletions(-)
Signature · 1 line
2.7.0.rc3.207.g0ac5344
#1 lore raw

PATCH 1/4 ARM: dts: armadillo800eva: remove label property from led nodes

Remove label property from led nodes. This seems to have little value and is used inconsistently amongst Renesas SoCs.

---
 arch/arm/boot/dts/r8a7740-armadillo800eva.dts | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/boot/dts/r8a7740-armadillo800eva.dts +0 -4
index 7885075428bb..12d528dadcb2 100644
@@ -111,19 +111,15 @@
 		compatible = "gpio-leds";
 		led3 {
 			gpios = <&pfc 102 GPIO_ACTIVE_HIGH>;
-			label = "LED3";
 		};
 		led4 {
 			gpios = <&pfc 111 GPIO_ACTIVE_HIGH>;
-			label = "LED4";
 		};
 		led5 {
 			gpios = <&pfc 110 GPIO_ACTIVE_HIGH>;
-			label = "LED5";
 		};
 		led6 {
 			gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
-			label = "LED6";
 		};
 	};
 
Signature · 1 line
2.7.0.rc3.207.g0ac5344
#2 lore raw

PATCH 2/4 ARM: dts: koelsch: remove label property from led nodes

In reply to Simon Horman

Remove label property from led nodes. This seems to have little value and is used inconsistently amongst Renesas SoCs.

---
 arch/arm/boot/dts/r8a7791-koelsch.dts | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/boot/dts/r8a7791-koelsch.dts +0 -3
index f8a7d090fd01..92a0658854ca 100644
@@ -158,15 +158,12 @@
 		compatible = "gpio-leds";
 		led6 {
 			gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
-			label = "LED6";
 		};
 		led7 {
 			gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
-			label = "LED7";
 		};
 		led8 {
 			gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
-			label = "LED8";
 		};
 	};
 
Signature · 1 line
2.7.0.rc3.207.g0ac5344
#3 lore raw

PATCH 3/4 ARM: dts: gose: remove label property from led nodes

In reply to Simon Horman

Remove label property from led nodes. This seems to have little value and is used inconsistently amongst Renesas SoCs.

---
 arch/arm/boot/dts/r8a7793-gose.dts | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/boot/dts/r8a7793-gose.dts +0 -3
index 90af18600124..c63213c7a173 100644
@@ -146,15 +146,12 @@
 		compatible = "gpio-leds";
 		led6 {
 			gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
-			label = "LED6";
 		};
 		led7 {
 			gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
-			label = "LED7";
 		};
 		led8 {
 			gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
-			label = "LED8";
 		};
 	};
 
Signature · 1 line
2.7.0.rc3.207.g0ac5344
#4 lore raw

PATCH 4/4 ARM: dts: kzm9g: remove label property from led nodes

In reply to Simon Horman

Remove label property from led nodes. This seems to have little value and is used inconsistently amongst Renesas SoCs.

---
 arch/arm/boot/dts/sh73a0-kzm9g.dts | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/boot/dts/sh73a0-kzm9g.dts +0 -4
index 3d65f1f6d78b..fa4b6737eb6a 100644
@@ -88,19 +88,15 @@
 		compatible = "gpio-leds";
 		led1 {
 			gpios = <&pfc 20 GPIO_ACTIVE_LOW>;
-			label = "LED1";
 		};
 		led2 {
 			gpios = <&pfc 21 GPIO_ACTIVE_LOW>;
-			label = "LED2";
 		};
 		led3 {
 			gpios = <&pfc 22 GPIO_ACTIVE_LOW>;
-			label = "LED3";
 		};
 		led4 {
 			gpios = <&pfc 23 GPIO_ACTIVE_LOW>;
-			label = "LED4";
 		};
 	};
 
Signature · 1 line
2.7.0.rc3.207.g0ac5344
#5 lore raw

PATCH 1/4 ARM: dts: shmobile: remove label property from led

In reply to Simon Horman

Hi Simon,

The patch index in the subject should have been 0/4. You're breaking my script to extract patch series from email threads ;-)

Quoted 10 lines · Simon Horman

Remove label property from led nodes. This seems to have little value and is used inconsistently amongst Renesas SoCs.

Based on renesas-devel-20160824-v4.8-rc3

Simon Horman (4):
ARM: dts: armadillo800eva: remove label property from led nodes
ARM: dts: koelsch: remove label property from led nodes
ARM: dts: gose: remove label property from led nodes
ARM: dts: kzm9g: remove label property from led nodes

I assume you are aware this is a user-visible change? The LED name is exposed under /sys/class/leds/. Fortunately my LED init script is agnostic to the actual names ;-)

if [ -d /sys/class/leds ]; then
echo -n Enabling LEDs:
i=-1
for led in /sys/class/leds/*; do
case $i in
-1)
echo -n " heartbeat"
echo heartbeat > $led/trigger
;;
*)
if grep -qP "^processor.*: $i$" /proc/cpuinfo; then
echo -n " cpu$i"
echo cpu$i > $led/trigger
fi
;;
esac
i=$(($i + 1))
done
echo
fi

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#6 lore raw

PATCH 1/4 ARM: dts: shmobile: remove label property from led

Quoted 4 lines · Geert Uytterhoeven

Hi Simon,

The patch index in the subject should have been 0/4. You're breaking my script to extract patch series from email threads ;-)

True. Probably we should not apply this series as its just a clean up and not worth the risk of breaking user-space.

#7 lore raw

PATCH 1/4 ARM: dts: shmobile: remove label property from led

Hi Simon,

Quoted 3 lines · Simon Horman
Quoted 2 lines · Geert Uytterhoeven

The patch index in the subject should have been 0/4. You're breaking my script to extract patch series from email threads ;-)

I think you're quoting the wrong part?

Quoted 2 lines

True. Probably we should not apply this series as its just a clean up and not worth the risk of breaking user-space.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds