summaryrefslogtreecommitdiff
path: root/arch/nds32
diff options
context:
space:
mode:
authorrick <rick@andestech.com>2017-08-28 15:13:09 +0800
committerAndes <uboot@andestech.com>2017-09-21 10:30:22 +0800
commit7b1a50b7b660232196a5250ccaf6aa560944865d (patch)
tree17c4d0bc375f715d118c6784d39b44e51aa48134 /arch/nds32
parent6d3cb0fdcd7d29ef54651576c3d0c5fb8c789a16 (diff)
nds32: board: Support SPI driver.
Add spi dts node and enable spi dm flash config. Signed-off-by: rick <rick@andestech.com>
Diffstat (limited to 'arch/nds32')
-rw-r--r--arch/nds32/dts/ae3xx.dts23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/nds32/dts/ae3xx.dts b/arch/nds32/dts/ae3xx.dts
index 4221e4bf9a..fbe6d74437 100644
--- a/arch/nds32/dts/ae3xx.dts
+++ b/arch/nds32/dts/ae3xx.dts
@@ -8,6 +8,7 @@
aliases {
uart0 = &serial0;
ethernet0 = &mac0;
+ spi0 = &spi;
} ;
chosen {
@@ -22,6 +23,12 @@
reg = <0x00000000 0x40000000>;
};
+ spiclk: virt_100mhz {
+ #clock-cells = <0>;
+ compatible = "fixed-clock";
+ clock-frequency = <100000000>;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -69,4 +76,20 @@
device-width = <1>;
};
+ spi: spi@f0b00000 {
+ compatible = "andestech,atcspi200";
+ reg = <0xf0b00000 0x1000>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ num-cs = <1>;
+ clocks = <&spiclk>;
+ interrupts = <3 4>;
+ flash@0 {
+ compatible = "spi-flash";
+ spi-max-frequency = <50000000>;
+ reg = <0>;
+ spi-cpol;
+ spi-cpha;
+ };
+ };
};