* [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates
@ 2024-04-22 6:28 Jonas Karlman
2024-04-22 6:28 ` [PATCH v3 01/28] clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support Jonas Karlman
` (27 more replies)
0 siblings, 28 replies; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
This series include miscellaneous fixes and updates for RK356x and
RK3588 boards.
Patch 1-2 adds support for reference clocks used by USB driver.
Patch 3 fix SPI flash clk for spi-max-frequency used in new board DTs.
Patch 4-6 drops unnecessary Kconfig options.
Patch 7-10 sort and imply RNG, PHY_GIGE and BOOTSTD_FULL Kconfig options.
Patch 11-13 sort and update use of bootph properties.
Patch 14-15 enable use of pinctrl and aliases in SPL.
Patch 16-21 fixes minor issues observed with newly added boards.
Patch 22 enables options on rk3588-edgeble-neu6 boards to closer match
other RK35xx boards.
Patch 23-28 adds SPI flash and USB OTG support to the rk35xx-generic
boards.
Changes in v3:
- Split patches
- Add patch to fix SPI flash clk rate on new board DTs.
- Drop patch to use of HS200 mode on a few RK3588 boards, mmc maintainer
accepted the patch that will imply hs200 support when hs400 support is
declared
- Collect a-b and r-b tags
Changes in v2:
- Add patch to fix use of HS200 mode on a few RK3588 boards
- Follow kernel sort order for DT props
- Fix Makefile entry from .dts to .dtb
- Split rk35xx-generic related patches
- Collect r-b tags
Jonas Karlman (28):
clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support
clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support
clk: rockchip: rk356x: Fix set rate of SCLK_SFC clock
rockchip: rk35xx: Drop USB_GADGET_PRODUCT_NUM Kconfig option
rockchip: rk3588: Drop REGULATOR_PWM Kconfig option
rockchip: rk3566-anbernic-rgxx3: Remove SPL_ROCKCHIP_BACK_TO_BROM
option
rockchip: rk35xx: Sort imply statements alphabetically
rockchip: rk35xx: Enable random generator
rockchip: rk35xx: Imply support for GbE PHY
rockchip: rk356x: Imply enhanced features for standard boot
rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically
rockchip: rk356x: Update bootph props
rockchip: rk3588: Update bootph props
rockchip: rk3568-evb: Use pinctrl in SPL
rockchip: rk3588-evb: Use pinctrl and aliases in SPL
rockchip: rk3566-pinetab2: Fix reading FIT from SPI flash
rockchip: rk3588-coolpi: Add boards to documentation
rockchip: rk3588-coolpi: Fix .dtb-file entries in Makefile
rockchip: rk3588-toybrick: Use pinctrl and aliases in SPL
rockchip: rk3588-toybrick: Add .dtb-file entry in Makefile
rockchip: rk3588-turing-rk1: Use dwc3-generic driver
rockchip: rk3588-edgeble-neu6: Enable FIT checksum validation
rockchip: rk356x-generic: Fix eMMC and SD-card pinctrl
rockchip: rk356x-generic: Add support for SPI flash
rockchip: rk356x-generic: Add support for USB OTG
rockchip: rk3588-generic: Use M0 iomux for UART2
rockchip: rk3588-generic: Add support for USB OTG
rockchip: rk35xx-generic: Disable unused features
arch/arm/dts/Makefile | 5 +-
.../arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi | 6 -
arch/arm/dts/rk3566-pinetab2-u-boot.dtsi | 25 ++-
arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi | 8 +-
arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi | 4 +-
arch/arm/dts/rk3568-generic-u-boot.dtsi | 7 +
arch/arm/dts/rk3568-generic.dts | 37 ++++-
arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi | 7 +-
arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 5 +-
arch/arm/dts/rk356x-u-boot.dtsi | 150 ++++++++++--------
.../arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi | 8 +-
arch/arm/dts/rk3588-generic-u-boot.dtsi | 22 +++
arch/arm/dts/rk3588-generic.dts | 3 +-
arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi | 12 +-
.../dts/rk3588-orangepi-5-plus-u-boot.dtsi | 7 +-
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 8 +-
arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi | 6 +-
arch/arm/dts/rk3588s-coolpi-4b-u-boot.dtsi | 8 +-
arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi | 9 +-
arch/arm/dts/rk3588s-u-boot.dtsi | 126 ++++++++-------
arch/arm/mach-rockchip/Kconfig | 31 ++--
configs/anbernic-rgxx3-rk3566_defconfig | 4 -
configs/bpi-r2-pro-rk3568_defconfig | 1 -
configs/evb-rk3568_defconfig | 3 +-
configs/evb-rk3588_defconfig | 5 +-
configs/generic-rk3568_defconfig | 30 ++++
configs/generic-rk3588_defconfig | 16 ++
configs/neu6a-io-rk3588_defconfig | 8 +-
configs/neu6b-io-rk3588_defconfig | 8 +-
configs/pinetab2-rk3566_defconfig | 2 +-
configs/quartzpro64-rk3588_defconfig | 1 -
configs/rock5b-rk3588_defconfig | 2 -
configs/toybrick-rk3588_defconfig | 5 +-
configs/turing-rk1-rk3588_defconfig | 3 -
doc/board/rockchip/rockchip.rst | 2 +
drivers/clk/rockchip/clk_rk3568.c | 36 ++---
drivers/clk/rockchip/clk_rk3588.c | 6 +
37 files changed, 390 insertions(+), 236 deletions(-)
--
2.43.2
^ permalink raw reply [flat|nested] 57+ messages in thread
* [PATCH v3 01/28] clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 7:55 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 02/28] clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support Jonas Karlman
` (26 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini,
Lukasz Majewski, Sean Anderson
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
The CLK_USB3OTGx_REF clocks is used as reference clock for USB3 block.
Add simple support to get rate of CLK_USB3OTGx_REF clocks to fix
reference clock period configuration.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Acked-by: Sean Anderson <seanga2@gmail.com>
---
v3: Collect a-b tag
v2: No change
---
drivers/clk/rockchip/clk_rk3568.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/clk/rockchip/clk_rk3568.c b/drivers/clk/rockchip/clk_rk3568.c
index 57ef27dda893..999f48ea4b4e 100644
--- a/drivers/clk/rockchip/clk_rk3568.c
+++ b/drivers/clk/rockchip/clk_rk3568.c
@@ -2417,6 +2417,8 @@ static ulong rk3568_clk_get_rate(struct clk *clk)
case BCLK_EMMC:
rate = rk3568_emmc_get_bclk(priv);
break;
+ case CLK_USB3OTG0_REF:
+ case CLK_USB3OTG1_REF:
case TCLK_EMMC:
rate = OSC_HZ;
break;
@@ -2596,6 +2598,8 @@ static ulong rk3568_clk_set_rate(struct clk *clk, ulong rate)
case BCLK_EMMC:
ret = rk3568_emmc_set_bclk(priv, rate);
break;
+ case CLK_USB3OTG0_REF:
+ case CLK_USB3OTG1_REF:
case TCLK_EMMC:
ret = OSC_HZ;
break;
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 02/28] clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
2024-04-22 6:28 ` [PATCH v3 01/28] clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 7:55 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 03/28] clk: rockchip: rk356x: Fix set rate of SCLK_SFC clock Jonas Karlman
` (25 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini,
Lukasz Majewski, Sean Anderson
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
The REF_CLK_USB3OTGx clocks is used as reference clock for USB3 block.
Add simple support to get rate of REF_CLK_USB3OTGx clocks to fix
reference clock period configuration.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Acked-by: Sean Anderson <seanga2@gmail.com>
---
v3: Collect a-b tag
v2: Collect r-b tag
---
drivers/clk/rockchip/clk_rk3588.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/clk/rockchip/clk_rk3588.c b/drivers/clk/rockchip/clk_rk3588.c
index 8f33843179b0..4c611a390499 100644
--- a/drivers/clk/rockchip/clk_rk3588.c
+++ b/drivers/clk/rockchip/clk_rk3588.c
@@ -1569,6 +1569,9 @@ static ulong rk3588_clk_get_rate(struct clk *clk)
case DCLK_DECOM:
rate = rk3588_mmc_get_clk(priv, clk->id);
break;
+ case REF_CLK_USB3OTG0:
+ case REF_CLK_USB3OTG1:
+ case REF_CLK_USB3OTG2:
case TMCLK_EMMC:
case TCLK_WDT0:
rate = OSC_HZ;
@@ -1734,6 +1737,9 @@ static ulong rk3588_clk_set_rate(struct clk *clk, ulong rate)
case DCLK_DECOM:
ret = rk3588_mmc_set_clk(priv, clk->id, rate);
break;
+ case REF_CLK_USB3OTG0:
+ case REF_CLK_USB3OTG1:
+ case REF_CLK_USB3OTG2:
case TMCLK_EMMC:
case TCLK_WDT0:
ret = OSC_HZ;
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 03/28] clk: rockchip: rk356x: Fix set rate of SCLK_SFC clock
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
2024-04-22 6:28 ` [PATCH v3 01/28] clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support Jonas Karlman
2024-04-22 6:28 ` [PATCH v3 02/28] clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 7:57 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 04/28] rockchip: rk35xx: Drop USB_GADGET_PRODUCT_NUM Kconfig option Jonas Karlman
` (24 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini,
Lukasz Majewski, Sean Anderson
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
The SCLK_SFC can be set to a rate of 24, 50, 75, 100, 125 or 150 MHz.
However, clk_set_rate() will fail unless one of those exact rates are
used, and with newer and updated device tree files that contain
spi-max-frequency values that does not exactly match these rates use of
SPI flash may fail.
Fix this by using the highest possible rate that exceeds or is equal to
the requested rate.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: New patch
---
drivers/clk/rockchip/clk_rk3568.c | 32 ++++++++++++-------------------
1 file changed, 12 insertions(+), 20 deletions(-)
diff --git a/drivers/clk/rockchip/clk_rk3568.c b/drivers/clk/rockchip/clk_rk3568.c
index 999f48ea4b4e..24eeca8bf265 100644
--- a/drivers/clk/rockchip/clk_rk3568.c
+++ b/drivers/clk/rockchip/clk_rk3568.c
@@ -1527,28 +1527,20 @@ static ulong rk3568_sfc_set_clk(struct rk3568_clk_priv *priv, ulong rate)
struct rk3568_cru *cru = priv->cru;
int src_clk;
- switch (rate) {
- case OSC_HZ:
- src_clk = SCLK_SFC_SEL_24M;
- break;
- case 50 * MHz:
- src_clk = SCLK_SFC_SEL_50M;
- break;
- case 75 * MHz:
- src_clk = SCLK_SFC_SEL_75M;
- break;
- case 100 * MHz:
- src_clk = SCLK_SFC_SEL_100M;
- break;
- case 125 * MHz:
- src_clk = SCLK_SFC_SEL_125M;
- break;
- case 150 * MHz:
+ if (rate >= 150 * MHz)
src_clk = SCLK_SFC_SEL_150M;
- break;
- default:
+ else if (rate >= 125 * MHz)
+ src_clk = SCLK_SFC_SEL_125M;
+ else if (rate >= 100 * MHz)
+ src_clk = SCLK_SFC_SEL_100M;
+ else if (rate >= 75 * MHz)
+ src_clk = SCLK_SFC_SEL_75M;
+ else if (rate >= 50 * MHz)
+ src_clk = SCLK_SFC_SEL_50M;
+ else if (rate >= OSC_HZ)
+ src_clk = SCLK_SFC_SEL_24M;
+ else
return -ENOENT;
- }
rk_clrsetreg(&cru->clksel_con[28],
SCLK_SFC_SEL_MASK,
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 04/28] rockchip: rk35xx: Drop USB_GADGET_PRODUCT_NUM Kconfig option
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (2 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 03/28] clk: rockchip: rk356x: Fix set rate of SCLK_SFC clock Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 7:57 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 05/28] rockchip: rk3588: Drop REGULATOR_PWM " Jonas Karlman
` (23 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Jonas Karlman,
Eugen Hristev, Joshua Riek
Cc: Quentin Schulz, Dragan Simic, u-boot
The commit 8c19275fdb13 ("rockchip: Update the default USB Product ID
value") added default product id for all supported Rockchip SoCs.
Remove USB_GADGET_PRODUCT_NUM options that match default value from
RK35xx boards.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
---
v3: Collect r-b tag
v2: No change
---
configs/pinetab2-rk3566_defconfig | 1 -
configs/rock5b-rk3588_defconfig | 1 -
configs/turing-rk1-rk3588_defconfig | 1 -
3 files changed, 3 deletions(-)
diff --git a/configs/pinetab2-rk3566_defconfig b/configs/pinetab2-rk3566_defconfig
index bc7a77aa52fd..edeb1d89b993 100644
--- a/configs/pinetab2-rk3566_defconfig
+++ b/configs/pinetab2-rk3566_defconfig
@@ -99,7 +99,6 @@ CONFIG_USB_ETHER_ASIX=y
CONFIG_USB_ETHER_ASIX88179=y
CONFIG_USB_ETHER_RTL8152=y
CONFIG_USB_GADGET=y
-CONFIG_USB_GADGET_PRODUCT_NUM=0x350a
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_FUNCTION_ROCKUSB=y
CONFIG_ERRNO_STR=y
diff --git a/configs/rock5b-rk3588_defconfig b/configs/rock5b-rk3588_defconfig
index 58c7c44fb4f7..ac4f1ebb4c13 100644
--- a/configs/rock5b-rk3588_defconfig
+++ b/configs/rock5b-rk3588_defconfig
@@ -102,7 +102,6 @@ CONFIG_USB_ETHER_MCS7830=y
CONFIG_USB_ETHER_RTL8152=y
CONFIG_USB_ETHER_SMSC95XX=y
CONFIG_USB_GADGET=y
-CONFIG_USB_GADGET_PRODUCT_NUM=0x350b
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_FUNCTION_ROCKUSB=y
CONFIG_ERRNO_STR=y
diff --git a/configs/turing-rk1-rk3588_defconfig b/configs/turing-rk1-rk3588_defconfig
index 07f7b848529e..e18ced721789 100644
--- a/configs/turing-rk1-rk3588_defconfig
+++ b/configs/turing-rk1-rk3588_defconfig
@@ -109,7 +109,6 @@ CONFIG_USB_ETHER_MCS7830=y
CONFIG_USB_ETHER_RTL8152=y
CONFIG_USB_ETHER_SMSC95XX=y
CONFIG_USB_GADGET=y
-CONFIG_USB_GADGET_PRODUCT_NUM=0x350b
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_FUNCTION_ROCKUSB=y
CONFIG_ERRNO_STR=y
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 05/28] rockchip: rk3588: Drop REGULATOR_PWM Kconfig option
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (3 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 04/28] rockchip: rk35xx: Drop USB_GADGET_PRODUCT_NUM Kconfig option Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 7:58 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 06/28] rockchip: rk3566-anbernic-rgxx3: Remove SPL_ROCKCHIP_BACK_TO_BROM option Jonas Karlman
` (22 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Jagan Teki,
Tom Fitzhenry, Eugen Hristev, Jonas Karlman, Elon Zhang,
Joshua Riek
Cc: Quentin Schulz, Dragan Simic, u-boot
RK3588 boards do not have any pwm-regulator compatible nodes in DT, drop
the superfluous REGULATOR_PWM Kconfig options.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
---
v3: Collect r-b tag
v2: No change
---
configs/evb-rk3588_defconfig | 1 -
configs/neu6a-io-rk3588_defconfig | 1 -
configs/neu6b-io-rk3588_defconfig | 1 -
configs/quartzpro64-rk3588_defconfig | 1 -
configs/rock5b-rk3588_defconfig | 1 -
configs/toybrick-rk3588_defconfig | 1 -
configs/turing-rk1-rk3588_defconfig | 1 -
7 files changed, 7 deletions(-)
diff --git a/configs/evb-rk3588_defconfig b/configs/evb-rk3588_defconfig
index c8db04c076ef..68ecbc54b807 100644
--- a/configs/evb-rk3588_defconfig
+++ b/configs/evb-rk3588_defconfig
@@ -52,7 +52,6 @@ CONFIG_DWC_ETH_QOS_ROCKCHIP=y
CONFIG_PHY_ROCKCHIP_INNO_USB2=y
CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
CONFIG_PHY_ROCKCHIP_USBDP=y
-CONFIG_REGULATOR_PWM=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_SPL_RAM=y
CONFIG_BAUDRATE=1500000
diff --git a/configs/neu6a-io-rk3588_defconfig b/configs/neu6a-io-rk3588_defconfig
index 307a540f4249..bc2d70421ee9 100644
--- a/configs/neu6a-io-rk3588_defconfig
+++ b/configs/neu6a-io-rk3588_defconfig
@@ -40,7 +40,6 @@ CONFIG_MMC_DW_ROCKCHIP=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_SDMA=y
CONFIG_MMC_SDHCI_ROCKCHIP=y
-CONFIG_REGULATOR_PWM=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_SPL_RAM=y
CONFIG_BAUDRATE=1500000
diff --git a/configs/neu6b-io-rk3588_defconfig b/configs/neu6b-io-rk3588_defconfig
index 9ef2bb21fffa..8bc75a5f0dd9 100644
--- a/configs/neu6b-io-rk3588_defconfig
+++ b/configs/neu6b-io-rk3588_defconfig
@@ -40,7 +40,6 @@ CONFIG_MMC_DW_ROCKCHIP=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_SDMA=y
CONFIG_MMC_SDHCI_ROCKCHIP=y
-CONFIG_REGULATOR_PWM=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_SPL_RAM=y
CONFIG_BAUDRATE=1500000
diff --git a/configs/quartzpro64-rk3588_defconfig b/configs/quartzpro64-rk3588_defconfig
index b2a66d3f2db0..ee2521f87ae5 100644
--- a/configs/quartzpro64-rk3588_defconfig
+++ b/configs/quartzpro64-rk3588_defconfig
@@ -64,7 +64,6 @@ CONFIG_PHY_ROCKCHIP_INNO_USB2=y
CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
CONFIG_PHY_ROCKCHIP_USBDP=y
CONFIG_SPL_PINCTRL=y
-CONFIG_REGULATOR_PWM=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_SPL_RAM=y
CONFIG_SCSI=y
diff --git a/configs/rock5b-rk3588_defconfig b/configs/rock5b-rk3588_defconfig
index ac4f1ebb4c13..8af56baf04d7 100644
--- a/configs/rock5b-rk3588_defconfig
+++ b/configs/rock5b-rk3588_defconfig
@@ -75,7 +75,6 @@ CONFIG_PHY_ROCKCHIP_INNO_USB2=y
CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
CONFIG_PHY_ROCKCHIP_USBDP=y
CONFIG_SPL_PINCTRL=y
-CONFIG_REGULATOR_PWM=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_SPL_RAM=y
CONFIG_SCSI=y
diff --git a/configs/toybrick-rk3588_defconfig b/configs/toybrick-rk3588_defconfig
index 6ee92e943138..38fc7906eef2 100644
--- a/configs/toybrick-rk3588_defconfig
+++ b/configs/toybrick-rk3588_defconfig
@@ -53,7 +53,6 @@ CONFIG_PHY_REALTEK=y
CONFIG_DWC_ETH_QOS=y
CONFIG_DWC_ETH_QOS_ROCKCHIP=y
CONFIG_PHY_ROCKCHIP_INNO_USB2=y
-CONFIG_REGULATOR_PWM=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_SPL_RAM=y
CONFIG_BAUDRATE=1500000
diff --git a/configs/turing-rk1-rk3588_defconfig b/configs/turing-rk1-rk3588_defconfig
index e18ced721789..77aacbc64b6c 100644
--- a/configs/turing-rk1-rk3588_defconfig
+++ b/configs/turing-rk1-rk3588_defconfig
@@ -81,7 +81,6 @@ CONFIG_PHY_ROCKCHIP_INNO_USB2=y
CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
CONFIG_PHY_ROCKCHIP_USBDP=y
CONFIG_SPL_PINCTRL=y
-CONFIG_REGULATOR_PWM=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_SPL_RAM=y
CONFIG_SCSI=y
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 06/28] rockchip: rk3566-anbernic-rgxx3: Remove SPL_ROCKCHIP_BACK_TO_BROM option
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (4 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 05/28] rockchip: rk3588: Drop REGULATOR_PWM " Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 7:59 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 07/28] rockchip: rk35xx: Sort imply statements alphabetically Jonas Karlman
` (21 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Chris Morgan
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
SPL_ROCKCHIP_BACK_TO_BROM should normally only be enabled when BROM
should load U-Boot binary. SPL on Anbernic RGxx3 devices load TF-A and
U-Boot proper from FIT images and does never jump back to BROM from SPL.
Remove the superfluous Kconfig option from defconfig to align with other
RK356x boards.
This patch have no intended change in boot behavior.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: No change
v2: No change
---
configs/anbernic-rgxx3-rk3566_defconfig | 2 --
1 file changed, 2 deletions(-)
diff --git a/configs/anbernic-rgxx3-rk3566_defconfig b/configs/anbernic-rgxx3-rk3566_defconfig
index c8c9238f96fc..24b050c59b53 100644
--- a/configs/anbernic-rgxx3-rk3566_defconfig
+++ b/configs/anbernic-rgxx3-rk3566_defconfig
@@ -6,9 +6,7 @@ CONFIG_SPL_GPIO=y
CONFIG_NR_DRAM_BANKS=2
CONFIG_DEFAULT_DEVICE_TREE="rk3566-anbernic-rgxx3"
CONFIG_ROCKCHIP_RK3568=y
-CONFIG_SPL_ROCKCHIP_BACK_TO_BROM=y
CONFIG_ROCKCHIP_RK8XX_DISABLE_BOOT_ON_POWERON=y
-CONFIG_SPL_MMC=y
CONFIG_SPL_SERIAL=y
CONFIG_TARGET_ANBERNIC_RGXX3_RK3566=y
CONFIG_DEBUG_UART_BASE=0xFE660000
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 07/28] rockchip: rk35xx: Sort imply statements alphabetically
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (5 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 06/28] rockchip: rk3566-anbernic-rgxx3: Remove SPL_ROCKCHIP_BACK_TO_BROM option Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:00 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 08/28] rockchip: rk35xx: Enable random generator Jonas Karlman
` (20 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
Sort imply statements under ROCKCHIP_RK3568 and ROCKCHIP_RK3588
alphabetically.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
---
v3: Collect r-b tag
v2: No change
---
arch/arm/mach-rockchip/Kconfig | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index a762c9e1e283..1cc9f7c4bb50 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -306,12 +306,12 @@ config ROCKCHIP_RK3568
select BOARD_LATE_INIT
select DM_REGULATOR_FIXED
select DM_RESET
- imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
- imply ROCKCHIP_COMMON_BOARD
- imply OF_LIBFDT_OVERLAY
- imply ROCKCHIP_OTP
imply MISC_INIT_R
imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
+ imply OF_LIBFDT_OVERLAY
+ imply ROCKCHIP_COMMON_BOARD
+ imply ROCKCHIP_OTP
+ imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
imply SPL_MMC_HS200_SUPPORT if SPL_MMC && MMC_HS200_SUPPORT
help
The Rockchip RK3568 is a ARM-based SoC with quad-core Cortex-A55,
@@ -333,16 +333,16 @@ config ROCKCHIP_RK3588
select BOARD_LATE_INIT
select DM_REGULATOR_FIXED
select DM_RESET
- imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
- imply ROCKCHIP_COMMON_BOARD
- imply OF_LIBFDT_OVERLAY
- imply ROCKCHIP_OTP
- imply MISC_INIT_R
- imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
- imply SPL_MMC_HS200_SUPPORT if SPL_MMC && MMC_HS200_SUPPORT
+ imply BOOTSTD_FULL
imply CLK_SCMI
+ imply MISC_INIT_R
+ imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
+ imply OF_LIBFDT_OVERLAY
+ imply ROCKCHIP_COMMON_BOARD
+ imply ROCKCHIP_OTP
imply SCMI_FIRMWARE
- imply BOOTSTD_FULL
+ imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
+ imply SPL_MMC_HS200_SUPPORT if SPL_MMC && MMC_HS200_SUPPORT
help
The Rockchip RK3588 is a ARM-based SoC with quad-core Cortex-A76 and
quad-core Cortex-A55 including NEON and GPU, 6TOPS NPU, Mali-G610 MP4,
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 08/28] rockchip: rk35xx: Enable random generator
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (6 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 07/28] rockchip: rk35xx: Sort imply statements alphabetically Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:01 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 09/28] rockchip: rk35xx: Imply support for GbE PHY Jonas Karlman
` (19 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Chris Morgan
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
The RK35xx SoCs contain a crypto engine block that can generate random
numbers.
Enable rng node in soc u-boot.dtsi and enable Kconfig options to take
advantage of the random generator.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
---
v3: Collect r-b tag
v2: No change
---
arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi | 6 ------
arch/arm/dts/rk356x-u-boot.dtsi | 5 +++++
arch/arm/dts/rk3588s-u-boot.dtsi | 1 -
arch/arm/mach-rockchip/Kconfig | 4 ++++
configs/anbernic-rgxx3-rk3566_defconfig | 2 --
5 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi b/arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi
index 791f16b206f2..793ed4ae8ae0 100644
--- a/arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi
+++ b/arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi
@@ -6,12 +6,6 @@
chosen {
u-boot,spl-boot-order = "same-as-spl", &sdmmc1, &sdmmc0;
};
-
- rng: rng@fe388000 {
- compatible = "rockchip,cryptov2-rng";
- reg = <0x0 0xfe388000 0x0 0x2000>;
- status = "okay";
- };
};
&dsi_dphy0 {
diff --git a/arch/arm/dts/rk356x-u-boot.dtsi b/arch/arm/dts/rk356x-u-boot.dtsi
index d347080577d9..05367216e118 100644
--- a/arch/arm/dts/rk356x-u-boot.dtsi
+++ b/arch/arm/dts/rk356x-u-boot.dtsi
@@ -21,6 +21,11 @@
bootph-all;
};
+ rng: rng@fe388000 {
+ compatible = "rockchip,cryptov2-rng";
+ reg = <0x0 0xfe388000 0x0 0x2000>;
+ };
+
otp: nvmem@fe38c000 {
compatible = "rockchip,rk3568-otp";
reg = <0x0 0xfe38c000 0x0 0x4000>;
diff --git a/arch/arm/dts/rk3588s-u-boot.dtsi b/arch/arm/dts/rk3588s-u-boot.dtsi
index ac67c777adea..233eb79d9ba2 100644
--- a/arch/arm/dts/rk3588s-u-boot.dtsi
+++ b/arch/arm/dts/rk3588s-u-boot.dtsi
@@ -91,7 +91,6 @@
rng: rng@fe378000 {
compatible = "rockchip,trngv1";
reg = <0x0 0xfe378000 0x0 0x200>;
- status = "disabled";
};
usbdp_phy0: phy@fed80000 {
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index 1cc9f7c4bb50..7b54a6f7dddc 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -306,9 +306,11 @@ config ROCKCHIP_RK3568
select BOARD_LATE_INIT
select DM_REGULATOR_FIXED
select DM_RESET
+ imply DM_RNG
imply MISC_INIT_R
imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
imply OF_LIBFDT_OVERLAY
+ imply RNG_ROCKCHIP
imply ROCKCHIP_COMMON_BOARD
imply ROCKCHIP_OTP
imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
@@ -335,9 +337,11 @@ config ROCKCHIP_RK3588
select DM_RESET
imply BOOTSTD_FULL
imply CLK_SCMI
+ imply DM_RNG
imply MISC_INIT_R
imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
imply OF_LIBFDT_OVERLAY
+ imply RNG_ROCKCHIP
imply ROCKCHIP_COMMON_BOARD
imply ROCKCHIP_OTP
imply SCMI_FIRMWARE
diff --git a/configs/anbernic-rgxx3-rk3566_defconfig b/configs/anbernic-rgxx3-rk3566_defconfig
index 24b050c59b53..110237e798f9 100644
--- a/configs/anbernic-rgxx3-rk3566_defconfig
+++ b/configs/anbernic-rgxx3-rk3566_defconfig
@@ -68,8 +68,6 @@ CONFIG_REGULATOR_RK8XX=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_SPL_RAM=y
# CONFIG_RAM_ROCKCHIP_DEBUG is not set
-CONFIG_DM_RNG=y
-CONFIG_RNG_ROCKCHIP=y
# CONFIG_RNG_SMCCC_TRNG is not set
CONFIG_BAUDRATE=1500000
CONFIG_DEBUG_UART_SHIFT=2
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 09/28] rockchip: rk35xx: Imply support for GbE PHY
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (7 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 08/28] rockchip: rk35xx: Enable random generator Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:01 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 10/28] rockchip: rk356x: Imply enhanced features for standard boot Jonas Karlman
` (18 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
Imply support for GbE PHY status parsing and configuration when support
for onboard ethernet is enabled.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
---
v3: Collect r-b tag
v2: Collect r-b tag
---
arch/arm/mach-rockchip/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index 7b54a6f7dddc..ded749e92bdd 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -310,6 +310,7 @@ config ROCKCHIP_RK3568
imply MISC_INIT_R
imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
imply OF_LIBFDT_OVERLAY
+ imply PHY_GIGE if DWC_ETH_QOS_ROCKCHIP
imply RNG_ROCKCHIP
imply ROCKCHIP_COMMON_BOARD
imply ROCKCHIP_OTP
@@ -341,6 +342,7 @@ config ROCKCHIP_RK3588
imply MISC_INIT_R
imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
imply OF_LIBFDT_OVERLAY
+ imply PHY_GIGE if DWC_ETH_QOS_ROCKCHIP
imply RNG_ROCKCHIP
imply ROCKCHIP_COMMON_BOARD
imply ROCKCHIP_OTP
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 10/28] rockchip: rk356x: Imply enhanced features for standard boot
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (8 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 09/28] rockchip: rk35xx: Imply support for GbE PHY Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:01 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 11/28] rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically Jonas Karlman
` (17 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini,
Frank Wunderlich
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
Imply BOOTSTD_FULL for all RK356x boards to more closely follow RK3588.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
---
v3: Collect r-b tag
v2: No change
---
arch/arm/mach-rockchip/Kconfig | 1 +
configs/bpi-r2-pro-rk3568_defconfig | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index ded749e92bdd..83779bd46208 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -306,6 +306,7 @@ config ROCKCHIP_RK3568
select BOARD_LATE_INIT
select DM_REGULATOR_FIXED
select DM_RESET
+ imply BOOTSTD_FULL
imply DM_RNG
imply MISC_INIT_R
imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
diff --git a/configs/bpi-r2-pro-rk3568_defconfig b/configs/bpi-r2-pro-rk3568_defconfig
index 5cc95241ba43..70837574462b 100644
--- a/configs/bpi-r2-pro-rk3568_defconfig
+++ b/configs/bpi-r2-pro-rk3568_defconfig
@@ -15,7 +15,6 @@ CONFIG_FIT=y
CONFIG_FIT_VERBOSE=y
CONFIG_SPL_FIT_SIGNATURE=y
CONFIG_SPL_LOAD_FIT=y
-CONFIG_BOOTSTD_FULL=y
CONFIG_LEGACY_IMAGE_FORMAT=y
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-bpi-r2-pro.dtb"
# CONFIG_DISPLAY_CPUINFO is not set
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 11/28] rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (9 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 10/28] rockchip: rk356x: Imply enhanced features for standard boot Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:01 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 12/28] rockchip: rk356x: Update bootph props Jonas Karlman
` (16 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
Sort nodes and props in RK356x/RK3588 u-boot.dtsi alphabetically, nodes
is sorted by reg addr then by alphabetical order.
This has no intended change beside sorting existing nodes and removing
a duplicated usbdpphy0_grf node.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
---
v3: Include binman node in sort (Quentin)
v3: Collect r-b tag
v2: Follow kernel sort order (Quentin)
[1] https://www.kernel.org/doc/html/latest/devicetree/bindings/dts-coding-style.html#order-of-properties-in-device-node
---
arch/arm/dts/rk356x-u-boot.dtsi | 112 +++++++++++++++----------------
arch/arm/dts/rk3588s-u-boot.dtsi | 91 ++++++++++++-------------
2 files changed, 99 insertions(+), 104 deletions(-)
diff --git a/arch/arm/dts/rk356x-u-boot.dtsi b/arch/arm/dts/rk356x-u-boot.dtsi
index 05367216e118..8ac10f1698f6 100644
--- a/arch/arm/dts/rk356x-u-boot.dtsi
+++ b/arch/arm/dts/rk356x-u-boot.dtsi
@@ -38,46 +38,21 @@
};
};
-&xin24m {
- bootph-all;
+#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
+&binman {
+ simple-bin-spi {
+ mkimage {
+ args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
+ offset = <0x8000>;
+ };
+ };
};
+#endif
&cru {
bootph-all;
};
-&pmucru {
- bootph-all;
-};
-
-&grf {
- bootph-all;
-};
-
-&pmugrf {
- bootph-all;
-};
-
-&pinctrl {
- bootph-all;
-};
-
-&pcfg_pull_none_smt {
- bootph-all;
-};
-
-&pcfg_pull_none {
- bootph-all;
-};
-
-&pcfg_pull_up_drv_level_2 {
- bootph-all;
-};
-
-&pcfg_pull_up {
- bootph-all;
-};
-
&emmc_bus8 {
bootph-all;
};
@@ -102,10 +77,51 @@
bootph-all;
};
+&grf {
+ bootph-all;
+};
+
&i2c0_xfer {
bootph-all;
};
+&pcfg_pull_none {
+ bootph-all;
+};
+
+&pcfg_pull_none_smt {
+ bootph-all;
+};
+
+&pcfg_pull_up {
+ bootph-all;
+};
+
+&pcfg_pull_up_drv_level_2 {
+ bootph-all;
+};
+
+&pinctrl {
+ bootph-all;
+};
+
+&pmucru {
+ bootph-all;
+};
+
+&pmugrf {
+ bootph-all;
+};
+
+&sdhci {
+ bootph-pre-ram;
+ max-frequency = <200000000>;
+};
+
+&sdmmc0 {
+ bootph-pre-ram;
+};
+
&sdmmc0_bus4 {
bootph-all;
};
@@ -126,31 +142,15 @@
bootph-all;
};
-&uart2m0_xfer {
- bootph-all;
-};
-
-&sdhci {
- bootph-pre-ram;
- max-frequency = <200000000>;
-};
-
-&sdmmc0 {
- bootph-pre-ram;
-};
-
&uart2 {
bootph-pre-ram;
clock-frequency = <24000000>;
};
-#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
-&binman {
- simple-bin-spi {
- mkimage {
- args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
- offset = <0x8000>;
- };
- };
+&uart2m0_xfer {
+ bootph-all;
+};
+
+&xin24m {
+ bootph-all;
};
-#endif
diff --git a/arch/arm/dts/rk3588s-u-boot.dtsi b/arch/arm/dts/rk3588s-u-boot.dtsi
index 233eb79d9ba2..7fcbdb969240 100644
--- a/arch/arm/dts/rk3588s-u-boot.dtsi
+++ b/arch/arm/dts/rk3588s-u-boot.dtsi
@@ -41,6 +41,17 @@
status = "disabled";
};
+ vo0_grf: syscon@fd5a6000 {
+ compatible = "rockchip,rk3588-vo-grf", "syscon";
+ reg = <0x0 0xfd5a6000 0x0 0x2000>;
+ clocks = <&cru PCLK_VO0GRF>;
+ };
+
+ usb_grf: syscon@fd5ac000 {
+ compatible = "rockchip,rk3588-usb-grf", "syscon";
+ reg = <0x0 0xfd5ac000 0x0 0x4000>;
+ };
+
usbdpphy0_grf: syscon@fd5c8000 {
compatible = "rockchip,rk3588-usbdpphy-grf", "syscon";
reg = <0x0 0xfd5c8000 0x0 0x4000>;
@@ -72,22 +83,6 @@
};
};
- vo0_grf: syscon@fd5a6000 {
- compatible = "rockchip,rk3588-vo-grf", "syscon";
- reg = <0x0 0xfd5a6000 0x0 0x2000>;
- clocks = <&cru PCLK_VO0GRF>;
- };
-
- usb_grf: syscon@fd5ac000 {
- compatible = "rockchip,rk3588-usb-grf", "syscon";
- reg = <0x0 0xfd5ac000 0x0 0x4000>;
- };
-
- usbdpphy0_grf: syscon@fd5c8000 {
- compatible = "rockchip,rk3588-usbdpphy-grf", "syscon";
- reg = <0x0 0xfd5c8000 0x0 0x4000>;
- };
-
rng: rng@fe378000 {
compatible = "rockchip,trngv1";
reg = <0x0 0xfe378000 0x0 0x200>;
@@ -125,6 +120,21 @@
};
};
+#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
+&binman {
+ simple-bin-spi {
+ mkimage {
+ args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
+ offset = <0x8000>;
+ };
+ };
+};
+#endif
+
+&cru {
+ bootph-pre-ram;
+};
+
&emmc_bus8 {
bootph-all;
};
@@ -145,32 +155,24 @@
bootph-all;
};
-&pinctrl {
- bootph-all;
+&ioc {
+ bootph-pre-ram;
};
&pcfg_pull_none {
bootph-all;
};
-&pcfg_pull_up_drv_level_2 {
- bootph-all;
-};
-
&pcfg_pull_up {
bootph-all;
};
-&xin24m {
+&pcfg_pull_up_drv_level_2 {
bootph-all;
};
-&cru {
- bootph-pre-ram;
-};
-
-&sys_grf {
- bootph-pre-ram;
+&pinctrl {
+ bootph-all;
};
&pmu1grf {
@@ -185,18 +187,18 @@
bootph-pre-ram;
};
-&sdmmc {
- bootph-pre-ram;
- bootph-some-ram;
- u-boot,spl-fifo-mode;
-};
-
&sdhci {
bootph-pre-ram;
bootph-some-ram;
u-boot,spl-fifo-mode;
};
+&sdmmc {
+ bootph-pre-ram;
+ bootph-some-ram;
+ u-boot,spl-fifo-mode;
+};
+
&sdmmc_bus4 {
bootph-all;
};
@@ -213,6 +215,10 @@
bootph-all;
};
+&sys_grf {
+ bootph-pre-ram;
+};
+
&uart2 {
bootph-pre-ram;
clock-frequency = <24000000>;
@@ -222,17 +228,6 @@
bootph-all;
};
-&ioc {
- bootph-pre-ram;
+&xin24m {
+ bootph-all;
};
-
-#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
-&binman {
- simple-bin-spi {
- mkimage {
- args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
- offset = <0x8000>;
- };
- };
-};
-#endif
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 12/28] rockchip: rk356x: Update bootph props
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (10 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 11/28] rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:02 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 13/28] rockchip: rk3588: " Jonas Karlman
` (15 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Jonas Karlman,
Nicolas Frattaroli, Akash Gajjar
Cc: Quentin Schulz, Dragan Simic, u-boot
After the commit aca95282c1b7 ("Makefile: Use the fdtgrep -u flag")
bootph props is propagating to parent nodes.
Update bootph props to ensure eMMC, SD-card and SPI flash is available
in SPL and U-Boot proper pre-reloc phase also remove unneeded bootph
props that automatically is propagated to parent nodes.
Also adjust pinctrl nodes to only be included in boot phases where they
are needed and add any missing pinctrl node needed in SPL.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: Split evb-rk3568_defconfig change into a separate patch
v2: Add bootph-some-ram props and follow kernel sort order
Following bootph props have been applied:
CRU, GRF and UART nodes:
- bootph-all - needed at all or most stages
SD-card regulator related nodes:
- bootph-pre-ram (SPL) - regulator pinctrl may be needed to read FIT
from SD-card on some boards
eMMC/SD-card/SPI flash related nodes:
- bootph-pre-ram (SPL)
- bootph-some-ram (U-Boot proper pre-reloc)
---
arch/arm/dts/rk3566-pinetab2-u-boot.dtsi | 25 +++++++----
arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi | 8 ++--
arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi | 4 +-
arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi | 7 ++-
arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 5 +--
arch/arm/dts/rk356x-u-boot.dtsi | 51 ++++++++++++++--------
6 files changed, 59 insertions(+), 41 deletions(-)
diff --git a/arch/arm/dts/rk3566-pinetab2-u-boot.dtsi b/arch/arm/dts/rk3566-pinetab2-u-boot.dtsi
index 4aa6ab1c848c..eb18008f2fe3 100644
--- a/arch/arm/dts/rk3566-pinetab2-u-boot.dtsi
+++ b/arch/arm/dts/rk3566-pinetab2-u-boot.dtsi
@@ -3,20 +3,31 @@
#include "rk356x-u-boot.dtsi"
&fspi_dual_io_pins {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&gpio0 {
- bootph-all;
+ bootph-pre-ram;
};
&i2c0 {
bootph-pre-ram;
};
+&i2c0_xfer {
+ bootph-pre-ram;
+};
+
+&i2s1m0_mclk {
+ bootph-pre-ram;
+};
+
+&pmic_int_l {
+ bootph-pre-ram;
+};
+
&rk817 {
- bootph-pre-ram;
-
regulators {
bootph-pre-ram;
};
@@ -27,15 +38,13 @@
};
&sdmmc_pwren_l {
- bootph-all;
+ bootph-pre-ram;
};
&sfc {
- bootph-pre-ram;
- u-boot,spl-sfc-no-dma;
-
flash@0 {
bootph-pre-ram;
+ bootph-some-ram;
};
};
diff --git a/arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi b/arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi
index 930d660868bb..0e25b7e108fc 100644
--- a/arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi
+++ b/arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi
@@ -3,7 +3,7 @@
#include "rk356x-u-boot.dtsi"
&gpio0 {
- bootph-all;
+ bootph-pre-ram;
};
&sdhci {
@@ -13,11 +13,9 @@
};
&sfc {
- bootph-pre-ram;
- u-boot,spl-sfc-no-dma;
-
flash@0 {
bootph-pre-ram;
+ bootph-some-ram;
};
};
@@ -34,5 +32,5 @@
};
&vcc_sd_h {
- bootph-all;
+ bootph-pre-ram;
};
diff --git a/arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi b/arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi
index c235b4357f7d..f2c9d8e167d5 100644
--- a/arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi
+++ b/arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi
@@ -9,11 +9,9 @@
};
&sfc {
- bootph-pre-ram;
- u-boot,spl-sfc-no-dma;
-
flash@0 {
bootph-pre-ram;
+ bootph-some-ram;
};
};
diff --git a/arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi b/arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi
index 1fc71faa9e07..d8a6dd87510f 100644
--- a/arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi
+++ b/arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi
@@ -3,7 +3,8 @@
#include "rk356x-u-boot.dtsi"
&fspi_dual_io_pins {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&sdhci {
@@ -15,10 +16,8 @@
};
&sfc {
- bootph-pre-ram;
- u-boot,spl-sfc-no-dma;
-
flash@0 {
bootph-pre-ram;
+ bootph-some-ram;
};
};
diff --git a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
index 5b823fcca5fb..9d18f5d0b364 100644
--- a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
+++ b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
@@ -26,16 +26,15 @@
};
&sfc {
- bootph-pre-ram;
- u-boot,spl-sfc-no-dma;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
flash@0 {
- bootph-pre-ram;
compatible = "jedec,spi-nor";
reg = <0>;
+ bootph-pre-ram;
+ bootph-some-ram;
spi-max-frequency = <24000000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <1>;
diff --git a/arch/arm/dts/rk356x-u-boot.dtsi b/arch/arm/dts/rk356x-u-boot.dtsi
index 8ac10f1698f6..0a0943b462a9 100644
--- a/arch/arm/dts/rk356x-u-boot.dtsi
+++ b/arch/arm/dts/rk356x-u-boot.dtsi
@@ -54,43 +54,46 @@
};
&emmc_bus8 {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&emmc_clk {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&emmc_cmd {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&emmc_datastrobe {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&emmc_rstnout {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&fspi_pins {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&grf {
bootph-all;
};
-&i2c0_xfer {
- bootph-all;
-};
-
&pcfg_pull_none {
bootph-all;
};
&pcfg_pull_none_smt {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&pcfg_pull_up {
@@ -98,7 +101,8 @@
};
&pcfg_pull_up_drv_level_2 {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&pinctrl {
@@ -115,35 +119,46 @@
&sdhci {
bootph-pre-ram;
+ bootph-some-ram;
max-frequency = <200000000>;
};
&sdmmc0 {
bootph-pre-ram;
+ bootph-some-ram;
};
&sdmmc0_bus4 {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&sdmmc0_clk {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&sdmmc0_cmd {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&sdmmc0_det {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&sdmmc0_pwren {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
+};
+
+&sfc {
+ u-boot,spl-sfc-no-dma;
};
&uart2 {
- bootph-pre-ram;
+ bootph-all;
clock-frequency = <24000000>;
};
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 13/28] rockchip: rk3588: Update bootph props
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (11 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 12/28] rockchip: rk356x: Update bootph props Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:02 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 14/28] rockchip: rk3568-evb: Use pinctrl in SPL Jonas Karlman
` (14 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Andy Yan,
John Clark, Jonas Karlman, Eugen Hristev, Joshua Riek
Cc: Quentin Schulz, Dragan Simic, u-boot
After the commit aca95282c1b7 ("Makefile: Use the fdtgrep -u flag")
bootph props is propagating to parent nodes.
Update bootph props to ensure eMMC, SD-card and SPI flash is available
in SPL and U-Boot proper pre-reloc phase also remove unneeded bootph
props that automatically is propagated to parent nodes.
Also adjust pinctrl nodes to only be included in boot phases where they
are needed and add any missing pinctrl node needed in SPL.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
---
v3: Split rk3588-generic.dts and evb-rk3588_defconfig changes into
separate patches
v3: Collect r-b tag
v2: Add bootph-some-ram props and follow kernel sort order
Following bootph props have been applied:
CRU, GRF and UART nodes:
- bootph-all - needed at all or most stages
SD-card regulator related nodes:
- bootph-pre-ram (SPL) - regulator pinctrl may be needed to read FIT
from SD-card on some boards
eMMC/SD-card/SPI flash related nodes:
- bootph-pre-ram (SPL)
- bootph-some-ram (U-Boot proper pre-reloc)
---
.../arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi | 8 +--
arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi | 12 ++---
.../dts/rk3588-orangepi-5-plus-u-boot.dtsi | 7 ++-
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 8 +--
arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi | 6 ++-
arch/arm/dts/rk3588s-coolpi-4b-u-boot.dtsi | 8 +--
arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi | 9 ++--
arch/arm/dts/rk3588s-u-boot.dtsi | 50 ++++++++++++++-----
8 files changed, 67 insertions(+), 41 deletions(-)
diff --git a/arch/arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi b/arch/arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi
index ed15b14ea0ee..f0ef0164664e 100644
--- a/arch/arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi
+++ b/arch/arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi
@@ -3,7 +3,8 @@
#include "rk3588-u-boot.dtsi"
&fspim2_pins {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&sdhci {
@@ -12,16 +13,15 @@
};
&sfc {
- bootph-pre-ram;
- u-boot,spl-sfc-no-dma;
pinctrl-names = "default";
pinctrl-0 = <&fspim2_pins>;
status = "okay";
flash@0 {
- bootph-pre-ram;
compatible = "jedec,spi-nor";
reg = <0>;
+ bootph-pre-ram;
+ bootph-some-ram;
spi-max-frequency = <24000000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <1>;
diff --git a/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi b/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi
index 60494bb8485f..968385622fa5 100644
--- a/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi
+++ b/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi
@@ -7,12 +7,11 @@
#include "rk3588-u-boot.dtsi"
&fspim1_pins {
- bootph-all;
-};
-
-&sfc {
bootph-pre-ram;
- u-boot,spl-sfc-no-dma;
+ bootph-some-ram;
+};
+
+&sfc {
pinctrl-names = "default";
pinctrl-0 = <&fspim1_pins>;
#address-cells = <1>;
@@ -20,9 +19,10 @@
status = "okay";
flash@0 {
- bootph-pre-ram;
compatible = "jedec,spi-nor";
reg = <0>;
+ bootph-pre-ram;
+ bootph-some-ram;
spi-max-frequency = <24000000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <1>;
diff --git a/arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi b/arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi
index 5d5fa6ffb214..1ab31a4ec5ab 100644
--- a/arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi
+++ b/arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi
@@ -3,7 +3,8 @@
#include "rk3588-u-boot.dtsi"
&fspim1_pins {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&sdhci {
@@ -12,10 +13,8 @@
};
&sfc {
- bootph-pre-ram;
- u-boot,spl-sfc-no-dma;
-
flash@0 {
bootph-pre-ram;
+ bootph-some-ram;
};
};
diff --git a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
index 9ee9dd051e32..d6020ca790f6 100644
--- a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
+++ b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
@@ -18,7 +18,8 @@
};
&fspim2_pins {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&pinctrl {
@@ -35,16 +36,15 @@
};
&sfc {
- bootph-pre-ram;
- u-boot,spl-sfc-no-dma;
pinctrl-names = "default";
pinctrl-0 = <&fspim2_pins>;
status = "okay";
flash@0 {
- bootph-pre-ram;
compatible = "jedec,spi-nor";
reg = <0>;
+ bootph-pre-ram;
+ bootph-some-ram;
spi-max-frequency = <24000000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <1>;
diff --git a/arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi b/arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi
index ca2a684f3541..a50bcc45f216 100644
--- a/arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi
+++ b/arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi
@@ -12,6 +12,10 @@
};
&uart9 {
- bootph-pre-ram;
+ bootph-all;
clock-frequency = <24000000>;
};
+
+&uart9m0_xfer {
+ bootph-all;
+};
diff --git a/arch/arm/dts/rk3588s-coolpi-4b-u-boot.dtsi b/arch/arm/dts/rk3588s-coolpi-4b-u-boot.dtsi
index 6e4b97028d7c..f51d7f30d787 100644
--- a/arch/arm/dts/rk3588s-coolpi-4b-u-boot.dtsi
+++ b/arch/arm/dts/rk3588s-coolpi-4b-u-boot.dtsi
@@ -3,7 +3,8 @@
#include "rk3588s-u-boot.dtsi"
&fspim2_pins {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&sdhci {
@@ -12,16 +13,15 @@
};
&sfc {
- bootph-pre-ram;
- u-boot,spl-sfc-no-dma;
pinctrl-names = "default";
pinctrl-0 = <&fspim2_pins>;
status = "okay";
flash@0 {
- bootph-pre-ram;
compatible = "jedec,spi-nor";
reg = <0>;
+ bootph-pre-ram;
+ bootph-some-ram;
spi-max-frequency = <24000000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <1>;
diff --git a/arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi b/arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi
index 888d1b9c12d7..12a92c0cba10 100644
--- a/arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi
+++ b/arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi
@@ -9,14 +9,13 @@
};
&fspim0_pins {
- bootph-all;
-};
-
-&sfc {
bootph-pre-ram;
- u-boot,spl-sfc-no-dma;
+ bootph-some-ram;
+};
+&sfc {
flash@0 {
bootph-pre-ram;
+ bootph-some-ram;
};
};
diff --git a/arch/arm/dts/rk3588s-u-boot.dtsi b/arch/arm/dts/rk3588s-u-boot.dtsi
index 7fcbdb969240..d3c257983ecb 100644
--- a/arch/arm/dts/rk3588s-u-boot.dtsi
+++ b/arch/arm/dts/rk3588s-u-boot.dtsi
@@ -132,31 +132,40 @@
#endif
&cru {
- bootph-pre-ram;
+ bootph-all;
};
&emmc_bus8 {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&emmc_clk {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&emmc_cmd {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&emmc_data_strobe {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&emmc_rstnout {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&ioc {
- bootph-pre-ram;
+ bootph-all;
+};
+
+&pcfg_pull_down {
+ bootph-all;
};
&pcfg_pull_none {
@@ -168,6 +177,11 @@
};
&pcfg_pull_up_drv_level_2 {
+ bootph-pre-ram;
+ bootph-some-ram;
+};
+
+&php_grf {
bootph-all;
};
@@ -181,10 +195,12 @@
&scmi {
bootph-pre-ram;
+ bootph-some-ram;
};
&scmi_clk {
bootph-pre-ram;
+ bootph-some-ram;
};
&sdhci {
@@ -200,27 +216,35 @@
};
&sdmmc_bus4 {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&sdmmc_clk {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&sdmmc_cmd {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
};
&sdmmc_det {
- bootph-all;
+ bootph-pre-ram;
+ bootph-some-ram;
+};
+
+&sfc {
+ u-boot,spl-sfc-no-dma;
};
&sys_grf {
- bootph-pre-ram;
+ bootph-all;
};
&uart2 {
- bootph-pre-ram;
+ bootph-all;
clock-frequency = <24000000>;
};
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 14/28] rockchip: rk3568-evb: Use pinctrl in SPL
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (12 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 13/28] rockchip: rk3588: " Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:02 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 15/28] rockchip: rk3588-evb: Use pinctrl and aliases " Jonas Karlman
` (13 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Joseph Chen
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
Pinctrl must be configured for eMMC, SD-card and SPI flash to
successfully read FIT from all possible fallback media in SPL.
Include pinctrl props and enable the SPL_PINCTRL Kconfig option to
ensure FIT can be loaded from eMMC, SD-card and SPI flash.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: New patch, split from rk356x Update bootph props patch
---
configs/evb-rk3568_defconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configs/evb-rk3568_defconfig b/configs/evb-rk3568_defconfig
index 6e8061f5f487..37b4c5955994 100644
--- a/configs/evb-rk3568_defconfig
+++ b/configs/evb-rk3568_defconfig
@@ -32,7 +32,7 @@ CONFIG_CMD_REGULATOR=y
# CONFIG_SPL_DOS_PARTITION is not set
CONFIG_SPL_OF_CONTROL=y
CONFIG_OF_LIVE=y
-CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
+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
@@ -49,6 +49,7 @@ CONFIG_MMC_SDHCI_ROCKCHIP=y
CONFIG_PHY_REALTEK=y
CONFIG_DWC_ETH_QOS=y
CONFIG_DWC_ETH_QOS_ROCKCHIP=y
+CONFIG_SPL_PINCTRL=y
CONFIG_DM_PMIC=y
CONFIG_PMIC_RK8XX=y
CONFIG_REGULATOR_RK8XX=y
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 15/28] rockchip: rk3588-evb: Use pinctrl and aliases in SPL
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (13 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 14/28] rockchip: rk3568-evb: Use pinctrl in SPL Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:03 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 16/28] rockchip: rk3566-pinetab2: Fix reading FIT from SPI flash Jonas Karlman
` (12 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
Pinctrl must be configured for eMMC, SD-card and SPI flash to
successfully read FIT from all possible fallback media in SPL.
Include pinctrl props and enable the SPL_PINCTRL Kconfig option to
ensure FIT can be loaded from eMMC, SD-card and SPI flash.
Also enable the SPL_DM_SEQ_ALIAS Kconfig option to ensure that the
storage device sequence number matches in both SPL and U-Boot proper.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: New patch, split from rk3588 Update bootph props patch
---
configs/evb-rk3588_defconfig | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/configs/evb-rk3588_defconfig b/configs/evb-rk3588_defconfig
index 68ecbc54b807..610a8d740fbb 100644
--- a/configs/evb-rk3588_defconfig
+++ b/configs/evb-rk3588_defconfig
@@ -33,7 +33,8 @@ CONFIG_CMD_REGULATOR=y
# CONFIG_SPL_DOS_PARTITION is not set
CONFIG_SPL_OF_CONTROL=y
CONFIG_OF_LIVE=y
-CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
+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
@@ -52,6 +53,7 @@ CONFIG_DWC_ETH_QOS_ROCKCHIP=y
CONFIG_PHY_ROCKCHIP_INNO_USB2=y
CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
CONFIG_PHY_ROCKCHIP_USBDP=y
+CONFIG_SPL_PINCTRL=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_SPL_RAM=y
CONFIG_BAUDRATE=1500000
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 16/28] rockchip: rk3566-pinetab2: Fix reading FIT from SPI flash
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (14 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 15/28] rockchip: rk3588-evb: Use pinctrl and aliases " Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:07 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 17/28] rockchip: rk3588-coolpi: Add boards to documentation Jonas Karlman
` (11 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Jonas Karlman
Cc: Quentin Schulz, Dragan Simic, u-boot
The SF_DEFAULT_SPEED Kconfig option got lost during merge and this
prevent reading FIT from SPI flash.
Restore the SF_DEFAULT_SPEED option to fix this.
Fixes: 8a94c376f6cb ("rockchip: Use common bss and stack addresses on RK356x")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: No change
v2: No change
---
configs/pinetab2-rk3566_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/pinetab2-rk3566_defconfig b/configs/pinetab2-rk3566_defconfig
index edeb1d89b993..525a002a21b8 100644
--- a/configs/pinetab2-rk3566_defconfig
+++ b/configs/pinetab2-rk3566_defconfig
@@ -4,6 +4,7 @@ CONFIG_COUNTER_FREQUENCY=24000000
CONFIG_ARCH_ROCKCHIP=y
CONFIG_SPL_GPIO=y
CONFIG_NR_DRAM_BANKS=2
+CONFIG_SF_DEFAULT_SPEED=24000000
CONFIG_SF_DEFAULT_MODE=0x1000
CONFIG_DEFAULT_DEVICE_TREE="rk3566-pinetab2-v2.0"
CONFIG_ROCKCHIP_RK3568=y
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 17/28] rockchip: rk3588-coolpi: Add boards to documentation
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (15 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 16/28] rockchip: rk3566-pinetab2: Fix reading FIT from SPI flash Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:07 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 18/28] rockchip: rk3588-coolpi: Fix .dtb-file entries in Makefile Jonas Karlman
` (10 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Andy Yan
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
Add the CoolPi 4 Model B and CoolPi CM5 EVB board to the documentation.
Fixes: 3e15dee38d45 ("board: rockchip: Add support for rk3588 based Cool Pi CM5 EVB")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
---
v3: Split Makefile change to a separate patch
v3: Collect r-b tag
v2: No change
---
doc/board/rockchip/rockchip.rst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst
index 5dd5ea7f1e29..9a726e9cde63 100644
--- a/doc/board/rockchip/rockchip.rst
+++ b/doc/board/rockchip/rockchip.rst
@@ -131,6 +131,8 @@ List of mainline supported Rockchip boards:
- Turing Machines RK1 (turing-rk1-rk3588)
- Xunlong Orange Pi 5 (orangepi-5-rk3588s)
- Xunlong Orange Pi 5 Plus (orangepi-5-plus-rk3588)
+ - Yanyi Tech CoolPi 4 Model B (coolpi-4b-rk3588s)
+ - Yanyi Tech CoolPi CM5 EVB (coolpi-cm5-evb-rk3588)
* rv1108
- Rockchip Evb-rv1108 (evb-rv1108)
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 18/28] rockchip: rk3588-coolpi: Fix .dtb-file entries in Makefile
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (16 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 17/28] rockchip: rk3588-coolpi: Add boards to documentation Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:07 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 19/28] rockchip: rk3588-toybrick: Use pinctrl and aliases in SPL Jonas Karlman
` (9 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Andy Yan
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
Fix CoolPi 4 Model B and CoolPi CM5 EVB .dtb-file entries in Makefile.
Fixes: 3e15dee38d45 ("board: rockchip: Add support for rk3588 based Cool Pi CM5 EVB")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
---
v3: New patch, split from rk3588-coolpi documentation patch
v3: Collect r-b tag
---
arch/arm/dts/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index b1c9c6222e5d..313ef34f5cb7 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -167,8 +167,8 @@ dtb-$(CONFIG_ROCKCHIP_RK3568) += \
rk3568-rock-3a.dtb
dtb-$(CONFIG_ROCKCHIP_RK3588) += \
- rk3588s-coolpi-4b.dts \
- rk3588-coolpi-cm5-evb.dts \
+ rk3588s-coolpi-4b.dtb \
+ rk3588-coolpi-cm5-evb.dtb \
rk3588-edgeble-neu6a-io.dtb \
rk3588-edgeble-neu6b-io.dtb \
rk3588-evb1-v10.dtb \
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 19/28] rockchip: rk3588-toybrick: Use pinctrl and aliases in SPL
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (17 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 18/28] rockchip: rk3588-coolpi: Fix .dtb-file entries in Makefile Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:08 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 20/28] rockchip: rk3588-toybrick: Add .dtb-file entry in Makefile Jonas Karlman
` (8 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Elon Zhang,
Weizhao Ouyang
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
Pinctrl must be configured for eMMC, SD-card and SPI flash to
successfully read FIT from all possible fallback media in SPL.
Include pinctrl props and enable the SPL_PINCTRL Kconfig option to
ensure FIT can be loaded from eMMC, SD-card and SPI flash.
Also enable the SPL_DM_SEQ_ALIAS Kconfig option to ensure that the
storage device sequence number matches in both SPL and U-Boot proper.
Fixes: 9fdd9a546986 ("board: rockchip: add Rockchip Toybrick TB-RK3588X board")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: Drop PHY_ROCKCHIP_NANENG_COMBOPHY, usb3/sata/pcie is not enabled
v3: Split Makefile changes to a separate patch
v2: Fix Makefile entry from .dts to .dtb (Quentin)
---
configs/toybrick-rk3588_defconfig | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/configs/toybrick-rk3588_defconfig b/configs/toybrick-rk3588_defconfig
index 38fc7906eef2..8d773603db0b 100644
--- a/configs/toybrick-rk3588_defconfig
+++ b/configs/toybrick-rk3588_defconfig
@@ -33,8 +33,9 @@ CONFIG_CMD_REGULATOR=y
# CONFIG_SPL_DOS_PARTITION is not set
CONFIG_SPL_OF_CONTROL=y
CONFIG_OF_LIVE=y
-CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
+CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
CONFIG_ENV_IS_IN_MMC=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
CONFIG_SPL_REGMAP=y
CONFIG_SPL_SYSCON=y
CONFIG_SPL_CLK=y
@@ -53,6 +54,7 @@ CONFIG_PHY_REALTEK=y
CONFIG_DWC_ETH_QOS=y
CONFIG_DWC_ETH_QOS_ROCKCHIP=y
CONFIG_PHY_ROCKCHIP_INNO_USB2=y
+CONFIG_SPL_PINCTRL=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_SPL_RAM=y
CONFIG_BAUDRATE=1500000
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 20/28] rockchip: rk3588-toybrick: Add .dtb-file entry in Makefile
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (18 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 19/28] rockchip: rk3588-toybrick: Use pinctrl and aliases in SPL Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:08 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 21/28] rockchip: rk3588-turing-rk1: Use dwc3-generic driver Jonas Karlman
` (7 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini,
Weizhao Ouyang, Elon Zhang
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
Add Rockchip Toybrick TB-RK3588X .dtb-file entry in Makefile.
Fixes: 9fdd9a546986 ("board: rockchip: add Rockchip Toybrick TB-RK3588X board")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: New patch split from rk3588-toybrick defconfig patch
v2: Fix Makefile entry from .dts to .dtb (Quentin)
---
arch/arm/dts/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 313ef34f5cb7..77c31d7b1edd 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -180,6 +180,7 @@ dtb-$(CONFIG_ROCKCHIP_RK3588) += \
rk3588-quartzpro64.dtb \
rk3588s-rock-5a.dtb \
rk3588-rock-5b.dtb \
+ rk3588-toybrick-x0.dtb \
rk3588-turing-rk1.dtb
dtb-$(CONFIG_ROCKCHIP_RV1108) += \
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 21/28] rockchip: rk3588-turing-rk1: Use dwc3-generic driver
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (19 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 20/28] rockchip: rk3588-toybrick: Add .dtb-file entry in Makefile Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:09 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 22/28] rockchip: rk3588-edgeble-neu6: Enable FIT checksum validation Jonas Karlman
` (6 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Joshua Riek
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
RK35xx boards are expected to use the dwc3-generic driver and not the
xhci-dwc3 driver.
Remove the USB_XHCI_DWC3 option to ensure that the dwc3-generic driver
is used.
Fixes: 153ac950a599 ("board: rockchip: Add the Turing RK1 SoM")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: No change
v2: Drop change to enable the DWC_AHCI option
---
configs/turing-rk1-rk3588_defconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/turing-rk1-rk3588_defconfig b/configs/turing-rk1-rk3588_defconfig
index 77aacbc64b6c..5a86c7eacc8d 100644
--- a/configs/turing-rk1-rk3588_defconfig
+++ b/configs/turing-rk1-rk3588_defconfig
@@ -90,7 +90,6 @@ CONFIG_ROCKCHIP_SFC=y
CONFIG_SYSRESET=y
CONFIG_USB=y
CONFIG_USB_XHCI_HCD=y
-CONFIG_USB_XHCI_DWC3=y
CONFIG_USB_XHCI_PCI=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_GENERIC=y
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 22/28] rockchip: rk3588-edgeble-neu6: Enable FIT checksum validation
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (20 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 21/28] rockchip: rk3588-turing-rk1: Use dwc3-generic driver Jonas Karlman
@ 2024-04-22 6:28 ` Jonas Karlman
2024-04-22 8:09 ` Kever Yang
2024-04-22 6:29 ` [PATCH v3 23/28] rockchip: rk356x-generic: Fix eMMC and SD-card pinctrl Jonas Karlman
` (5 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:28 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Jagan Teki
Cc: Quentin Schulz, Dragan Simic, u-boot, Jonas Karlman
Enable SPL_FIT_SIGNATURE=y and LEGACY_IMAGE_FORMAT=y to validate FIT
images checksum in SPL.
Change to SPL_MAX_SIZE=0x40000 to allow SPL up to 256 KiB in size.
Enable SPL_DM_SEQ_ALIAS=y and SPL_PINCTRL=y to ensure eMMC and SD-card
pinctrl is configured in SPL.
Enable SYS_NS16550_MEM32=y to use readl/writel in serial driver.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: No change
v2: No change
---
configs/neu6a-io-rk3588_defconfig | 7 ++++++-
configs/neu6b-io-rk3588_defconfig | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/configs/neu6a-io-rk3588_defconfig b/configs/neu6a-io-rk3588_defconfig
index bc2d70421ee9..050f1e5700b1 100644
--- a/configs/neu6a-io-rk3588_defconfig
+++ b/configs/neu6a-io-rk3588_defconfig
@@ -13,11 +13,13 @@ CONFIG_SYS_LOAD_ADDR=0xc00800
CONFIG_DEBUG_UART=y
CONFIG_FIT=y
CONFIG_FIT_VERBOSE=y
+CONFIG_SPL_FIT_SIGNATURE=y
CONFIG_SPL_LOAD_FIT=y
+CONFIG_LEGACY_IMAGE_FORMAT=y
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-edgeble-neu6a-io.dtb"
# CONFIG_DISPLAY_CPUINFO is not set
CONFIG_DISPLAY_BOARDINFO_LATE=y
-CONFIG_SPL_MAX_SIZE=0x20000
+CONFIG_SPL_MAX_SIZE=0x40000
CONFIG_SPL_PAD_TO=0x7f8000
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
CONFIG_SPL_ATF=y
@@ -28,6 +30,7 @@ CONFIG_CMD_MMC=y
CONFIG_SPL_OF_CONTROL=y
CONFIG_OF_LIVE=y
CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
CONFIG_SPL_REGMAP=y
CONFIG_SPL_SYSCON=y
CONFIG_SPL_CLK=y
@@ -40,9 +43,11 @@ CONFIG_MMC_DW_ROCKCHIP=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_SDMA=y
CONFIG_MMC_SDHCI_ROCKCHIP=y
+CONFIG_SPL_PINCTRL=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_SPL_RAM=y
CONFIG_BAUDRATE=1500000
CONFIG_DEBUG_UART_SHIFT=2
+CONFIG_SYS_NS16550_MEM32=y
CONFIG_SYSRESET=y
CONFIG_ERRNO_STR=y
diff --git a/configs/neu6b-io-rk3588_defconfig b/configs/neu6b-io-rk3588_defconfig
index 8bc75a5f0dd9..dabb59afe687 100644
--- a/configs/neu6b-io-rk3588_defconfig
+++ b/configs/neu6b-io-rk3588_defconfig
@@ -13,11 +13,13 @@ CONFIG_SYS_LOAD_ADDR=0xc00800
CONFIG_DEBUG_UART=y
CONFIG_FIT=y
CONFIG_FIT_VERBOSE=y
+CONFIG_SPL_FIT_SIGNATURE=y
CONFIG_SPL_LOAD_FIT=y
+CONFIG_LEGACY_IMAGE_FORMAT=y
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-edgeble-neu6b-io.dtb"
# CONFIG_DISPLAY_CPUINFO is not set
CONFIG_DISPLAY_BOARDINFO_LATE=y
-CONFIG_SPL_MAX_SIZE=0x20000
+CONFIG_SPL_MAX_SIZE=0x40000
CONFIG_SPL_PAD_TO=0x7f8000
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
CONFIG_SPL_ATF=y
@@ -28,6 +30,7 @@ CONFIG_CMD_MMC=y
CONFIG_SPL_OF_CONTROL=y
CONFIG_OF_LIVE=y
CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
CONFIG_SPL_REGMAP=y
CONFIG_SPL_SYSCON=y
CONFIG_SPL_CLK=y
@@ -40,9 +43,11 @@ CONFIG_MMC_DW_ROCKCHIP=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_SDMA=y
CONFIG_MMC_SDHCI_ROCKCHIP=y
+CONFIG_SPL_PINCTRL=y
CONFIG_PWM_ROCKCHIP=y
CONFIG_SPL_RAM=y
CONFIG_BAUDRATE=1500000
CONFIG_DEBUG_UART_SHIFT=2
+CONFIG_SYS_NS16550_MEM32=y
CONFIG_SYSRESET=y
CONFIG_ERRNO_STR=y
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 23/28] rockchip: rk356x-generic: Fix eMMC and SD-card pinctrl
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (21 preceding siblings ...)
2024-04-22 6:28 ` [PATCH v3 22/28] rockchip: rk3588-edgeble-neu6: Enable FIT checksum validation Jonas Karlman
@ 2024-04-22 6:29 ` Jonas Karlman
2024-04-22 8:10 ` Kever Yang
2024-04-22 6:29 ` [PATCH v3 24/28] rockchip: rk356x-generic: Add support for SPI flash Jonas Karlman
` (4 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:29 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Jonas Karlman
Cc: Quentin Schulz, Dragan Simic, u-boot
Add missing emmc_datastrobe and sdmmc0_det pinctrl to fix possible issue
reading from eMMC or SD-card. Also use correct node for mmc1 alias.
Fixes: 683f61a13f16 ("rockchip: board: Add minimal generic RK3566/RK3568 board")
Fixes: 363cbd578169 ("rockchip: rk3568-generic: Enable eMMC HS200 mode")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: No change
v2: Split patch
---
arch/arm/dts/rk3568-generic.dts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/dts/rk3568-generic.dts b/arch/arm/dts/rk3568-generic.dts
index 88eb1bfd2aab..3b9bf8052046 100644
--- a/arch/arm/dts/rk3568-generic.dts
+++ b/arch/arm/dts/rk3568-generic.dts
@@ -12,7 +12,7 @@
aliases {
mmc0 = &sdhci;
- mmc1 = &sdmmc;
+ mmc1 = &sdmmc0;
};
chosen {
@@ -28,7 +28,7 @@
no-sdio;
non-removable;
pinctrl-names = "default";
- pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>;
+ pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
status = "okay";
};
@@ -39,7 +39,7 @@
no-mmc;
no-sdio;
pinctrl-names = "default";
- pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd>;
+ pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
status = "okay";
};
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 24/28] rockchip: rk356x-generic: Add support for SPI flash
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (22 preceding siblings ...)
2024-04-22 6:29 ` [PATCH v3 23/28] rockchip: rk356x-generic: Fix eMMC and SD-card pinctrl Jonas Karlman
@ 2024-04-22 6:29 ` Jonas Karlman
2024-04-22 8:10 ` Kever Yang
2024-04-22 6:29 ` [PATCH v3 25/28] rockchip: rk356x-generic: Add support for USB OTG Jonas Karlman
` (3 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:29 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Jonas Karlman
Cc: Quentin Schulz, Dragan Simic, u-boot
Add support for booting from SPI flash using the generic RK3566/RK3568
target.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: No change
v2: Split patch
---
arch/arm/dts/rk3568-generic-u-boot.dtsi | 7 +++++++
arch/arm/dts/rk3568-generic.dts | 14 +++++++++++++-
configs/generic-rk3568_defconfig | 15 +++++++++++++++
3 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/rk3568-generic-u-boot.dtsi b/arch/arm/dts/rk3568-generic-u-boot.dtsi
index 6e8307e3bdf6..fd7f5367b759 100644
--- a/arch/arm/dts/rk3568-generic-u-boot.dtsi
+++ b/arch/arm/dts/rk3568-generic-u-boot.dtsi
@@ -1,3 +1,10 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
#include "rk356x-u-boot.dtsi"
+
+&sfc {
+ flash@0 {
+ bootph-pre-ram;
+ bootph-some-ram;
+ };
+};
diff --git a/arch/arm/dts/rk3568-generic.dts b/arch/arm/dts/rk3568-generic.dts
index 3b9bf8052046..87c3aff26589 100644
--- a/arch/arm/dts/rk3568-generic.dts
+++ b/arch/arm/dts/rk3568-generic.dts
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
- * Minimal generic DT for RK3566/RK3568 with eMMC and SD-card enabled
+ * Minimal generic DT for RK3566/RK3568 with eMMC, SD-card and SPI flash enabled
*/
/dts-v1/;
@@ -43,6 +43,18 @@
status = "okay";
};
+&sfc {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <24000000>;
+ };
+};
+
&uart2 {
status = "okay";
};
diff --git a/configs/generic-rk3568_defconfig b/configs/generic-rk3568_defconfig
index e7d5e55bbfd8..9276eae63ee3 100644
--- a/configs/generic-rk3568_defconfig
+++ b/configs/generic-rk3568_defconfig
@@ -3,11 +3,15 @@ CONFIG_SKIP_LOWLEVEL_INIT=y
CONFIG_COUNTER_FREQUENCY=24000000
CONFIG_ARCH_ROCKCHIP=y
CONFIG_NR_DRAM_BANKS=2
+CONFIG_SF_DEFAULT_SPEED=24000000
CONFIG_DEFAULT_DEVICE_TREE="rk3568-generic"
CONFIG_ROCKCHIP_RK3568=y
+CONFIG_ROCKCHIP_SPI_IMAGE=y
CONFIG_SPL_SERIAL=y
CONFIG_DEBUG_UART_BASE=0xFE660000
CONFIG_DEBUG_UART_CLOCK=24000000
+CONFIG_SPL_SPI_FLASH_SUPPORT=y
+CONFIG_SPL_SPI=y
CONFIG_SYS_LOAD_ADDR=0xc00800
CONFIG_DEBUG_UART=y
CONFIG_FIT=y
@@ -21,6 +25,8 @@ CONFIG_DISPLAY_BOARDINFO_LATE=y
CONFIG_SPL_MAX_SIZE=0x40000
CONFIG_SPL_PAD_TO=0x7f8000
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
+CONFIG_SPL_SPI_LOAD=y
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x60000
CONFIG_SPL_ATF=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_GPT=y
@@ -43,10 +49,19 @@ 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_GIGADEVICE=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_SILICONKAISER=y
+CONFIG_SPI_FLASH_WINBOND=y
+CONFIG_SPI_FLASH_XMC=y
+CONFIG_SPI_FLASH_XTX=y
CONFIG_SPL_PINCTRL=y
CONFIG_SPL_RAM=y
CONFIG_BAUDRATE=1500000
CONFIG_DEBUG_UART_SHIFT=2
CONFIG_SYS_NS16550_MEM32=y
+CONFIG_ROCKCHIP_SFC=y
CONFIG_SYSRESET=y
CONFIG_ERRNO_STR=y
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 25/28] rockchip: rk356x-generic: Add support for USB OTG
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (23 preceding siblings ...)
2024-04-22 6:29 ` [PATCH v3 24/28] rockchip: rk356x-generic: Add support for SPI flash Jonas Karlman
@ 2024-04-22 6:29 ` Jonas Karlman
2024-04-22 8:10 ` Kever Yang
2024-04-22 6:29 ` [PATCH v3 26/28] rockchip: rk3588-generic: Use M0 iomux for UART2 Jonas Karlman
` (2 subsequent siblings)
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:29 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Jonas Karlman
Cc: Quentin Schulz, Dragan Simic, u-boot
Add support for USB OTG, RockUSB and UMS to the generic RK3566/RK3568
target.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: No change
v2: Split patch
---
arch/arm/dts/rk3568-generic.dts | 19 ++++++++++++++++++-
configs/generic-rk3568_defconfig | 10 ++++++++++
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/rk3568-generic.dts b/arch/arm/dts/rk3568-generic.dts
index 87c3aff26589..085a09268e8a 100644
--- a/arch/arm/dts/rk3568-generic.dts
+++ b/arch/arm/dts/rk3568-generic.dts
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
- * Minimal generic DT for RK3566/RK3568 with eMMC, SD-card and SPI flash enabled
+ * Minimal generic DT for RK3566/RK3568 with eMMC, SD-card, SPI flash and USB OTG enabled
*/
/dts-v1/;
@@ -58,3 +58,20 @@
&uart2 {
status = "okay";
};
+
+&usb_host0_xhci {
+ dr_mode = "peripheral";
+ extcon = <&usb2phy0>;
+ maximum-speed = "high-speed";
+ phys = <&usb2phy0_otg>;
+ phy-names = "usb2-phy";
+ status = "okay";
+};
+
+&usb2phy0 {
+ status = "okay";
+};
+
+&usb2phy0_otg {
+ status = "okay";
+};
diff --git a/configs/generic-rk3568_defconfig b/configs/generic-rk3568_defconfig
index 9276eae63ee3..26114f9cb2a5 100644
--- a/configs/generic-rk3568_defconfig
+++ b/configs/generic-rk3568_defconfig
@@ -31,6 +31,8 @@ CONFIG_SPL_ATF=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_GPT=y
CONFIG_CMD_MMC=y
+CONFIG_CMD_ROCKUSB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
# CONFIG_CMD_SETEXPR is not set
# CONFIG_SPL_DOS_PARTITION is not set
CONFIG_SPL_OF_CONTROL=y
@@ -40,6 +42,7 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
CONFIG_SPL_REGMAP=y
CONFIG_SPL_SYSCON=y
CONFIG_SPL_CLK=y
+# CONFIG_USB_FUNCTION_FASTBOOT is not set
CONFIG_ROCKCHIP_GPIO=y
CONFIG_MISC=y
# CONFIG_ROCKCHIP_IODOMAIN is not set
@@ -57,6 +60,7 @@ CONFIG_SPI_FLASH_SILICONKAISER=y
CONFIG_SPI_FLASH_WINBOND=y
CONFIG_SPI_FLASH_XMC=y
CONFIG_SPI_FLASH_XTX=y
+CONFIG_PHY_ROCKCHIP_INNO_USB2=y
CONFIG_SPL_PINCTRL=y
CONFIG_SPL_RAM=y
CONFIG_BAUDRATE=1500000
@@ -64,4 +68,10 @@ CONFIG_DEBUG_UART_SHIFT=2
CONFIG_SYS_NS16550_MEM32=y
CONFIG_ROCKCHIP_SFC=y
CONFIG_SYSRESET=y
+CONFIG_USB=y
+CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GENERIC=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_USB_FUNCTION_ROCKUSB=y
CONFIG_ERRNO_STR=y
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 26/28] rockchip: rk3588-generic: Use M0 iomux for UART2
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (24 preceding siblings ...)
2024-04-22 6:29 ` [PATCH v3 25/28] rockchip: rk356x-generic: Add support for USB OTG Jonas Karlman
@ 2024-04-22 6:29 ` Jonas Karlman
2024-04-22 8:11 ` Kever Yang
2024-04-22 6:29 ` [PATCH v3 27/28] rockchip: rk3588-generic: Add support for USB OTG Jonas Karlman
2024-04-22 6:29 ` [PATCH v3 28/28] rockchip: rk35xx-generic: Disable unused features Jonas Karlman
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:29 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Jonas Karlman
Cc: Quentin Schulz, Dragan Simic, u-boot
The default pinctrl for UART2 is using M1 iomux, however, all other
supported RK3588 boards in U-Boot use M0 iomux for UART2.
Change to use the M0 pinctrl for UART2 to match other supported boards.
Fixes: b54c3d0dd69b ("rockchip: board: Add minimal generic RK3588S/RK3588 board")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: New patch split from rk3588 bootph patch
---
arch/arm/dts/rk3588-generic.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/dts/rk3588-generic.dts b/arch/arm/dts/rk3588-generic.dts
index e4721d97a87d..baafe7463f1b 100644
--- a/arch/arm/dts/rk3588-generic.dts
+++ b/arch/arm/dts/rk3588-generic.dts
@@ -40,5 +40,6 @@
};
&uart2 {
+ pinctrl-0 = <&uart2m0_xfer>;
status = "okay";
};
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 27/28] rockchip: rk3588-generic: Add support for USB OTG
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (25 preceding siblings ...)
2024-04-22 6:29 ` [PATCH v3 26/28] rockchip: rk3588-generic: Use M0 iomux for UART2 Jonas Karlman
@ 2024-04-22 6:29 ` Jonas Karlman
2024-04-22 8:11 ` Kever Yang
2024-04-22 6:29 ` [PATCH v3 28/28] rockchip: rk35xx-generic: Disable unused features Jonas Karlman
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:29 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Jonas Karlman
Cc: Quentin Schulz, Dragan Simic, u-boot
Add support for USB OTG, RockUSB and UMS to the generic RK3588S/RK3588
target.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: No change
v2: Split patch
---
arch/arm/dts/rk3588-generic-u-boot.dtsi | 22 ++++++++++++++++++++++
arch/arm/dts/rk3588-generic.dts | 2 +-
configs/generic-rk3588_defconfig | 11 +++++++++++
3 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/rk3588-generic-u-boot.dtsi b/arch/arm/dts/rk3588-generic-u-boot.dtsi
index 853ed58cfe58..225dfa0b682a 100644
--- a/arch/arm/dts/rk3588-generic-u-boot.dtsi
+++ b/arch/arm/dts/rk3588-generic-u-boot.dtsi
@@ -1,3 +1,25 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
#include "rk3588s-u-boot.dtsi"
+
+&u2phy0 {
+ status = "okay";
+};
+
+&u2phy0_otg {
+ status = "okay";
+};
+
+&usbdp_phy0 {
+ status = "okay";
+};
+
+&usbdp_phy0_u3 {
+ status = "okay";
+};
+
+&usb_host0_xhci {
+ dr_mode = "peripheral";
+ maximum-speed = "high-speed";
+ status = "okay";
+};
diff --git a/arch/arm/dts/rk3588-generic.dts b/arch/arm/dts/rk3588-generic.dts
index baafe7463f1b..95d757676f12 100644
--- a/arch/arm/dts/rk3588-generic.dts
+++ b/arch/arm/dts/rk3588-generic.dts
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
- * Minimal generic DT for RK3588S/RK3588 with eMMC and SD-card enabled
+ * Minimal generic DT for RK3588S/RK3588 with eMMC, SD-card and USB OTG enabled
*/
/dts-v1/;
diff --git a/configs/generic-rk3588_defconfig b/configs/generic-rk3588_defconfig
index b50f4f8b8008..e96df619b59d 100644
--- a/configs/generic-rk3588_defconfig
+++ b/configs/generic-rk3588_defconfig
@@ -27,6 +27,8 @@ CONFIG_SPL_ATF=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_GPT=y
CONFIG_CMD_MMC=y
+CONFIG_CMD_ROCKUSB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
# CONFIG_CMD_SETEXPR is not set
# CONFIG_SPL_DOS_PARTITION is not set
CONFIG_SPL_OF_CONTROL=y
@@ -36,6 +38,7 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
CONFIG_SPL_REGMAP=y
CONFIG_SPL_SYSCON=y
CONFIG_SPL_CLK=y
+# CONFIG_USB_FUNCTION_FASTBOOT is not set
CONFIG_ROCKCHIP_GPIO=y
CONFIG_MISC=y
CONFIG_SUPPORT_EMMC_RPMB=y
@@ -44,10 +47,18 @@ CONFIG_MMC_DW_ROCKCHIP=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_SDMA=y
CONFIG_MMC_SDHCI_ROCKCHIP=y
+CONFIG_PHY_ROCKCHIP_INNO_USB2=y
+CONFIG_PHY_ROCKCHIP_USBDP=y
CONFIG_SPL_PINCTRL=y
CONFIG_SPL_RAM=y
CONFIG_BAUDRATE=1500000
CONFIG_DEBUG_UART_SHIFT=2
CONFIG_SYS_NS16550_MEM32=y
CONFIG_SYSRESET=y
+CONFIG_USB=y
+CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_GENERIC=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_USB_FUNCTION_ROCKUSB=y
CONFIG_ERRNO_STR=y
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* [PATCH v3 28/28] rockchip: rk35xx-generic: Disable unused features
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
` (26 preceding siblings ...)
2024-04-22 6:29 ` [PATCH v3 27/28] rockchip: rk3588-generic: Add support for USB OTG Jonas Karlman
@ 2024-04-22 6:29 ` Jonas Karlman
2024-04-22 8:11 ` Kever Yang
27 siblings, 1 reply; 57+ messages in thread
From: Jonas Karlman @ 2024-04-22 6:29 UTC (permalink / raw)
To: Kever Yang, Simon Glass, Philipp Tomsich, Tom Rini, Jonas Karlman
Cc: Quentin Schulz, Dragan Simic, u-boot
The generic RK35xx board targets are intended to be used as a bare
minimum target that can be used to e.g. boot boards that mostly follow
reference hw design before a board spefic target has been added or for
flashing and recovery purposes.
Disable BOOTMETH_VBE, NET and ADC as these features are not intended to
ever be used by these minimal generic board targets.
Enable SYSRESET_PSCI to let TF-A handle sysreset from U-Boot proper.
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
v3: No change
v2: Split patch and skip enable of SUPPORT_EMMC_BOOT option
---
configs/generic-rk3568_defconfig | 5 +++++
configs/generic-rk3588_defconfig | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/configs/generic-rk3568_defconfig b/configs/generic-rk3568_defconfig
index 26114f9cb2a5..76c15ca27cc5 100644
--- a/configs/generic-rk3568_defconfig
+++ b/configs/generic-rk3568_defconfig
@@ -18,6 +18,7 @@ CONFIG_FIT=y
CONFIG_FIT_VERBOSE=y
CONFIG_SPL_FIT_SIGNATURE=y
CONFIG_SPL_LOAD_FIT=y
+# CONFIG_BOOTMETH_VBE is not set
CONFIG_LEGACY_IMAGE_FORMAT=y
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-generic.dtb"
# CONFIG_DISPLAY_CPUINFO is not set
@@ -38,9 +39,12 @@ CONFIG_CMD_USB_MASS_STORAGE=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_SYS_RELOC_GD_ENV_ADDR=y
+# CONFIG_NET is not set
CONFIG_SPL_DM_SEQ_ALIAS=y
CONFIG_SPL_REGMAP=y
CONFIG_SPL_SYSCON=y
+# CONFIG_ADC is not set
CONFIG_SPL_CLK=y
# CONFIG_USB_FUNCTION_FASTBOOT is not set
CONFIG_ROCKCHIP_GPIO=y
@@ -68,6 +72,7 @@ CONFIG_DEBUG_UART_SHIFT=2
CONFIG_SYS_NS16550_MEM32=y
CONFIG_ROCKCHIP_SFC=y
CONFIG_SYSRESET=y
+CONFIG_SYSRESET_PSCI=y
CONFIG_USB=y
CONFIG_USB_DWC3=y
CONFIG_USB_DWC3_GENERIC=y
diff --git a/configs/generic-rk3588_defconfig b/configs/generic-rk3588_defconfig
index e96df619b59d..897456111215 100644
--- a/configs/generic-rk3588_defconfig
+++ b/configs/generic-rk3588_defconfig
@@ -15,6 +15,7 @@ CONFIG_FIT=y
CONFIG_FIT_VERBOSE=y
CONFIG_SPL_FIT_SIGNATURE=y
CONFIG_SPL_LOAD_FIT=y
+# CONFIG_BOOTMETH_VBE is not set
CONFIG_LEGACY_IMAGE_FORMAT=y
CONFIG_OF_BOARD_SETUP=y
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-generic.dtb"
@@ -34,9 +35,12 @@ CONFIG_CMD_USB_MASS_STORAGE=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_SYS_RELOC_GD_ENV_ADDR=y
+# CONFIG_NET is not set
CONFIG_SPL_DM_SEQ_ALIAS=y
CONFIG_SPL_REGMAP=y
CONFIG_SPL_SYSCON=y
+# CONFIG_ADC is not set
CONFIG_SPL_CLK=y
# CONFIG_USB_FUNCTION_FASTBOOT is not set
CONFIG_ROCKCHIP_GPIO=y
@@ -55,6 +59,7 @@ CONFIG_BAUDRATE=1500000
CONFIG_DEBUG_UART_SHIFT=2
CONFIG_SYS_NS16550_MEM32=y
CONFIG_SYSRESET=y
+CONFIG_SYSRESET_PSCI=y
CONFIG_USB=y
CONFIG_USB_DWC3=y
CONFIG_USB_DWC3_GENERIC=y
--
2.43.2
^ permalink raw reply related [flat|nested] 57+ messages in thread
* Re: [PATCH v3 01/28] clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support
2024-04-22 6:28 ` [PATCH v3 01/28] clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support Jonas Karlman
@ 2024-04-22 7:55 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 7:55 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini,
Lukasz Majewski, Sean Anderson
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> The CLK_USB3OTGx_REF clocks is used as reference clock for USB3 block.
>
> Add simple support to get rate of CLK_USB3OTGx_REF clocks to fix
> reference clock period configuration.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> Acked-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Collect a-b tag
> v2: No change
> ---
> drivers/clk/rockchip/clk_rk3568.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/clk/rockchip/clk_rk3568.c b/drivers/clk/rockchip/clk_rk3568.c
> index 57ef27dda893..999f48ea4b4e 100644
> --- a/drivers/clk/rockchip/clk_rk3568.c
> +++ b/drivers/clk/rockchip/clk_rk3568.c
> @@ -2417,6 +2417,8 @@ static ulong rk3568_clk_get_rate(struct clk *clk)
> case BCLK_EMMC:
> rate = rk3568_emmc_get_bclk(priv);
> break;
> + case CLK_USB3OTG0_REF:
> + case CLK_USB3OTG1_REF:
> case TCLK_EMMC:
> rate = OSC_HZ;
> break;
> @@ -2596,6 +2598,8 @@ static ulong rk3568_clk_set_rate(struct clk *clk, ulong rate)
> case BCLK_EMMC:
> ret = rk3568_emmc_set_bclk(priv, rate);
> break;
> + case CLK_USB3OTG0_REF:
> + case CLK_USB3OTG1_REF:
> case TCLK_EMMC:
> ret = OSC_HZ;
> break;
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 02/28] clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support
2024-04-22 6:28 ` [PATCH v3 02/28] clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support Jonas Karlman
@ 2024-04-22 7:55 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 7:55 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini,
Lukasz Majewski, Sean Anderson
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> The REF_CLK_USB3OTGx clocks is used as reference clock for USB3 block.
>
> Add simple support to get rate of REF_CLK_USB3OTGx clocks to fix
> reference clock period configuration.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
> Acked-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Collect a-b tag
> v2: Collect r-b tag
> ---
> drivers/clk/rockchip/clk_rk3588.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/clk/rockchip/clk_rk3588.c b/drivers/clk/rockchip/clk_rk3588.c
> index 8f33843179b0..4c611a390499 100644
> --- a/drivers/clk/rockchip/clk_rk3588.c
> +++ b/drivers/clk/rockchip/clk_rk3588.c
> @@ -1569,6 +1569,9 @@ static ulong rk3588_clk_get_rate(struct clk *clk)
> case DCLK_DECOM:
> rate = rk3588_mmc_get_clk(priv, clk->id);
> break;
> + case REF_CLK_USB3OTG0:
> + case REF_CLK_USB3OTG1:
> + case REF_CLK_USB3OTG2:
> case TMCLK_EMMC:
> case TCLK_WDT0:
> rate = OSC_HZ;
> @@ -1734,6 +1737,9 @@ static ulong rk3588_clk_set_rate(struct clk *clk, ulong rate)
> case DCLK_DECOM:
> ret = rk3588_mmc_set_clk(priv, clk->id, rate);
> break;
> + case REF_CLK_USB3OTG0:
> + case REF_CLK_USB3OTG1:
> + case REF_CLK_USB3OTG2:
> case TMCLK_EMMC:
> case TCLK_WDT0:
> ret = OSC_HZ;
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 03/28] clk: rockchip: rk356x: Fix set rate of SCLK_SFC clock
2024-04-22 6:28 ` [PATCH v3 03/28] clk: rockchip: rk356x: Fix set rate of SCLK_SFC clock Jonas Karlman
@ 2024-04-22 7:57 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 7:57 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini,
Lukasz Majewski, Sean Anderson
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> The SCLK_SFC can be set to a rate of 24, 50, 75, 100, 125 or 150 MHz.
>
> However, clk_set_rate() will fail unless one of those exact rates are
> used, and with newer and updated device tree files that contain
> spi-max-frequency values that does not exactly match these rates use of
> SPI flash may fail.
>
> Fix this by using the highest possible rate that exceeds or is equal to
> the requested rate.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: New patch
> ---
> drivers/clk/rockchip/clk_rk3568.c | 32 ++++++++++++-------------------
> 1 file changed, 12 insertions(+), 20 deletions(-)
>
> diff --git a/drivers/clk/rockchip/clk_rk3568.c b/drivers/clk/rockchip/clk_rk3568.c
> index 999f48ea4b4e..24eeca8bf265 100644
> --- a/drivers/clk/rockchip/clk_rk3568.c
> +++ b/drivers/clk/rockchip/clk_rk3568.c
> @@ -1527,28 +1527,20 @@ static ulong rk3568_sfc_set_clk(struct rk3568_clk_priv *priv, ulong rate)
> struct rk3568_cru *cru = priv->cru;
> int src_clk;
>
> - switch (rate) {
> - case OSC_HZ:
> - src_clk = SCLK_SFC_SEL_24M;
> - break;
> - case 50 * MHz:
> - src_clk = SCLK_SFC_SEL_50M;
> - break;
> - case 75 * MHz:
> - src_clk = SCLK_SFC_SEL_75M;
> - break;
> - case 100 * MHz:
> - src_clk = SCLK_SFC_SEL_100M;
> - break;
> - case 125 * MHz:
> - src_clk = SCLK_SFC_SEL_125M;
> - break;
> - case 150 * MHz:
> + if (rate >= 150 * MHz)
> src_clk = SCLK_SFC_SEL_150M;
> - break;
> - default:
> + else if (rate >= 125 * MHz)
> + src_clk = SCLK_SFC_SEL_125M;
> + else if (rate >= 100 * MHz)
> + src_clk = SCLK_SFC_SEL_100M;
> + else if (rate >= 75 * MHz)
> + src_clk = SCLK_SFC_SEL_75M;
> + else if (rate >= 50 * MHz)
> + src_clk = SCLK_SFC_SEL_50M;
> + else if (rate >= OSC_HZ)
> + src_clk = SCLK_SFC_SEL_24M;
> + else
> return -ENOENT;
> - }
>
> rk_clrsetreg(&cru->clksel_con[28],
> SCLK_SFC_SEL_MASK,
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 04/28] rockchip: rk35xx: Drop USB_GADGET_PRODUCT_NUM Kconfig option
2024-04-22 6:28 ` [PATCH v3 04/28] rockchip: rk35xx: Drop USB_GADGET_PRODUCT_NUM Kconfig option Jonas Karlman
@ 2024-04-22 7:57 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 7:57 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini,
Eugen Hristev, Joshua Riek
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> The commit 8c19275fdb13 ("rockchip: Update the default USB Product ID
> value") added default product id for all supported Rockchip SoCs.
>
> Remove USB_GADGET_PRODUCT_NUM options that match default value from
> RK35xx boards.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Collect r-b tag
> v2: No change
> ---
> configs/pinetab2-rk3566_defconfig | 1 -
> configs/rock5b-rk3588_defconfig | 1 -
> configs/turing-rk1-rk3588_defconfig | 1 -
> 3 files changed, 3 deletions(-)
>
> diff --git a/configs/pinetab2-rk3566_defconfig b/configs/pinetab2-rk3566_defconfig
> index bc7a77aa52fd..edeb1d89b993 100644
> --- a/configs/pinetab2-rk3566_defconfig
> +++ b/configs/pinetab2-rk3566_defconfig
> @@ -99,7 +99,6 @@ CONFIG_USB_ETHER_ASIX=y
> CONFIG_USB_ETHER_ASIX88179=y
> CONFIG_USB_ETHER_RTL8152=y
> CONFIG_USB_GADGET=y
> -CONFIG_USB_GADGET_PRODUCT_NUM=0x350a
> CONFIG_USB_GADGET_DOWNLOAD=y
> CONFIG_USB_FUNCTION_ROCKUSB=y
> CONFIG_ERRNO_STR=y
> diff --git a/configs/rock5b-rk3588_defconfig b/configs/rock5b-rk3588_defconfig
> index 58c7c44fb4f7..ac4f1ebb4c13 100644
> --- a/configs/rock5b-rk3588_defconfig
> +++ b/configs/rock5b-rk3588_defconfig
> @@ -102,7 +102,6 @@ CONFIG_USB_ETHER_MCS7830=y
> CONFIG_USB_ETHER_RTL8152=y
> CONFIG_USB_ETHER_SMSC95XX=y
> CONFIG_USB_GADGET=y
> -CONFIG_USB_GADGET_PRODUCT_NUM=0x350b
> CONFIG_USB_GADGET_DOWNLOAD=y
> CONFIG_USB_FUNCTION_ROCKUSB=y
> CONFIG_ERRNO_STR=y
> diff --git a/configs/turing-rk1-rk3588_defconfig b/configs/turing-rk1-rk3588_defconfig
> index 07f7b848529e..e18ced721789 100644
> --- a/configs/turing-rk1-rk3588_defconfig
> +++ b/configs/turing-rk1-rk3588_defconfig
> @@ -109,7 +109,6 @@ CONFIG_USB_ETHER_MCS7830=y
> CONFIG_USB_ETHER_RTL8152=y
> CONFIG_USB_ETHER_SMSC95XX=y
> CONFIG_USB_GADGET=y
> -CONFIG_USB_GADGET_PRODUCT_NUM=0x350b
> CONFIG_USB_GADGET_DOWNLOAD=y
> CONFIG_USB_FUNCTION_ROCKUSB=y
> CONFIG_ERRNO_STR=y
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 05/28] rockchip: rk3588: Drop REGULATOR_PWM Kconfig option
2024-04-22 6:28 ` [PATCH v3 05/28] rockchip: rk3588: Drop REGULATOR_PWM " Jonas Karlman
@ 2024-04-22 7:58 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 7:58 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini, Jagan Teki,
Tom Fitzhenry, Eugen Hristev, Elon Zhang, Joshua Riek
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> RK3588 boards do not have any pwm-regulator compatible nodes in DT, drop
> the superfluous REGULATOR_PWM Kconfig options.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Collect r-b tag
> v2: No change
> ---
> configs/evb-rk3588_defconfig | 1 -
> configs/neu6a-io-rk3588_defconfig | 1 -
> configs/neu6b-io-rk3588_defconfig | 1 -
> configs/quartzpro64-rk3588_defconfig | 1 -
> configs/rock5b-rk3588_defconfig | 1 -
> configs/toybrick-rk3588_defconfig | 1 -
> configs/turing-rk1-rk3588_defconfig | 1 -
> 7 files changed, 7 deletions(-)
>
> diff --git a/configs/evb-rk3588_defconfig b/configs/evb-rk3588_defconfig
> index c8db04c076ef..68ecbc54b807 100644
> --- a/configs/evb-rk3588_defconfig
> +++ b/configs/evb-rk3588_defconfig
> @@ -52,7 +52,6 @@ CONFIG_DWC_ETH_QOS_ROCKCHIP=y
> CONFIG_PHY_ROCKCHIP_INNO_USB2=y
> CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
> CONFIG_PHY_ROCKCHIP_USBDP=y
> -CONFIG_REGULATOR_PWM=y
> CONFIG_PWM_ROCKCHIP=y
> CONFIG_SPL_RAM=y
> CONFIG_BAUDRATE=1500000
> diff --git a/configs/neu6a-io-rk3588_defconfig b/configs/neu6a-io-rk3588_defconfig
> index 307a540f4249..bc2d70421ee9 100644
> --- a/configs/neu6a-io-rk3588_defconfig
> +++ b/configs/neu6a-io-rk3588_defconfig
> @@ -40,7 +40,6 @@ CONFIG_MMC_DW_ROCKCHIP=y
> CONFIG_MMC_SDHCI=y
> CONFIG_MMC_SDHCI_SDMA=y
> CONFIG_MMC_SDHCI_ROCKCHIP=y
> -CONFIG_REGULATOR_PWM=y
> CONFIG_PWM_ROCKCHIP=y
> CONFIG_SPL_RAM=y
> CONFIG_BAUDRATE=1500000
> diff --git a/configs/neu6b-io-rk3588_defconfig b/configs/neu6b-io-rk3588_defconfig
> index 9ef2bb21fffa..8bc75a5f0dd9 100644
> --- a/configs/neu6b-io-rk3588_defconfig
> +++ b/configs/neu6b-io-rk3588_defconfig
> @@ -40,7 +40,6 @@ CONFIG_MMC_DW_ROCKCHIP=y
> CONFIG_MMC_SDHCI=y
> CONFIG_MMC_SDHCI_SDMA=y
> CONFIG_MMC_SDHCI_ROCKCHIP=y
> -CONFIG_REGULATOR_PWM=y
> CONFIG_PWM_ROCKCHIP=y
> CONFIG_SPL_RAM=y
> CONFIG_BAUDRATE=1500000
> diff --git a/configs/quartzpro64-rk3588_defconfig b/configs/quartzpro64-rk3588_defconfig
> index b2a66d3f2db0..ee2521f87ae5 100644
> --- a/configs/quartzpro64-rk3588_defconfig
> +++ b/configs/quartzpro64-rk3588_defconfig
> @@ -64,7 +64,6 @@ CONFIG_PHY_ROCKCHIP_INNO_USB2=y
> CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
> CONFIG_PHY_ROCKCHIP_USBDP=y
> CONFIG_SPL_PINCTRL=y
> -CONFIG_REGULATOR_PWM=y
> CONFIG_PWM_ROCKCHIP=y
> CONFIG_SPL_RAM=y
> CONFIG_SCSI=y
> diff --git a/configs/rock5b-rk3588_defconfig b/configs/rock5b-rk3588_defconfig
> index ac4f1ebb4c13..8af56baf04d7 100644
> --- a/configs/rock5b-rk3588_defconfig
> +++ b/configs/rock5b-rk3588_defconfig
> @@ -75,7 +75,6 @@ CONFIG_PHY_ROCKCHIP_INNO_USB2=y
> CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
> CONFIG_PHY_ROCKCHIP_USBDP=y
> CONFIG_SPL_PINCTRL=y
> -CONFIG_REGULATOR_PWM=y
> CONFIG_PWM_ROCKCHIP=y
> CONFIG_SPL_RAM=y
> CONFIG_SCSI=y
> diff --git a/configs/toybrick-rk3588_defconfig b/configs/toybrick-rk3588_defconfig
> index 6ee92e943138..38fc7906eef2 100644
> --- a/configs/toybrick-rk3588_defconfig
> +++ b/configs/toybrick-rk3588_defconfig
> @@ -53,7 +53,6 @@ CONFIG_PHY_REALTEK=y
> CONFIG_DWC_ETH_QOS=y
> CONFIG_DWC_ETH_QOS_ROCKCHIP=y
> CONFIG_PHY_ROCKCHIP_INNO_USB2=y
> -CONFIG_REGULATOR_PWM=y
> CONFIG_PWM_ROCKCHIP=y
> CONFIG_SPL_RAM=y
> CONFIG_BAUDRATE=1500000
> diff --git a/configs/turing-rk1-rk3588_defconfig b/configs/turing-rk1-rk3588_defconfig
> index e18ced721789..77aacbc64b6c 100644
> --- a/configs/turing-rk1-rk3588_defconfig
> +++ b/configs/turing-rk1-rk3588_defconfig
> @@ -81,7 +81,6 @@ CONFIG_PHY_ROCKCHIP_INNO_USB2=y
> CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
> CONFIG_PHY_ROCKCHIP_USBDP=y
> CONFIG_SPL_PINCTRL=y
> -CONFIG_REGULATOR_PWM=y
> CONFIG_PWM_ROCKCHIP=y
> CONFIG_SPL_RAM=y
> CONFIG_SCSI=y
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 06/28] rockchip: rk3566-anbernic-rgxx3: Remove SPL_ROCKCHIP_BACK_TO_BROM option
2024-04-22 6:28 ` [PATCH v3 06/28] rockchip: rk3566-anbernic-rgxx3: Remove SPL_ROCKCHIP_BACK_TO_BROM option Jonas Karlman
@ 2024-04-22 7:59 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 7:59 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini,
Chris Morgan
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> SPL_ROCKCHIP_BACK_TO_BROM should normally only be enabled when BROM
> should load U-Boot binary. SPL on Anbernic RGxx3 devices load TF-A and
> U-Boot proper from FIT images and does never jump back to BROM from SPL.
>
> Remove the superfluous Kconfig option from defconfig to align with other
> RK356x boards.
>
> This patch have no intended change in boot behavior.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: No change
> v2: No change
> ---
> configs/anbernic-rgxx3-rk3566_defconfig | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/configs/anbernic-rgxx3-rk3566_defconfig b/configs/anbernic-rgxx3-rk3566_defconfig
> index c8c9238f96fc..24b050c59b53 100644
> --- a/configs/anbernic-rgxx3-rk3566_defconfig
> +++ b/configs/anbernic-rgxx3-rk3566_defconfig
> @@ -6,9 +6,7 @@ CONFIG_SPL_GPIO=y
> CONFIG_NR_DRAM_BANKS=2
> CONFIG_DEFAULT_DEVICE_TREE="rk3566-anbernic-rgxx3"
> CONFIG_ROCKCHIP_RK3568=y
> -CONFIG_SPL_ROCKCHIP_BACK_TO_BROM=y
> CONFIG_ROCKCHIP_RK8XX_DISABLE_BOOT_ON_POWERON=y
> -CONFIG_SPL_MMC=y
> CONFIG_SPL_SERIAL=y
> CONFIG_TARGET_ANBERNIC_RGXX3_RK3566=y
> CONFIG_DEBUG_UART_BASE=0xFE660000
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 07/28] rockchip: rk35xx: Sort imply statements alphabetically
2024-04-22 6:28 ` [PATCH v3 07/28] rockchip: rk35xx: Sort imply statements alphabetically Jonas Karlman
@ 2024-04-22 8:00 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:00 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> Sort imply statements under ROCKCHIP_RK3568 and ROCKCHIP_RK3588
> alphabetically.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Collect r-b tag
> v2: No change
> ---
> arch/arm/mach-rockchip/Kconfig | 24 ++++++++++++------------
> 1 file changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
> index a762c9e1e283..1cc9f7c4bb50 100644
> --- a/arch/arm/mach-rockchip/Kconfig
> +++ b/arch/arm/mach-rockchip/Kconfig
> @@ -306,12 +306,12 @@ config ROCKCHIP_RK3568
> select BOARD_LATE_INIT
> select DM_REGULATOR_FIXED
> select DM_RESET
> - imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
> - imply ROCKCHIP_COMMON_BOARD
> - imply OF_LIBFDT_OVERLAY
> - imply ROCKCHIP_OTP
> imply MISC_INIT_R
> imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
> + imply OF_LIBFDT_OVERLAY
> + imply ROCKCHIP_COMMON_BOARD
> + imply ROCKCHIP_OTP
> + imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
> imply SPL_MMC_HS200_SUPPORT if SPL_MMC && MMC_HS200_SUPPORT
> help
> The Rockchip RK3568 is a ARM-based SoC with quad-core Cortex-A55,
> @@ -333,16 +333,16 @@ config ROCKCHIP_RK3588
> select BOARD_LATE_INIT
> select DM_REGULATOR_FIXED
> select DM_RESET
> - imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
> - imply ROCKCHIP_COMMON_BOARD
> - imply OF_LIBFDT_OVERLAY
> - imply ROCKCHIP_OTP
> - imply MISC_INIT_R
> - imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
> - imply SPL_MMC_HS200_SUPPORT if SPL_MMC && MMC_HS200_SUPPORT
> + imply BOOTSTD_FULL
> imply CLK_SCMI
> + imply MISC_INIT_R
> + imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
> + imply OF_LIBFDT_OVERLAY
> + imply ROCKCHIP_COMMON_BOARD
> + imply ROCKCHIP_OTP
> imply SCMI_FIRMWARE
> - imply BOOTSTD_FULL
> + imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
> + imply SPL_MMC_HS200_SUPPORT if SPL_MMC && MMC_HS200_SUPPORT
> help
> The Rockchip RK3588 is a ARM-based SoC with quad-core Cortex-A76 and
> quad-core Cortex-A55 including NEON and GPU, 6TOPS NPU, Mali-G610 MP4,
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 08/28] rockchip: rk35xx: Enable random generator
2024-04-22 6:28 ` [PATCH v3 08/28] rockchip: rk35xx: Enable random generator Jonas Karlman
@ 2024-04-22 8:01 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:01 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini,
Chris Morgan
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> The RK35xx SoCs contain a crypto engine block that can generate random
> numbers.
>
> Enable rng node in soc u-boot.dtsi and enable Kconfig options to take
> advantage of the random generator.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Collect r-b tag
> v2: No change
> ---
> arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi | 6 ------
> arch/arm/dts/rk356x-u-boot.dtsi | 5 +++++
> arch/arm/dts/rk3588s-u-boot.dtsi | 1 -
> arch/arm/mach-rockchip/Kconfig | 4 ++++
> configs/anbernic-rgxx3-rk3566_defconfig | 2 --
> 5 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi b/arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi
> index 791f16b206f2..793ed4ae8ae0 100644
> --- a/arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi
> +++ b/arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi
> @@ -6,12 +6,6 @@
> chosen {
> u-boot,spl-boot-order = "same-as-spl", &sdmmc1, &sdmmc0;
> };
> -
> - rng: rng@fe388000 {
> - compatible = "rockchip,cryptov2-rng";
> - reg = <0x0 0xfe388000 0x0 0x2000>;
> - status = "okay";
> - };
> };
>
> &dsi_dphy0 {
> diff --git a/arch/arm/dts/rk356x-u-boot.dtsi b/arch/arm/dts/rk356x-u-boot.dtsi
> index d347080577d9..05367216e118 100644
> --- a/arch/arm/dts/rk356x-u-boot.dtsi
> +++ b/arch/arm/dts/rk356x-u-boot.dtsi
> @@ -21,6 +21,11 @@
> bootph-all;
> };
>
> + rng: rng@fe388000 {
> + compatible = "rockchip,cryptov2-rng";
> + reg = <0x0 0xfe388000 0x0 0x2000>;
> + };
> +
> otp: nvmem@fe38c000 {
> compatible = "rockchip,rk3568-otp";
> reg = <0x0 0xfe38c000 0x0 0x4000>;
> diff --git a/arch/arm/dts/rk3588s-u-boot.dtsi b/arch/arm/dts/rk3588s-u-boot.dtsi
> index ac67c777adea..233eb79d9ba2 100644
> --- a/arch/arm/dts/rk3588s-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588s-u-boot.dtsi
> @@ -91,7 +91,6 @@
> rng: rng@fe378000 {
> compatible = "rockchip,trngv1";
> reg = <0x0 0xfe378000 0x0 0x200>;
> - status = "disabled";
> };
>
> usbdp_phy0: phy@fed80000 {
> diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
> index 1cc9f7c4bb50..7b54a6f7dddc 100644
> --- a/arch/arm/mach-rockchip/Kconfig
> +++ b/arch/arm/mach-rockchip/Kconfig
> @@ -306,9 +306,11 @@ config ROCKCHIP_RK3568
> select BOARD_LATE_INIT
> select DM_REGULATOR_FIXED
> select DM_RESET
> + imply DM_RNG
> imply MISC_INIT_R
> imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
> imply OF_LIBFDT_OVERLAY
> + imply RNG_ROCKCHIP
> imply ROCKCHIP_COMMON_BOARD
> imply ROCKCHIP_OTP
> imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
> @@ -335,9 +337,11 @@ config ROCKCHIP_RK3588
> select DM_RESET
> imply BOOTSTD_FULL
> imply CLK_SCMI
> + imply DM_RNG
> imply MISC_INIT_R
> imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
> imply OF_LIBFDT_OVERLAY
> + imply RNG_ROCKCHIP
> imply ROCKCHIP_COMMON_BOARD
> imply ROCKCHIP_OTP
> imply SCMI_FIRMWARE
> diff --git a/configs/anbernic-rgxx3-rk3566_defconfig b/configs/anbernic-rgxx3-rk3566_defconfig
> index 24b050c59b53..110237e798f9 100644
> --- a/configs/anbernic-rgxx3-rk3566_defconfig
> +++ b/configs/anbernic-rgxx3-rk3566_defconfig
> @@ -68,8 +68,6 @@ CONFIG_REGULATOR_RK8XX=y
> CONFIG_PWM_ROCKCHIP=y
> CONFIG_SPL_RAM=y
> # CONFIG_RAM_ROCKCHIP_DEBUG is not set
> -CONFIG_DM_RNG=y
> -CONFIG_RNG_ROCKCHIP=y
> # CONFIG_RNG_SMCCC_TRNG is not set
> CONFIG_BAUDRATE=1500000
> CONFIG_DEBUG_UART_SHIFT=2
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 09/28] rockchip: rk35xx: Imply support for GbE PHY
2024-04-22 6:28 ` [PATCH v3 09/28] rockchip: rk35xx: Imply support for GbE PHY Jonas Karlman
@ 2024-04-22 8:01 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:01 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> Imply support for GbE PHY status parsing and configuration when support
> for onboard ethernet is enabled.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
> Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Collect r-b tag
> v2: Collect r-b tag
> ---
> arch/arm/mach-rockchip/Kconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
> index 7b54a6f7dddc..ded749e92bdd 100644
> --- a/arch/arm/mach-rockchip/Kconfig
> +++ b/arch/arm/mach-rockchip/Kconfig
> @@ -310,6 +310,7 @@ config ROCKCHIP_RK3568
> imply MISC_INIT_R
> imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
> imply OF_LIBFDT_OVERLAY
> + imply PHY_GIGE if DWC_ETH_QOS_ROCKCHIP
> imply RNG_ROCKCHIP
> imply ROCKCHIP_COMMON_BOARD
> imply ROCKCHIP_OTP
> @@ -341,6 +342,7 @@ config ROCKCHIP_RK3588
> imply MISC_INIT_R
> imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
> imply OF_LIBFDT_OVERLAY
> + imply PHY_GIGE if DWC_ETH_QOS_ROCKCHIP
> imply RNG_ROCKCHIP
> imply ROCKCHIP_COMMON_BOARD
> imply ROCKCHIP_OTP
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 10/28] rockchip: rk356x: Imply enhanced features for standard boot
2024-04-22 6:28 ` [PATCH v3 10/28] rockchip: rk356x: Imply enhanced features for standard boot Jonas Karlman
@ 2024-04-22 8:01 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:01 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini,
Frank Wunderlich
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> Imply BOOTSTD_FULL for all RK356x boards to more closely follow RK3588.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Collect r-b tag
> v2: No change
> ---
> arch/arm/mach-rockchip/Kconfig | 1 +
> configs/bpi-r2-pro-rk3568_defconfig | 1 -
> 2 files changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
> index ded749e92bdd..83779bd46208 100644
> --- a/arch/arm/mach-rockchip/Kconfig
> +++ b/arch/arm/mach-rockchip/Kconfig
> @@ -306,6 +306,7 @@ config ROCKCHIP_RK3568
> select BOARD_LATE_INIT
> select DM_REGULATOR_FIXED
> select DM_RESET
> + imply BOOTSTD_FULL
> imply DM_RNG
> imply MISC_INIT_R
> imply MMC_HS200_SUPPORT if MMC_SDHCI_ROCKCHIP
> diff --git a/configs/bpi-r2-pro-rk3568_defconfig b/configs/bpi-r2-pro-rk3568_defconfig
> index 5cc95241ba43..70837574462b 100644
> --- a/configs/bpi-r2-pro-rk3568_defconfig
> +++ b/configs/bpi-r2-pro-rk3568_defconfig
> @@ -15,7 +15,6 @@ CONFIG_FIT=y
> CONFIG_FIT_VERBOSE=y
> CONFIG_SPL_FIT_SIGNATURE=y
> CONFIG_SPL_LOAD_FIT=y
> -CONFIG_BOOTSTD_FULL=y
> CONFIG_LEGACY_IMAGE_FORMAT=y
> CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-bpi-r2-pro.dtb"
> # CONFIG_DISPLAY_CPUINFO is not set
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 11/28] rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically
2024-04-22 6:28 ` [PATCH v3 11/28] rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically Jonas Karlman
@ 2024-04-22 8:01 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:01 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> Sort nodes and props in RK356x/RK3588 u-boot.dtsi alphabetically, nodes
> is sorted by reg addr then by alphabetical order.
>
> This has no intended change beside sorting existing nodes and removing
> a duplicated usbdpphy0_grf node.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Include binman node in sort (Quentin)
> v3: Collect r-b tag
> v2: Follow kernel sort order (Quentin)
>
> [1] https://www.kernel.org/doc/html/latest/devicetree/bindings/dts-coding-style.html#order-of-properties-in-device-node
> ---
> arch/arm/dts/rk356x-u-boot.dtsi | 112 +++++++++++++++----------------
> arch/arm/dts/rk3588s-u-boot.dtsi | 91 ++++++++++++-------------
> 2 files changed, 99 insertions(+), 104 deletions(-)
>
> diff --git a/arch/arm/dts/rk356x-u-boot.dtsi b/arch/arm/dts/rk356x-u-boot.dtsi
> index 05367216e118..8ac10f1698f6 100644
> --- a/arch/arm/dts/rk356x-u-boot.dtsi
> +++ b/arch/arm/dts/rk356x-u-boot.dtsi
> @@ -38,46 +38,21 @@
> };
> };
>
> -&xin24m {
> - bootph-all;
> +#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
> +&binman {
> + simple-bin-spi {
> + mkimage {
> + args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
> + offset = <0x8000>;
> + };
> + };
> };
> +#endif
>
> &cru {
> bootph-all;
> };
>
> -&pmucru {
> - bootph-all;
> -};
> -
> -&grf {
> - bootph-all;
> -};
> -
> -&pmugrf {
> - bootph-all;
> -};
> -
> -&pinctrl {
> - bootph-all;
> -};
> -
> -&pcfg_pull_none_smt {
> - bootph-all;
> -};
> -
> -&pcfg_pull_none {
> - bootph-all;
> -};
> -
> -&pcfg_pull_up_drv_level_2 {
> - bootph-all;
> -};
> -
> -&pcfg_pull_up {
> - bootph-all;
> -};
> -
> &emmc_bus8 {
> bootph-all;
> };
> @@ -102,10 +77,51 @@
> bootph-all;
> };
>
> +&grf {
> + bootph-all;
> +};
> +
> &i2c0_xfer {
> bootph-all;
> };
>
> +&pcfg_pull_none {
> + bootph-all;
> +};
> +
> +&pcfg_pull_none_smt {
> + bootph-all;
> +};
> +
> +&pcfg_pull_up {
> + bootph-all;
> +};
> +
> +&pcfg_pull_up_drv_level_2 {
> + bootph-all;
> +};
> +
> +&pinctrl {
> + bootph-all;
> +};
> +
> +&pmucru {
> + bootph-all;
> +};
> +
> +&pmugrf {
> + bootph-all;
> +};
> +
> +&sdhci {
> + bootph-pre-ram;
> + max-frequency = <200000000>;
> +};
> +
> +&sdmmc0 {
> + bootph-pre-ram;
> +};
> +
> &sdmmc0_bus4 {
> bootph-all;
> };
> @@ -126,31 +142,15 @@
> bootph-all;
> };
>
> -&uart2m0_xfer {
> - bootph-all;
> -};
> -
> -&sdhci {
> - bootph-pre-ram;
> - max-frequency = <200000000>;
> -};
> -
> -&sdmmc0 {
> - bootph-pre-ram;
> -};
> -
> &uart2 {
> bootph-pre-ram;
> clock-frequency = <24000000>;
> };
>
> -#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
> -&binman {
> - simple-bin-spi {
> - mkimage {
> - args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
> - offset = <0x8000>;
> - };
> - };
> +&uart2m0_xfer {
> + bootph-all;
> +};
> +
> +&xin24m {
> + bootph-all;
> };
> -#endif
> diff --git a/arch/arm/dts/rk3588s-u-boot.dtsi b/arch/arm/dts/rk3588s-u-boot.dtsi
> index 233eb79d9ba2..7fcbdb969240 100644
> --- a/arch/arm/dts/rk3588s-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588s-u-boot.dtsi
> @@ -41,6 +41,17 @@
> status = "disabled";
> };
>
> + vo0_grf: syscon@fd5a6000 {
> + compatible = "rockchip,rk3588-vo-grf", "syscon";
> + reg = <0x0 0xfd5a6000 0x0 0x2000>;
> + clocks = <&cru PCLK_VO0GRF>;
> + };
> +
> + usb_grf: syscon@fd5ac000 {
> + compatible = "rockchip,rk3588-usb-grf", "syscon";
> + reg = <0x0 0xfd5ac000 0x0 0x4000>;
> + };
> +
> usbdpphy0_grf: syscon@fd5c8000 {
> compatible = "rockchip,rk3588-usbdpphy-grf", "syscon";
> reg = <0x0 0xfd5c8000 0x0 0x4000>;
> @@ -72,22 +83,6 @@
> };
> };
>
> - vo0_grf: syscon@fd5a6000 {
> - compatible = "rockchip,rk3588-vo-grf", "syscon";
> - reg = <0x0 0xfd5a6000 0x0 0x2000>;
> - clocks = <&cru PCLK_VO0GRF>;
> - };
> -
> - usb_grf: syscon@fd5ac000 {
> - compatible = "rockchip,rk3588-usb-grf", "syscon";
> - reg = <0x0 0xfd5ac000 0x0 0x4000>;
> - };
> -
> - usbdpphy0_grf: syscon@fd5c8000 {
> - compatible = "rockchip,rk3588-usbdpphy-grf", "syscon";
> - reg = <0x0 0xfd5c8000 0x0 0x4000>;
> - };
> -
> rng: rng@fe378000 {
> compatible = "rockchip,trngv1";
> reg = <0x0 0xfe378000 0x0 0x200>;
> @@ -125,6 +120,21 @@
> };
> };
>
> +#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
> +&binman {
> + simple-bin-spi {
> + mkimage {
> + args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
> + offset = <0x8000>;
> + };
> + };
> +};
> +#endif
> +
> +&cru {
> + bootph-pre-ram;
> +};
> +
> &emmc_bus8 {
> bootph-all;
> };
> @@ -145,32 +155,24 @@
> bootph-all;
> };
>
> -&pinctrl {
> - bootph-all;
> +&ioc {
> + bootph-pre-ram;
> };
>
> &pcfg_pull_none {
> bootph-all;
> };
>
> -&pcfg_pull_up_drv_level_2 {
> - bootph-all;
> -};
> -
> &pcfg_pull_up {
> bootph-all;
> };
>
> -&xin24m {
> +&pcfg_pull_up_drv_level_2 {
> bootph-all;
> };
>
> -&cru {
> - bootph-pre-ram;
> -};
> -
> -&sys_grf {
> - bootph-pre-ram;
> +&pinctrl {
> + bootph-all;
> };
>
> &pmu1grf {
> @@ -185,18 +187,18 @@
> bootph-pre-ram;
> };
>
> -&sdmmc {
> - bootph-pre-ram;
> - bootph-some-ram;
> - u-boot,spl-fifo-mode;
> -};
> -
> &sdhci {
> bootph-pre-ram;
> bootph-some-ram;
> u-boot,spl-fifo-mode;
> };
>
> +&sdmmc {
> + bootph-pre-ram;
> + bootph-some-ram;
> + u-boot,spl-fifo-mode;
> +};
> +
> &sdmmc_bus4 {
> bootph-all;
> };
> @@ -213,6 +215,10 @@
> bootph-all;
> };
>
> +&sys_grf {
> + bootph-pre-ram;
> +};
> +
> &uart2 {
> bootph-pre-ram;
> clock-frequency = <24000000>;
> @@ -222,17 +228,6 @@
> bootph-all;
> };
>
> -&ioc {
> - bootph-pre-ram;
> +&xin24m {
> + bootph-all;
> };
> -
> -#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
> -&binman {
> - simple-bin-spi {
> - mkimage {
> - args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
> - offset = <0x8000>;
> - };
> - };
> -};
> -#endif
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 12/28] rockchip: rk356x: Update bootph props
2024-04-22 6:28 ` [PATCH v3 12/28] rockchip: rk356x: Update bootph props Jonas Karlman
@ 2024-04-22 8:02 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:02 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini,
Nicolas Frattaroli, Akash Gajjar
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> After the commit aca95282c1b7 ("Makefile: Use the fdtgrep -u flag")
> bootph props is propagating to parent nodes.
>
> Update bootph props to ensure eMMC, SD-card and SPI flash is available
> in SPL and U-Boot proper pre-reloc phase also remove unneeded bootph
> props that automatically is propagated to parent nodes.
>
> Also adjust pinctrl nodes to only be included in boot phases where they
> are needed and add any missing pinctrl node needed in SPL.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Split evb-rk3568_defconfig change into a separate patch
> v2: Add bootph-some-ram props and follow kernel sort order
>
> Following bootph props have been applied:
>
> CRU, GRF and UART nodes:
> - bootph-all - needed at all or most stages
>
> SD-card regulator related nodes:
> - bootph-pre-ram (SPL) - regulator pinctrl may be needed to read FIT
> from SD-card on some boards
>
> eMMC/SD-card/SPI flash related nodes:
> - bootph-pre-ram (SPL)
> - bootph-some-ram (U-Boot proper pre-reloc)
> ---
> arch/arm/dts/rk3566-pinetab2-u-boot.dtsi | 25 +++++++----
> arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi | 8 ++--
> arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi | 4 +-
> arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi | 7 ++-
> arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 5 +--
> arch/arm/dts/rk356x-u-boot.dtsi | 51 ++++++++++++++--------
> 6 files changed, 59 insertions(+), 41 deletions(-)
>
> diff --git a/arch/arm/dts/rk3566-pinetab2-u-boot.dtsi b/arch/arm/dts/rk3566-pinetab2-u-boot.dtsi
> index 4aa6ab1c848c..eb18008f2fe3 100644
> --- a/arch/arm/dts/rk3566-pinetab2-u-boot.dtsi
> +++ b/arch/arm/dts/rk3566-pinetab2-u-boot.dtsi
> @@ -3,20 +3,31 @@
> #include "rk356x-u-boot.dtsi"
>
> &fspi_dual_io_pins {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &gpio0 {
> - bootph-all;
> + bootph-pre-ram;
> };
>
> &i2c0 {
> bootph-pre-ram;
> };
>
> +&i2c0_xfer {
> + bootph-pre-ram;
> +};
> +
> +&i2s1m0_mclk {
> + bootph-pre-ram;
> +};
> +
> +&pmic_int_l {
> + bootph-pre-ram;
> +};
> +
> &rk817 {
> - bootph-pre-ram;
> -
> regulators {
> bootph-pre-ram;
> };
> @@ -27,15 +38,13 @@
> };
>
> &sdmmc_pwren_l {
> - bootph-all;
> + bootph-pre-ram;
> };
>
> &sfc {
> - bootph-pre-ram;
> - u-boot,spl-sfc-no-dma;
> -
> flash@0 {
> bootph-pre-ram;
> + bootph-some-ram;
> };
> };
>
> diff --git a/arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi b/arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi
> index 930d660868bb..0e25b7e108fc 100644
> --- a/arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi
> +++ b/arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi
> @@ -3,7 +3,7 @@
> #include "rk356x-u-boot.dtsi"
>
> &gpio0 {
> - bootph-all;
> + bootph-pre-ram;
> };
>
> &sdhci {
> @@ -13,11 +13,9 @@
> };
>
> &sfc {
> - bootph-pre-ram;
> - u-boot,spl-sfc-no-dma;
> -
> flash@0 {
> bootph-pre-ram;
> + bootph-some-ram;
> };
> };
>
> @@ -34,5 +32,5 @@
> };
>
> &vcc_sd_h {
> - bootph-all;
> + bootph-pre-ram;
> };
> diff --git a/arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi b/arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi
> index c235b4357f7d..f2c9d8e167d5 100644
> --- a/arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi
> +++ b/arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi
> @@ -9,11 +9,9 @@
> };
>
> &sfc {
> - bootph-pre-ram;
> - u-boot,spl-sfc-no-dma;
> -
> flash@0 {
> bootph-pre-ram;
> + bootph-some-ram;
> };
> };
>
> diff --git a/arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi b/arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi
> index 1fc71faa9e07..d8a6dd87510f 100644
> --- a/arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi
> +++ b/arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi
> @@ -3,7 +3,8 @@
> #include "rk356x-u-boot.dtsi"
>
> &fspi_dual_io_pins {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdhci {
> @@ -15,10 +16,8 @@
> };
>
> &sfc {
> - bootph-pre-ram;
> - u-boot,spl-sfc-no-dma;
> -
> flash@0 {
> bootph-pre-ram;
> + bootph-some-ram;
> };
> };
> diff --git a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
> index 5b823fcca5fb..9d18f5d0b364 100644
> --- a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
> +++ b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
> @@ -26,16 +26,15 @@
> };
>
> &sfc {
> - bootph-pre-ram;
> - u-boot,spl-sfc-no-dma;
> #address-cells = <1>;
> #size-cells = <0>;
> status = "okay";
>
> flash@0 {
> - bootph-pre-ram;
> compatible = "jedec,spi-nor";
> reg = <0>;
> + bootph-pre-ram;
> + bootph-some-ram;
> spi-max-frequency = <24000000>;
> spi-rx-bus-width = <4>;
> spi-tx-bus-width = <1>;
> diff --git a/arch/arm/dts/rk356x-u-boot.dtsi b/arch/arm/dts/rk356x-u-boot.dtsi
> index 8ac10f1698f6..0a0943b462a9 100644
> --- a/arch/arm/dts/rk356x-u-boot.dtsi
> +++ b/arch/arm/dts/rk356x-u-boot.dtsi
> @@ -54,43 +54,46 @@
> };
>
> &emmc_bus8 {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &emmc_clk {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &emmc_cmd {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &emmc_datastrobe {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &emmc_rstnout {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &fspi_pins {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &grf {
> bootph-all;
> };
>
> -&i2c0_xfer {
> - bootph-all;
> -};
> -
> &pcfg_pull_none {
> bootph-all;
> };
>
> &pcfg_pull_none_smt {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &pcfg_pull_up {
> @@ -98,7 +101,8 @@
> };
>
> &pcfg_pull_up_drv_level_2 {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &pinctrl {
> @@ -115,35 +119,46 @@
>
> &sdhci {
> bootph-pre-ram;
> + bootph-some-ram;
> max-frequency = <200000000>;
> };
>
> &sdmmc0 {
> bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdmmc0_bus4 {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdmmc0_clk {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdmmc0_cmd {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdmmc0_det {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdmmc0_pwren {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> +};
> +
> +&sfc {
> + u-boot,spl-sfc-no-dma;
> };
>
> &uart2 {
> - bootph-pre-ram;
> + bootph-all;
> clock-frequency = <24000000>;
> };
>
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 13/28] rockchip: rk3588: Update bootph props
2024-04-22 6:28 ` [PATCH v3 13/28] rockchip: rk3588: " Jonas Karlman
@ 2024-04-22 8:02 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:02 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini, Andy Yan,
John Clark, Eugen Hristev, Joshua Riek
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> After the commit aca95282c1b7 ("Makefile: Use the fdtgrep -u flag")
> bootph props is propagating to parent nodes.
>
> Update bootph props to ensure eMMC, SD-card and SPI flash is available
> in SPL and U-Boot proper pre-reloc phase also remove unneeded bootph
> props that automatically is propagated to parent nodes.
>
> Also adjust pinctrl nodes to only be included in boot phases where they
> are needed and add any missing pinctrl node needed in SPL.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Split rk3588-generic.dts and evb-rk3588_defconfig changes into
> separate patches
> v3: Collect r-b tag
> v2: Add bootph-some-ram props and follow kernel sort order
>
> Following bootph props have been applied:
>
> CRU, GRF and UART nodes:
> - bootph-all - needed at all or most stages
>
> SD-card regulator related nodes:
> - bootph-pre-ram (SPL) - regulator pinctrl may be needed to read FIT
> from SD-card on some boards
>
> eMMC/SD-card/SPI flash related nodes:
> - bootph-pre-ram (SPL)
> - bootph-some-ram (U-Boot proper pre-reloc)
> ---
> .../arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi | 8 +--
> arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi | 12 ++---
> .../dts/rk3588-orangepi-5-plus-u-boot.dtsi | 7 ++-
> arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 8 +--
> arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi | 6 ++-
> arch/arm/dts/rk3588s-coolpi-4b-u-boot.dtsi | 8 +--
> arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi | 9 ++--
> arch/arm/dts/rk3588s-u-boot.dtsi | 50 ++++++++++++++-----
> 8 files changed, 67 insertions(+), 41 deletions(-)
>
> diff --git a/arch/arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi b/arch/arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi
> index ed15b14ea0ee..f0ef0164664e 100644
> --- a/arch/arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi
> @@ -3,7 +3,8 @@
> #include "rk3588-u-boot.dtsi"
>
> &fspim2_pins {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdhci {
> @@ -12,16 +13,15 @@
> };
>
> &sfc {
> - bootph-pre-ram;
> - u-boot,spl-sfc-no-dma;
> pinctrl-names = "default";
> pinctrl-0 = <&fspim2_pins>;
> status = "okay";
>
> flash@0 {
> - bootph-pre-ram;
> compatible = "jedec,spi-nor";
> reg = <0>;
> + bootph-pre-ram;
> + bootph-some-ram;
> spi-max-frequency = <24000000>;
> spi-rx-bus-width = <4>;
> spi-tx-bus-width = <1>;
> diff --git a/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi b/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi
> index 60494bb8485f..968385622fa5 100644
> --- a/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi
> @@ -7,12 +7,11 @@
> #include "rk3588-u-boot.dtsi"
>
> &fspim1_pins {
> - bootph-all;
> -};
> -
> -&sfc {
> bootph-pre-ram;
> - u-boot,spl-sfc-no-dma;
> + bootph-some-ram;
> +};
> +
> +&sfc {
> pinctrl-names = "default";
> pinctrl-0 = <&fspim1_pins>;
> #address-cells = <1>;
> @@ -20,9 +19,10 @@
> status = "okay";
>
> flash@0 {
> - bootph-pre-ram;
> compatible = "jedec,spi-nor";
> reg = <0>;
> + bootph-pre-ram;
> + bootph-some-ram;
> spi-max-frequency = <24000000>;
> spi-rx-bus-width = <4>;
> spi-tx-bus-width = <1>;
> diff --git a/arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi b/arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi
> index 5d5fa6ffb214..1ab31a4ec5ab 100644
> --- a/arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi
> @@ -3,7 +3,8 @@
> #include "rk3588-u-boot.dtsi"
>
> &fspim1_pins {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdhci {
> @@ -12,10 +13,8 @@
> };
>
> &sfc {
> - bootph-pre-ram;
> - u-boot,spl-sfc-no-dma;
> -
> flash@0 {
> bootph-pre-ram;
> + bootph-some-ram;
> };
> };
> diff --git a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
> index 9ee9dd051e32..d6020ca790f6 100644
> --- a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
> @@ -18,7 +18,8 @@
> };
>
> &fspim2_pins {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &pinctrl {
> @@ -35,16 +36,15 @@
> };
>
> &sfc {
> - bootph-pre-ram;
> - u-boot,spl-sfc-no-dma;
> pinctrl-names = "default";
> pinctrl-0 = <&fspim2_pins>;
> status = "okay";
>
> flash@0 {
> - bootph-pre-ram;
> compatible = "jedec,spi-nor";
> reg = <0>;
> + bootph-pre-ram;
> + bootph-some-ram;
> spi-max-frequency = <24000000>;
> spi-rx-bus-width = <4>;
> spi-tx-bus-width = <1>;
> diff --git a/arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi b/arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi
> index ca2a684f3541..a50bcc45f216 100644
> --- a/arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi
> @@ -12,6 +12,10 @@
> };
>
> &uart9 {
> - bootph-pre-ram;
> + bootph-all;
> clock-frequency = <24000000>;
> };
> +
> +&uart9m0_xfer {
> + bootph-all;
> +};
> diff --git a/arch/arm/dts/rk3588s-coolpi-4b-u-boot.dtsi b/arch/arm/dts/rk3588s-coolpi-4b-u-boot.dtsi
> index 6e4b97028d7c..f51d7f30d787 100644
> --- a/arch/arm/dts/rk3588s-coolpi-4b-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588s-coolpi-4b-u-boot.dtsi
> @@ -3,7 +3,8 @@
> #include "rk3588s-u-boot.dtsi"
>
> &fspim2_pins {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdhci {
> @@ -12,16 +13,15 @@
> };
>
> &sfc {
> - bootph-pre-ram;
> - u-boot,spl-sfc-no-dma;
> pinctrl-names = "default";
> pinctrl-0 = <&fspim2_pins>;
> status = "okay";
>
> flash@0 {
> - bootph-pre-ram;
> compatible = "jedec,spi-nor";
> reg = <0>;
> + bootph-pre-ram;
> + bootph-some-ram;
> spi-max-frequency = <24000000>;
> spi-rx-bus-width = <4>;
> spi-tx-bus-width = <1>;
> diff --git a/arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi b/arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi
> index 888d1b9c12d7..12a92c0cba10 100644
> --- a/arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi
> @@ -9,14 +9,13 @@
> };
>
> &fspim0_pins {
> - bootph-all;
> -};
> -
> -&sfc {
> bootph-pre-ram;
> - u-boot,spl-sfc-no-dma;
> + bootph-some-ram;
> +};
>
> +&sfc {
> flash@0 {
> bootph-pre-ram;
> + bootph-some-ram;
> };
> };
> diff --git a/arch/arm/dts/rk3588s-u-boot.dtsi b/arch/arm/dts/rk3588s-u-boot.dtsi
> index 7fcbdb969240..d3c257983ecb 100644
> --- a/arch/arm/dts/rk3588s-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588s-u-boot.dtsi
> @@ -132,31 +132,40 @@
> #endif
>
> &cru {
> - bootph-pre-ram;
> + bootph-all;
> };
>
> &emmc_bus8 {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &emmc_clk {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &emmc_cmd {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &emmc_data_strobe {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &emmc_rstnout {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &ioc {
> - bootph-pre-ram;
> + bootph-all;
> +};
> +
> +&pcfg_pull_down {
> + bootph-all;
> };
>
> &pcfg_pull_none {
> @@ -168,6 +177,11 @@
> };
>
> &pcfg_pull_up_drv_level_2 {
> + bootph-pre-ram;
> + bootph-some-ram;
> +};
> +
> +&php_grf {
> bootph-all;
> };
>
> @@ -181,10 +195,12 @@
>
> &scmi {
> bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &scmi_clk {
> bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdhci {
> @@ -200,27 +216,35 @@
> };
>
> &sdmmc_bus4 {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdmmc_clk {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdmmc_cmd {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> };
>
> &sdmmc_det {
> - bootph-all;
> + bootph-pre-ram;
> + bootph-some-ram;
> +};
> +
> +&sfc {
> + u-boot,spl-sfc-no-dma;
> };
>
> &sys_grf {
> - bootph-pre-ram;
> + bootph-all;
> };
>
> &uart2 {
> - bootph-pre-ram;
> + bootph-all;
> clock-frequency = <24000000>;
> };
>
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 14/28] rockchip: rk3568-evb: Use pinctrl in SPL
2024-04-22 6:28 ` [PATCH v3 14/28] rockchip: rk3568-evb: Use pinctrl in SPL Jonas Karlman
@ 2024-04-22 8:02 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:02 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini,
Joseph Chen
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> Pinctrl must be configured for eMMC, SD-card and SPI flash to
> successfully read FIT from all possible fallback media in SPL.
>
> Include pinctrl props and enable the SPL_PINCTRL Kconfig option to
> ensure FIT can be loaded from eMMC, SD-card and SPI flash.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: New patch, split from rk356x Update bootph props patch
> ---
> configs/evb-rk3568_defconfig | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/configs/evb-rk3568_defconfig b/configs/evb-rk3568_defconfig
> index 6e8061f5f487..37b4c5955994 100644
> --- a/configs/evb-rk3568_defconfig
> +++ b/configs/evb-rk3568_defconfig
> @@ -32,7 +32,7 @@ CONFIG_CMD_REGULATOR=y
> # CONFIG_SPL_DOS_PARTITION is not set
> CONFIG_SPL_OF_CONTROL=y
> CONFIG_OF_LIVE=y
> -CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
> +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
> @@ -49,6 +49,7 @@ CONFIG_MMC_SDHCI_ROCKCHIP=y
> CONFIG_PHY_REALTEK=y
> CONFIG_DWC_ETH_QOS=y
> CONFIG_DWC_ETH_QOS_ROCKCHIP=y
> +CONFIG_SPL_PINCTRL=y
> CONFIG_DM_PMIC=y
> CONFIG_PMIC_RK8XX=y
> CONFIG_REGULATOR_RK8XX=y
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 15/28] rockchip: rk3588-evb: Use pinctrl and aliases in SPL
2024-04-22 6:28 ` [PATCH v3 15/28] rockchip: rk3588-evb: Use pinctrl and aliases " Jonas Karlman
@ 2024-04-22 8:03 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:03 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> Pinctrl must be configured for eMMC, SD-card and SPI flash to
> successfully read FIT from all possible fallback media in SPL.
>
> Include pinctrl props and enable the SPL_PINCTRL Kconfig option to
> ensure FIT can be loaded from eMMC, SD-card and SPI flash.
>
> Also enable the SPL_DM_SEQ_ALIAS Kconfig option to ensure that the
> storage device sequence number matches in both SPL and U-Boot proper.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: New patch, split from rk3588 Update bootph props patch
> ---
> configs/evb-rk3588_defconfig | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/configs/evb-rk3588_defconfig b/configs/evb-rk3588_defconfig
> index 68ecbc54b807..610a8d740fbb 100644
> --- a/configs/evb-rk3588_defconfig
> +++ b/configs/evb-rk3588_defconfig
> @@ -33,7 +33,8 @@ CONFIG_CMD_REGULATOR=y
> # CONFIG_SPL_DOS_PARTITION is not set
> CONFIG_SPL_OF_CONTROL=y
> CONFIG_OF_LIVE=y
> -CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
> +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
> @@ -52,6 +53,7 @@ CONFIG_DWC_ETH_QOS_ROCKCHIP=y
> CONFIG_PHY_ROCKCHIP_INNO_USB2=y
> CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y
> CONFIG_PHY_ROCKCHIP_USBDP=y
> +CONFIG_SPL_PINCTRL=y
> CONFIG_PWM_ROCKCHIP=y
> CONFIG_SPL_RAM=y
> CONFIG_BAUDRATE=1500000
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 16/28] rockchip: rk3566-pinetab2: Fix reading FIT from SPI flash
2024-04-22 6:28 ` [PATCH v3 16/28] rockchip: rk3566-pinetab2: Fix reading FIT from SPI flash Jonas Karlman
@ 2024-04-22 8:07 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:07 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> The SF_DEFAULT_SPEED Kconfig option got lost during merge and this
> prevent reading FIT from SPI flash.
>
> Restore the SF_DEFAULT_SPEED option to fix this.
>
> Fixes: 8a94c376f6cb ("rockchip: Use common bss and stack addresses on RK356x")
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: No change
> v2: No change
> ---
> configs/pinetab2-rk3566_defconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/configs/pinetab2-rk3566_defconfig b/configs/pinetab2-rk3566_defconfig
> index edeb1d89b993..525a002a21b8 100644
> --- a/configs/pinetab2-rk3566_defconfig
> +++ b/configs/pinetab2-rk3566_defconfig
> @@ -4,6 +4,7 @@ CONFIG_COUNTER_FREQUENCY=24000000
> CONFIG_ARCH_ROCKCHIP=y
> CONFIG_SPL_GPIO=y
> CONFIG_NR_DRAM_BANKS=2
> +CONFIG_SF_DEFAULT_SPEED=24000000
> CONFIG_SF_DEFAULT_MODE=0x1000
> CONFIG_DEFAULT_DEVICE_TREE="rk3566-pinetab2-v2.0"
> CONFIG_ROCKCHIP_RK3568=y
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 17/28] rockchip: rk3588-coolpi: Add boards to documentation
2024-04-22 6:28 ` [PATCH v3 17/28] rockchip: rk3588-coolpi: Add boards to documentation Jonas Karlman
@ 2024-04-22 8:07 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:07 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini, Andy Yan
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> Add the CoolPi 4 Model B and CoolPi CM5 EVB board to the documentation.
>
> Fixes: 3e15dee38d45 ("board: rockchip: Add support for rk3588 based Cool Pi CM5 EVB")
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Split Makefile change to a separate patch
> v3: Collect r-b tag
> v2: No change
> ---
> doc/board/rockchip/rockchip.rst | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst
> index 5dd5ea7f1e29..9a726e9cde63 100644
> --- a/doc/board/rockchip/rockchip.rst
> +++ b/doc/board/rockchip/rockchip.rst
> @@ -131,6 +131,8 @@ List of mainline supported Rockchip boards:
> - Turing Machines RK1 (turing-rk1-rk3588)
> - Xunlong Orange Pi 5 (orangepi-5-rk3588s)
> - Xunlong Orange Pi 5 Plus (orangepi-5-plus-rk3588)
> + - Yanyi Tech CoolPi 4 Model B (coolpi-4b-rk3588s)
> + - Yanyi Tech CoolPi CM5 EVB (coolpi-cm5-evb-rk3588)
>
> * rv1108
> - Rockchip Evb-rv1108 (evb-rv1108)
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 18/28] rockchip: rk3588-coolpi: Fix .dtb-file entries in Makefile
2024-04-22 6:28 ` [PATCH v3 18/28] rockchip: rk3588-coolpi: Fix .dtb-file entries in Makefile Jonas Karlman
@ 2024-04-22 8:07 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:07 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini, Andy Yan
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> Fix CoolPi 4 Model B and CoolPi CM5 EVB .dtb-file entries in Makefile.
>
> Fixes: 3e15dee38d45 ("board: rockchip: Add support for rk3588 based Cool Pi CM5 EVB")
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
> Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: New patch, split from rk3588-coolpi documentation patch
> v3: Collect r-b tag
> ---
> arch/arm/dts/Makefile | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index b1c9c6222e5d..313ef34f5cb7 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -167,8 +167,8 @@ dtb-$(CONFIG_ROCKCHIP_RK3568) += \
> rk3568-rock-3a.dtb
>
> dtb-$(CONFIG_ROCKCHIP_RK3588) += \
> - rk3588s-coolpi-4b.dts \
> - rk3588-coolpi-cm5-evb.dts \
> + rk3588s-coolpi-4b.dtb \
> + rk3588-coolpi-cm5-evb.dtb \
> rk3588-edgeble-neu6a-io.dtb \
> rk3588-edgeble-neu6b-io.dtb \
> rk3588-evb1-v10.dtb \
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 19/28] rockchip: rk3588-toybrick: Use pinctrl and aliases in SPL
2024-04-22 6:28 ` [PATCH v3 19/28] rockchip: rk3588-toybrick: Use pinctrl and aliases in SPL Jonas Karlman
@ 2024-04-22 8:08 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:08 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini, Elon Zhang,
Weizhao Ouyang
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> Pinctrl must be configured for eMMC, SD-card and SPI flash to
> successfully read FIT from all possible fallback media in SPL.
>
> Include pinctrl props and enable the SPL_PINCTRL Kconfig option to
> ensure FIT can be loaded from eMMC, SD-card and SPI flash.
>
> Also enable the SPL_DM_SEQ_ALIAS Kconfig option to ensure that the
> storage device sequence number matches in both SPL and U-Boot proper.
>
> Fixes: 9fdd9a546986 ("board: rockchip: add Rockchip Toybrick TB-RK3588X board")
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: Drop PHY_ROCKCHIP_NANENG_COMBOPHY, usb3/sata/pcie is not enabled
> v3: Split Makefile changes to a separate patch
> v2: Fix Makefile entry from .dts to .dtb (Quentin)
> ---
> configs/toybrick-rk3588_defconfig | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/configs/toybrick-rk3588_defconfig b/configs/toybrick-rk3588_defconfig
> index 38fc7906eef2..8d773603db0b 100644
> --- a/configs/toybrick-rk3588_defconfig
> +++ b/configs/toybrick-rk3588_defconfig
> @@ -33,8 +33,9 @@ CONFIG_CMD_REGULATOR=y
> # CONFIG_SPL_DOS_PARTITION is not set
> CONFIG_SPL_OF_CONTROL=y
> CONFIG_OF_LIVE=y
> -CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
> +CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
> CONFIG_ENV_IS_IN_MMC=y
> +CONFIG_SPL_DM_SEQ_ALIAS=y
> CONFIG_SPL_REGMAP=y
> CONFIG_SPL_SYSCON=y
> CONFIG_SPL_CLK=y
> @@ -53,6 +54,7 @@ CONFIG_PHY_REALTEK=y
> CONFIG_DWC_ETH_QOS=y
> CONFIG_DWC_ETH_QOS_ROCKCHIP=y
> CONFIG_PHY_ROCKCHIP_INNO_USB2=y
> +CONFIG_SPL_PINCTRL=y
> CONFIG_PWM_ROCKCHIP=y
> CONFIG_SPL_RAM=y
> CONFIG_BAUDRATE=1500000
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 20/28] rockchip: rk3588-toybrick: Add .dtb-file entry in Makefile
2024-04-22 6:28 ` [PATCH v3 20/28] rockchip: rk3588-toybrick: Add .dtb-file entry in Makefile Jonas Karlman
@ 2024-04-22 8:08 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:08 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini,
Weizhao Ouyang, Elon Zhang
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> Add Rockchip Toybrick TB-RK3588X .dtb-file entry in Makefile.
>
> Fixes: 9fdd9a546986 ("board: rockchip: add Rockchip Toybrick TB-RK3588X board")
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: New patch split from rk3588-toybrick defconfig patch
> v2: Fix Makefile entry from .dts to .dtb (Quentin)
> ---
> arch/arm/dts/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index 313ef34f5cb7..77c31d7b1edd 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -180,6 +180,7 @@ dtb-$(CONFIG_ROCKCHIP_RK3588) += \
> rk3588-quartzpro64.dtb \
> rk3588s-rock-5a.dtb \
> rk3588-rock-5b.dtb \
> + rk3588-toybrick-x0.dtb \
> rk3588-turing-rk1.dtb
>
> dtb-$(CONFIG_ROCKCHIP_RV1108) += \
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 21/28] rockchip: rk3588-turing-rk1: Use dwc3-generic driver
2024-04-22 6:28 ` [PATCH v3 21/28] rockchip: rk3588-turing-rk1: Use dwc3-generic driver Jonas Karlman
@ 2024-04-22 8:09 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:09 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini,
Joshua Riek
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> RK35xx boards are expected to use the dwc3-generic driver and not the
> xhci-dwc3 driver.
>
> Remove the USB_XHCI_DWC3 option to ensure that the dwc3-generic driver
> is used.
>
> Fixes: 153ac950a599 ("board: rockchip: Add the Turing RK1 SoM")
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: No change
> v2: Drop change to enable the DWC_AHCI option
> ---
> configs/turing-rk1-rk3588_defconfig | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/configs/turing-rk1-rk3588_defconfig b/configs/turing-rk1-rk3588_defconfig
> index 77aacbc64b6c..5a86c7eacc8d 100644
> --- a/configs/turing-rk1-rk3588_defconfig
> +++ b/configs/turing-rk1-rk3588_defconfig
> @@ -90,7 +90,6 @@ CONFIG_ROCKCHIP_SFC=y
> CONFIG_SYSRESET=y
> CONFIG_USB=y
> CONFIG_USB_XHCI_HCD=y
> -CONFIG_USB_XHCI_DWC3=y
> CONFIG_USB_XHCI_PCI=y
> CONFIG_USB_EHCI_HCD=y
> CONFIG_USB_EHCI_GENERIC=y
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 22/28] rockchip: rk3588-edgeble-neu6: Enable FIT checksum validation
2024-04-22 6:28 ` [PATCH v3 22/28] rockchip: rk3588-edgeble-neu6: Enable FIT checksum validation Jonas Karlman
@ 2024-04-22 8:09 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:09 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini, Jagan Teki
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:28, Jonas Karlman wrote:
> Enable SPL_FIT_SIGNATURE=y and LEGACY_IMAGE_FORMAT=y to validate FIT
> images checksum in SPL.
>
> Change to SPL_MAX_SIZE=0x40000 to allow SPL up to 256 KiB in size.
>
> Enable SPL_DM_SEQ_ALIAS=y and SPL_PINCTRL=y to ensure eMMC and SD-card
> pinctrl is configured in SPL.
>
> Enable SYS_NS16550_MEM32=y to use readl/writel in serial driver.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: No change
> v2: No change
> ---
> configs/neu6a-io-rk3588_defconfig | 7 ++++++-
> configs/neu6b-io-rk3588_defconfig | 7 ++++++-
> 2 files changed, 12 insertions(+), 2 deletions(-)
>
> diff --git a/configs/neu6a-io-rk3588_defconfig b/configs/neu6a-io-rk3588_defconfig
> index bc2d70421ee9..050f1e5700b1 100644
> --- a/configs/neu6a-io-rk3588_defconfig
> +++ b/configs/neu6a-io-rk3588_defconfig
> @@ -13,11 +13,13 @@ CONFIG_SYS_LOAD_ADDR=0xc00800
> CONFIG_DEBUG_UART=y
> CONFIG_FIT=y
> CONFIG_FIT_VERBOSE=y
> +CONFIG_SPL_FIT_SIGNATURE=y
> CONFIG_SPL_LOAD_FIT=y
> +CONFIG_LEGACY_IMAGE_FORMAT=y
> CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-edgeble-neu6a-io.dtb"
> # CONFIG_DISPLAY_CPUINFO is not set
> CONFIG_DISPLAY_BOARDINFO_LATE=y
> -CONFIG_SPL_MAX_SIZE=0x20000
> +CONFIG_SPL_MAX_SIZE=0x40000
> CONFIG_SPL_PAD_TO=0x7f8000
> # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
> CONFIG_SPL_ATF=y
> @@ -28,6 +30,7 @@ CONFIG_CMD_MMC=y
> CONFIG_SPL_OF_CONTROL=y
> CONFIG_OF_LIVE=y
> CONFIG_NET_RANDOM_ETHADDR=y
> +CONFIG_SPL_DM_SEQ_ALIAS=y
> CONFIG_SPL_REGMAP=y
> CONFIG_SPL_SYSCON=y
> CONFIG_SPL_CLK=y
> @@ -40,9 +43,11 @@ CONFIG_MMC_DW_ROCKCHIP=y
> CONFIG_MMC_SDHCI=y
> CONFIG_MMC_SDHCI_SDMA=y
> CONFIG_MMC_SDHCI_ROCKCHIP=y
> +CONFIG_SPL_PINCTRL=y
> CONFIG_PWM_ROCKCHIP=y
> CONFIG_SPL_RAM=y
> CONFIG_BAUDRATE=1500000
> CONFIG_DEBUG_UART_SHIFT=2
> +CONFIG_SYS_NS16550_MEM32=y
> CONFIG_SYSRESET=y
> CONFIG_ERRNO_STR=y
> diff --git a/configs/neu6b-io-rk3588_defconfig b/configs/neu6b-io-rk3588_defconfig
> index 8bc75a5f0dd9..dabb59afe687 100644
> --- a/configs/neu6b-io-rk3588_defconfig
> +++ b/configs/neu6b-io-rk3588_defconfig
> @@ -13,11 +13,13 @@ CONFIG_SYS_LOAD_ADDR=0xc00800
> CONFIG_DEBUG_UART=y
> CONFIG_FIT=y
> CONFIG_FIT_VERBOSE=y
> +CONFIG_SPL_FIT_SIGNATURE=y
> CONFIG_SPL_LOAD_FIT=y
> +CONFIG_LEGACY_IMAGE_FORMAT=y
> CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-edgeble-neu6b-io.dtb"
> # CONFIG_DISPLAY_CPUINFO is not set
> CONFIG_DISPLAY_BOARDINFO_LATE=y
> -CONFIG_SPL_MAX_SIZE=0x20000
> +CONFIG_SPL_MAX_SIZE=0x40000
> CONFIG_SPL_PAD_TO=0x7f8000
> # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
> CONFIG_SPL_ATF=y
> @@ -28,6 +30,7 @@ CONFIG_CMD_MMC=y
> CONFIG_SPL_OF_CONTROL=y
> CONFIG_OF_LIVE=y
> CONFIG_NET_RANDOM_ETHADDR=y
> +CONFIG_SPL_DM_SEQ_ALIAS=y
> CONFIG_SPL_REGMAP=y
> CONFIG_SPL_SYSCON=y
> CONFIG_SPL_CLK=y
> @@ -40,9 +43,11 @@ CONFIG_MMC_DW_ROCKCHIP=y
> CONFIG_MMC_SDHCI=y
> CONFIG_MMC_SDHCI_SDMA=y
> CONFIG_MMC_SDHCI_ROCKCHIP=y
> +CONFIG_SPL_PINCTRL=y
> CONFIG_PWM_ROCKCHIP=y
> CONFIG_SPL_RAM=y
> CONFIG_BAUDRATE=1500000
> CONFIG_DEBUG_UART_SHIFT=2
> +CONFIG_SYS_NS16550_MEM32=y
> CONFIG_SYSRESET=y
> CONFIG_ERRNO_STR=y
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 23/28] rockchip: rk356x-generic: Fix eMMC and SD-card pinctrl
2024-04-22 6:29 ` [PATCH v3 23/28] rockchip: rk356x-generic: Fix eMMC and SD-card pinctrl Jonas Karlman
@ 2024-04-22 8:10 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:10 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:29, Jonas Karlman wrote:
> Add missing emmc_datastrobe and sdmmc0_det pinctrl to fix possible issue
> reading from eMMC or SD-card. Also use correct node for mmc1 alias.
>
> Fixes: 683f61a13f16 ("rockchip: board: Add minimal generic RK3566/RK3568 board")
> Fixes: 363cbd578169 ("rockchip: rk3568-generic: Enable eMMC HS200 mode")
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: No change
> v2: Split patch
> ---
> arch/arm/dts/rk3568-generic.dts | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/dts/rk3568-generic.dts b/arch/arm/dts/rk3568-generic.dts
> index 88eb1bfd2aab..3b9bf8052046 100644
> --- a/arch/arm/dts/rk3568-generic.dts
> +++ b/arch/arm/dts/rk3568-generic.dts
> @@ -12,7 +12,7 @@
>
> aliases {
> mmc0 = &sdhci;
> - mmc1 = &sdmmc;
> + mmc1 = &sdmmc0;
> };
>
> chosen {
> @@ -28,7 +28,7 @@
> no-sdio;
> non-removable;
> pinctrl-names = "default";
> - pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>;
> + pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe>;
> status = "okay";
> };
>
> @@ -39,7 +39,7 @@
> no-mmc;
> no-sdio;
> pinctrl-names = "default";
> - pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd>;
> + pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
> status = "okay";
> };
>
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 24/28] rockchip: rk356x-generic: Add support for SPI flash
2024-04-22 6:29 ` [PATCH v3 24/28] rockchip: rk356x-generic: Add support for SPI flash Jonas Karlman
@ 2024-04-22 8:10 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:10 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:29, Jonas Karlman wrote:
> Add support for booting from SPI flash using the generic RK3566/RK3568
> target.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: No change
> v2: Split patch
> ---
> arch/arm/dts/rk3568-generic-u-boot.dtsi | 7 +++++++
> arch/arm/dts/rk3568-generic.dts | 14 +++++++++++++-
> configs/generic-rk3568_defconfig | 15 +++++++++++++++
> 3 files changed, 35 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/dts/rk3568-generic-u-boot.dtsi b/arch/arm/dts/rk3568-generic-u-boot.dtsi
> index 6e8307e3bdf6..fd7f5367b759 100644
> --- a/arch/arm/dts/rk3568-generic-u-boot.dtsi
> +++ b/arch/arm/dts/rk3568-generic-u-boot.dtsi
> @@ -1,3 +1,10 @@
> // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>
> #include "rk356x-u-boot.dtsi"
> +
> +&sfc {
> + flash@0 {
> + bootph-pre-ram;
> + bootph-some-ram;
> + };
> +};
> diff --git a/arch/arm/dts/rk3568-generic.dts b/arch/arm/dts/rk3568-generic.dts
> index 3b9bf8052046..87c3aff26589 100644
> --- a/arch/arm/dts/rk3568-generic.dts
> +++ b/arch/arm/dts/rk3568-generic.dts
> @@ -1,6 +1,6 @@
> // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> /*
> - * Minimal generic DT for RK3566/RK3568 with eMMC and SD-card enabled
> + * Minimal generic DT for RK3566/RK3568 with eMMC, SD-card and SPI flash enabled
> */
>
> /dts-v1/;
> @@ -43,6 +43,18 @@
> status = "okay";
> };
>
> +&sfc {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "okay";
> +
> + flash@0 {
> + compatible = "jedec,spi-nor";
> + reg = <0>;
> + spi-max-frequency = <24000000>;
> + };
> +};
> +
> &uart2 {
> status = "okay";
> };
> diff --git a/configs/generic-rk3568_defconfig b/configs/generic-rk3568_defconfig
> index e7d5e55bbfd8..9276eae63ee3 100644
> --- a/configs/generic-rk3568_defconfig
> +++ b/configs/generic-rk3568_defconfig
> @@ -3,11 +3,15 @@ CONFIG_SKIP_LOWLEVEL_INIT=y
> CONFIG_COUNTER_FREQUENCY=24000000
> CONFIG_ARCH_ROCKCHIP=y
> CONFIG_NR_DRAM_BANKS=2
> +CONFIG_SF_DEFAULT_SPEED=24000000
> CONFIG_DEFAULT_DEVICE_TREE="rk3568-generic"
> CONFIG_ROCKCHIP_RK3568=y
> +CONFIG_ROCKCHIP_SPI_IMAGE=y
> CONFIG_SPL_SERIAL=y
> CONFIG_DEBUG_UART_BASE=0xFE660000
> CONFIG_DEBUG_UART_CLOCK=24000000
> +CONFIG_SPL_SPI_FLASH_SUPPORT=y
> +CONFIG_SPL_SPI=y
> CONFIG_SYS_LOAD_ADDR=0xc00800
> CONFIG_DEBUG_UART=y
> CONFIG_FIT=y
> @@ -21,6 +25,8 @@ CONFIG_DISPLAY_BOARDINFO_LATE=y
> CONFIG_SPL_MAX_SIZE=0x40000
> CONFIG_SPL_PAD_TO=0x7f8000
> # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
> +CONFIG_SPL_SPI_LOAD=y
> +CONFIG_SYS_SPI_U_BOOT_OFFS=0x60000
> CONFIG_SPL_ATF=y
> CONFIG_CMD_GPIO=y
> CONFIG_CMD_GPT=y
> @@ -43,10 +49,19 @@ 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_GIGADEVICE=y
> +CONFIG_SPI_FLASH_MACRONIX=y
> +CONFIG_SPI_FLASH_SILICONKAISER=y
> +CONFIG_SPI_FLASH_WINBOND=y
> +CONFIG_SPI_FLASH_XMC=y
> +CONFIG_SPI_FLASH_XTX=y
> CONFIG_SPL_PINCTRL=y
> CONFIG_SPL_RAM=y
> CONFIG_BAUDRATE=1500000
> CONFIG_DEBUG_UART_SHIFT=2
> CONFIG_SYS_NS16550_MEM32=y
> +CONFIG_ROCKCHIP_SFC=y
> CONFIG_SYSRESET=y
> CONFIG_ERRNO_STR=y
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 25/28] rockchip: rk356x-generic: Add support for USB OTG
2024-04-22 6:29 ` [PATCH v3 25/28] rockchip: rk356x-generic: Add support for USB OTG Jonas Karlman
@ 2024-04-22 8:10 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:10 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:29, Jonas Karlman wrote:
> Add support for USB OTG, RockUSB and UMS to the generic RK3566/RK3568
> target.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: No change
> v2: Split patch
> ---
> arch/arm/dts/rk3568-generic.dts | 19 ++++++++++++++++++-
> configs/generic-rk3568_defconfig | 10 ++++++++++
> 2 files changed, 28 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/dts/rk3568-generic.dts b/arch/arm/dts/rk3568-generic.dts
> index 87c3aff26589..085a09268e8a 100644
> --- a/arch/arm/dts/rk3568-generic.dts
> +++ b/arch/arm/dts/rk3568-generic.dts
> @@ -1,6 +1,6 @@
> // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> /*
> - * Minimal generic DT for RK3566/RK3568 with eMMC, SD-card and SPI flash enabled
> + * Minimal generic DT for RK3566/RK3568 with eMMC, SD-card, SPI flash and USB OTG enabled
> */
>
> /dts-v1/;
> @@ -58,3 +58,20 @@
> &uart2 {
> status = "okay";
> };
> +
> +&usb_host0_xhci {
> + dr_mode = "peripheral";
> + extcon = <&usb2phy0>;
> + maximum-speed = "high-speed";
> + phys = <&usb2phy0_otg>;
> + phy-names = "usb2-phy";
> + status = "okay";
> +};
> +
> +&usb2phy0 {
> + status = "okay";
> +};
> +
> +&usb2phy0_otg {
> + status = "okay";
> +};
> diff --git a/configs/generic-rk3568_defconfig b/configs/generic-rk3568_defconfig
> index 9276eae63ee3..26114f9cb2a5 100644
> --- a/configs/generic-rk3568_defconfig
> +++ b/configs/generic-rk3568_defconfig
> @@ -31,6 +31,8 @@ CONFIG_SPL_ATF=y
> CONFIG_CMD_GPIO=y
> CONFIG_CMD_GPT=y
> CONFIG_CMD_MMC=y
> +CONFIG_CMD_ROCKUSB=y
> +CONFIG_CMD_USB_MASS_STORAGE=y
> # CONFIG_CMD_SETEXPR is not set
> # CONFIG_SPL_DOS_PARTITION is not set
> CONFIG_SPL_OF_CONTROL=y
> @@ -40,6 +42,7 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
> CONFIG_SPL_REGMAP=y
> CONFIG_SPL_SYSCON=y
> CONFIG_SPL_CLK=y
> +# CONFIG_USB_FUNCTION_FASTBOOT is not set
> CONFIG_ROCKCHIP_GPIO=y
> CONFIG_MISC=y
> # CONFIG_ROCKCHIP_IODOMAIN is not set
> @@ -57,6 +60,7 @@ CONFIG_SPI_FLASH_SILICONKAISER=y
> CONFIG_SPI_FLASH_WINBOND=y
> CONFIG_SPI_FLASH_XMC=y
> CONFIG_SPI_FLASH_XTX=y
> +CONFIG_PHY_ROCKCHIP_INNO_USB2=y
> CONFIG_SPL_PINCTRL=y
> CONFIG_SPL_RAM=y
> CONFIG_BAUDRATE=1500000
> @@ -64,4 +68,10 @@ CONFIG_DEBUG_UART_SHIFT=2
> CONFIG_SYS_NS16550_MEM32=y
> CONFIG_ROCKCHIP_SFC=y
> CONFIG_SYSRESET=y
> +CONFIG_USB=y
> +CONFIG_USB_DWC3=y
> +CONFIG_USB_DWC3_GENERIC=y
> +CONFIG_USB_GADGET=y
> +CONFIG_USB_GADGET_DOWNLOAD=y
> +CONFIG_USB_FUNCTION_ROCKUSB=y
> CONFIG_ERRNO_STR=y
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 26/28] rockchip: rk3588-generic: Use M0 iomux for UART2
2024-04-22 6:29 ` [PATCH v3 26/28] rockchip: rk3588-generic: Use M0 iomux for UART2 Jonas Karlman
@ 2024-04-22 8:11 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:11 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:29, Jonas Karlman wrote:
> The default pinctrl for UART2 is using M1 iomux, however, all other
> supported RK3588 boards in U-Boot use M0 iomux for UART2.
>
> Change to use the M0 pinctrl for UART2 to match other supported boards.
>
> Fixes: b54c3d0dd69b ("rockchip: board: Add minimal generic RK3588S/RK3588 board")
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: New patch split from rk3588 bootph patch
> ---
> arch/arm/dts/rk3588-generic.dts | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/dts/rk3588-generic.dts b/arch/arm/dts/rk3588-generic.dts
> index e4721d97a87d..baafe7463f1b 100644
> --- a/arch/arm/dts/rk3588-generic.dts
> +++ b/arch/arm/dts/rk3588-generic.dts
> @@ -40,5 +40,6 @@
> };
>
> &uart2 {
> + pinctrl-0 = <&uart2m0_xfer>;
> status = "okay";
> };
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 27/28] rockchip: rk3588-generic: Add support for USB OTG
2024-04-22 6:29 ` [PATCH v3 27/28] rockchip: rk3588-generic: Add support for USB OTG Jonas Karlman
@ 2024-04-22 8:11 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:11 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:29, Jonas Karlman wrote:
> Add support for USB OTG, RockUSB and UMS to the generic RK3588S/RK3588
> target.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: No change
> v2: Split patch
> ---
> arch/arm/dts/rk3588-generic-u-boot.dtsi | 22 ++++++++++++++++++++++
> arch/arm/dts/rk3588-generic.dts | 2 +-
> configs/generic-rk3588_defconfig | 11 +++++++++++
> 3 files changed, 34 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/dts/rk3588-generic-u-boot.dtsi b/arch/arm/dts/rk3588-generic-u-boot.dtsi
> index 853ed58cfe58..225dfa0b682a 100644
> --- a/arch/arm/dts/rk3588-generic-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-generic-u-boot.dtsi
> @@ -1,3 +1,25 @@
> // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>
> #include "rk3588s-u-boot.dtsi"
> +
> +&u2phy0 {
> + status = "okay";
> +};
> +
> +&u2phy0_otg {
> + status = "okay";
> +};
> +
> +&usbdp_phy0 {
> + status = "okay";
> +};
> +
> +&usbdp_phy0_u3 {
> + status = "okay";
> +};
> +
> +&usb_host0_xhci {
> + dr_mode = "peripheral";
> + maximum-speed = "high-speed";
> + status = "okay";
> +};
> diff --git a/arch/arm/dts/rk3588-generic.dts b/arch/arm/dts/rk3588-generic.dts
> index baafe7463f1b..95d757676f12 100644
> --- a/arch/arm/dts/rk3588-generic.dts
> +++ b/arch/arm/dts/rk3588-generic.dts
> @@ -1,6 +1,6 @@
> // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
> /*
> - * Minimal generic DT for RK3588S/RK3588 with eMMC and SD-card enabled
> + * Minimal generic DT for RK3588S/RK3588 with eMMC, SD-card and USB OTG enabled
> */
>
> /dts-v1/;
> diff --git a/configs/generic-rk3588_defconfig b/configs/generic-rk3588_defconfig
> index b50f4f8b8008..e96df619b59d 100644
> --- a/configs/generic-rk3588_defconfig
> +++ b/configs/generic-rk3588_defconfig
> @@ -27,6 +27,8 @@ CONFIG_SPL_ATF=y
> CONFIG_CMD_GPIO=y
> CONFIG_CMD_GPT=y
> CONFIG_CMD_MMC=y
> +CONFIG_CMD_ROCKUSB=y
> +CONFIG_CMD_USB_MASS_STORAGE=y
> # CONFIG_CMD_SETEXPR is not set
> # CONFIG_SPL_DOS_PARTITION is not set
> CONFIG_SPL_OF_CONTROL=y
> @@ -36,6 +38,7 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
> CONFIG_SPL_REGMAP=y
> CONFIG_SPL_SYSCON=y
> CONFIG_SPL_CLK=y
> +# CONFIG_USB_FUNCTION_FASTBOOT is not set
> CONFIG_ROCKCHIP_GPIO=y
> CONFIG_MISC=y
> CONFIG_SUPPORT_EMMC_RPMB=y
> @@ -44,10 +47,18 @@ CONFIG_MMC_DW_ROCKCHIP=y
> CONFIG_MMC_SDHCI=y
> CONFIG_MMC_SDHCI_SDMA=y
> CONFIG_MMC_SDHCI_ROCKCHIP=y
> +CONFIG_PHY_ROCKCHIP_INNO_USB2=y
> +CONFIG_PHY_ROCKCHIP_USBDP=y
> CONFIG_SPL_PINCTRL=y
> CONFIG_SPL_RAM=y
> CONFIG_BAUDRATE=1500000
> CONFIG_DEBUG_UART_SHIFT=2
> CONFIG_SYS_NS16550_MEM32=y
> CONFIG_SYSRESET=y
> +CONFIG_USB=y
> +CONFIG_USB_DWC3=y
> +CONFIG_USB_DWC3_GENERIC=y
> +CONFIG_USB_GADGET=y
> +CONFIG_USB_GADGET_DOWNLOAD=y
> +CONFIG_USB_FUNCTION_ROCKUSB=y
> CONFIG_ERRNO_STR=y
^ permalink raw reply [flat|nested] 57+ messages in thread
* Re: [PATCH v3 28/28] rockchip: rk35xx-generic: Disable unused features
2024-04-22 6:29 ` [PATCH v3 28/28] rockchip: rk35xx-generic: Disable unused features Jonas Karlman
@ 2024-04-22 8:11 ` Kever Yang
0 siblings, 0 replies; 57+ messages in thread
From: Kever Yang @ 2024-04-22 8:11 UTC (permalink / raw)
To: Jonas Karlman, Simon Glass, Philipp Tomsich, Tom Rini
Cc: Quentin Schulz, Dragan Simic, u-boot
On 2024/4/22 14:29, Jonas Karlman wrote:
> The generic RK35xx board targets are intended to be used as a bare
> minimum target that can be used to e.g. boot boards that mostly follow
> reference hw design before a board spefic target has been added or for
> flashing and recovery purposes.
>
> Disable BOOTMETH_VBE, NET and ADC as these features are not intended to
> ever be used by these minimal generic board targets.
>
> Enable SYSRESET_PSCI to let TF-A handle sysreset from U-Boot proper.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> v3: No change
> v2: Split patch and skip enable of SUPPORT_EMMC_BOOT option
> ---
> configs/generic-rk3568_defconfig | 5 +++++
> configs/generic-rk3588_defconfig | 5 +++++
> 2 files changed, 10 insertions(+)
>
> diff --git a/configs/generic-rk3568_defconfig b/configs/generic-rk3568_defconfig
> index 26114f9cb2a5..76c15ca27cc5 100644
> --- a/configs/generic-rk3568_defconfig
> +++ b/configs/generic-rk3568_defconfig
> @@ -18,6 +18,7 @@ CONFIG_FIT=y
> CONFIG_FIT_VERBOSE=y
> CONFIG_SPL_FIT_SIGNATURE=y
> CONFIG_SPL_LOAD_FIT=y
> +# CONFIG_BOOTMETH_VBE is not set
> CONFIG_LEGACY_IMAGE_FORMAT=y
> CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-generic.dtb"
> # CONFIG_DISPLAY_CPUINFO is not set
> @@ -38,9 +39,12 @@ CONFIG_CMD_USB_MASS_STORAGE=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_SYS_RELOC_GD_ENV_ADDR=y
> +# CONFIG_NET is not set
> CONFIG_SPL_DM_SEQ_ALIAS=y
> CONFIG_SPL_REGMAP=y
> CONFIG_SPL_SYSCON=y
> +# CONFIG_ADC is not set
> CONFIG_SPL_CLK=y
> # CONFIG_USB_FUNCTION_FASTBOOT is not set
> CONFIG_ROCKCHIP_GPIO=y
> @@ -68,6 +72,7 @@ CONFIG_DEBUG_UART_SHIFT=2
> CONFIG_SYS_NS16550_MEM32=y
> CONFIG_ROCKCHIP_SFC=y
> CONFIG_SYSRESET=y
> +CONFIG_SYSRESET_PSCI=y
> CONFIG_USB=y
> CONFIG_USB_DWC3=y
> CONFIG_USB_DWC3_GENERIC=y
> diff --git a/configs/generic-rk3588_defconfig b/configs/generic-rk3588_defconfig
> index e96df619b59d..897456111215 100644
> --- a/configs/generic-rk3588_defconfig
> +++ b/configs/generic-rk3588_defconfig
> @@ -15,6 +15,7 @@ CONFIG_FIT=y
> CONFIG_FIT_VERBOSE=y
> CONFIG_SPL_FIT_SIGNATURE=y
> CONFIG_SPL_LOAD_FIT=y
> +# CONFIG_BOOTMETH_VBE is not set
> CONFIG_LEGACY_IMAGE_FORMAT=y
> CONFIG_OF_BOARD_SETUP=y
> CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-generic.dtb"
> @@ -34,9 +35,12 @@ CONFIG_CMD_USB_MASS_STORAGE=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_SYS_RELOC_GD_ENV_ADDR=y
> +# CONFIG_NET is not set
> CONFIG_SPL_DM_SEQ_ALIAS=y
> CONFIG_SPL_REGMAP=y
> CONFIG_SPL_SYSCON=y
> +# CONFIG_ADC is not set
> CONFIG_SPL_CLK=y
> # CONFIG_USB_FUNCTION_FASTBOOT is not set
> CONFIG_ROCKCHIP_GPIO=y
> @@ -55,6 +59,7 @@ CONFIG_BAUDRATE=1500000
> CONFIG_DEBUG_UART_SHIFT=2
> CONFIG_SYS_NS16550_MEM32=y
> CONFIG_SYSRESET=y
> +CONFIG_SYSRESET_PSCI=y
> CONFIG_USB=y
> CONFIG_USB_DWC3=y
> CONFIG_USB_DWC3_GENERIC=y
^ permalink raw reply [flat|nested] 57+ messages in thread
end of thread, other threads:[~2024-04-22 8:11 UTC | newest]
Thread overview: 57+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-22 6:28 [PATCH v3 00/28] rockchip: rk35xx: Miscellaneous fixes and updates Jonas Karlman
2024-04-22 6:28 ` [PATCH v3 01/28] clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support Jonas Karlman
2024-04-22 7:55 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 02/28] clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support Jonas Karlman
2024-04-22 7:55 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 03/28] clk: rockchip: rk356x: Fix set rate of SCLK_SFC clock Jonas Karlman
2024-04-22 7:57 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 04/28] rockchip: rk35xx: Drop USB_GADGET_PRODUCT_NUM Kconfig option Jonas Karlman
2024-04-22 7:57 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 05/28] rockchip: rk3588: Drop REGULATOR_PWM " Jonas Karlman
2024-04-22 7:58 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 06/28] rockchip: rk3566-anbernic-rgxx3: Remove SPL_ROCKCHIP_BACK_TO_BROM option Jonas Karlman
2024-04-22 7:59 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 07/28] rockchip: rk35xx: Sort imply statements alphabetically Jonas Karlman
2024-04-22 8:00 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 08/28] rockchip: rk35xx: Enable random generator Jonas Karlman
2024-04-22 8:01 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 09/28] rockchip: rk35xx: Imply support for GbE PHY Jonas Karlman
2024-04-22 8:01 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 10/28] rockchip: rk356x: Imply enhanced features for standard boot Jonas Karlman
2024-04-22 8:01 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 11/28] rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically Jonas Karlman
2024-04-22 8:01 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 12/28] rockchip: rk356x: Update bootph props Jonas Karlman
2024-04-22 8:02 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 13/28] rockchip: rk3588: " Jonas Karlman
2024-04-22 8:02 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 14/28] rockchip: rk3568-evb: Use pinctrl in SPL Jonas Karlman
2024-04-22 8:02 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 15/28] rockchip: rk3588-evb: Use pinctrl and aliases " Jonas Karlman
2024-04-22 8:03 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 16/28] rockchip: rk3566-pinetab2: Fix reading FIT from SPI flash Jonas Karlman
2024-04-22 8:07 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 17/28] rockchip: rk3588-coolpi: Add boards to documentation Jonas Karlman
2024-04-22 8:07 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 18/28] rockchip: rk3588-coolpi: Fix .dtb-file entries in Makefile Jonas Karlman
2024-04-22 8:07 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 19/28] rockchip: rk3588-toybrick: Use pinctrl and aliases in SPL Jonas Karlman
2024-04-22 8:08 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 20/28] rockchip: rk3588-toybrick: Add .dtb-file entry in Makefile Jonas Karlman
2024-04-22 8:08 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 21/28] rockchip: rk3588-turing-rk1: Use dwc3-generic driver Jonas Karlman
2024-04-22 8:09 ` Kever Yang
2024-04-22 6:28 ` [PATCH v3 22/28] rockchip: rk3588-edgeble-neu6: Enable FIT checksum validation Jonas Karlman
2024-04-22 8:09 ` Kever Yang
2024-04-22 6:29 ` [PATCH v3 23/28] rockchip: rk356x-generic: Fix eMMC and SD-card pinctrl Jonas Karlman
2024-04-22 8:10 ` Kever Yang
2024-04-22 6:29 ` [PATCH v3 24/28] rockchip: rk356x-generic: Add support for SPI flash Jonas Karlman
2024-04-22 8:10 ` Kever Yang
2024-04-22 6:29 ` [PATCH v3 25/28] rockchip: rk356x-generic: Add support for USB OTG Jonas Karlman
2024-04-22 8:10 ` Kever Yang
2024-04-22 6:29 ` [PATCH v3 26/28] rockchip: rk3588-generic: Use M0 iomux for UART2 Jonas Karlman
2024-04-22 8:11 ` Kever Yang
2024-04-22 6:29 ` [PATCH v3 27/28] rockchip: rk3588-generic: Add support for USB OTG Jonas Karlman
2024-04-22 8:11 ` Kever Yang
2024-04-22 6:29 ` [PATCH v3 28/28] rockchip: rk35xx-generic: Disable unused features Jonas Karlman
2024-04-22 8:11 ` Kever Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox