]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk3568-rock-3a: Fix SPI Flash alias
authorJonas Karlman <jonas@kwiboo.se>
Fri, 28 Jul 2023 12:05:40 +0000 (12:05 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 31 Jul 2023 09:34:43 +0000 (17:34 +0800)
The commit 64f79f88a751 ("rockchip: rk3568-rock-3a: Enable boot from SPI
NOR flash") enabled SPI flash support by overriding the spi0 alias.

Correct this by adding a new spi4 alias in rk356x-u-boot.dtsi and
SF_DEFAULT_BUS=4 and SPL_DM_SEQ_ALIAS=y in defconfig. Also enabled
support for parsing and auto discovery of parameters, SFDP.

Fixes: 64f79f88a751 ("rockchip: rk3568-rock-3a: Enable boot from SPI NOR flash")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
arch/arm/dts/rk356x-u-boot.dtsi
configs/rock-3a-rk3568_defconfig

index 45e06a91b862d1aaf04d4d4154b8d65137390212..a36a329f59c5243ce61dbf6c3b6995ac1dfe0981 100644 (file)
@@ -7,10 +7,6 @@
 #include "rk356x-u-boot.dtsi"
 
 / {
-       aliases {
-               spi0 = &sfc;
-       };
-
        chosen {
                stdout-path = &uart2;
        };
index 5644f78ec7745cbeb1fbf34dd1fd66cbeb558f0a..d21b18205220391aab3fabc0b2e406485204fd52 100644 (file)
@@ -9,6 +9,7 @@
        aliases {
                mmc0 = &sdhci;
                mmc1 = &sdmmc0;
+               spi4 = &sfc;
        };
 
        chosen {
index 1e8256e6025965c866dbd7e84577d4432deeec48..44ff054df66501b8c40a7d137bd67a9f5b51f2ca 100644 (file)
@@ -57,6 +57,7 @@ CONFIG_CMD_REGULATOR=y
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_LIVE=y
 CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
+CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_SPL_REGMAP=y
 CONFIG_SPL_SYSCON=y
 CONFIG_SCSI_AHCI=y
@@ -71,6 +72,8 @@ CONFIG_MMC_DW_ROCKCHIP=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_MMC_SDHCI_ROCKCHIP=y
+CONFIG_SF_DEFAULT_BUS=4
+CONFIG_SPI_FLASH_SFDP_SUPPORT=y
 CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SPI_FLASH_XTX=y
 CONFIG_ETH_DESIGNWARE=y