devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch v2 0/5] Add dts support for various NXP boards
@ 2019-12-04 10:58 Ashish Kumar
  2019-12-04 10:58 ` [Patch v2 1/5] arm64: dts: ls1028a: Add FlexSPI support Ashish Kumar
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Ashish Kumar @ 2019-12-04 10:58 UTC (permalink / raw)
  To: devicetree, robh, mark.rutland, shawnguo
  Cc: linux-arm-kernel, linux-kernel, Ashish Kumar

This patch series add dts support for various boards like 1028ardb,
1028aqds, ls1046afrwy, ls1046ardb and ls1088ardb.
QSPI dts nodes are sorted alphabeticaly and dtsi nodes are sorted
addresswise.

Patch 1 adds support for ls1028ardb and ls1028aqds.

Patch 2 adds support for ls1046afrwy.

Patch 3 adds support for ls1046ardb.

Patch 4 adds support for ls2080a.

Patch 5 adds support for ls1088ardb and ls1088aqds.

Ashish Kumar (4):
  arm64: dts: ls1028a: Add FlexSPI support
  arm64: dts: ls1046a: Update QSPI node properties of ls1046ardb
  arm64: dts: ls208x: Remove non-compatible driver device from qspi node
  arm64: dts: ls1088a: Add QSPI support for NXP LS1088

Kuldeep Singh (1):
  arm64: dts: ls1046a: Add QSPI node for ls1046afrwy

 .../boot/dts/freescale/fsl-ls1028a-qds.dts    | 15 ++++++++++++
 .../boot/dts/freescale/fsl-ls1028a-rdb.dts    | 15 ++++++++++++
 .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 13 ++++++++++
 .../boot/dts/freescale/fsl-ls1046a-frwy.dts   | 14 +++++++++++
 .../boot/dts/freescale/fsl-ls1046a-rdb.dts    | 16 ++++++-------
 .../boot/dts/freescale/fsl-ls1088a-qds.dts    | 24 +++++++++++++++++++
 .../boot/dts/freescale/fsl-ls1088a-rdb.dts    | 24 +++++++++++++++++++
 .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 13 ++++++++++
 .../arm64/boot/dts/freescale/fsl-ls208xa.dtsi |  2 +-
 9 files changed, 127 insertions(+), 9 deletions(-)

-- 
2.17.1


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

* [Patch v2 1/5] arm64: dts: ls1028a: Add FlexSPI support
  2019-12-04 10:58 [Patch v2 0/5] Add dts support for various NXP boards Ashish Kumar
@ 2019-12-04 10:58 ` Ashish Kumar
  2019-12-04 10:58 ` [Patch v2 2/5] arm64: dts: ls1046a: Add QSPI node for ls1046afrwy Ashish Kumar
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Ashish Kumar @ 2019-12-04 10:58 UTC (permalink / raw)
  To: devicetree, robh, mark.rutland, shawnguo
  Cc: linux-arm-kernel, linux-kernel, Ashish Kumar, Xiaowei Bao

Add fspi node property for LS1028A SoC for FlexSPI driver.
Property added for FlexSPI controller and for the connected
slave device for the LS1028ARDB and LS1028AQDS target.
RDB and QDS are having one SPI-NOR flash device, mt35xu02g
connected at CS0.
This flash device "mt35xu02g" is tested for octal read

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
---
v2:
Rebased to top
Use "jedec,spi-nor" in compatibles

 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 15 +++++++++++++++
 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 15 +++++++++++++++
 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi    | 13 +++++++++++++
 3 files changed, 43 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
index 5b9d4b35dd35..ca409d907b36 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
@@ -123,6 +123,21 @@
 	status = "okay";
 };
 
+&fspi {
+	status = "okay";
+
+	mt35xu02g0: flash@0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		spi-max-frequency = <50000000>;
+		/* The following setting enables 1-1-8 (CMD-ADDR-DATA) mode */
+		spi-rx-bus-width = <8>; /* 8 SPI Rx lines */
+		spi-tx-bus-width = <1>; /* 1 SPI Tx line */
+		reg = <0>;
+	};
+};
+
 &i2c0 {
 	status = "okay";
 
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
index 9720a190049f..af25c09ea427 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
@@ -96,6 +96,21 @@
 	status = "okay";
 };
 
+&fspi {
+	status = "okay";
+
+	mt35xu02g0: flash@0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		spi-max-frequency = <50000000>;
+		/* The following setting enables 1-1-8 (CMD-ADDR-DATA) mode */
+		spi-rx-bus-width = <8>; /* 8 SPI Rx lines */
+		spi-tx-bus-width = <1>; /* 1 SPI Tx line */
+		reg = <0>;
+	};
+};
+
 &i2c0 {
 	status = "okay";
 
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
index 8e8a77eb596a..f7b79fce3df5 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
@@ -271,6 +271,19 @@
 			status = "disabled";
 		};
 
+		fspi: spi@20c0000 {
+			compatible = "nxp,lx2160a-fspi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x0 0x20c0000 0x0 0x10000>,
+			      <0x0 0x20000000 0x0 0x10000000>;
+			reg-names = "fspi_base", "fspi_mmap";
+			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&clockgen 4 3>, <&clockgen 4 3>;
+			clock-names = "fspi_en", "fspi";
+			status = "disabled";
+		};
+
 		esdhc: mmc@2140000 {
 			compatible = "fsl,ls1028a-esdhc", "fsl,esdhc";
 			reg = <0x0 0x2140000 0x0 0x10000>;
-- 
2.17.1


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

* [Patch v2 2/5] arm64: dts: ls1046a: Add QSPI node for ls1046afrwy
  2019-12-04 10:58 [Patch v2 0/5] Add dts support for various NXP boards Ashish Kumar
  2019-12-04 10:58 ` [Patch v2 1/5] arm64: dts: ls1028a: Add FlexSPI support Ashish Kumar
@ 2019-12-04 10:58 ` Ashish Kumar
  2019-12-04 10:58 ` [Patch v2 3/5] arm64: dts: ls1046a: Update QSPI node properties of ls1046ardb Ashish Kumar
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Ashish Kumar @ 2019-12-04 10:58 UTC (permalink / raw)
  To: devicetree, robh, mark.rutland, shawnguo
  Cc: linux-arm-kernel, linux-kernel, Kuldeep Singh, Ashish Kumar

From: Kuldeep Singh <kuldeep.singh@nxp.com>

This board has a single 64MB mt25qu512a flash.
QUAD I/O read and single I/O write is tested.

Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
---
v2: 
Rebased to top

 arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts b/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts
index 3595be0f2527..db3d303093f6 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts
@@ -112,6 +112,20 @@
 
 };
 
+&qspi {
+	status = "okay";
+
+	mt25qu512a0: flash@0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		spi-max-frequency = <50000000>;
+		spi-rx-bus-width = <4>;
+		spi-tx-bus-width = <1>;
+		reg = <0>;
+	};
+};
+
 #include "fsl-ls1046-post.dtsi"
 
 &fman0 {
-- 
2.17.1


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

* [Patch v2 3/5] arm64: dts: ls1046a: Update QSPI node properties of ls1046ardb
  2019-12-04 10:58 [Patch v2 0/5] Add dts support for various NXP boards Ashish Kumar
  2019-12-04 10:58 ` [Patch v2 1/5] arm64: dts: ls1028a: Add FlexSPI support Ashish Kumar
  2019-12-04 10:58 ` [Patch v2 2/5] arm64: dts: ls1046a: Add QSPI node for ls1046afrwy Ashish Kumar
@ 2019-12-04 10:58 ` Ashish Kumar
  2019-12-04 10:58 ` [Patch v2 4/5] arm64: dts: ls208x: Remove non-compatible driver device from qspi node Ashish Kumar
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Ashish Kumar @ 2019-12-04 10:58 UTC (permalink / raw)
  To: devicetree, robh, mark.rutland, shawnguo
  Cc: linux-arm-kernel, linux-kernel, Ashish Kumar, Kuldeep Singh

Update the compatibles to use jedec,spi-nor.
Also update the max-frequency to 50MHz and spi-tx-bus-width to 1.

Align the QSPI node with other similar boards like(ls1088ardb,
ls1046afrwy) as per bindings.

Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
---
v2:
Rebased to top
Use "jedec,spi-nor" in compatibles

 .../arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
index 0c742befb761..dbc23d6cd3b4 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
@@ -101,23 +101,23 @@
 &qspi {
 	status = "okay";
 
-	qflash0: flash@0 {
-		compatible = "spansion,m25p80";
+	s25fs512s0: flash@0 {
+		compatible = "jedec,spi-nor";
 		#address-cells = <1>;
 		#size-cells = <1>;
-		spi-max-frequency = <20000000>;
+		spi-max-frequency = <50000000>;
 		spi-rx-bus-width = <4>;
-		spi-tx-bus-width = <4>;
+		spi-tx-bus-width = <1>;
 		reg = <0>;
 	};
 
-	qflash1: flash@1 {
-		compatible = "spansion,m25p80";
+	s25fs512s1: flash@1 {
+		compatible = "jedec,spi-nor";
 		#address-cells = <1>;
 		#size-cells = <1>;
-		spi-max-frequency = <20000000>;
+		spi-max-frequency = <50000000>;
 		spi-rx-bus-width = <4>;
-		spi-tx-bus-width = <4>;
+		spi-tx-bus-width = <1>;
 		reg = <1>;
 	};
 };
-- 
2.17.1


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

* [Patch v2 4/5] arm64: dts: ls208x: Remove non-compatible driver device from qspi node
  2019-12-04 10:58 [Patch v2 0/5] Add dts support for various NXP boards Ashish Kumar
                   ` (2 preceding siblings ...)
  2019-12-04 10:58 ` [Patch v2 3/5] arm64: dts: ls1046a: Update QSPI node properties of ls1046ardb Ashish Kumar
@ 2019-12-04 10:58 ` Ashish Kumar
  2019-12-04 10:58 ` [Patch v2 5/5] arm64: dts: ls1088a: Add QSPI support for NXP LS1088 Ashish Kumar
  2019-12-11  3:14 ` [Patch v2 0/5] Add dts support for various NXP boards Shawn Guo
  5 siblings, 0 replies; 7+ messages in thread
From: Ashish Kumar @ 2019-12-04 10:58 UTC (permalink / raw)
  To: devicetree, robh, mark.rutland, shawnguo
  Cc: linux-arm-kernel, linux-kernel, Ashish Kumar, Kuldeep Singh

Since device properties are different, so remove fsl, ls1021a-qspi.
ls1021a-qspi is to be used only for Big-endian verion of QSPI controller

Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
---
v2:
Rebased to top

 arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
index 7a0be8eaa84a..8b2fd278844b 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
@@ -619,7 +619,7 @@
 
 		qspi: spi@20c0000 {
 			status = "disabled";
-			compatible = "fsl,ls2080a-qspi", "fsl,ls1021a-qspi";
+			compatible = "fsl,ls2080a-qspi";
 			#address-cells = <1>;
 			#size-cells = <0>;
 			reg = <0x0 0x20c0000 0x0 0x10000>,
-- 
2.17.1


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

* [Patch v2 5/5] arm64: dts: ls1088a: Add QSPI support for NXP LS1088
  2019-12-04 10:58 [Patch v2 0/5] Add dts support for various NXP boards Ashish Kumar
                   ` (3 preceding siblings ...)
  2019-12-04 10:58 ` [Patch v2 4/5] arm64: dts: ls208x: Remove non-compatible driver device from qspi node Ashish Kumar
@ 2019-12-04 10:58 ` Ashish Kumar
  2019-12-11  3:14 ` [Patch v2 0/5] Add dts support for various NXP boards Shawn Guo
  5 siblings, 0 replies; 7+ messages in thread
From: Ashish Kumar @ 2019-12-04 10:58 UTC (permalink / raw)
  To: devicetree, robh, mark.rutland, shawnguo
  Cc: linux-arm-kernel, linux-kernel, Ashish Kumar, Kuldeep Singh

Add QSPI node in dtsi(ls1088a), and dts(ls1088ardb, ls1088aqds) boards.

Both ls1088ardb and ls1088aqds has two 64MB flash from SPANSION(s25fs512s).
QUAD I/O is tested in case of read and single I/O is tested in case of
write.

Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
---
v2:
Rebased to top
Reword commit message
 
.../boot/dts/freescale/fsl-ls1088a-qds.dts    | 24 +++++++++++++++++++
 .../boot/dts/freescale/fsl-ls1088a-rdb.dts    | 24 +++++++++++++++++++
 .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 13 ++++++++++
 3 files changed, 61 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts
index 120e62dad154..41d8b15f25a5 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts
@@ -143,6 +143,30 @@
 	status = "okay";
 };
 
+&qspi {
+	status = "okay";
+
+	s25fs512s0: flash@0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		spi-max-frequency = <50000000>;
+		spi-rx-bus-width = <4>;
+		spi-tx-bus-width = <1>;
+		reg = <0>;
+	};
+
+	s25fs512s1: flash@1 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		spi-max-frequency = <50000000>;
+		spi-rx-bus-width = <4>;
+		spi-tx-bus-width = <1>;
+		reg = <1>;
+	};
+};
+
 &sata {
 	status = "okay";
 };
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts
index 90b198939251..4d77b345cebd 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts
@@ -86,6 +86,30 @@
 	status = "okay";
 };
 
+&qspi {
+	status = "okay";
+
+	s25fs512s0: flash@0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		spi-max-frequency = <50000000>;
+		spi-rx-bus-width = <4>;
+		spi-tx-bus-width = <1>;
+		reg = <0>;
+	};
+
+	s25fs512s1: flash@1 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		spi-max-frequency = <50000000>;
+		spi-rx-bus-width = <4>;
+		spi-tx-bus-width = <1>;
+		reg = <1>;
+	};
+};
+
 &sata {
 	status = "okay";
 };
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
index c676d0771762..594566265e3d 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
@@ -375,6 +375,19 @@
 			status = "disabled";
 		};
 
+		qspi: spi@20c0000 {
+			compatible = "fsl,ls2080a-qspi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x0 0x20c0000 0x0 0x10000>,
+			      <0x0 0x20000000 0x0 0x10000000>;
+			reg-names = "QuadSPI", "QuadSPI-memory";
+			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
+			clock-names = "qspi_en", "qspi";
+			clocks = <&clockgen 4 3>, <&clockgen 4 3>;
+			status = "disabled";
+		};
+
 		esdhc: esdhc@2140000 {
 			compatible = "fsl,ls1088a-esdhc", "fsl,esdhc";
 			reg = <0x0 0x2140000 0x0 0x10000>;
-- 
2.17.1


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

* Re: [Patch v2 0/5] Add dts support for various NXP boards
  2019-12-04 10:58 [Patch v2 0/5] Add dts support for various NXP boards Ashish Kumar
                   ` (4 preceding siblings ...)
  2019-12-04 10:58 ` [Patch v2 5/5] arm64: dts: ls1088a: Add QSPI support for NXP LS1088 Ashish Kumar
@ 2019-12-11  3:14 ` Shawn Guo
  5 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2019-12-11  3:14 UTC (permalink / raw)
  To: Ashish Kumar
  Cc: devicetree, robh, mark.rutland, linux-arm-kernel, linux-kernel

On Wed, Dec 04, 2019 at 04:28:13PM +0530, Ashish Kumar wrote:
> This patch series add dts support for various boards like 1028ardb,
> 1028aqds, ls1046afrwy, ls1046ardb and ls1088ardb.
> QSPI dts nodes are sorted alphabeticaly and dtsi nodes are sorted
> addresswise.
> 
> Patch 1 adds support for ls1028ardb and ls1028aqds.
> 
> Patch 2 adds support for ls1046afrwy.
> 
> Patch 3 adds support for ls1046ardb.
> 
> Patch 4 adds support for ls2080a.
> 
> Patch 5 adds support for ls1088ardb and ls1088aqds.
> 
> Ashish Kumar (4):
>   arm64: dts: ls1028a: Add FlexSPI support
>   arm64: dts: ls1046a: Update QSPI node properties of ls1046ardb
>   arm64: dts: ls208x: Remove non-compatible driver device from qspi node
>   arm64: dts: ls1088a: Add QSPI support for NXP LS1088
> 
> Kuldeep Singh (1):
>   arm64: dts: ls1046a: Add QSPI node for ls1046afrwy

Applied all, thanks.

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

end of thread, other threads:[~2019-12-11  3:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-04 10:58 [Patch v2 0/5] Add dts support for various NXP boards Ashish Kumar
2019-12-04 10:58 ` [Patch v2 1/5] arm64: dts: ls1028a: Add FlexSPI support Ashish Kumar
2019-12-04 10:58 ` [Patch v2 2/5] arm64: dts: ls1046a: Add QSPI node for ls1046afrwy Ashish Kumar
2019-12-04 10:58 ` [Patch v2 3/5] arm64: dts: ls1046a: Update QSPI node properties of ls1046ardb Ashish Kumar
2019-12-04 10:58 ` [Patch v2 4/5] arm64: dts: ls208x: Remove non-compatible driver device from qspi node Ashish Kumar
2019-12-04 10:58 ` [Patch v2 5/5] arm64: dts: ls1088a: Add QSPI support for NXP LS1088 Ashish Kumar
2019-12-11  3:14 ` [Patch v2 0/5] Add dts support for various NXP boards Shawn Guo

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