aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2024-02-07 14:48:41 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2024-02-07 14:48:41 +0100
commitd1da4e5c9b89ce80878517f59b720f69eeaf6e81 (patch)
tree18daed7e04105944ca4b519ce882210e6c70d11c /target/linux
parent0b8746ec109163289c76d1e62a6aeafc44bba905 (diff)
downloadupstream-d1da4e5c9b89ce80878517f59b720f69eeaf6e81.tar.gz
upstream-d1da4e5c9b89ce80878517f59b720f69eeaf6e81.tar.bz2
upstream-d1da4e5c9b89ce80878517f59b720f69eeaf6e81.zip
octeon: convert to new LED color/function format where possible
Initial conversion to new LED color/function format and drop label format where possible. The same label is composed at runtime. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi7
1 files changed, 5 insertions, 2 deletions
diff --git a/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi b/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi
index ad73a08a1e2..0da92abca8b 100644
--- a/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi
+++ b/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi
@@ -4,6 +4,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "ubnt,edgerouter-e300", "cavium,cn7130";
@@ -32,12 +33,14 @@
compatible = "gpio-leds";
led_power_blue: power_blue {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
};
led_power_white: power_white {
- label = "white:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_WHITE>;
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
};