mbox series

[U-Boot,v4,0/5] dm: spi: Convert Freescale ESPI driver to driver

Message ID 20190621022202.33996-1-chuanhua.han@nxp.com
Headers show
Series dm: spi: Convert Freescale ESPI driver to driver | expand

Message

Chuanhua Han June 21, 2019, 2:21 a.m. UTC
In order to convert the Freescale ESPI driver to the driver model, there
are 5 related patches in the current patch set:

0001-spl-dm-disable-SPI-DM-flash-for-non-DM-SPL.patch
0002-dm-spi-Convert-Freescale-ESPI-driver-to-driver-model.patch
0003-powerpc-dts-t2080-add-espi-controller-node-support.patch
0004-powerpc-dts-t2080qds-add-espi-slave-nodes-support.patch
0005-configs-enable-espi-device-module-in-T2080QDS.patch

The first patch is to solve the problem that spl can't work when
spiboot, and this is required for SPI boot.

The other four patches are supported by the driver model. This patchset
already supports the full dm mode, and fsl_espi driver support both
OF_CONTROL and PLATDATA.

Chuanhua Han (5):
  spl: dm: disable SPI DM flash for non-DM SPL
  dm: spi: Convert Freescale ESPI driver to driver model
  powerpc: dts: t2080: add espi controller node support
  powerpc: dts: t2080qds: add espi slave nodes support
  configs: enable espi device module in T2080QDS

 arch/powerpc/dts/t2080.dtsi               |  10 +
 arch/powerpc/dts/t2080qds.dts             |  33 ++
 configs/T2080QDS_NAND_defconfig           |   2 +
 configs/T2080QDS_SDCARD_defconfig         |   2 +
 configs/T2080QDS_SECURE_BOOT_defconfig    |   2 +
 configs/T2080QDS_SPIFLASH_defconfig       |   2 +
 configs/T2080QDS_SRIO_PCIE_BOOT_defconfig |   2 +
 configs/T2080QDS_defconfig                |   2 +
 drivers/spi/fsl_espi.c                    | 444 ++++++++++++++++------
 include/config_uncmd_spl.h                |   1 +
 include/dm/platform_data/fsl_espi.h       |  16 +
 11 files changed, 395 insertions(+), 121 deletions(-)
 create mode 100644 include/dm/platform_data/fsl_espi.h

Comments

Prabhakar Kushwaha June 21, 2019, 4:07 a.m. UTC | #1
Hi Jagan,


> -----Original Message-----
> From: Chuanhua Han <chuanhua.han@nxp.com>
> Sent: Friday, June 21, 2019 7:52 AM
> To: wd@denx.de; Shengzhou Liu <shengzhou.liu@nxp.com>; Ruchika Gupta
> <ruchika.gupta@nxp.com>; jagan@openedev.com; sjg@chromium.org;
> Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
> Cc: u-boot@lists.denx.de; Chuanhua Han <chuanhua.han@nxp.com>
> Subject: [PATCH v4 0/5] dm: spi: Convert Freescale ESPI driver to driver
> 
> In order to convert the Freescale ESPI driver to the driver model, there are 5
> related patches in the current patch set:
> 
> 0001-spl-dm-disable-SPI-DM-flash-for-non-DM-SPL.patch
> 0002-dm-spi-Convert-Freescale-ESPI-driver-to-driver-model.patch
> 0003-powerpc-dts-t2080-add-espi-controller-node-support.patch
> 0004-powerpc-dts-t2080qds-add-espi-slave-nodes-support.patch
> 0005-configs-enable-espi-device-module-in-T2080QDS.patch
> 
> The first patch is to solve the problem that spl can't work when spiboot, and this
> is required for SPI boot.
> 
> The other four patches are supported by the driver model. This patchset already
> supports the full dm mode, and fsl_espi driver support both OF_CONTROL and
> PLATDATA.
> 
> Chuanhua Han (5):
>   spl: dm: disable SPI DM flash for non-DM SPL
>   dm: spi: Convert Freescale ESPI driver to driver model
>   powerpc: dts: t2080: add espi controller node support
>   powerpc: dts: t2080qds: add espi slave nodes support
>   configs: enable espi device module in T2080QDS
> 

Is there slight possibility of accepting this patch-series for v2019.07-RC5. 

Once this patch accepted,   All pre-requirement of PowerPC DM migration will merge in v2019.07 u-boot. 
And we can target PowerPC DM migration for next u-boot release. 

--pk
Prabhakar Kushwaha Aug. 14, 2019, 5:47 a.m. UTC | #2
Dear Jagan,

> -----Original Message-----
> From: Chuanhua Han <chuanhua.han@nxp.com>
> Sent: Friday, June 21, 2019 7:52 AM
> To: wd@denx.de; Shengzhou Liu <shengzhou.liu@nxp.com>; Ruchika Gupta
> <ruchika.gupta@nxp.com>; jagan@openedev.com; sjg@chromium.org;
> Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
> Cc: u-boot@lists.denx.de; Chuanhua Han <chuanhua.han@nxp.com>
> Subject: [PATCH v4 0/5] dm: spi: Convert Freescale ESPI driver to driver
> 
> In order to convert the Freescale ESPI driver to the driver model, there are 5
> related patches in the current patch set:
> 
> 0001-spl-dm-disable-SPI-DM-flash-for-non-DM-SPL.patch
> 0002-dm-spi-Convert-Freescale-ESPI-driver-to-driver-model.patch
> 0003-powerpc-dts-t2080-add-espi-controller-node-support.patch
> 0004-powerpc-dts-t2080qds-add-espi-slave-nodes-support.patch
> 0005-configs-enable-espi-device-module-in-T2080QDS.patch
> 
> The first patch is to solve the problem that spl can't work when spiboot, and
> this is required for SPI boot.
> 
> The other four patches are supported by the driver model. This patchset
> already supports the full dm mode, and fsl_espi driver support both
> OF_CONTROL and PLATDATA.
> 
> Chuanhua Han (5):
>   spl: dm: disable SPI DM flash for non-DM SPL
>   dm: spi: Convert Freescale ESPI driver to driver model
>   powerpc: dts: t2080: add espi controller node support
>   powerpc: dts: t2080qds: add espi slave nodes support
>   configs: enable espi device module in T2080QDS
> 

If there is no review comments, can you please pick this series via your tree
I am delegating this patch-set to you. 

--pk