linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: dts: am335x-icev2: Add support for W25Q64 NOR flash
@ 2017-03-07 21:57 Franklin S Cooper Jr
  2017-03-07 21:57 ` [PATCH 1/2] doc: dt: mtd: add w25q64 to list of supported SPI flashes Franklin S Cooper Jr
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Franklin S Cooper Jr @ 2017-03-07 21:57 UTC (permalink / raw)
  To: linux-arm-kernel, linux-omap, linux-kernel, devicetree,
	linux-mtd, tony, robh+dt
  Cc: Franklin S Cooper Jr

This patch set adds support for the on board SPI NOR flash on TI's AM335x
Industrial Communication Engine rev 2.x board.

Franklin S Cooper Jr (1):
  ARM: dts: am335x-icev2: Add SPI based NOR

Sekhar Nori (1):
  doc: dt: mtd: add w25q64 to list of supported SPI flashes

 .../devicetree/bindings/mtd/jedec,spi-nor.txt      |  1 +
 arch/arm/boot/dts/am335x-icev2.dts                 | 33 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)

-- 
2.10.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] doc: dt: mtd: add w25q64 to list of supported SPI flashes
  2017-03-07 21:57 [PATCH 0/2] ARM: dts: am335x-icev2: Add support for W25Q64 NOR flash Franklin S Cooper Jr
@ 2017-03-07 21:57 ` Franklin S Cooper Jr
  2017-03-15 19:13   ` Rob Herring
  2017-03-07 21:57 ` [PATCH 2/2] ARM: dts: am335x-icev2: Add SPI based NOR Franklin S Cooper Jr
  2017-03-23 21:00 ` [PATCH 0/2] ARM: dts: am335x-icev2: Add support for W25Q64 NOR flash Tony Lindgren
  2 siblings, 1 reply; 5+ messages in thread
From: Franklin S Cooper Jr @ 2017-03-07 21:57 UTC (permalink / raw)
  To: linux-arm-kernel, linux-omap, linux-kernel, devicetree,
	linux-mtd, tony, robh+dt
  Cc: Sekhar Nori

From: Sekhar Nori <nsekhar@ti.com>

W25Q64 is found on TI's AM335x ICEv2 board. Add it to list
for supported SPI flash devices. This flash can be identified
using JEDEC READ ID opcode.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
---
 Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt
index 3e920ec..9ce35af 100644
--- a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt
+++ b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt
@@ -40,6 +40,7 @@ Required properties:
                  w25x80
                  w25x32
                  w25q32
+                 w25q64
                  w25q32dw
                  w25q80bl
                  w25q128
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] ARM: dts: am335x-icev2: Add SPI based NOR
  2017-03-07 21:57 [PATCH 0/2] ARM: dts: am335x-icev2: Add support for W25Q64 NOR flash Franklin S Cooper Jr
  2017-03-07 21:57 ` [PATCH 1/2] doc: dt: mtd: add w25q64 to list of supported SPI flashes Franklin S Cooper Jr
@ 2017-03-07 21:57 ` Franklin S Cooper Jr
  2017-03-23 21:00 ` [PATCH 0/2] ARM: dts: am335x-icev2: Add support for W25Q64 NOR flash Tony Lindgren
  2 siblings, 0 replies; 5+ messages in thread
From: Franklin S Cooper Jr @ 2017-03-07 21:57 UTC (permalink / raw)
  To: linux-arm-kernel, linux-omap, linux-kernel, devicetree,
	linux-mtd, tony, robh+dt
  Cc: Franklin S Cooper Jr, Sekhar Nori

Enable support for W25Q64CVSSIG which is a Winbond 64 Mbit SPI NOR.

At boot you will see the following message:
m25p80 spi1.0: found s25fl064k, expected w25q64

This is because the JEDEC ID for this chip is the same as s25fl064k.
However, this should be harmless since both chips are essentially the
same.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
---
 arch/arm/boot/dts/am335x-icev2.dts | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts
index a2ad076..1e643dc 100644
--- a/arch/arm/boot/dts/am335x-icev2.dts
+++ b/arch/arm/boot/dts/am335x-icev2.dts
@@ -245,6 +245,39 @@
 		spi-max-frequency = <1000000>;
 		spi-cpol;
 	};
+
+	spi_nor: flash@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "winbond,w25q64", "jedec,spi-nor";
+		spi-max-frequency = <80000000>;
+		m25p,fast-read;
+		reg = <0>;
+
+		partition@0 {
+			label = "u-boot-spl";
+			reg = <0x0 0x80000>;
+			read-only;
+		};
+
+		partition@1 {
+			label = "u-boot";
+			reg = <0x80000 0x100000>;
+			read-only;
+		};
+
+		partition@2 {
+			label = "u-boot-env";
+			reg = <0x180000 0x20000>;
+			read-only;
+		};
+
+		partition@3 {
+			label = "misc";
+			reg = <0x1A0000 0x660000>;
+		};
+	};
+
 };
 
 &tscadc {
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] doc: dt: mtd: add w25q64 to list of supported SPI flashes
  2017-03-07 21:57 ` [PATCH 1/2] doc: dt: mtd: add w25q64 to list of supported SPI flashes Franklin S Cooper Jr
@ 2017-03-15 19:13   ` Rob Herring
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2017-03-15 19:13 UTC (permalink / raw)
  To: Franklin S Cooper Jr
  Cc: linux-arm-kernel, linux-omap, linux-kernel, devicetree,
	linux-mtd, tony, Sekhar Nori

On Tue, Mar 07, 2017 at 03:57:50PM -0600, Franklin S Cooper Jr wrote:
> From: Sekhar Nori <nsekhar@ti.com>
> 
> W25Q64 is found on TI's AM335x ICEv2 board. Add it to list
> for supported SPI flash devices. This flash can be identified
> using JEDEC READ ID opcode.
> 
> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
> ---
>  Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] ARM: dts: am335x-icev2: Add support for W25Q64 NOR flash
  2017-03-07 21:57 [PATCH 0/2] ARM: dts: am335x-icev2: Add support for W25Q64 NOR flash Franklin S Cooper Jr
  2017-03-07 21:57 ` [PATCH 1/2] doc: dt: mtd: add w25q64 to list of supported SPI flashes Franklin S Cooper Jr
  2017-03-07 21:57 ` [PATCH 2/2] ARM: dts: am335x-icev2: Add SPI based NOR Franklin S Cooper Jr
@ 2017-03-23 21:00 ` Tony Lindgren
  2 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2017-03-23 21:00 UTC (permalink / raw)
  To: Franklin S Cooper Jr
  Cc: linux-arm-kernel, linux-omap, linux-kernel, devicetree,
	linux-mtd, robh+dt

* Franklin S Cooper Jr <fcooper@ti.com> [170307 14:01]:
> This patch set adds support for the on board SPI NOR flash on TI's AM335x
> Industrial Communication Engine rev 2.x board.
> 
> Franklin S Cooper Jr (1):
>   ARM: dts: am335x-icev2: Add SPI based NOR
> 
> Sekhar Nori (1):
>   doc: dt: mtd: add w25q64 to list of supported SPI flashes

Applying both into omap-for-v4.12/dt-v2 branch.

Thanks,

Tony

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-23 21:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-07 21:57 [PATCH 0/2] ARM: dts: am335x-icev2: Add support for W25Q64 NOR flash Franklin S Cooper Jr
2017-03-07 21:57 ` [PATCH 1/2] doc: dt: mtd: add w25q64 to list of supported SPI flashes Franklin S Cooper Jr
2017-03-15 19:13   ` Rob Herring
2017-03-07 21:57 ` [PATCH 2/2] ARM: dts: am335x-icev2: Add SPI based NOR Franklin S Cooper Jr
2017-03-23 21:00 ` [PATCH 0/2] ARM: dts: am335x-icev2: Add support for W25Q64 NOR flash Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).