All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC
@ 2019-10-26 11:24 Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 01/29] dts: P1020: Add ESPI DT nodes Xiaowei Bao
                   ` (28 more replies)
  0 siblings, 29 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add the SPI DM support for PPC.

depends on: http://patchwork.ozlabs.org/project/uboot/list/?series=127282

Xiaowei Bao (29):
  dts: P1020: Add ESPI DT nodes
  dts: P1020RDB: Add ESPI slave device node
  configs: P1020RDB: Enable ESPI driver
  dts: P2020: Add ESPI DT nodes
  dts: P2020RDB: Add ESPI slave device node
  configs: P2020RDB: Enable ESPI driver
  dts: P2041: Add ESPI DT nodes
  dts: P2041RDB: Add ESPI slave device node
  configs: P2041RDB: Enable ESPI driver
  dts: P3041: Add ESPI DT nodes
  dts: P3041DS: Add ESPI slave device node
  configs: P3041DS: Enable ESPI driver
  dts: P4080: Add ESPI DT nodes
  dts: P4080DS: Add ESPI slave device node
  configs: P4080DS: Enable ESPI driver
  dts: P5040: Add ESPI DT nodes
  dts: P5040DS: Add ESPI slave device node
  configs: P5040DS: Enable ESPI driver
  dts: T102x: Add ESPI DT nodes
  dts: T1024RDB: Add ESPI slave device node
  configs: T1024RDB: Enable ESPI driver
  dts: T104x: Add ESPI DT nodes
  dts: T1042D4RDB: Add ESPI slave device node
  configs: T1042D4RDB: Enable ESPI driver
  dts: T2080RDB: Add ESPI slave device node
  configs: T2080RDB: Enable ESPI driver
  dts: T4240: Add ESPI DT nodes
  dts: T4240RDB: Add ESPI slave device node
  configs: T4240RDB: Enable ESPI driver

 arch/powerpc/dts/p1020-post.dtsi             |  9 +++++++++
 arch/powerpc/dts/p1020rdb-pc.dts             | 15 +++++++++++++++
 arch/powerpc/dts/p1020rdb-pc_36b.dts         | 15 +++++++++++++++
 arch/powerpc/dts/p1020rdb-pd.dts             | 15 +++++++++++++++
 arch/powerpc/dts/p2020-post.dtsi             |  9 +++++++++
 arch/powerpc/dts/p2020rdb-pc.dts             | 15 +++++++++++++++
 arch/powerpc/dts/p2020rdb-pc_36b.dts         | 15 +++++++++++++++
 arch/powerpc/dts/p2041.dtsi                  |  9 +++++++++
 arch/powerpc/dts/p2041rdb.dts                | 14 ++++++++++++++
 arch/powerpc/dts/p3041.dtsi                  |  9 +++++++++
 arch/powerpc/dts/p3041ds.dts                 | 14 ++++++++++++++
 arch/powerpc/dts/p4080.dtsi                  |  9 +++++++++
 arch/powerpc/dts/p4080ds.dts                 | 14 ++++++++++++++
 arch/powerpc/dts/p5040.dtsi                  |  9 +++++++++
 arch/powerpc/dts/p5040ds.dts                 | 14 ++++++++++++++
 arch/powerpc/dts/t1024rdb.dts                | 15 +++++++++++++++
 arch/powerpc/dts/t102x.dtsi                  |  9 +++++++++
 arch/powerpc/dts/t1042d4rdb.dts              | 15 +++++++++++++++
 arch/powerpc/dts/t104x.dtsi                  |  9 +++++++++
 arch/powerpc/dts/t2080rdb.dts                | 15 +++++++++++++++
 arch/powerpc/dts/t4240.dtsi                  |  9 +++++++++
 arch/powerpc/dts/t4240rdb.dts                | 15 +++++++++++++++
 configs/P1020RDB-PC_36BIT_NAND_defconfig     |  2 ++
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig   |  2 ++
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig |  2 ++
 configs/P1020RDB-PC_36BIT_defconfig          |  2 ++
 configs/P1020RDB-PC_NAND_defconfig           |  2 ++
 configs/P1020RDB-PC_SDCARD_defconfig         |  2 ++
 configs/P1020RDB-PC_SPIFLASH_defconfig       |  2 ++
 configs/P1020RDB-PC_defconfig                |  2 ++
 configs/P1020RDB-PD_NAND_defconfig           |  2 ++
 configs/P1020RDB-PD_SDCARD_defconfig         |  2 ++
 configs/P1020RDB-PD_SPIFLASH_defconfig       |  2 ++
 configs/P1020RDB-PD_defconfig                |  2 ++
 configs/P2020RDB-PC_36BIT_NAND_defconfig     |  2 ++
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig   |  2 ++
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig |  2 ++
 configs/P2020RDB-PC_36BIT_defconfig          |  2 ++
 configs/P2020RDB-PC_NAND_defconfig           |  2 ++
 configs/P2020RDB-PC_SDCARD_defconfig         |  2 ++
 configs/P2020RDB-PC_SPIFLASH_defconfig       |  2 ++
 configs/P2020RDB-PC_defconfig                |  2 ++
 configs/P2041RDB_NAND_defconfig              |  2 ++
 configs/P2041RDB_SDCARD_defconfig            |  2 ++
 configs/P2041RDB_SPIFLASH_defconfig          |  2 ++
 configs/P2041RDB_defconfig                   |  2 ++
 configs/P3041DS_NAND_defconfig               |  2 ++
 configs/P3041DS_SDCARD_defconfig             |  2 ++
 configs/P3041DS_SPIFLASH_defconfig           |  2 ++
 configs/P3041DS_defconfig                    |  2 ++
 configs/P4080DS_SDCARD_defconfig             |  2 ++
 configs/P4080DS_SPIFLASH_defconfig           |  2 ++
 configs/P4080DS_defconfig                    |  2 ++
 configs/P5040DS_NAND_defconfig               |  2 ++
 configs/P5040DS_SDCARD_defconfig             |  2 ++
 configs/P5040DS_SPIFLASH_defconfig           |  2 ++
 configs/P5040DS_defconfig                    |  2 ++
 configs/T1024RDB_NAND_defconfig              |  2 ++
 configs/T1024RDB_SDCARD_defconfig            |  2 ++
 configs/T1024RDB_SPIFLASH_defconfig          |  2 ++
 configs/T1024RDB_defconfig                   |  2 ++
 configs/T1042D4RDB_NAND_defconfig            |  2 ++
 configs/T1042D4RDB_SDCARD_defconfig          |  2 ++
 configs/T1042D4RDB_SPIFLASH_defconfig        |  2 ++
 configs/T1042D4RDB_defconfig                 |  2 ++
 configs/T2080RDB_NAND_defconfig              |  2 ++
 configs/T2080RDB_SDCARD_defconfig            |  2 ++
 configs/T2080RDB_SPIFLASH_defconfig          |  2 ++
 configs/T2080RDB_defconfig                   |  2 ++
 configs/T4240RDB_SDCARD_defconfig            |  2 ++
 configs/T4240RDB_defconfig                   |  2 ++
 71 files changed, 370 insertions(+)

-- 
2.9.5

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

* [U-Boot] [PATCH 01/29] dts: P1020: Add ESPI DT nodes
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2020-05-12  9:03   ` Priyanka Jain
  2019-10-26 11:24 ` [U-Boot] [PATCH 02/29] dts: P1020RDB: Add ESPI slave device node Xiaowei Bao
                   ` (27 subsequent siblings)
  28 siblings, 1 reply; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI controller DT node for P1020.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/p1020-post.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/powerpc/dts/p1020-post.dtsi b/arch/powerpc/dts/p1020-post.dtsi
index 1e5e678..efb104f 100644
--- a/arch/powerpc/dts/p1020-post.dtsi
+++ b/arch/powerpc/dts/p1020-post.dtsi
@@ -24,6 +24,15 @@
 		single-cpu-affinity;
 		last-interrupt-source = <255>;
 	};
+
+	espi0: spi at 7000 {
+		compatible = "fsl,mpc8536-espi";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		reg = <0x7000 0x1000>;
+		fsl,espi-num-chipselects = <4>;
+		status = "disabled";
+	};
 };
 
 /* PCIe controller base address 0x9000 */
-- 
2.9.5

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

* [U-Boot] [PATCH 02/29] dts: P1020RDB: Add ESPI slave device node
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 01/29] dts: P1020: Add ESPI DT nodes Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 03/29] configs: P1020RDB: Enable ESPI driver Xiaowei Bao
                   ` (26 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI slave node for P1020RDB.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/p1020rdb-pc.dts     | 15 +++++++++++++++
 arch/powerpc/dts/p1020rdb-pc_36b.dts | 15 +++++++++++++++
 arch/powerpc/dts/p1020rdb-pd.dts     | 15 +++++++++++++++
 3 files changed, 45 insertions(+)

diff --git a/arch/powerpc/dts/p1020rdb-pc.dts b/arch/powerpc/dts/p1020rdb-pc.dts
index 7ebaa61..4193af1 100644
--- a/arch/powerpc/dts/p1020rdb-pc.dts
+++ b/arch/powerpc/dts/p1020rdb-pc.dts
@@ -30,6 +30,21 @@
 		ranges = <0x01000000 0x0 0x00000000 0x0 0xffc00000 0x0 0x00010000   /* downstream I/O */
 			  0x02000000 0x0 0x80000000 0x0 0x80000000 0x0 0x20000000>; /* non-prefetchable memory */
 	};
+
+	aliases {
+		spi0 = &espi0;
+	};
 };
 
 /include/ "p1020-post.dtsi"
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
+};
diff --git a/arch/powerpc/dts/p1020rdb-pc_36b.dts b/arch/powerpc/dts/p1020rdb-pc_36b.dts
index c0e5ef4..5a20e60 100644
--- a/arch/powerpc/dts/p1020rdb-pc_36b.dts
+++ b/arch/powerpc/dts/p1020rdb-pc_36b.dts
@@ -30,6 +30,21 @@
 		ranges = <0x01000000 0x0 0x00000000 0xf 0xffc00000 0x0 0x00010000   /* downstream I/O */
 			  0x02000000 0x0 0x80000000 0xc 0x00000000 0x0 0x20000000>; /* non-prefetchable memory */
 	};
+
+	aliases {
+		spi0 = &espi0;
+	};
 };
 
 /include/ "p1020-post.dtsi"
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
+};
diff --git a/arch/powerpc/dts/p1020rdb-pd.dts b/arch/powerpc/dts/p1020rdb-pd.dts
index 21174a0..6e319f0 100644
--- a/arch/powerpc/dts/p1020rdb-pd.dts
+++ b/arch/powerpc/dts/p1020rdb-pd.dts
@@ -30,6 +30,21 @@
 		ranges = <0x01000000 0x0 0x00000000 0x0 0xffc00000 0x0 0x00010000   /* downstream I/O */
 			  0x02000000 0x0 0x80000000 0x0 0x80000000 0x0 0x20000000>; /* non-prefetchable memory */
 	};
+
+	aliases {
+		spi0 = &espi0;
+	};
 };
 
 /include/ "p1020-post.dtsi"
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
+};
-- 
2.9.5

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

* [U-Boot] [PATCH 03/29] configs: P1020RDB: Enable ESPI driver
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 01/29] dts: P1020: Add ESPI DT nodes Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 02/29] dts: P1020RDB: Add ESPI slave device node Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 04/29] dts: P2020: Add ESPI DT nodes Xiaowei Bao
                   ` (25 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Enable the DM ESPI driver in P1020RDB defconfig.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 configs/P1020RDB-PC_36BIT_NAND_defconfig     | 2 ++
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig   | 2 ++
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig | 2 ++
 configs/P1020RDB-PC_36BIT_defconfig          | 2 ++
 configs/P1020RDB-PC_NAND_defconfig           | 2 ++
 configs/P1020RDB-PC_SDCARD_defconfig         | 2 ++
 configs/P1020RDB-PC_SPIFLASH_defconfig       | 2 ++
 configs/P1020RDB-PC_defconfig                | 2 ++
 configs/P1020RDB-PD_NAND_defconfig           | 2 ++
 configs/P1020RDB-PD_SDCARD_defconfig         | 2 ++
 configs/P1020RDB-PD_SPIFLASH_defconfig       | 2 ++
 configs/P1020RDB-PD_defconfig                | 2 ++
 12 files changed, 24 insertions(+)

diff --git a/configs/P1020RDB-PC_36BIT_NAND_defconfig b/configs/P1020RDB-PC_36BIT_NAND_defconfig
index ba4229e..b2525f4 100644
--- a/configs/P1020RDB-PC_36BIT_NAND_defconfig
+++ b/configs/P1020RDB-PC_36BIT_NAND_defconfig
@@ -46,6 +46,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pc_36b"
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P1020RDB-PC_36BIT_SDCARD_defconfig b/configs/P1020RDB-PC_36BIT_SDCARD_defconfig
index 883c4d9..ca97aef 100644
--- a/configs/P1020RDB-PC_36BIT_SDCARD_defconfig
+++ b/configs/P1020RDB-PC_36BIT_SDCARD_defconfig
@@ -42,6 +42,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pc_36b"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig b/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig
index 4ec953a..7a51d0a 100644
--- a/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig
+++ b/configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig
@@ -43,6 +43,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pc_36b"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P1020RDB-PC_36BIT_defconfig b/configs/P1020RDB-PC_36BIT_defconfig
index 9ce12c5..502da07 100644
--- a/configs/P1020RDB-PC_36BIT_defconfig
+++ b/configs/P1020RDB-PC_36BIT_defconfig
@@ -31,6 +31,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pc_36b"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P1020RDB-PC_NAND_defconfig b/configs/P1020RDB-PC_NAND_defconfig
index 705bc71..56d4737 100644
--- a/configs/P1020RDB-PC_NAND_defconfig
+++ b/configs/P1020RDB-PC_NAND_defconfig
@@ -45,6 +45,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pc"
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P1020RDB-PC_SDCARD_defconfig b/configs/P1020RDB-PC_SDCARD_defconfig
index e7407aa..7e8a8d0 100644
--- a/configs/P1020RDB-PC_SDCARD_defconfig
+++ b/configs/P1020RDB-PC_SDCARD_defconfig
@@ -41,6 +41,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pc"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P1020RDB-PC_SPIFLASH_defconfig b/configs/P1020RDB-PC_SPIFLASH_defconfig
index 99457cb..cf0ae98 100644
--- a/configs/P1020RDB-PC_SPIFLASH_defconfig
+++ b/configs/P1020RDB-PC_SPIFLASH_defconfig
@@ -42,6 +42,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pc"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P1020RDB-PC_defconfig b/configs/P1020RDB-PC_defconfig
index 9158fef..bdaa262 100644
--- a/configs/P1020RDB-PC_defconfig
+++ b/configs/P1020RDB-PC_defconfig
@@ -30,6 +30,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pc"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P1020RDB-PD_NAND_defconfig b/configs/P1020RDB-PD_NAND_defconfig
index 835cbd8..e320828 100644
--- a/configs/P1020RDB-PD_NAND_defconfig
+++ b/configs/P1020RDB-PD_NAND_defconfig
@@ -48,6 +48,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pd"
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P1020RDB-PD_SDCARD_defconfig b/configs/P1020RDB-PD_SDCARD_defconfig
index a07c46d..ba35671 100644
--- a/configs/P1020RDB-PD_SDCARD_defconfig
+++ b/configs/P1020RDB-PD_SDCARD_defconfig
@@ -44,6 +44,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pd"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P1020RDB-PD_SPIFLASH_defconfig b/configs/P1020RDB-PD_SPIFLASH_defconfig
index 591c4ebf..87ff9e2 100644
--- a/configs/P1020RDB-PD_SPIFLASH_defconfig
+++ b/configs/P1020RDB-PD_SPIFLASH_defconfig
@@ -45,6 +45,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pd"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P1020RDB-PD_defconfig b/configs/P1020RDB-PD_defconfig
index a29f811..05a920e 100644
--- a/configs/P1020RDB-PD_defconfig
+++ b/configs/P1020RDB-PD_defconfig
@@ -33,6 +33,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pd"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
-- 
2.9.5

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

* [U-Boot] [PATCH 04/29] dts: P2020: Add ESPI DT nodes
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (2 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 03/29] configs: P1020RDB: Enable ESPI driver Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 05/29] dts: P2020RDB: Add ESPI slave device node Xiaowei Bao
                   ` (24 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI controller DT node for P2020.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/p2020-post.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/powerpc/dts/p2020-post.dtsi b/arch/powerpc/dts/p2020-post.dtsi
index f696f35..a169340 100644
--- a/arch/powerpc/dts/p2020-post.dtsi
+++ b/arch/powerpc/dts/p2020-post.dtsi
@@ -24,6 +24,15 @@
 		single-cpu-affinity;
 		last-interrupt-source = <255>;
 	};
+
+	espi0: spi at 7000 {
+		compatible = "fsl,mpc8536-espi";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		reg = <0x7000 0x1000>;
+		fsl,espi-num-chipselects = <4>;
+		status = "disabled";
+	};
 };
 
 /* PCIe controller base address 0x8000 */
-- 
2.9.5

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

* [U-Boot] [PATCH 05/29] dts: P2020RDB: Add ESPI slave device node
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (3 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 04/29] dts: P2020: Add ESPI DT nodes Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 06/29] configs: P2020RDB: Enable ESPI driver Xiaowei Bao
                   ` (23 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI slave node for P2020RDB.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/p2020rdb-pc.dts     | 15 +++++++++++++++
 arch/powerpc/dts/p2020rdb-pc_36b.dts | 15 +++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/arch/powerpc/dts/p2020rdb-pc.dts b/arch/powerpc/dts/p2020rdb-pc.dts
index 08befd4..5ae278c 100644
--- a/arch/powerpc/dts/p2020rdb-pc.dts
+++ b/arch/powerpc/dts/p2020rdb-pc.dts
@@ -35,6 +35,21 @@
 		ranges = <0x01000000 0x0 0x00000000 0x0 0xffc00000 0x0 0x00010000   /* downstream I/O */
 			  0x02000000 0x0 0x80000000 0x0 0x80000000 0x0 0x20000000>; /* non-prefetchable memory */
 	};
+
+	aliases {
+		spi0 = &espi0;
+	};
 };
 
 /include/ "p2020-post.dtsi"
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
+};
diff --git a/arch/powerpc/dts/p2020rdb-pc_36b.dts b/arch/powerpc/dts/p2020rdb-pc_36b.dts
index 04b2519..542fffc 100644
--- a/arch/powerpc/dts/p2020rdb-pc_36b.dts
+++ b/arch/powerpc/dts/p2020rdb-pc_36b.dts
@@ -35,6 +35,21 @@
 		ranges = <0x01000000 0x0 0x00000000 0xf 0xffc00000 0x0 0x00010000   /* downstream I/O */
 			  0x02000000 0x0 0x80000000 0xc 0x00000000 0x0 0x20000000>; /* non-prefetchable memory */
 	};
+
+	aliases {
+		spi0 = &espi0;
+	};
 };
 
 /include/ "p2020-post.dtsi"
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
+};
-- 
2.9.5

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

* [U-Boot] [PATCH 06/29] configs: P2020RDB: Enable ESPI driver
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (4 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 05/29] dts: P2020RDB: Add ESPI slave device node Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 07/29] dts: P2041: Add ESPI DT nodes Xiaowei Bao
                   ` (22 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Enable the DM ESPI driver in P2020RDB defconfig.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 configs/P2020RDB-PC_36BIT_NAND_defconfig     | 2 ++
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig   | 2 ++
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig | 2 ++
 configs/P2020RDB-PC_36BIT_defconfig          | 2 ++
 configs/P2020RDB-PC_NAND_defconfig           | 2 ++
 configs/P2020RDB-PC_SDCARD_defconfig         | 2 ++
 configs/P2020RDB-PC_SPIFLASH_defconfig       | 2 ++
 configs/P2020RDB-PC_defconfig                | 2 ++
 8 files changed, 16 insertions(+)

diff --git a/configs/P2020RDB-PC_36BIT_NAND_defconfig b/configs/P2020RDB-PC_36BIT_NAND_defconfig
index aa47e89..c92822f 100644
--- a/configs/P2020RDB-PC_36BIT_NAND_defconfig
+++ b/configs/P2020RDB-PC_36BIT_NAND_defconfig
@@ -50,6 +50,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p2020rdb-pc_36b"
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P2020RDB-PC_36BIT_SDCARD_defconfig b/configs/P2020RDB-PC_36BIT_SDCARD_defconfig
index 96ea15f..35d146c 100644
--- a/configs/P2020RDB-PC_36BIT_SDCARD_defconfig
+++ b/configs/P2020RDB-PC_36BIT_SDCARD_defconfig
@@ -46,6 +46,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p2020rdb-pc_36b"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig b/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig
index d0103b2..b3e19ef 100644
--- a/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig
+++ b/configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig
@@ -47,6 +47,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p2020rdb-pc_36b"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P2020RDB-PC_36BIT_defconfig b/configs/P2020RDB-PC_36BIT_defconfig
index c99c25f..049efef 100644
--- a/configs/P2020RDB-PC_36BIT_defconfig
+++ b/configs/P2020RDB-PC_36BIT_defconfig
@@ -35,6 +35,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p2020rdb-pc_36b"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P2020RDB-PC_NAND_defconfig b/configs/P2020RDB-PC_NAND_defconfig
index ee13ac2..bab9385 100644
--- a/configs/P2020RDB-PC_NAND_defconfig
+++ b/configs/P2020RDB-PC_NAND_defconfig
@@ -49,6 +49,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p2020rdb-pc"
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P2020RDB-PC_SDCARD_defconfig b/configs/P2020RDB-PC_SDCARD_defconfig
index 7c43b95..edee886 100644
--- a/configs/P2020RDB-PC_SDCARD_defconfig
+++ b/configs/P2020RDB-PC_SDCARD_defconfig
@@ -45,6 +45,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p2020rdb-pc"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P2020RDB-PC_SPIFLASH_defconfig b/configs/P2020RDB-PC_SPIFLASH_defconfig
index cddef3e..4dc8a82 100644
--- a/configs/P2020RDB-PC_SPIFLASH_defconfig
+++ b/configs/P2020RDB-PC_SPIFLASH_defconfig
@@ -46,6 +46,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p2020rdb-pc"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
diff --git a/configs/P2020RDB-PC_defconfig b/configs/P2020RDB-PC_defconfig
index a0a69ca..20763c6 100644
--- a/configs/P2020RDB-PC_defconfig
+++ b/configs/P2020RDB-PC_defconfig
@@ -34,6 +34,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p2020rdb-pc"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
-- 
2.9.5

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

* [U-Boot] [PATCH 07/29] dts: P2041: Add ESPI DT nodes
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (5 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 06/29] configs: P2020RDB: Enable ESPI driver Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 08/29] dts: P2041RDB: Add ESPI slave device node Xiaowei Bao
                   ` (21 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI controller DT node for P2041.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/p2041.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/powerpc/dts/p2041.dtsi b/arch/powerpc/dts/p2041.dtsi
index 55f7adc..0de3c79 100644
--- a/arch/powerpc/dts/p2041.dtsi
+++ b/arch/powerpc/dts/p2041.dtsi
@@ -59,6 +59,15 @@
 			device_type = "open-pic";
 			clock-frequency = <0x0>;
 		};
+
+		espi0: spi at 110000 {
+			compatible = "fsl,mpc8536-espi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x110000 0x1000>;
+			fsl,espi-num-chipselects = <4>;
+			status = "disabled";
+		};
 	};
 
 	pcie at ffe200000 {
-- 
2.9.5

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

* [U-Boot] [PATCH 08/29] dts: P2041RDB: Add ESPI slave device node
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (6 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 07/29] dts: P2041: Add ESPI DT nodes Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 09/29] configs: P2041RDB: Enable ESPI driver Xiaowei Bao
                   ` (20 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI slave node for P2041RDB.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/p2041rdb.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/powerpc/dts/p2041rdb.dts b/arch/powerpc/dts/p2041rdb.dts
index 6e9d9c0..505c74d 100644
--- a/arch/powerpc/dts/p2041rdb.dts
+++ b/arch/powerpc/dts/p2041rdb.dts
@@ -15,4 +15,18 @@
 	#size-cells = <2>;
 	interrupt-parent = <&mpic>;
 
+	aliases {
+		spi0 = &espi0;
+	};
+};
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
 };
-- 
2.9.5

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

* [U-Boot] [PATCH 09/29] configs: P2041RDB: Enable ESPI driver
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (7 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 08/29] dts: P2041RDB: Add ESPI slave device node Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 10/29] dts: P3041: Add ESPI DT nodes Xiaowei Bao
                   ` (19 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Enable the DM ESPI driver in P2041RDB defconfig.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 configs/P2041RDB_NAND_defconfig     | 2 ++
 configs/P2041RDB_SDCARD_defconfig   | 2 ++
 configs/P2041RDB_SPIFLASH_defconfig | 2 ++
 configs/P2041RDB_defconfig          | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/configs/P2041RDB_NAND_defconfig b/configs/P2041RDB_NAND_defconfig
index 7ed8abf..adbdfce 100644
--- a/configs/P2041RDB_NAND_defconfig
+++ b/configs/P2041RDB_NAND_defconfig
@@ -28,6 +28,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/P2041RDB_SDCARD_defconfig b/configs/P2041RDB_SDCARD_defconfig
index 4d64d08..31c7e8e 100644
--- a/configs/P2041RDB_SDCARD_defconfig
+++ b/configs/P2041RDB_SDCARD_defconfig
@@ -28,6 +28,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/P2041RDB_SPIFLASH_defconfig b/configs/P2041RDB_SPIFLASH_defconfig
index ec22c95..23a4d57 100644
--- a/configs/P2041RDB_SPIFLASH_defconfig
+++ b/configs/P2041RDB_SPIFLASH_defconfig
@@ -28,6 +28,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/P2041RDB_defconfig b/configs/P2041RDB_defconfig
index e757330..8a02296 100644
--- a/configs/P2041RDB_defconfig
+++ b/configs/P2041RDB_defconfig
@@ -27,6 +27,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
-- 
2.9.5

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

* [U-Boot] [PATCH 10/29] dts: P3041: Add ESPI DT nodes
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (8 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 09/29] configs: P2041RDB: Enable ESPI driver Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 11/29] dts: P3041DS: Add ESPI slave device node Xiaowei Bao
                   ` (18 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI controller DT node for P3041.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/p3041.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/powerpc/dts/p3041.dtsi b/arch/powerpc/dts/p3041.dtsi
index 197896d..352d7d4 100644
--- a/arch/powerpc/dts/p3041.dtsi
+++ b/arch/powerpc/dts/p3041.dtsi
@@ -59,6 +59,15 @@
 			device_type = "open-pic";
 			clock-frequency = <0x0>;
 		};
+
+		espi0: spi at 110000 {
+			compatible = "fsl,mpc8536-espi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x110000 0x1000>;
+			fsl,espi-num-chipselects = <4>;
+			status = "disabled";
+		};
 	};
 
 	pcie at ffe200000 {
-- 
2.9.5

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

* [U-Boot] [PATCH 11/29] dts: P3041DS: Add ESPI slave device node
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (9 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 10/29] dts: P3041: Add ESPI DT nodes Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 12/29] configs: P3041DS: Enable ESPI driver Xiaowei Bao
                   ` (17 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI slave node for P3041DS.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/p3041ds.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/powerpc/dts/p3041ds.dts b/arch/powerpc/dts/p3041ds.dts
index c30bf7a..5d1bac2 100644
--- a/arch/powerpc/dts/p3041ds.dts
+++ b/arch/powerpc/dts/p3041ds.dts
@@ -15,4 +15,18 @@
 	#size-cells = <2>;
 	interrupt-parent = <&mpic>;
 
+	aliases {
+		spi0 = &espi0;
+	};
+};
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
 };
-- 
2.9.5

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

* [U-Boot] [PATCH 12/29] configs: P3041DS: Enable ESPI driver
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (10 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 11/29] dts: P3041DS: Add ESPI slave device node Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 13/29] dts: P4080: Add ESPI DT nodes Xiaowei Bao
                   ` (16 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Enable the DM ESPI driver in P3041DS defconfig.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 configs/P3041DS_NAND_defconfig     | 2 ++
 configs/P3041DS_SDCARD_defconfig   | 2 ++
 configs/P3041DS_SPIFLASH_defconfig | 2 ++
 configs/P3041DS_defconfig          | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/configs/P3041DS_NAND_defconfig b/configs/P3041DS_NAND_defconfig
index 0bdd2ab..d587a9c 100644
--- a/configs/P3041DS_NAND_defconfig
+++ b/configs/P3041DS_NAND_defconfig
@@ -28,6 +28,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p3041ds"
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/P3041DS_SDCARD_defconfig b/configs/P3041DS_SDCARD_defconfig
index 4d76efd..98267fb 100644
--- a/configs/P3041DS_SDCARD_defconfig
+++ b/configs/P3041DS_SDCARD_defconfig
@@ -28,6 +28,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p3041ds"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/P3041DS_SPIFLASH_defconfig b/configs/P3041DS_SPIFLASH_defconfig
index 8b5e13d..8b2f973 100644
--- a/configs/P3041DS_SPIFLASH_defconfig
+++ b/configs/P3041DS_SPIFLASH_defconfig
@@ -28,6 +28,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p3041ds"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/P3041DS_defconfig b/configs/P3041DS_defconfig
index 96297df..af4a6f5 100644
--- a/configs/P3041DS_defconfig
+++ b/configs/P3041DS_defconfig
@@ -27,6 +27,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p3041ds"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
-- 
2.9.5

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

* [U-Boot] [PATCH 13/29] dts: P4080: Add ESPI DT nodes
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (11 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 12/29] configs: P3041DS: Enable ESPI driver Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 14/29] dts: P4080DS: Add ESPI slave device node Xiaowei Bao
                   ` (15 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI controller DT node for P4080.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/p4080.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/powerpc/dts/p4080.dtsi b/arch/powerpc/dts/p4080.dtsi
index ab76680..2c27897 100644
--- a/arch/powerpc/dts/p4080.dtsi
+++ b/arch/powerpc/dts/p4080.dtsi
@@ -79,6 +79,15 @@
 			device_type = "open-pic";
 			clock-frequency = <0x0>;
 		};
+
+		espi0: spi at 110000 {
+			compatible = "fsl,mpc8536-espi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x110000 0x1000>;
+			fsl,espi-num-chipselects = <4>;
+			status = "disabled";
+		};
 	};
 
 	pcie at ffe200000 {
-- 
2.9.5

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

* [U-Boot] [PATCH 14/29] dts: P4080DS: Add ESPI slave device node
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (12 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 13/29] dts: P4080: Add ESPI DT nodes Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 15/29] configs: P4080DS: Enable ESPI driver Xiaowei Bao
                   ` (14 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI slave node for P4080DS.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/p4080ds.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/powerpc/dts/p4080ds.dts b/arch/powerpc/dts/p4080ds.dts
index 15a0f66..62a0f98 100644
--- a/arch/powerpc/dts/p4080ds.dts
+++ b/arch/powerpc/dts/p4080ds.dts
@@ -15,4 +15,18 @@
 	#size-cells = <2>;
 	interrupt-parent = <&mpic>;
 
+	aliases {
+		spi0 = &espi0;
+	};
+};
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
 };
-- 
2.9.5

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

* [U-Boot] [PATCH 15/29] configs: P4080DS: Enable ESPI driver
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (13 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 14/29] dts: P4080DS: Add ESPI slave device node Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 16/29] dts: P5040: Add ESPI DT nodes Xiaowei Bao
                   ` (13 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Enable the DM ESPI driver in P4080DS defconfig.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 configs/P4080DS_SDCARD_defconfig   | 2 ++
 configs/P4080DS_SPIFLASH_defconfig | 2 ++
 configs/P4080DS_defconfig          | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/configs/P4080DS_SDCARD_defconfig b/configs/P4080DS_SDCARD_defconfig
index b412e4f..fb52aea 100644
--- a/configs/P4080DS_SDCARD_defconfig
+++ b/configs/P4080DS_SDCARD_defconfig
@@ -28,6 +28,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p4080ds"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/P4080DS_SPIFLASH_defconfig b/configs/P4080DS_SPIFLASH_defconfig
index e5e0eb2..f56cbd5 100644
--- a/configs/P4080DS_SPIFLASH_defconfig
+++ b/configs/P4080DS_SPIFLASH_defconfig
@@ -28,6 +28,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p4080ds"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/P4080DS_defconfig b/configs/P4080DS_defconfig
index a9a90e4..053a66f 100644
--- a/configs/P4080DS_defconfig
+++ b/configs/P4080DS_defconfig
@@ -27,6 +27,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p4080ds"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
-- 
2.9.5

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

* [U-Boot] [PATCH 16/29] dts: P5040: Add ESPI DT nodes
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (14 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 15/29] configs: P4080DS: Enable ESPI driver Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 17/29] dts: P5040DS: Add ESPI slave device node Xiaowei Bao
                   ` (12 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI controller DT node for P5040.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/p5040.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/powerpc/dts/p5040.dtsi b/arch/powerpc/dts/p5040.dtsi
index 8ab123d..1facd9b 100644
--- a/arch/powerpc/dts/p5040.dtsi
+++ b/arch/powerpc/dts/p5040.dtsi
@@ -58,6 +58,15 @@
 			device_type = "open-pic";
 			clock-frequency = <0x0>;
 		};
+
+		espi0: spi at 110000 {
+			compatible = "fsl,mpc8536-espi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x110000 0x1000>;
+			fsl,espi-num-chipselects = <4>;
+			status = "disabled";
+		};
 	};
 
 	pcie at ffe200000 {
-- 
2.9.5

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

* [U-Boot] [PATCH 17/29] dts: P5040DS: Add ESPI slave device node
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (15 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 16/29] dts: P5040: Add ESPI DT nodes Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 18/29] configs: P5040DS: Enable ESPI driver Xiaowei Bao
                   ` (11 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI slave node for P5040DS.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/p5040ds.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/powerpc/dts/p5040ds.dts b/arch/powerpc/dts/p5040ds.dts
index 723d31d..0e1308a 100644
--- a/arch/powerpc/dts/p5040ds.dts
+++ b/arch/powerpc/dts/p5040ds.dts
@@ -15,4 +15,18 @@
 	#size-cells = <2>;
 	interrupt-parent = <&mpic>;
 
+	aliases {
+		spi0 = &espi0;
+	};
+};
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
 };
-- 
2.9.5

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

* [U-Boot] [PATCH 18/29] configs: P5040DS: Enable ESPI driver
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (16 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 17/29] dts: P5040DS: Add ESPI slave device node Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 19/29] dts: T102x: Add ESPI DT nodes Xiaowei Bao
                   ` (10 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Enable the DM ESPI driver in P5040DS defconfig.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 configs/P5040DS_NAND_defconfig     | 2 ++
 configs/P5040DS_SDCARD_defconfig   | 2 ++
 configs/P5040DS_SPIFLASH_defconfig | 2 ++
 configs/P5040DS_defconfig          | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/configs/P5040DS_NAND_defconfig b/configs/P5040DS_NAND_defconfig
index 47a230c..7c5cede 100644
--- a/configs/P5040DS_NAND_defconfig
+++ b/configs/P5040DS_NAND_defconfig
@@ -29,6 +29,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p5040ds"
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/P5040DS_SDCARD_defconfig b/configs/P5040DS_SDCARD_defconfig
index 719c8b4..a1737f8 100644
--- a/configs/P5040DS_SDCARD_defconfig
+++ b/configs/P5040DS_SDCARD_defconfig
@@ -29,6 +29,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p5040ds"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/P5040DS_SPIFLASH_defconfig b/configs/P5040DS_SPIFLASH_defconfig
index 3912dc9..c796880 100644
--- a/configs/P5040DS_SPIFLASH_defconfig
+++ b/configs/P5040DS_SPIFLASH_defconfig
@@ -29,6 +29,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p5040ds"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/P5040DS_defconfig b/configs/P5040DS_defconfig
index f922521..4b37b00 100644
--- a/configs/P5040DS_defconfig
+++ b/configs/P5040DS_defconfig
@@ -28,6 +28,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="p5040ds"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
-- 
2.9.5

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

* [U-Boot] [PATCH 19/29] dts: T102x: Add ESPI DT nodes
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (17 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 18/29] configs: P5040DS: Enable ESPI driver Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 20/29] dts: T1024RDB: Add ESPI slave device node Xiaowei Bao
                   ` (9 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI controller DT node for T102x.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/t102x.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/powerpc/dts/t102x.dtsi b/arch/powerpc/dts/t102x.dtsi
index c49fd21..8f339f6 100644
--- a/arch/powerpc/dts/t102x.dtsi
+++ b/arch/powerpc/dts/t102x.dtsi
@@ -48,6 +48,15 @@
 			device_type = "open-pic";
 			clock-frequency = <0x0>;
 		};
+
+		espi0: spi at 110000 {
+			compatible = "fsl,mpc8536-espi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x110000 0x1000>;
+			fsl,espi-num-chipselects = <4>;
+			status = "disabled";
+		};
 	};
 
 	pcie at ffe240000 {
-- 
2.9.5

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

* [U-Boot] [PATCH 20/29] dts: T1024RDB: Add ESPI slave device node
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (18 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 19/29] dts: T102x: Add ESPI DT nodes Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 21/29] configs: T1024RDB: Enable ESPI driver Xiaowei Bao
                   ` (8 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI slave node for T1024RDB.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/t1024rdb.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/powerpc/dts/t1024rdb.dts b/arch/powerpc/dts/t1024rdb.dts
index 19a6652..5a45b1b 100644
--- a/arch/powerpc/dts/t1024rdb.dts
+++ b/arch/powerpc/dts/t1024rdb.dts
@@ -14,4 +14,19 @@
 	#address-cells = <2>;
 	#size-cells = <2>;
 	interrupt-parent = <&mpic>;
+
+	aliases {
+		spi0 = &espi0;
+	};
+};
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
 };
-- 
2.9.5

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

* [U-Boot] [PATCH 21/29] configs: T1024RDB: Enable ESPI driver
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (19 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 20/29] dts: T1024RDB: Add ESPI slave device node Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 22/29] dts: T104x: Add ESPI DT nodes Xiaowei Bao
                   ` (7 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Enable the DM ESPI driver in T1024RDB defconfig.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 configs/T1024RDB_NAND_defconfig     | 2 ++
 configs/T1024RDB_SDCARD_defconfig   | 2 ++
 configs/T1024RDB_SPIFLASH_defconfig | 2 ++
 configs/T1024RDB_defconfig          | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/configs/T1024RDB_NAND_defconfig b/configs/T1024RDB_NAND_defconfig
index af65615..ddf941e 100644
--- a/configs/T1024RDB_NAND_defconfig
+++ b/configs/T1024RDB_NAND_defconfig
@@ -49,6 +49,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t1024rdb"
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_SYS_FSL_DDR3=y
 CONFIG_FSL_ESDHC=y
diff --git a/configs/T1024RDB_SDCARD_defconfig b/configs/T1024RDB_SDCARD_defconfig
index 43817be..6ce7871 100644
--- a/configs/T1024RDB_SDCARD_defconfig
+++ b/configs/T1024RDB_SDCARD_defconfig
@@ -47,6 +47,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t1024rdb"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_SYS_FSL_DDR3=y
 CONFIG_FSL_ESDHC=y
diff --git a/configs/T1024RDB_SPIFLASH_defconfig b/configs/T1024RDB_SPIFLASH_defconfig
index 9ffd5d6..e3f4a53 100644
--- a/configs/T1024RDB_SPIFLASH_defconfig
+++ b/configs/T1024RDB_SPIFLASH_defconfig
@@ -48,6 +48,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t1024rdb"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_SYS_FSL_DDR3=y
 CONFIG_FSL_ESDHC=y
diff --git a/configs/T1024RDB_defconfig b/configs/T1024RDB_defconfig
index 08a6225..ea76b7c 100644
--- a/configs/T1024RDB_defconfig
+++ b/configs/T1024RDB_defconfig
@@ -34,6 +34,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t1024rdb"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_SYS_FSL_DDR3=y
 CONFIG_FSL_ESDHC=y
-- 
2.9.5

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

* [U-Boot] [PATCH 22/29] dts: T104x: Add ESPI DT nodes
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (20 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 21/29] configs: T1024RDB: Enable ESPI driver Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 23/29] dts: T1042D4RDB: Add ESPI slave device node Xiaowei Bao
                   ` (6 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI controller DT node for T104x.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/t104x.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/powerpc/dts/t104x.dtsi b/arch/powerpc/dts/t104x.dtsi
index 5998967..4fd3601 100644
--- a/arch/powerpc/dts/t104x.dtsi
+++ b/arch/powerpc/dts/t104x.dtsi
@@ -58,6 +58,15 @@
 			device_type = "open-pic";
 			clock-frequency = <0x0>;
 		};
+
+		espi0: spi at 110000 {
+			compatible = "fsl,mpc8536-espi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x110000 0x1000>;
+			fsl,espi-num-chipselects = <4>;
+			status = "disabled";
+		};
 	};
 
 	pcie at ffe240000 {
-- 
2.9.5

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

* [U-Boot] [PATCH 23/29] dts: T1042D4RDB: Add ESPI slave device node
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (21 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 22/29] dts: T104x: Add ESPI DT nodes Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 24/29] configs: T1042D4RDB: Enable ESPI driver Xiaowei Bao
                   ` (5 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI slave node for T1042D4RDB.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/t1042d4rdb.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/powerpc/dts/t1042d4rdb.dts b/arch/powerpc/dts/t1042d4rdb.dts
index 16a8ed4..3584c06 100644
--- a/arch/powerpc/dts/t1042d4rdb.dts
+++ b/arch/powerpc/dts/t1042d4rdb.dts
@@ -14,4 +14,19 @@
 	#address-cells = <2>;
 	#size-cells = <2>;
 	interrupt-parent = <&mpic>;
+
+	aliases {
+		spi0 = &espi0;
+	};
+};
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
 };
-- 
2.9.5

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

* [U-Boot] [PATCH 24/29] configs: T1042D4RDB: Enable ESPI driver
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (22 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 23/29] dts: T1042D4RDB: Add ESPI slave device node Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 25/29] dts: T2080RDB: Add ESPI slave device node Xiaowei Bao
                   ` (4 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Enable the DM ESPI driver in T1042D4RDB defconfig.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 configs/T1042D4RDB_NAND_defconfig     | 2 ++
 configs/T1042D4RDB_SDCARD_defconfig   | 2 ++
 configs/T1042D4RDB_SPIFLASH_defconfig | 2 ++
 configs/T1042D4RDB_defconfig          | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/configs/T1042D4RDB_NAND_defconfig b/configs/T1042D4RDB_NAND_defconfig
index 2fcd9e1..8547757 100644
--- a/configs/T1042D4RDB_NAND_defconfig
+++ b/configs/T1042D4RDB_NAND_defconfig
@@ -48,6 +48,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t1042d4rdb"
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/T1042D4RDB_SDCARD_defconfig b/configs/T1042D4RDB_SDCARD_defconfig
index 04372fd..bed1e42 100644
--- a/configs/T1042D4RDB_SDCARD_defconfig
+++ b/configs/T1042D4RDB_SDCARD_defconfig
@@ -46,6 +46,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t1042d4rdb"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/T1042D4RDB_SPIFLASH_defconfig b/configs/T1042D4RDB_SPIFLASH_defconfig
index 2c869cd..a654462 100644
--- a/configs/T1042D4RDB_SPIFLASH_defconfig
+++ b/configs/T1042D4RDB_SPIFLASH_defconfig
@@ -47,6 +47,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t1042d4rdb"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/T1042D4RDB_defconfig b/configs/T1042D4RDB_defconfig
index 5d8a25f..7085c99 100644
--- a/configs/T1042D4RDB_defconfig
+++ b/configs/T1042D4RDB_defconfig
@@ -33,6 +33,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t1042d4rdb"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
-- 
2.9.5

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

* [U-Boot] [PATCH 25/29] dts: T2080RDB: Add ESPI slave device node
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (23 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 24/29] configs: T1042D4RDB: Enable ESPI driver Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 26/29] configs: T2080RDB: Enable ESPI driver Xiaowei Bao
                   ` (3 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI slave node for T2080RDB.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/t2080rdb.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/powerpc/dts/t2080rdb.dts b/arch/powerpc/dts/t2080rdb.dts
index 49c1765..34ec6a7 100644
--- a/arch/powerpc/dts/t2080rdb.dts
+++ b/arch/powerpc/dts/t2080rdb.dts
@@ -14,4 +14,19 @@
 	#address-cells = <2>;
 	#size-cells = <2>;
 	interrupt-parent = <&mpic>;
+
+	aliases {
+		spi0 = &espi0;
+	};
+};
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor"; /* 16MB */
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
 };
-- 
2.9.5

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

* [U-Boot] [PATCH 26/29] configs: T2080RDB: Enable ESPI driver
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (24 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 25/29] dts: T2080RDB: Add ESPI slave device node Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 27/29] dts: T4240: Add ESPI DT nodes Xiaowei Bao
                   ` (2 subsequent siblings)
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Enable the DM ESPI driver in T2080RDB defconfig.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 configs/T2080RDB_NAND_defconfig     | 2 ++
 configs/T2080RDB_SDCARD_defconfig   | 2 ++
 configs/T2080RDB_SPIFLASH_defconfig | 2 ++
 configs/T2080RDB_defconfig          | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/configs/T2080RDB_NAND_defconfig b/configs/T2080RDB_NAND_defconfig
index 692d01c..b09722e 100644
--- a/configs/T2080RDB_NAND_defconfig
+++ b/configs/T2080RDB_NAND_defconfig
@@ -46,6 +46,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t2080rdb"
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/T2080RDB_SDCARD_defconfig b/configs/T2080RDB_SDCARD_defconfig
index 247cc31..d35412d 100644
--- a/configs/T2080RDB_SDCARD_defconfig
+++ b/configs/T2080RDB_SDCARD_defconfig
@@ -44,6 +44,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t2080rdb"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/T2080RDB_SPIFLASH_defconfig b/configs/T2080RDB_SPIFLASH_defconfig
index 1370e16..bb72f18 100644
--- a/configs/T2080RDB_SPIFLASH_defconfig
+++ b/configs/T2080RDB_SPIFLASH_defconfig
@@ -45,6 +45,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t2080rdb"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/T2080RDB_defconfig b/configs/T2080RDB_defconfig
index bc4a026..04e3cf3 100644
--- a/configs/T2080RDB_defconfig
+++ b/configs/T2080RDB_defconfig
@@ -31,6 +31,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t2080rdb"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
-- 
2.9.5

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

* [U-Boot] [PATCH 27/29] dts: T4240: Add ESPI DT nodes
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (25 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 26/29] configs: T2080RDB: Enable ESPI driver Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 28/29] dts: T4240RDB: Add ESPI slave device node Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 29/29] configs: T4240RDB: Enable ESPI driver Xiaowei Bao
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI controller DT node for T4240.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/t4240.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/powerpc/dts/t4240.dtsi b/arch/powerpc/dts/t4240.dtsi
index fc34974..1158a92 100644
--- a/arch/powerpc/dts/t4240.dtsi
+++ b/arch/powerpc/dts/t4240.dtsi
@@ -98,6 +98,15 @@
 			device_type = "open-pic";
 			clock-frequency = <0x0>;
 		};
+
+		espi0: spi at 110000 {
+			compatible = "fsl,mpc8536-espi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x110000 0x1000>;
+			fsl,espi-num-chipselects = <4>;
+			status = "disabled";
+		};
 	};
 
 	pcie at ffe240000 {
-- 
2.9.5

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

* [U-Boot] [PATCH 28/29] dts: T4240RDB: Add ESPI slave device node
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (26 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 27/29] dts: T4240: Add ESPI DT nodes Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  2019-10-26 11:24 ` [U-Boot] [PATCH 29/29] configs: T4240RDB: Enable ESPI driver Xiaowei Bao
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Add ESPI slave node for T4240RDB.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 arch/powerpc/dts/t4240rdb.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/powerpc/dts/t4240rdb.dts b/arch/powerpc/dts/t4240rdb.dts
index f67d7ce..635065a 100644
--- a/arch/powerpc/dts/t4240rdb.dts
+++ b/arch/powerpc/dts/t4240rdb.dts
@@ -14,4 +14,19 @@
 	#address-cells = <2>;
 	#size-cells = <2>;
 	interrupt-parent = <&mpic>;
+
+	aliases {
+		spi0 = &espi0;
+	};
+};
+
+&espi0 {
+	status = "okay";
+	flash at 0 {
+		compatible = "jedec,spi-nor";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		reg = <0>;
+		spi-max-frequency = <10000000>; /* input clock */
+	};
 };
-- 
2.9.5

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

* [U-Boot] [PATCH 29/29] configs: T4240RDB: Enable ESPI driver
  2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
                   ` (27 preceding siblings ...)
  2019-10-26 11:24 ` [U-Boot] [PATCH 28/29] dts: T4240RDB: Add ESPI slave device node Xiaowei Bao
@ 2019-10-26 11:24 ` Xiaowei Bao
  28 siblings, 0 replies; 31+ messages in thread
From: Xiaowei Bao @ 2019-10-26 11:24 UTC (permalink / raw)
  To: u-boot

Enable the DM ESPI driver in T4240RDB defconfig.

Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
---
 configs/T4240RDB_SDCARD_defconfig | 2 ++
 configs/T4240RDB_defconfig        | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/configs/T4240RDB_SDCARD_defconfig b/configs/T4240RDB_SDCARD_defconfig
index df308d4..828e433 100644
--- a/configs/T4240RDB_SDCARD_defconfig
+++ b/configs/T4240RDB_SDCARD_defconfig
@@ -39,6 +39,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t4240rdb"
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
diff --git a/configs/T4240RDB_defconfig b/configs/T4240RDB_defconfig
index 9cf2c6a..e6aa953 100644
--- a/configs/T4240RDB_defconfig
+++ b/configs/T4240RDB_defconfig
@@ -26,6 +26,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="t4240rdb"
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_DM=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_FSL_CAAM=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD_NOR_FLASH=y
-- 
2.9.5

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

* [PATCH 01/29] dts: P1020: Add ESPI DT nodes
  2019-10-26 11:24 ` [U-Boot] [PATCH 01/29] dts: P1020: Add ESPI DT nodes Xiaowei Bao
@ 2020-05-12  9:03   ` Priyanka Jain
  0 siblings, 0 replies; 31+ messages in thread
From: Priyanka Jain @ 2020-05-12  9:03 UTC (permalink / raw)
  To: u-boot

>-----Original Message-----
>From: Xiaowei Bao <xiaowei.bao@nxp.com>
>Sent: Saturday, October 26, 2019 4:55 PM
>To: wd at denx.de; Priyanka Jain <priyanka.jain@nxp.com>; Shengzhou Liu
><shengzhou.liu@nxp.com>; u-boot at lists.denx.de; patrick.delaunay at st.com
>Cc: Xiaowei Bao <xiaowei.bao@nxp.com>
>Subject: [PATCH 01/29] dts: P1020: Add ESPI DT nodes
>
>Add ESPI controller DT node for P1020.
>
>Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com>
>---
> arch/powerpc/dts/p1020-post.dtsi | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
>diff --git a/arch/powerpc/dts/p1020-post.dtsi b/arch/powerpc/dts/p1020-
>post.dtsi
>index 1e5e678..efb104f 100644
>--- a/arch/powerpc/dts/p1020-post.dtsi
>+++ b/arch/powerpc/dts/p1020-post.dtsi
>@@ -24,6 +24,15 @@
> 		single-cpu-affinity;
> 		last-interrupt-source = <255>;
> 	};
>+
>+	espi0: spi at 7000 {
>+		compatible = "fsl,mpc8536-espi";
>+		#address-cells = <1>;
>+		#size-cells = <0>;
>+		reg = <0x7000 0x1000>;
>+		fsl,espi-num-chipselects = <4>;
>+		status = "disabled";
>+	};
> };
>
> /* PCIe controller base address 0x9000 */
>--
>2.9.5
There has been many changes in SPI driver now. 
Please help to rebase and resend the series.

Regards
Priyanka

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

end of thread, other threads:[~2020-05-12  9:03 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-26 11:24 [U-Boot] [PATCH 00/29] Add the SPI DM support for PPC Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 01/29] dts: P1020: Add ESPI DT nodes Xiaowei Bao
2020-05-12  9:03   ` Priyanka Jain
2019-10-26 11:24 ` [U-Boot] [PATCH 02/29] dts: P1020RDB: Add ESPI slave device node Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 03/29] configs: P1020RDB: Enable ESPI driver Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 04/29] dts: P2020: Add ESPI DT nodes Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 05/29] dts: P2020RDB: Add ESPI slave device node Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 06/29] configs: P2020RDB: Enable ESPI driver Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 07/29] dts: P2041: Add ESPI DT nodes Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 08/29] dts: P2041RDB: Add ESPI slave device node Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 09/29] configs: P2041RDB: Enable ESPI driver Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 10/29] dts: P3041: Add ESPI DT nodes Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 11/29] dts: P3041DS: Add ESPI slave device node Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 12/29] configs: P3041DS: Enable ESPI driver Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 13/29] dts: P4080: Add ESPI DT nodes Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 14/29] dts: P4080DS: Add ESPI slave device node Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 15/29] configs: P4080DS: Enable ESPI driver Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 16/29] dts: P5040: Add ESPI DT nodes Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 17/29] dts: P5040DS: Add ESPI slave device node Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 18/29] configs: P5040DS: Enable ESPI driver Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 19/29] dts: T102x: Add ESPI DT nodes Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 20/29] dts: T1024RDB: Add ESPI slave device node Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 21/29] configs: T1024RDB: Enable ESPI driver Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 22/29] dts: T104x: Add ESPI DT nodes Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 23/29] dts: T1042D4RDB: Add ESPI slave device node Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 24/29] configs: T1042D4RDB: Enable ESPI driver Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 25/29] dts: T2080RDB: Add ESPI slave device node Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 26/29] configs: T2080RDB: Enable ESPI driver Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 27/29] dts: T4240: Add ESPI DT nodes Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 28/29] dts: T4240RDB: Add ESPI slave device node Xiaowei Bao
2019-10-26 11:24 ` [U-Boot] [PATCH 29/29] configs: T4240RDB: Enable ESPI driver Xiaowei Bao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.