]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: presidio: add LED support
authorJway Lin <jway.lin@cortina-access.com>
Wed, 1 Jul 2020 04:08:07 +0000 (21:08 -0700)
committerTom Rini <trini@konsulko.com>
Sat, 8 Aug 2020 02:31:32 +0000 (22:31 -0400)
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>
arch/arm/dts/ca-presidio-engboard.dts

index 40c93d70423bfefbe6a966c6240ad97a69ddc844..eef433e768ea99f300adaf9fcfaf58b410f90ba3 100644 (file)
                        spi-max-frequency = <108000000>;
                };
        };
+
+       leds: led-controller@f43200f0 {
+               compatible = "cortina,ca-leds";
+               reg = <0x0 0xf43200f0 0x40>;
+
+               cortina,blink-rate1 = <256>;
+               cortina,blink-rate2 = <512>;
+
+               led@0 {
+                       pin = <0>;
+                       active-low;
+                       blink-sel =<0>;
+                       port = <0>;
+                       off-event = <0>;
+                       label = "led0";
+               };
+
+               led@1 {
+                       pin = <1>;
+                       active-low;
+                       blink-sel =<1>;
+                       label = "led1";
+               };
+
+               led@2 {
+                       pin = <2>;
+                       active-low;
+                       label = "led2";
+               };
+
+       };
 };