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

Jagan Teki jagan at amarulasolutions.com
Wed Jun 27 15:45:21 UTC 2018


On Wed, Jun 27, 2018 at 6:53 PM, Ye Li <ye.li at nxp.com> wrote:
> 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?

OK, yes if not converted before v2018.09

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

Nice.


More information about the U-Boot mailing list