devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1
@ 2017-09-21  7:36 Miquel Raynal
       [not found] ` <20170921073643.5677-1-miquel.raynal-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Miquel Raynal @ 2017-09-21  7:36 UTC (permalink / raw)
  To: Gregory Clement, Jason Cooper, Andrew Lunn, Sebastian Hesselbarth,
	devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: Thomas Petazzoni, Antoine Tenart, Nadav Haklai, Miquel Raynal,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Christine Gharzuzi

From: Christine Gharzuzi <chrisg-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>

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-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
Signed-off-by: Miquel Raynal <miquel.raynal-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
---
 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@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@0 {
+				label = "Boot";
+				reg = <0x0 0x200000>;
+			};
+			partition@200000 {
+				label = "Filesystem";
+				reg = <0x200000 0xd00000>;
+			};
+			partition@d00000 {
+				label = "Boot_2nd";
+				reg = <0xf00000 0x100000>;
+			};
+		};
+	};
+};
+
 /* CON4 on CP1 expansion */
 &cps_sata0 {
 	status = "okay";
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1
       [not found] ` <20170921073643.5677-1-miquel.raynal-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
@ 2017-09-21  7:52   ` Antoine Tenart
  2017-09-22 12:47     ` Miquel RAYNAL
  0 siblings, 1 reply; 3+ messages in thread
From: Antoine Tenart @ 2017-09-21  7:52 UTC (permalink / raw)
  To: Miquel Raynal
  Cc: Gregory Clement, Jason Cooper, Andrew Lunn, Sebastian Hesselbarth,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Thomas Petazzoni,
	Antoine Tenart, Nadav Haklai,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Christine Gharzuzi

[-- Attachment #1: Type: text/plain, Size: 969 bytes --]

Hi Miquel,

On Thu, Sep 21, 2017 at 09:36:43AM +0200, Miquel Raynal wrote:
> From: Christine Gharzuzi <chrisg-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
> +&cps_spi1 {
> +	status = "okay";
> +
> +	spi-flash@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@0 {
> +				label = "Boot";
> +				reg = <0x0 0x200000>;
> +			};
> +			partition@200000 {
> +				label = "Filesystem";
> +				reg = <0x200000 0xd00000>;
> +			};
> +			partition@d00000 {

The node should be 'partition@f00000'.

> +				label = "Boot_2nd";
> +				reg = <0xf00000 0x100000>;
> +			};
> +		};
> +	};
> +};

Thanks,
Antoine

-- 
Antoine Ténart, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [PATCH] arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1
  2017-09-21  7:52   ` Antoine Tenart
@ 2017-09-22 12:47     ` Miquel RAYNAL
  0 siblings, 0 replies; 3+ messages in thread
From: Miquel RAYNAL @ 2017-09-22 12:47 UTC (permalink / raw)
  To: Antoine Tenart
  Cc: Gregory Clement, Jason Cooper, Andrew Lunn, Sebastian Hesselbarth,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Thomas Petazzoni, Nadav Haklai,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Christine Gharzuzi

Hello Antoine,

On Thu, 21 Sep 2017 09:52:39 +0200
Antoine Tenart <antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote:

> Hi Miquel,
> 
> On Thu, Sep 21, 2017 at 09:36:43AM +0200, Miquel Raynal wrote:
> > From: Christine Gharzuzi <chrisg-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
> > +&cps_spi1 {
> > +	status = "okay";
> > +
> > +	spi-flash@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@0 {
> > +				label = "Boot";
> > +				reg = <0x0 0x200000>;
> > +			};
> > +			partition@200000 {
> > +				label = "Filesystem";
> > +				reg = <0x200000 0xd00000>;
> > +			};
> > +			partition@d00000 {  
> 
> The node should be 'partition@f00000'.

Absolutely, thanks for poiting it!

Regards,
Miquèl

> 
> > +				label = "Boot_2nd";
> > +				reg = <0xf00000 0x100000>;
> > +			};
> > +		};
> > +	};
> > +};  
> 
> Thanks,
> Antoine
> 



-- 
Miquel Raynal, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-21  7:36 [PATCH] arm64: dts: marvell: Enable Armada-8040-DB CPS SPI1 Miquel Raynal
     [not found] ` <20170921073643.5677-1-miquel.raynal-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-09-21  7:52   ` Antoine Tenart
2017-09-22 12:47     ` 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).