diff options
author | Pascal Linder | 2019-06-18 08:41:03 +0200 |
---|---|---|
committer | Stefan Roese | 2019-07-11 10:58:03 +0200 |
commit | c85306345a82a80a59fe80f6261a9263325736ad (patch) | |
tree | 0996f93849d83f5db8dd618e9d73651acc86cc9e /arch/arm/dts/kirkwood-km_kirkwood.dts | |
parent | 53c3050d0dd3f885c35f5c44293c86a9b199c5ca (diff) |
km/spi: add SPI configuration to KM Kirkwood device tree
In order to migrate the SPI flash interface to the driver model, the SPI
configuration needs to be added in the KM Kirkwood device tree file.
Signed-off-by: Pascal Linder <pascal.linder@edu.hefr.ch>
Signed-off-by: Holger Brunck <holger.brunck@ch.abb.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/arm/dts/kirkwood-km_kirkwood.dts')
-rw-r--r-- | arch/arm/dts/kirkwood-km_kirkwood.dts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/dts/kirkwood-km_kirkwood.dts b/arch/arm/dts/kirkwood-km_kirkwood.dts index f035eff1c11..b2c0209f5db 100644 --- a/arch/arm/dts/kirkwood-km_kirkwood.dts +++ b/arch/arm/dts/kirkwood-km_kirkwood.dts @@ -13,6 +13,10 @@ device_type = "memory"; reg = <0x00000000 0x08000000>; }; + + aliases { + spi0 = &spi0; + }; }; &mdio { @@ -29,3 +33,21 @@ phy-handle = <ðphy0>; }; }; + +&spi0 { + status = "okay"; + + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "st,m25p80", "jedec,spi-nor", "spi-flash"; + reg = <0>; + spi-max-frequency = <33000000>; + mode = <3>; + + partition@uboot { + reg = <0x000000 0x0c0000>; + label = "uboot"; + }; + }; +}; |