summaryrefslogtreecommitdiff
path: root/bsp/sifive-hifive1
diff options
context:
space:
mode:
authorBunnaroath Sou <bsou@sifive.com>2019-04-29 09:23:45 -0700
committerNathaniel Graff <nathaniel.graff@sifive.com>2019-04-30 10:20:23 -0700
commitbb03b7eb1032c50d91f6284e545bdd463e5e37f9 (patch)
treea4ee9a6cd6a0f3106194e1816e519bdd712fd962 /bsp/sifive-hifive1
parent0c75c6a612a1620bf1ffe82cd5c77ef9a8369045 (diff)
Add LEDs for HiFive1 boards
Diffstat (limited to 'bsp/sifive-hifive1')
-rw-r--r--bsp/sifive-hifive1/design.dts18
1 files changed, 18 insertions, 0 deletions
diff --git a/bsp/sifive-hifive1/design.dts b/bsp/sifive-hifive1/design.dts
index 5ddee6f..d633f10 100644
--- a/bsp/sifive-hifive1/design.dts
+++ b/bsp/sifive-hifive1/design.dts
@@ -180,5 +180,23 @@
clocks = <&hfclk>;
pinmux = <&gpio0 0x0003C 0x0003C>;
};
+ led@0red {
+ compatible = "sifive,gpio-leds";
+ label = "LD0red";
+ gpios = <&gpio0 22>;
+ linux,default-trigger = "none";
+ };
+ led@0green {
+ compatible = "sifive,gpio-leds";
+ label = "LD0green";
+ gpios = <&gpio0 19>;
+ linux,default-trigger = "none";
+ };
+ led@0blue {
+ compatible = "sifive,gpio-leds";
+ label = "LD0blue";
+ gpios = <&gpio0 21>;
+ linux,default-trigger = "none";
+ };
};
};