linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1
@ 2017-09-22 12:50 Miquel Raynal
  2017-09-22 13:00 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Miquel Raynal @ 2017-09-22 12:50 UTC (permalink / raw)
  To: linux-arm-kernel

From: Christine Gharzuzi <chrisg@marvell.com>

Add the DT node enabling Armada-8040-DB CPS SPI controller driver.

Add the SPI NAND flash device connected on the bus. Fill the MTD
partitions layout.

Signed-off-by: Christine Gharzuzi <chrisg@marvell.com>
Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
---
 arch/arm64/boot/dts/marvell/armada-8040-db.dts | 31 ++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/arch/arm64/boot/dts/marvell/armada-8040-db.dts b/arch/arm64/boot/dts/marvell/armada-8040-db.dts
index 0d7b2ae46610..f5be6ffe0106 100644
--- a/arch/arm64/boot/dts/marvell/armada-8040-db.dts
+++ b/arch/arm64/boot/dts/marvell/armada-8040-db.dts
@@ -216,6 +216,37 @@
 	clock-frequency = <100000>;
 };
 
+&cps_spi1 {
+	status = "okay";
+
+	spi-flash at 0 {
+		#address-cells = <0x1>;
+		#size-cells = <0x1>;
+		compatible = "jedec,spi-nor";
+		reg = <0x0>;
+		spi-max-frequency = <20000000>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			partition at 0 {
+				label = "Boot";
+				reg = <0x0 0x200000>;
+			};
+			partition at 200000 {
+				label = "Filesystem";
+				reg = <0x200000 0xd00000>;
+			};
+			partition at d00000 {
+				label = "Boot_2nd";
+				reg = <0xf00000 0x100000>;
+			};
+		};
+	};
+};
+
 /* CON4 on CP1 expansion */
 &cps_sata0 {
 	status = "okay";
-- 
2.11.0

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

* [PATCH v2] arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1
  2017-09-22 12:50 [PATCH v2] arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1 Miquel Raynal
@ 2017-09-22 13:00 ` Andrew Lunn
  2017-09-22 13:05   ` Miquel RAYNAL
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2017-09-22 13:00 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Sep 22, 2017 at 02:50:12PM +0200, Miquel Raynal wrote:
> From: Christine Gharzuzi <chrisg@marvell.com>
> 
> Add the DT node enabling Armada-8040-DB CPS SPI controller driver.
> 
> Add the SPI NAND flash device connected on the bus. Fill the MTD
> partitions layout.
> 
> Signed-off-by: Christine Gharzuzi <chrisg@marvell.com>
> Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
> ---

Hi Miquel

Please put under the --- what you changed between v1 and v2. It helps
make the reviewing easier.

     Thanks
	Andrew

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

* [PATCH v2] arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1
  2017-09-22 13:00 ` Andrew Lunn
@ 2017-09-22 13:05   ` Miquel RAYNAL
  0 siblings, 0 replies; 3+ messages in thread
From: Miquel RAYNAL @ 2017-09-22 13:05 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Andrew,

On Fri, 22 Sep 2017 15:00:22 +0200
Andrew Lunn <andrew@lunn.ch> wrote:

> On Fri, Sep 22, 2017 at 02:50:12PM +0200, Miquel Raynal wrote:
> > From: Christine Gharzuzi <chrisg@marvell.com>
> > 
> > Add the DT node enabling Armada-8040-DB CPS SPI controller driver.
> > 
> > Add the SPI NAND flash device connected on the bus. Fill the MTD
> > partitions layout.
> > 
> > Signed-off-by: Christine Gharzuzi <chrisg@marvell.com>
> > Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
> > ---  
> 
> Hi Miquel
> 
> Please put under the --- what you changed between v1 and v2. It helps
> make the reviewing easier.

Sure.

Plus, I just realized I sent the v1 patch instead of the v2.
Sorry for that.

Thanks,
Miqu?l

> 
>      Thanks
> 	Andrew



-- 
Miquel Raynal, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

end of thread, other threads:[~2017-09-22 13:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-22 12:50 [PATCH v2] arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1 Miquel Raynal
2017-09-22 13:00 ` Andrew Lunn
2017-09-22 13:05   ` Miquel RAYNAL

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).