summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Marko2024-07-11 13:14:47 +0000
committerRobert Marko2024-07-12 07:51:46 +0000
commite0faad2a7900d7270f4496ff4ee88caec1248210 (patch)
tree9adc2a93d6173facbe5c1731ad387bc1161405f3
parentd44eb323173e63bef358471d32f55702c94ea123 (diff)
downloadopenwrt-e0faad2a7900d7270f4496ff4ee88caec1248210.tar.gz
mvebu: rb5009: convert LEDs to color/function
Since we are trying to get rid of using labels, lets convert RB5009 to the function/color combo. Link: https://github.com/openwrt/openwrt/pull/15927 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--target/linux/mvebu/files-6.6/arch/arm64/boot/dts/marvell/armada-7040-rb5009.dts12
1 files changed, 8 insertions, 4 deletions
diff --git a/target/linux/mvebu/files-6.6/arch/arm64/boot/dts/marvell/armada-7040-rb5009.dts b/target/linux/mvebu/files-6.6/arch/arm64/boot/dts/marvell/armada-7040-rb5009.dts
index ca13e6aa89..dfbf3af137 100644
--- a/target/linux/mvebu/files-6.6/arch/arm64/boot/dts/marvell/armada-7040-rb5009.dts
+++ b/target/linux/mvebu/files-6.6/arch/arm64/boot/dts/marvell/armada-7040-rb5009.dts
@@ -72,23 +72,27 @@
compatible = "gpio-leds";
led_user: user {
- label = "green:user";
+ function = "user";
gpios = <&cp0_gpio2 26 GPIO_ACTIVE_LOW>;
+ color = <LED_COLOR_ID_GREEN>;
};
sfp {
- label = "green:sfp";
+ function = "sfp";
gpios = <&cp0_gpio2 25 GPIO_ACTIVE_LOW>;
+ color = <LED_COLOR_ID_GREEN>;
};
hdr1 {
- label = "blue:hdr1";
+ function = "hdr1";
gpios = <&cp0_gpio1 4 GPIO_ACTIVE_LOW>;
+ color = <LED_COLOR_ID_BLUE>;
};
hdr2 {
- label = "blue:hdr2";
+ function = "hdr2";
gpios = <&cp0_gpio2 19 GPIO_ACTIVE_LOW>;
+ color = <LED_COLOR_ID_BLUE>;
};
};