diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-17 19:55:37 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-17 19:55:37 +0000 |
commit | a324a88cba727ff6ff3f80ba05c89316e232fa46 (patch) | |
tree | c55d16ff5606d36bf3a97c01ba7aff09859f65e3 | |
parent | 40384c1a34f067a0b474ffb3f41bf3b6cf2e8527 (diff) | |
download | master-187ad058-a324a88cba727ff6ff3f80ba05c89316e232fa46.tar.gz master-187ad058-a324a88cba727ff6ff3f80ba05c89316e232fa46.tar.bz2 master-187ad058-a324a88cba727ff6ff3f80ba05c89316e232fa46.zip |
lantiq: Enable SPI for the EASY80920 board again
Also switch to the SPI definition provided by vr9.dtsi
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48289 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/lantiq/dts/EASY80920.dtsi | 87 |
1 files changed, 41 insertions, 46 deletions
diff --git a/target/linux/lantiq/dts/EASY80920.dtsi b/target/linux/lantiq/dts/EASY80920.dtsi index cf37e233a1..56efe7150f 100644 --- a/target/linux/lantiq/dts/EASY80920.dtsi +++ b/target/linux/lantiq/dts/EASY80920.dtsi @@ -32,52 +32,6 @@ }; - spi@E100800 { - compatible = "lantiq,spi-xway-broken"; - reg = <0xE100800 0x100>; - interrupt-parent = <&icu0>; - interrupts = <22 23 24>; - #address-cells = <1>; - #size-cells = <1>; - - m25p80@0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "jedec,spi-nor"; - reg = <0 0>; - spi-max-frequency = <1000000>; - - partition@0 { - reg = <0x0 0x20000>; - label = "SPI (RO) U-Boot Image"; - read-only; - }; - - partition@20000 { - reg = <0x20000 0x10000>; - label = "ENV_MAC"; - read-only; - }; - - partition@30000 { - reg = <0x30000 0x10000>; - label = "DPF"; - read-only; - }; - - partition@40000 { - reg = <0x40000 0x10000>; - label = "NVRAM"; - read-only; - }; - - partition@500000 { - reg = <0x50000 0x003a0000>; - label = "kernel"; - }; - }; - }; - gpio: pinmux@E100B10 { compatible = "lantiq,pinctrl-xr9"; pinctrl-names = "default"; @@ -341,3 +295,44 @@ }; }; }; + +&spi { + status = "ok"; + + m25p80@3 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <3 0>; + spi-max-frequency = <1000000>; + + partition@0 { + reg = <0x0 0x20000>; + label = "SPI (RO) U-Boot Image"; + read-only; + }; + + partition@20000 { + reg = <0x20000 0x10000>; + label = "ENV_MAC"; + read-only; + }; + + partition@30000 { + reg = <0x30000 0x10000>; + label = "DPF"; + read-only; + }; + + partition@40000 { + reg = <0x40000 0x10000>; + label = "NVRAM"; + read-only; + }; + + partition@500000 { + reg = <0x50000 0x003a0000>; + label = "kernel"; + }; + }; +}; |