Skip to contentSkip to conversation

riscv: dts: Support cfi flash

PATCH New Andes 1 participant 1 message May 24, 2018 RISC-V

lore
Share & tools
lore

Andes

author
#0 lore raw

PATCH 2/4 riscv: dts: Support cfi flash

From: Rick Chen <[email protected]>

Add nor node for cfi-flash driver and smc node
for smc(aftsmc020) controller.

---
 arch/riscv/dts/ae350.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/riscv/dts/ae350.dts +12 -0
index f7d4190..be72b5c 100644
@@ -117,6 +117,18 @@
     interrupt-parent = <&plic0>;
   };
 
+  smc0: smc at e0400000 {
+    compatible = "andestech,atfsmc020";
+    reg = <0x0 0xe0400000 0x0 0x1000>;
+  };
+
+  nor at 0,0 {
+    compatible = "cfi-flash";
+    reg = <0x0 0x88000000 0x0 0x1000>;
+    bank-width = <2>;
+    device-width = <1>;
+  };
+
   spi: spi at f0b00000 {
     compatible = "andestech,atcspi200";
     reg = <0x0 0xf0b00000 0x0 0x1000>;
Signature · 1 line
2.7.4