aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2020-05-24 20:16:30 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2020-05-24 20:16:30 +0200
commit09b7922aaab0e849f38fc1172490d0b9ea882b6e (patch)
treeaaf3aefa4fe97d5094f806868810f0a429e417c0 /target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts
parent7b01567976090b31c19e78af53fef91f9b953a91 (diff)
downloadupstream-09b7922aaab0e849f38fc1172490d0b9ea882b6e.tar.gz
upstream-09b7922aaab0e849f38fc1172490d0b9ea882b6e.tar.bz2
upstream-09b7922aaab0e849f38fc1172490d0b9ea882b6e.zip
bcm63xx: ar-5381u: expose LEDs through controller
Exposing LEDs through LED controller instead of gpio-leds takes advantage of HW blinking. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts')
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts53
1 files changed, 34 insertions, 19 deletions
diff --git a/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts b/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts
index a2600cdc72..ce57ee6413 100644
--- a/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts
@@ -10,7 +10,7 @@
aliases {
led-boot = &led_power_green;
- led-failsafe = &led_power_green;
+ led-failsafe = &led_alarm_red;
led-running = &led_power_green;
led-upgrade = &led_power_green;
};
@@ -33,24 +33,6 @@
debounce-interval = <60>;
};
};
-
- leds {
- compatible = "gpio-leds";
-
- alarm_red {
- label = "AR-5381u:red:alarm";
- gpios = <&pinctrl 2 1>;
- };
- inet_green {
- label = "AR-5381u:green:inet";
- gpios = <&pinctrl 3 1>;
- };
- led_power_green: power_green {
- label = "AR-5381u:green:power";
- gpios = <&pinctrl 4 1>;
- default-state = "on";
- };
- };
};
&hsspi {
@@ -91,6 +73,39 @@
};
};
+&leds {
+ status = "okay";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_leds>;
+
+ led_alarm_red: led@2 {
+ reg = <2>;
+ active-low;
+ label = "AR-5381u:red:alarm";
+ };
+
+ led@3 {
+ reg = <3>;
+ active-low;
+ label = "AR-5381u:green:inet";
+ };
+
+ led_power_green: led@4 {
+ reg = <4>;
+ active-low;
+ label = "AR-5381u:green:power";
+ default-state = "on";
+ };
+};
+
+&pinctrl {
+ pinctrl_leds: leds {
+ function = "led";
+ pins = "gpio2", "gpio3", "gpio4";
+ };
+};
+
&uart0 {
status = "okay";
};