Re: [U-Boot] [PATCH 09/15] arm64: mvebu: Armada 3700: Add SPI device tree nodes
On Fri, Sep 16, 2016 at 6:39 PM, Stefan Roesewrote: > This patch adds the SPI device tree nodes that are still missing to > the Armada 3700 dts files. > > Signed-off-by: Stefan Roese > Cc: Nadav Haklai > Cc: Kostya Porotchkin > Cc: Wilson Ding > Cc: Victor Gu > Cc: Hua Jing > Cc: Terry Zhou > Cc: Hanna Hawa > Cc: Haim Boot > --- > arch/arm/dts/armada-3720-db.dts | 17 + > arch/arm/dts/armada-37xx.dtsi | 11 +++ > 2 files changed, 28 insertions(+) > > diff --git a/arch/arm/dts/armada-3720-db.dts b/arch/arm/dts/armada-3720-db.dts > index 86110a6..52c90c2 100644 > --- a/arch/arm/dts/armada-3720-db.dts > +++ b/arch/arm/dts/armada-3720-db.dts > @@ -56,6 +56,10 @@ > stdout-path = "serial0:115200n8"; > }; > > + aliases { > + spi0 = > + }; > + > memory { > device_type = "memory"; > reg = <0x 0x 0x 0x2000>; > @@ -67,6 +71,19 @@ > status = "okay"; > }; > > + { > + status = "okay"; > + > + spi-flash@0 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "st,m25p128", "jedec,spi-nor"; Use spi-flash instead of jedec,spi-nor thanks! -- Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH 09/15] arm64: mvebu: Armada 3700: Add SPI device tree nodes
This patch adds the SPI device tree nodes that are still missing to the Armada 3700 dts files. Signed-off-by: Stefan RoeseCc: Nadav Haklai Cc: Kostya Porotchkin Cc: Wilson Ding Cc: Victor Gu Cc: Hua Jing Cc: Terry Zhou Cc: Hanna Hawa Cc: Haim Boot --- arch/arm/dts/armada-3720-db.dts | 17 + arch/arm/dts/armada-37xx.dtsi | 11 +++ 2 files changed, 28 insertions(+) diff --git a/arch/arm/dts/armada-3720-db.dts b/arch/arm/dts/armada-3720-db.dts index 86110a6..52c90c2 100644 --- a/arch/arm/dts/armada-3720-db.dts +++ b/arch/arm/dts/armada-3720-db.dts @@ -56,6 +56,10 @@ stdout-path = "serial0:115200n8"; }; + aliases { + spi0 = + }; + memory { device_type = "memory"; reg = <0x 0x 0x 0x2000>; @@ -67,6 +71,19 @@ status = "okay"; }; + { + status = "okay"; + + spi-flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "st,m25p128", "jedec,spi-nor"; + reg = <0>; /* Chip select 0 */ + spi-max-frequency = <5000>; + m25p,fast-read; + }; +}; + /* Exported on the micro USB connector CON32 through an FTDI */ { status = "okay"; diff --git a/arch/arm/dts/armada-37xx.dtsi b/arch/arm/dts/armada-37xx.dtsi index 9e2efb8..bb14f54 100644 --- a/arch/arm/dts/armada-37xx.dtsi +++ b/arch/arm/dts/armada-37xx.dtsi @@ -140,6 +140,17 @@ reg = <0x1d0 0x1>, /* GICD */ <0x1d4 0x4>; /* GICR */ }; + + spi0: spi@10600 { + compatible = "marvell,armada-3700-spi"; + reg = <0x10600 0x50>; + #address-cells = <1>; + #size-cells = <0>; + #clock-cells = <0>; + clock-frequency = <16>; + spi-max-frequency = <4>; + status = "disabled"; + }; }; }; }; -- 2.9.3 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot