[openwrt/openwrt] ramips: use standard naming scheme for Zyxel NR7101 LED nodes

LEDE Commits lede-commits at lists.infradead.org
Mon May 10 05:41:27 PDT 2021


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/f4940d2229474c2e658d1cf34ba48703119244da

commit f4940d2229474c2e658d1cf34ba48703119244da
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Sun May 9 23:38:38 2021 +0200

    ramips: use standard naming scheme for Zyxel NR7101 LED nodes
    
    Make naming and DT label consistent with other devices at this
    target.
    
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 target/linux/ramips/dts/mt7621_zyxel_nr7101.dts | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/target/linux/ramips/dts/mt7621_zyxel_nr7101.dts b/target/linux/ramips/dts/mt7621_zyxel_nr7101.dts
index f6a42286f1..ef3306caa7 100644
--- a/target/linux/ramips/dts/mt7621_zyxel_nr7101.dts
+++ b/target/linux/ramips/dts/mt7621_zyxel_nr7101.dts
@@ -10,27 +10,27 @@
 	model = "ZyXEL NR7101";
 
 	aliases {
-		led-boot = &power;
-		led-failsafe = &power;
-		led-running = &power;
-		led-upgrade = &power;
+		led-boot = &led_system_green;
+		led-failsafe = &led_system_green;
+		led-running = &led_system_green;
+		led-upgrade = &led_system_green;
 		label-mac-device = &gmac0;
 	};
 
 	leds {
 		compatible = "gpio-leds";
 
-		led at 13 {
+		system_yellow {
 			label = "yellow:system";
 			gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
 		};
 
-		power: led at 14 {
+		led_system_green: system_green {
 			label = "green:system";
 			gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
 		};
 
-		led at 15 {
+		system_red {
 			label = "red:system";
 			gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
 		};



More information about the lede-commits mailing list