aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2020-05-24 20:19:21 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2020-05-24 20:19:21 +0200
commitb1604b744b716a592841757c43bc5156c7772aca (patch)
treef8e0af302f15f966de0696b9f099d2686db9acde /target/linux
parentd361aa2ebd040019507f6c3539808e90e454b3b6 (diff)
downloadupstream-b1604b744b716a592841757c43bc5156c7772aca.tar.gz
upstream-b1604b744b716a592841757c43bc5156c7772aca.tar.bz2
upstream-b1604b744b716a592841757c43bc5156c7772aca.zip
bcm63xx: ar-5315u: 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')
-rw-r--r--target/linux/bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts122
1 files changed, 86 insertions, 36 deletions
diff --git a/target/linux/bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts b/target/linux/bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts
index 000ff99767..be10274625 100644
--- a/target/linux/bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts
+++ b/target/linux/bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts
@@ -40,40 +40,6 @@
debounce-interval = <60>;
};
};
-
- leds {
- compatible = "gpio-leds";
-
- wps_green {
- label = "AR-5315u:green:wps";
- gpios = <&pinctrl 0 1>;
- };
- led_power_green: power_green {
- label = "AR-5315u:green:power";
- gpios = <&pinctrl 1 1>;
- default-state = "on";
- };
- usb_green {
- label = "AR-5315u:green:usb";
- gpios = <&pinctrl 2 1>;
- };
- inet_green {
- label = "AR-5315u:green:inet";
- gpios = <&pinctrl 8 1>;
- };
- inet_red {
- label = "AR-5315u:red:inet";
- gpios = <&pinctrl 9 1>;
- };
- dsl_green {
- label = "AR-5315u:green:dsl";
- gpios = <&pinctrl 10 1>;
- };
- power_red {
- label = "AR-5315u:red:power";
- gpios = <&pinctrl 11 1>;
- };
- };
};
&hsspi {
@@ -114,10 +80,94 @@
};
};
-&pinctrl {
+&leds {
+ status = "okay";
+
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
+ pinctrl-0 = <&pinctrl_leds
+ &pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
&pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
+
+ led@0 {
+ reg = <0>;
+ active-low;
+ label = "AR-5315u:green:wps";
+ };
+
+ led_power_green: led@1 {
+ reg = <1>;
+ active-low;
+ label = "AR-5315u:green:power";
+ default-state = "on";
+ };
+
+ led@2 {
+ reg = <2>;
+ active-low;
+ label = "AR-5315u:green:usb";
+ };
+
+ led@4 {
+ reg = <4>;
+ brcm,hardware-controlled;
+ brcm,link-signal-sources = <4>;
+ /* EPHY0 Act */
+ };
+
+ led@5 {
+ reg = <5>;
+ brcm,hardware-controlled;
+ brcm,link-signal-sources = <5>;
+ /* EPHY1 Act */
+ };
+
+ led@6 {
+ reg = <6>;
+ brcm,hardware-controlled;
+ brcm,link-signal-sources = <6>;
+ /* EPHY2 Act */
+ };
+
+ led@7 {
+ reg = <7>;
+ brcm,hardware-controlled;
+ brcm,link-signal-sources = <7>;
+ /* EPHY3 Act */
+ };
+
+ led@8 {
+ reg = <8>;
+ active-low;
+ label = "AR-5315u:green:inet";
+ };
+
+ led@9 {
+ reg = <9>;
+ active-low;
+ label = "AR-5315u:red:inet";
+ };
+
+ led@10 {
+ reg = <10>;
+ active-low;
+ label = "AR-5315u:green:dsl";
+ };
+
+ led@11 {
+ reg = <11>;
+ active-low;
+ label = "AR-5315u:red:power";
+ };
+};
+
+&pinctrl {
+ pinctrl_leds: leds {
+ function = "led";
+ pins = "gpio0", "gpio1",
+ "gpio2", "gpio8",
+ "gpio9", "gpio10",
+ "gpio11";
+ };
};
&uart0 {