Skip to contentSkip to conversation

Add dts support for various NXP boards

PATCH Applied Ashish Kumar 2 participants 7 messages Dec 4, 2019 – Dec 11, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover Add dts support for various NXP boards

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(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/5 arm64: dts: ls1028a: Add FlexSPI support

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

---
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(+)
arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +15 -0
index 5b9d4b35dd35..ca409d907b36 100644
@@ -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";
 
arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts +15 -0
index 9720a190049f..af25c09ea427 100644
@@ -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";
 
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +13 -0
index 8e8a77eb596a..f7b79fce3df5 100644
@@ -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>;
Signature · 1 line
2.17.1
#2 lore raw

PATCH v2 2/5 arm64: dts: ls1046a: Add QSPI node for ls1046afrwy

In reply to Ashish Kumar

From: Kuldeep Singh <[email protected]>

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

---
v2:
Rebased to top

 arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1046a-frwy.dts +14 -0
index 3595be0f2527..db3d303093f6 100644
@@ -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 {
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#3 lore raw

PATCH v2 3/5 arm64: dts: ls1046a: Update QSPI node properties of ls1046ardb

In reply to Ashish Kumar

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.

---
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(-)
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +8 -8
index 0c742befb761..dbc23d6cd3b4 100644
@@ -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>;
 	};
 };
Signature · 1 line
2.17.1
#4 lore raw

PATCH v2 4/5 arm64: dts: ls208x: Remove non-compatible driver device from qspi node

In reply to Ashish Kumar

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

---
v2:
Rebased to top

 arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi +1 -1
index 7a0be8eaa84a..8b2fd278844b 100644
@@ -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>,
Signature · 1 line
2.17.1
#5 lore raw

PATCH v2 5/5 arm64: dts: ls1088a: Add QSPI support for NXP LS1088

In reply to Ashish Kumar

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.

---
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(+)
arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts +24 -0
index 120e62dad154..41d8b15f25a5 100644
@@ -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";
 };
arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts +24 -0
index 90b198939251..4d77b345cebd 100644
@@ -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";
 };
arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +13 -0
index c676d0771762..594566265e3d 100644
@@ -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>;
Signature · 1 line
2.17.1
Applied
#6 lore raw
In reply to Ashish Kumar
Quoted 15 lines · 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.

Quoted 8 lines

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.