diff mbox series

[v9,2/2] board: presidio: add LED support

Message ID 1593576487-26080-2-git-send-email-alex.nemirovsky@cortina-access.com
State Superseded
Headers show
Series [v9,1/2] led: led_cortina: Add CAxxx LED support | expand

Commit Message

Alex Nemirovsky July 1, 2020, 4:08 a.m. UTC
From: Jway Lin <jway.lin at cortina-access.com>

Add LED support for Cortina Access Presidio Engineering Board

Signed-off-by: Jway Lin <jway.lin at cortina-access.com>
Signed-off-by: Alex Nemirovsky <alex.nemirovsky at cortina-access.com>
Reviewed-by: Simon Glass <sjg at chromium.org>

CC: Simon Glass <sjg at chromium.org>

---

(no changes since v4)

Changes in v4:
- rename DT blink rate symbol

 arch/arm/dts/ca-presidio-engboard.dts | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Comments

Tom Rini Aug. 8, 2020, 12:29 p.m. UTC | #1
On Tue, Jun 30, 2020 at 09:08:07PM -0700, Alex Nemirovsky wrote:

> From: Jway Lin <jway.lin@cortina-access.com>

> 

> Add LED support for Cortina Access Presidio Engineering Board

> 

> Signed-off-by: Jway Lin <jway.lin@cortina-access.com>

> Signed-off-by: Alex Nemirovsky <alex.nemirovsky@cortina-access.com>

> Reviewed-by: Simon Glass <sjg@chromium.org>

> 

> CC: Simon Glass <sjg@chromium.org>


Applied to u-boot/master, thanks!

-- 
Tom
diff mbox series

Patch

diff --git a/arch/arm/dts/ca-presidio-engboard.dts b/arch/arm/dts/ca-presidio-engboard.dts
index 40c93d7..eef433e 100644
--- a/arch/arm/dts/ca-presidio-engboard.dts
+++ b/arch/arm/dts/ca-presidio-engboard.dts
@@ -64,4 +64,35 @@ 
 			spi-max-frequency = <108000000>;
 		};
 	};
+
+	leds: led-controller at f43200f0 {
+		compatible = "cortina,ca-leds";
+		reg = <0x0 0xf43200f0 0x40>;
+
+		cortina,blink-rate1 = <256>;
+		cortina,blink-rate2 = <512>;
+
+		led at 0 {
+			pin = <0>;
+			active-low;
+			blink-sel =<0>;
+			port = <0>;
+			off-event = <0>;
+			label = "led0";
+		};
+
+		led at 1 {
+			pin = <1>;
+			active-low;
+			blink-sel =<1>;
+			label = "led1";
+		};
+
+		led at 2 {
+			pin = <2>;
+			active-low;
+			label = "led2";
+		};
+
+	};
 };