[U-Boot] [PATCH] imx: imx7d-sdb: Add DM QSPI support

Ye Li ye.li at nxp.com
Wed Jun 27 13:23:05 UTC 2018


On 6/27/2018 6:33 PM, Jagan Teki wrote:
> On Wed, Jun 27, 2018 at 12:19 PM, Ye Li <ye.li at nxp.com> wrote:
>> On iMX7D SabreSD board, the QSPI has pins conflict with EPDC (default).
>> To use QSPI, users have to rework the board (de-populate R388-R391, R396-R399
>> populate R392-R395, R299, R300). So we add new DTS file and new defconfig
>> dedicated for QSPI.
>>
>> Other changes to support the DM QSPI:
>>  - Add QSPI node and alias spi0.
>>  - Modify spi4 (spi-gpio) node and add alias spi5 for it to avoid req
>>    conflict
>>  - Add EPDC node in imx7d.dtsi and disable it in imx7d-sdb-qspi.dts,
>>    to present the conflict.
>>  - Remove iomux settings of qspi in board codes which is not needed
>>    for DM driver.
>>
>> Signed-off-by: Ye Li <ye.li at nxp.com>
>> ---
>>  arch/arm/dts/Makefile                     |  3 +-
>>  arch/arm/dts/imx7d-sdb-qspi.dts           | 44 ++++++++++++++++
>>  arch/arm/dts/imx7d-sdb.dts                |  6 ++-
>>  arch/arm/dts/imx7d.dtsi                   | 12 +++++
>>  arch/arm/dts/imx7s.dtsi                   | 22 ++++++--
> 
> [snip]
> 
>> +CONFIG_CMD_DFU=y
>> +CONFIG_CMD_GPIO=y
>> +CONFIG_CMD_I2C=y
>> +CONFIG_CMD_MMC=y
>> +CONFIG_CMD_SF=y
>> +CONFIG_CMD_USB=y
>> +CONFIG_CMD_USB_MASS_STORAGE=y
>> +CONFIG_CMD_DHCP=y
>> +CONFIG_CMD_MII=y
>> +CONFIG_CMD_PING=y
>> +CONFIG_CMD_BMP=y
>> +CONFIG_CMD_CACHE=y
>> +CONFIG_CMD_PMIC=y
>> +CONFIG_CMD_REGULATOR=y
>> +CONFIG_CMD_EXT2=y
>> +CONFIG_CMD_EXT4=y
>> +CONFIG_CMD_EXT4_WRITE=y
>> +CONFIG_CMD_FAT=y
>> +CONFIG_OF_CONTROL=y
>> +CONFIG_DFU_MMC=y
>> +CONFIG_DFU_RAM=y
>> +CONFIG_DM_GPIO=y
>> +CONFIG_DM_74X164=y
>> +CONFIG_DM_I2C=y
>> +CONFIG_DM_MMC=y
>> +CONFIG_MMC_IO_VOLTAGE=y
>> +CONFIG_MMC_UHS_SUPPORT=y
>> +CONFIG_MMC_HS200_SUPPORT=y
>> +CONFIG_FSL_ESDHC=y
> 
> fyi, this will soon remove if no further update on dm- conversion [1]

It is CONFIG_FSL_ESPI in [1] not the CONFIG_FSL_ESDHC used here. Will the CONFIG_FSL_ESDHC be removed as well?

> 
>> +CONFIG_FSL_QSPI=y
> 
> Better to do full dm conversion before using, otherwise we have
> migration expire rule [2]

Ashish will do the full dm conversion for FSL_QSPI driver. Before that, we need to migrate all boards codes to use DM SPI driver to avoid break build.

Best regards,
Ye Li
> 
> [1] https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.ozlabs.org%2Fpatch%2F911785%2F&data=02%7C01%7Cye.li%40nxp.com%7C6ccd2b315cfc47a1308108d5dc195de0%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636656923865087981&sdata=8PyH66o2XHpa2vJ04FTv9keoT55uBM%2Bn2YUQwCmvBJ8%3D&reserved=0
> [2] doc/driver-model/MIGRATION.txt
> 



More information about the U-Boot mailing list