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

Correct this by adding spi0-spi5 aliases in rk3588s-u-boot.dtsi and
SF_DEFAULT_BUS=5 and SPL_DM_SEQ_ALIAS=y in defconfig. Also enabled
support for parsing and auto discovery of parameters, SFDP.

Fixes: fd6e425be243 ("rockchip: rk3588-rock-5b: 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/rk3588-rock-5b-u-boot.dtsi
arch/arm/dts/rk3588s-u-boot.dtsi
configs/rock5b-rk3588_defconfig

index 5a3292699640ad308baa6bafb36923b78feda67c..549b242be0a02d3d45c2ac8dab6ac2c801bd172e 100644 (file)
@@ -12,7 +12,6 @@
 / {
        aliases {
                mmc1 = &sdmmc;
-               spi0 = &sfc;
        };
 
        chosen {
index acb1cfe200634d87e9fd052b9c1d2330cf5a39c7..489c5edd6249662ab91af7d685d6c6380d0d9118 100644 (file)
@@ -7,6 +7,15 @@
 #include <dt-bindings/phy/phy.h>
 
 / {
+       aliases {
+               spi0 = &spi0;
+               spi1 = &spi1;
+               spi2 = &spi2;
+               spi3 = &spi3;
+               spi4 = &spi4;
+               spi5 = &sfc;
+       };
+
        dmc {
                compatible = "rockchip,rk3588-dmc";
                bootph-all;
index 3976a6c0f05ca8c249e4b5dc6a77b04e63daee45..3fa65cbf9b07fafa3f6b73a4badfae628a556444 100644 (file)
@@ -60,6 +60,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_SPL_CLK=y
@@ -73,6 +74,8 @@ CONFIG_MMC_DW_ROCKCHIP=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_MMC_SDHCI_ROCKCHIP=y
+CONFIG_SF_DEFAULT_BUS=5
+CONFIG_SPI_FLASH_SFDP_SUPPORT=y
 CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SPI_FLASH_XTX=y
 CONFIG_ETH_DESIGNWARE=y