[U-Boot] [PATCH V2 7/8] dt: bcm963158: enable led controller

Philippe Reynes philippe.reynes at softathome.com
Fri Mar 22 16:02:07 UTC 2019


Enable the led controller in the device tree
of the board bcm963158.

Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>
---
Changelog:
v2:
- no change

 arch/arm/dts/bcm963158.dts | 49 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/arch/arm/dts/bcm963158.dts b/arch/arm/dts/bcm963158.dts
index dc5afb5..15e87de 100644
--- a/arch/arm/dts/bcm963158.dts
+++ b/arch/arm/dts/bcm963158.dts
@@ -29,3 +29,52 @@
 	u-boot,dm-pre-reloc;
 	status = "okay";
 };
+
+&leds {
+	status = "okay";
+	#address-cells = <1>;
+	#size-cells = <0>;
+	brcm,serial-led-en-pol;
+	brcm,serial-led-data-ppol;
+
+	led at 16 {
+		reg = <16>;
+		label = "red:dsl2";
+	};
+
+	led at 17 {
+		reg = <17>;
+		label = "green:dsl1";
+	};
+
+	led at 18 {
+		reg = <18>;
+		label = "green:fxs2";
+	};
+
+	led at 19 {
+		reg = <19>;
+		label = "green:fxs1";
+	};
+
+	led at 26 {
+		reg = <26>;
+		label = "green:wan1_act";
+	};
+
+	led at 27 {
+		reg = <27>;
+		label = "green:wps";
+	};
+
+	led at 28 {
+		reg = <28>;
+		active-low;
+		label = "green:aggregate_act";
+	};
+
+	led at 29 {
+		reg = <29>;
+		label = "green:aggregate_link";
+	};
+};
-- 
2.7.4



More information about the U-Boot mailing list