From: Pascal Linder Date: Tue, 18 Jun 2019 08:41:03 +0200 Subject: [U-Boot] [PATCH 4/6] km/spi: add SPI configuration to KM Kirkwood device tree In-Reply-To: <20190618064105.9239-1-pascal.linder@edu.hefr.ch> References: <20190618064105.9239-1-pascal.linder@edu.hefr.ch> Message-ID: <20190618064105.9239-5-pascal.linder@edu.hefr.ch> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Signed-off-by: Holger Brunck --- arch/arm/dts/kirkwood-km_kirkwood.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/kirkwood-km_kirkwood.dts b/arch/arm/dts/kirkwood-km_kirkwood.dts index f035eff1c1..b2c0209f5d 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 at 0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "st,m25p80", "jedec,spi-nor", "spi-flash"; + reg = <0>; + spi-max-frequency = <33000000>; + mode = <3>; + + partition at uboot { + reg = <0x000000 0x0c0000>; + label = "uboot"; + }; + }; +}; -- 2.21.0