summaryrefslogtreecommitdiff
path: root/bsp/coreip-e31-arty/design.dts
diff options
context:
space:
mode:
authorBunnaroath Sou <bsou@sifive.com>2019-01-09 16:08:47 -0800
committerBunnaroath Sou <bsou@sifive.com>2019-01-09 16:08:47 -0800
commitc5ddb8c8dcfdf6e424ac3c7df1b0f0da0129cd60 (patch)
treefbc3183dfb8fa4d125254204a799356d13a43f4c /bsp/coreip-e31-arty/design.dts
parent16b85ad35664f00a1d23cc23d222dd1075683b5c (diff)
Update DTS and freedom-mee to support interrupt
Diffstat (limited to 'bsp/coreip-e31-arty/design.dts')
-rw-r--r--bsp/coreip-e31-arty/design.dts72
1 files changed, 72 insertions, 0 deletions
diff --git a/bsp/coreip-e31-arty/design.dts b/bsp/coreip-e31-arty/design.dts
index fcefbb7..3e12f77 100644
--- a/bsp/coreip-e31-arty/design.dts
+++ b/bsp/coreip-e31-arty/design.dts
@@ -68,6 +68,7 @@
reg-names = "mem";
};
L9: global-external-interrupts {
+ compatible = "sifive,global-external-interrupts0";
interrupt-parent = <&L0>;
interrupts = <1 2 3 4>;
};
@@ -94,6 +95,7 @@
reg-names = "mem";
};
L10: local-external-interrupts-0 {
+ compatible = "sifive,local-external-interrupts0";
interrupt-parent = <&L3>;
interrupts = <16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31>;
};
@@ -119,6 +121,76 @@
reg = <0x20004000 0x1000 0x40000000 0x20000000>;
reg-names = "control", "mem";
};
+ led@0red {
+ compatible = "sifive,gpio-leds";
+ label = "LD0red";
+ gpios = <&L13 0>;
+ linux,default-trigger = "none";
+ };
+ led@0green {
+ compatible = "sifive,gpio-leds";
+ label = "LD0green";
+ gpios = <&L13 1>;
+ linux,default-trigger = "none";
+ };
+ led@0blue {
+ compatible = "sifive,gpio-leds";
+ label = "LD0blue";
+ gpios = <&L13 2>;
+ linux,default-trigger = "none";
+ };
+ button@0 {
+ compatible = "sifive,gpio-buttons";
+ label = "BTN0";
+ gpios = <&L13 4>;
+ interrupts-extended = <&L10 4>;
+ linux,code = "none";
+ };
+ button@1 {
+ compatible = "sifive,gpio-buttons";
+ label = "BTN1";
+ gpios = <&L13 5>;
+ interrupts-extended = <&L10 5>;
+ linux,code = "none";
+ };
+ button@2 {
+ compatible = "sifive,gpio-buttons";
+ label = "BTN2";
+ gpios = <&L13 6>;
+ interrupts-extended = <&L10 6>;
+ linux,code = "none";
+ };
+ button@3 {
+ compatible = "sifive,gpio-buttons";
+ label = "BTN3";
+ gpios = <&L13 7>;
+ interrupts-extended = <&L10 7>;
+ linux,code = "none";
+ };
+ switch@0 {
+ compatible = "sifive,gpio-switches";
+ label = "SW0";
+ interrupts-extended = <&L9 0>;
+ linux,code = "none";
+ };
+ switch@1 {
+ compatible = "sifive,gpio-switches";
+ label = "SW1";
+ interrupts-extended = <&L9 1>;
+ linux,code = "none";
+ };
+ switch@2 {
+ compatible = "sifive,gpio-switches";
+ label = "SW2";
+ interrupts-extended = <&L9 2>;
+ linux,code = "none";
+ };
+ switch@3 {
+ compatible = "sifive,gpio-switches";
+ label = "SW3";
+ interrupts-extended = <&L10 3>;
+ linux,code = "none";
+ };
L7: teststatus@4000 {
compatible = "sifive,test0";
reg = <0x4000 0x1000>;