rockchip: rk35xx: Miscellaneous fixes and updates
Subsystems (4)
v2 cover rockchip: rk35xx: Miscellaneous fixes and updates
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-5 drops unnecessary Kconfig options.
Patch 6-9 sort and imply RNG, PHY_GIGE and BOOTSTD_FULL Kconfig options.
Patch 10-12 sort and update use of bootph properties.
Patch 13-16 fixes minor issues observed with newly added boards.
Patch 17 enables options on rk3588-edgeble-neu6 boards to closer match other RK35xx boards.
Patch 18-22 adds SPI flash and USB OTG support to the rk35xx-generic boards.
Patch 23 fixes use of HS200 mode on a few RK3588 boards.
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 (23):
clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support
clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support
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: rk3566-pinetab2: Fix reading FIT from SPI flash
rockchip: rk3588-coolpi: Add boards to documentation
rockchip: rk3588-toybrick: Add missing Kconfig options
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: Add support for USB OTG
rockchip: rk35xx-generic: Disable unused features
rockchip: rk3588: Enable use of eMMC HS200 mode on a few missed boards
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 | 136 ++++++++++-------- .../arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi | 8 +- .../dts/rk3588-edgeble-neu6a-io-u-boot.dtsi | 5 + .../dts/rk3588-edgeble-neu6b-io-u-boot.dtsi | 5 + arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi | 5 + 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 | 17 ++- .../dts/rk3588-orangepi-5-plus-u-boot.dtsi | 7 +- arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi | 5 + arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 8 +- arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi | 5 + 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 | 104 ++++++++------ 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 | 6 +- configs/turing-rk1-rk3588_defconfig | 3 - doc/board/rockchip/rockchip.rst | 2 + drivers/clk/rockchip/clk_rk3568.c | 4 + drivers/clk/rockchip/clk_rk3588.c | 6 + 42 files changed, 391 insertions(+), 198 deletions(-)
Signature · 1 line
2.43.2
PATCH v2 1/23 clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support
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.
---
v2: No change
--- drivers/clk/rockchip/clk_rk3568.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/clk/rockchip/clk_rk3568.c +4 -0
@@ -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 ;
Signature · 1 line
2.43.2
Re: [PATCH v2 01/23] clk: rockchip: rk356x: Add CLK_USB3OTGx_REF support
Quoted 26 lines · Jonas Karlman
The
CLK_USB3OTGx_REFclocks is used as reference clock for USB3 block.Add simple support to get rate of
CLK_USB3OTGx_REFclocks to fix reference clock period configuration.Signed-off-by Jonas Karlman <[email protected]>---
v2: No change--- drivers/clk/rockchip/clk_rk3568.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/clk/rockchip/clk_rk3568.c +2
-0@@ -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 ;
drivers/clk/rockchip/clk_rk3568.c static ulong rk3568_clk_set_rate(struct clk *clk, ulong rate) · line 2605
Quoted 8 lines
drivers/clk/rockchip/clk_rk3568.c +2
-0@@ -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 ;
PATCH v2 2/23 clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support
In reply to Jonas KarlmanThe 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.
---
v2: Collect r-b tag
--- drivers/clk/rockchip/clk_rk3588.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/clk/rockchip/clk_rk3588.c +6 -0
@@ -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 ;
Signature · 1 line
2.43.2
Re: [PATCH v2 02/23] clk: rockchip: rk3588: Add REF_CLK_USB3OTGx support
Quoted 28 lines · Jonas Karlman
The
REF_CLK_USB3OTGxclocks is used as reference clock for USB3 block.Add simple support to get rate of
REF_CLK_USB3OTGxclocks to fix reference clock period configuration.Signed-off-by Jonas Karlman <[email protected]>Reviewed-by Quentin Schulz <[email protected]>---
v2: Collect r-b tag--- drivers/clk/rockchip/clk_rk3588.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/clk/rockchip/clk_rk3588.c +3
-0@@ -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 ;
drivers/clk/rockchip/clk_rk3588.c static ulong rk3588_clk_set_rate(struct clk *clk, ulong rate) · line 1745
Quoted 9 lines
drivers/clk/rockchip/clk_rk3588.c +3
-0@@ -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 ;
PATCH v2 3/23 rockchip: rk35xx: Drop USB_GADGET_PRODUCT_NUM Kconfig option
In reply to Jonas KarlmanThe 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.
---
v2: No change
--- configs/pinetab2-rk3566_defconfig | 1 - configs/rock5b-rk3588_defconfig | 1 - configs/turing-rk1-rk3588_defconfig | 1 - 3 files changed, 3 deletions(-)
configs/pinetab2-rk3566_defconfig +0 -1
@@ -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
configs/rock5b-rk3588_defconfig +0 -1
@@ -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
configs/turing-rk1-rk3588_defconfig +0 -1
@@ -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
Signature · 1 line
2.43.2
Re: [PATCH v2 03/23] rockchip: rk35xx: Drop USB_GADGET_PRODUCT_NUM Kconfig option
Quoted 7 lines · Jonas Karlman
The commit
8c19275fdb13("rockchip: Update the default USB Product ID value") added default product id for all supported Rockchip SoCs.Remove
USB_GADGET_PRODUCT_NUMoptions that match default value from RK35xx boards.Signed-off-by Jonas Karlman <[email protected]>
Looking good to me.
Quoted 46 lines
---
v2: No change--- configs/pinetab2-rk3566_defconfig | 1 - configs/rock5b-rk3588_defconfig | 1 - configs/turing-rk1-rk3588_defconfig | 1 - 3 files changed, 3 deletions(-)configs/pinetab2-rk3566_defconfig +0
-1@@ -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=yconfigs/rock5b-rk3588_defconfig +0
-1@@ -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=yconfigs/turing-rk1-rk3588_defconfig +0
-1@@ -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
PATCH v2 4/23 rockchip: rk3588: Drop REGULATOR_PWM Kconfig option
In reply to Jonas KarlmanRK3588 boards do not have any pwm-regulator compatible nodes in DT, drop the superfluous REGULATOR_PWM Kconfig options.
---
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(-)
configs/evb-rk3588_defconfig +0 -1
@@ -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
configs/neu6a-io-rk3588_defconfig +0 -1
@@ -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
configs/neu6b-io-rk3588_defconfig +0 -1
@@ -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
configs/quartzpro64-rk3588_defconfig +0 -1
@@ -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
configs/rock5b-rk3588_defconfig +0 -1
@@ -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
configs/toybrick-rk3588_defconfig +0 -1
@@ -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
configs/turing-rk1-rk3588_defconfig +0 -1
@@ -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
Signature · 1 line
2.43.2
Re: [PATCH v2 04/23] rockchip: rk3588: Drop REGULATOR_PWM Kconfig option
Quoted 4 lines · Jonas Karlman
RK3588 boards do not have any pwm-regulator compatible nodes in DT, drop the superfluous
REGULATOR_PWMKconfigoptions.Signed-off-by Jonas Karlman <[email protected]>
Looking good to me.
Quoted 101 lines
---
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(-)configs/evb-rk3588_defconfig +0
-1@@ -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=1500000configs/neu6a-io-rk3588_defconfig +0
-1@@ -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=1500000configs/neu6b-io-rk3588_defconfig +0
-1@@ -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=1500000configs/quartzpro64-rk3588_defconfig +0
-1@@ -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=yconfigs/rock5b-rk3588_defconfig +0
-1@@ -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=yconfigs/toybrick-rk3588_defconfig +0
-1@@ -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=1500000configs/turing-rk1-rk3588_defconfig +0
-1@@ -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
PATCH v2 5/23 rockchip: rk3566-anbernic-rgxx3: Remove SPL_ROCKCHIP_BACK_TO_BROM option
In reply to Jonas KarlmanSPL_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.
---
v2: No change
--- configs/anbernic-rgxx3-rk3566_defconfig | 2 -- 1 file changed, 2 deletions(-)
configs/anbernic-rgxx3-rk3566_defconfig +0 -2
@@ -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
Signature · 1 line
2.43.2
PATCH v2 6/23 rockchip: rk35xx: Sort imply statements alphabetically
In reply to Jonas KarlmanSort imply statements under ROCKCHIP_RK3568 and ROCKCHIP_RK3588 alphabetically.
---
v2: No change
--- arch/arm/mach-rockchip/Kconfig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
arch/arm/mach-rockchip/Kconfig +12 -12
@@ -305,12 +305,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,
@@ -332,16 +332,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,
Signature · 1 line
2.43.2
Re: [PATCH v2 06/23] rockchip: rk35xx: Sort imply statements alphabetically
Quoted 4 lines · Jonas Karlman
Sort imply statements under
ROCKCHIP_RK3568andROCKCHIP_RK3588alphabetically.Signed-off-by Jonas Karlman <[email protected]>
Looking good to me.
Quoted 54 lines
---
v2: No change--- arch/arm/mach-rockchip/Kconfig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)arch/arm/mach-rockchip/Kconfig +12
-12@@ -305,12 +305,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,@@ -332,16 +332,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-A76and
quad-core Cortex-A55 including NEON and GPU, 6TOPS NPU, Mali-G610
MP4,
PATCH v2 7/23 rockchip: rk35xx: Enable random generator
In reply to Jonas KarlmanThe 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.
---
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(-)
arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi +0 -6
@@ -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 {
arch/arm/dts/rk356x-u-boot.dtsi +5 -0
@@ -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>;
arch/arm/dts/rk3588s-u-boot.dtsi +0 -1
@@ -91,7 +91,6 @@ rng: rng@fe378000 { compatible = "rockchip,trngv1"; reg = <0x0 0xfe378000 0x0 0x200>; - status = "disabled"; }; usbdp_phy0: phy@fed80000 {
arch/arm/mach-rockchip/Kconfig +4 -0
@@ -305,9 +305,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
@@ -334,9 +336,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
configs/anbernic-rgxx3-rk3566_defconfig +0 -2
@@ -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
Signature · 1 line
2.43.2
Re: [PATCH v2 07/23] rockchip: rk35xx: Enable random generator
Hello Jonas,
Please see a couple of comments below.
Quoted 40 lines · Jonas Karlman
The RK35xx SoCs contain a crypto engine block that can generate random numbers.
Enable rng node in soc
u-boot.dtsiand enableKconfigoptions to take advantage of the random generator.Signed-off-by Jonas Karlman <[email protected]>---
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(-)arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi +0
-6@@ -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 {arch/arm/dts/rk356x-u-boot.dtsi +0
-0
arch/arm/dts/rk356x-u-boot.dtsi line 26
Quoted 6 lines
arch/arm/dts/rk356x-u-boot.dtsi +3
-0@@ -21,6 +21,11 @@ bootph-all; }; + rng: rng@fe388000 { + compatible = "rockchip,cryptov2-rng"; + reg = <0x0 0xfe388000 0x0 0x2000>;
Shouldn't
+ status = "okay";
also be specified here?
Quoted 10 lines
arch/arm/dts/rk356x-u-boot.dtsi +2
-0+ }; + otp: nvmem@fe38c000 { compatible = "rockchip,rk3568-otp"; reg = <0x0 0xfe38c000 0x0 0x4000>;arch/arm/dts/rk3588s-u-boot.dtsi +0
-0
arch/arm/dts/rk3588s-u-boot.dtsi line 94
Quoted 4 lines
arch/arm/dts/rk3588s-u-boot.dtsi +0
-1@@ -91,7 +91,6 @@ rng: rng@fe378000 { compatible = "rockchip,trngv1"; reg = <0x0 0xfe378000 0x0 0x200>; - status = "disabled";
Shouldn't it be enabled instead?
Quoted 45 lines
arch/arm/dts/rk3588s-u-boot.dtsi +0
-0}; usbdp_phy0: phy@fed80000 {arch/arm/mach-rockchip/Kconfig +4
-0@@ -305,9 +305,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@@ -334,9 +336,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_FIRMWAREconfigs/anbernic-rgxx3-rk3566_defconfig +0
-2@@ -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
Re: [PATCH v2 07/23] rockchip: rk35xx: Enable random generator
Hi Dragan,
Quoted 55 lines · Dragan Simic
Hello Jonas,
Please see a couple of comments below.
Quoted 41 lines · Jonas Karlman
The RK35xx SoCs contain a crypto engine block that can generate random numbers.
Enable rng node in soc
u-boot.dtsiand enableKconfigoptions to take advantage of the random generator.Signed-off-by Jonas Karlman <[email protected]>---
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(-)arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi +0
-6@@ -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 {arch/arm/dts/rk356x-u-boot.dtsi +0
-0arch/arm/dts/rk356x-u-boot.dtsi line 26
Quoted 6 lines
arch/arm/dts/rk356x-u-boot.dtsi +3
-0@@ -21,6 +21,11 @@ bootph-all; }; + rng: rng@fe388000 { + compatible = "rockchip,cryptov2-rng"; + reg = <0x0 0xfe388000 0x0 0x2000>;Shouldn't
Quoted 3 lines
+ status = "okay";also be specified here?
It is not needed as "okay" is the implied status when status prop is undefined, and my understanding is that DT maintainers prefer not to include status = "okay" where the initial node is defined.
More correctly if status prop is defined it must explicitly have "okay" anything else result in a disabled node, removing the status prop entirely has the same effect as status = "okay" in a board file.
Quoted 10 lines
Quoted 10 lines
arch/arm/dts/rk356x-u-boot.dtsi +2
-0+ }; + otp: nvmem@fe38c000 { compatible = "rockchip,rk3568-otp"; reg = <0x0 0xfe38c000 0x0 0x4000>;arch/arm/dts/rk3588s-u-boot.dtsi +0
-1--- a/arch/arm/dts/rk3588s-u-boot.dtsi
Quoted 8 lines
arch/arm/dts/rk3588s-u-boot.dtsi line 94
Quoted 6 lines
+++
b/arch/arm/dts/rk3588s-u-boot.dtsiarch/arm/dts/rk3588s-u-boot.dtsi +0
-1@@ -91,7 +91,6 @@ rng: rng@fe378000 { compatible = "rockchip,trngv1"; reg = <0x0 0xfe378000 0x0 0x200>; - status = "disabled";Shouldn't it be enabled instead?
Same as above, not defining any status prop result in node being enabled.
Board u-boot.dtsi-files could disable the node with status = "disabled" if they absolutely do not want to have the rng node in U-Boot.
Regards,
Jonas
Quoted 47 lines
Quoted 47 lines
arch/arm/dts/rk3588s-u-boot.dtsi +0
-0}; usbdp_phy0: phy@fed80000 {arch/arm/mach-rockchip/Kconfig +4
-0@@ -305,9 +305,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@@ -334,9 +336,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_FIRMWAREconfigs/anbernic-rgxx3-rk3566_defconfig +0
-2@@ -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
Dragan Simic
Reviewed-byRe: [PATCH v2 07/23] rockchip: rk35xx: Enable random generator
Quoted 58 lines · Jonas Karlman
Quoted 53 lines · Dragan Simic
Please see a couple of comments below.
Quoted 41 lines · Jonas Karlman
The RK35xx SoCs contain a crypto engine block that can generate random numbers.
Enable rng node in soc
u-boot.dtsiand enableKconfigoptions to take advantage of the random generator.Signed-off-by Jonas Karlman <[email protected]>---
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(-)arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi +0
-6@@ -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 {arch/arm/dts/rk356x-u-boot.dtsi +0
-0arch/arm/dts/rk356x-u-boot.dtsi line 26
Quoted 6 lines
arch/arm/dts/rk356x-u-boot.dtsi +3
-0@@ -21,6 +21,11 @@ bootph-all; }; + rng: rng@fe388000 { + compatible = "rockchip,cryptov2-rng"; + reg = <0x0 0xfe388000 0x0 0x2000>;Shouldn't
Quoted 3 lines
+ status = "okay";also be specified here?
Quoted 7 lines
It is not needed as "okay" is the implied status when status prop is undefined, and my understanding is that DT maintainers prefer not to include status = "okay" where the initial node is defined.
More correctly if status prop is defined it must explicitly have "okay" anything else result in a disabled node, removing the status prop entirely has the same effect as status = "okay" in a board file.
I see, thanks for the clarification. In that case, there seem to be a few redundant instances of 'status = "okay";' in various U-Boot dtsi files, which should probably be deleted.
Quoted 18 lines
Quoted 9 lines
Quoted 9 lines
arch/arm/dts/rk356x-u-boot.dtsi +2
-0+ }; + otp: nvmem@fe38c000 { compatible = "rockchip,rk3568-otp"; reg = <0x0 0xfe38c000 0x0 0x4000>;arch/arm/dts/rk3588s-u-boot.dtsi +0
-1--- a/arch/arm/dts/rk3588s-u-boot.dtsiQuoted 8 lines
arch/arm/dts/rk3588s-u-boot.dtsi line 94
Quoted 6 lines
+++
b/arch/arm/dts/rk3588s-u-boot.dtsiarch/arm/dts/rk3588s-u-boot.dtsi +0
-1@@ -91,7 +91,6 @@ rng: rng@fe378000 { compatible = "rockchip,trngv1"; reg = <0x0 0xfe378000 0x0 0x200>; - status = "disabled";Shouldn't it be enabled instead?
Quoted 4 lines
Same as above, not defining any status prop result in node being enabled.
Board u-boot.dtsi-files could disable the node with status = "disabled" if they absolutely do not want to have the rng node in U-Boot.
Thanks once again for the clarification. Please include this tag:
Quoted 47 lines
Quoted 47 lines
Quoted 47 lines
arch/arm/dts/rk3588s-u-boot.dtsi +0
-0}; usbdp_phy0: phy@fed80000 {arch/arm/mach-rockchip/Kconfig +4
-0@@ -305,9 +305,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@@ -334,9 +336,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_FIRMWAREconfigs/anbernic-rgxx3-rk3566_defconfig +0
-2@@ -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
PATCH v2 8/23 rockchip: rk35xx: Imply support for GbE PHY
In reply to Jonas KarlmanImply support for GbE PHY status parsing and configuration when support for onboard ethernet is enabled.
---
v2: Collect r-b tag
--- arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-rockchip/Kconfig +2 -0
@@ -309,6 +309,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
@@ -340,6 +341,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
Signature · 1 line
2.43.2
Re: [PATCH v2 08/23] rockchip: rk35xx: Imply support for GbE PHY
Quoted 2 lines · Jonas Karlman
Imply support for GbE PHY status parsing and configuration when support for onboard ethernet is enabled.
s/ethernet/Ethernet/ -- only if there will be v3
Quoted 2 lines
Signed-off-by Jonas Karlman <[email protected]>Reviewed-by Quentin Schulz <[email protected]>
Looking good to me.
Quoted 26 lines
---
v2: Collect r-b tag--- arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-rockchip/Kconfig +2
-0@@ -309,6 +309,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@@ -340,6 +341,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
PATCH v2 9/23 rockchip: rk356x: Imply enhanced features for standard boot
In reply to Jonas KarlmanImply BOOTSTD_FULL for all RK356x boards to more closely follow RK3588.
---
v2: No change
--- arch/arm/mach-rockchip/Kconfig | 1 + configs/bpi-r2-pro-rk3568_defconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/Kconfig +1 -0
@@ -305,6 +305,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
configs/bpi-r2-pro-rk3568_defconfig +0 -1
@@ -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
Signature · 1 line
2.43.2
Re: [PATCH v2 09/23] rockchip: rk356x: Imply enhanced features for standard boot
Quoted 3 lines · Jonas Karlman
Imply
BOOTSTD_FULLfor all RK356x boards to more closely follow RK3588.Signed-off-by Jonas Karlman <[email protected]>
Looking good to me.
Quoted 32 lines
---
v2: No change--- arch/arm/mach-rockchip/Kconfig | 1 + configs/bpi-r2-pro-rk3568_defconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-rockchip/Kconfig +1
-0@@ -305,6 +305,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_ROCKCHIPconfigs/bpi-r2-pro-rk3568_defconfig +0
-1@@ -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
PATCH v2 10/23 rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically
In reply to Jonas KarlmanSort 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.
---
v2: Follow kernel sort order (Quentin)
--- arch/arm/dts/rk356x-u-boot.dtsi | 98 ++++++++++++++++---------------- arch/arm/dts/rk3588s-u-boot.dtsi | 69 +++++++++++----------- 2 files changed, 81 insertions(+), 86 deletions(-)
arch/arm/dts/rk356x-u-boot.dtsi +49 -49
@@ -38,46 +38,10 @@ }; }; -&xin24m { - bootph-all; -}; - &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 +66,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,24 +131,19 @@ bootph-all; }; -&uart2m0_xfer { - bootph-all; -}; - -&sdhci { - bootph-pre-ram; - max-frequency = <200000000>; -}; - -&sdmmc0 { - bootph-pre-ram; -}; - &uart2 { bootph-pre-ram; clock-frequency = <24000000>; }; +&uart2m0_xfer { + bootph-all; +}; + +&xin24m { + bootph-all; +}; + #ifdef CONFIG_ROCKCHIP_SPI_IMAGE &binman { simple-bin-spi {
arch/arm/dts/rk3588s-u-boot.dtsi +32 -37
130 lines not on this page · raw message
Signature · 1 line
2.43.2
Re: [PATCH v2 10/23] rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically
Hi Jonas,
Quoted 21 lines · Jonas Karlman
Sort nodes and props in RK356x/RK3588
u-boot.dtsialphabetically, nodes is sorted by reg addr then by alphabetical order.This has no intended change beside sorting existing nodes and removing a duplicated
usbdpphy0_grfnode.Signed-off-by Jonas Karlman <[email protected]>---
v2: Follow kernel sort order (Quentin)--- arch/arm/dts/rk356x-u-boot.dtsi | 98 ++++++++++++++++---------------- arch/arm/dts/rk3588s-u-boot.dtsi | 69 +++++++++++----------- 2 files changed, 81 insertions(+), 86 deletions(-)arch/arm/dts/rk356x-u-boot.dtsi +0
-0@@ -38,46 +38,10 @@
[...]
Quoted 3 lines
#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
&binman {
simple-bin-spi {We could also alphabetically sort the binman node if we wanted.
Quoted 32 lines
arch/arm/dts/rk3588s-u-boot.dtsi +11
-6@@ -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>; - }; -
arch/arm/dts/rk3588s-u-boot.dtsi line 90
Quoted 10 lines
arch/arm/dts/rk3588s-u-boot.dtsi +0
-10- 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>; - }; -
Would have been nice to at least mention this node is removed because it is duplicated (or have it removed in a different commit to make it more explicit).
[...]
arch/arm/dts/rk3588s-u-boot.dtsi line 86
Quoted 1 line
arch/arm/dts/rk3588s-u-boot.dtsi +0
-0#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
What's below this git context is &binman, which we could also alphabetically sort if we wanted.
Did the change manually and it matches, so:
Thanks!
Quentin
Re: [PATCH v2 10/23] rockchip: rk35xx: Sort soc u-boot.dtsi alphabetically
Hi Quentin,
Quoted 71 lines · Quentin Schulz
Hi Jonas,
Quoted 21 lines · Jonas Karlman
Sort nodes and props in RK356x/RK3588
u-boot.dtsialphabetically, nodes is sorted by reg addr then by alphabetical order.This has no intended change beside sorting existing nodes and removing a duplicated
usbdpphy0_grfnode.Signed-off-by Jonas Karlman <[email protected]>---
v2: Follow kernel sort order (Quentin)--- arch/arm/dts/rk356x-u-boot.dtsi | 98 ++++++++++++++++---------------- arch/arm/dts/rk3588s-u-boot.dtsi | 69 +++++++++++----------- 2 files changed, 81 insertions(+), 86 deletions(-)arch/arm/dts/rk356x-u-boot.dtsi +0
-0@@ -38,46 +38,10 @@[...]
Quoted 3 lines
#ifdef CONFIG_ROCKCHIP_SPI_IMAGE &binman { simple-bin-spi {We could also alphabetically sort the binman node if we wanted.
Quoted 38 lines
arch/arm/dts/rk3588s-u-boot.dtsi +11
-12@@ -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 {
Quoted 8 lines
arch/arm/dts/rk3588s-u-boot.dtsi line 90
Quoted 4 lines
arch/arm/dts/rk3588s-u-boot.dtsi +0
-4- compatible = "rockchip,rk3588-usbdpphy-grf", "syscon"; - reg = <0x0 0xfd5c8000 0x0 0x4000>; - }; -Would have been nice to at least mention this node is removed because it is duplicated (or have it removed in a different commit to make it more explicit).
I did mention the removal in the commit message :-)
"This has no intended change beside sorting existing nodes and removing a duplicated usbdpphy0_grf node."
Quoted 7 lines
[...]
Quoted 1 line
#ifdef CONFIG_ROCKCHIP_SPI_IMAGEWhat's below this git context is &binman, which we could also alphabetically sort if we wanted.
Was unsure about the binman node, ideally we should not be need it in the <soc>-u-boot.dtsi file, so I decided not to touch it at all, will move it in v3.
Regards,
Jonas
Quoted 7 lines
Did the change manually and it matches, so:
Reviewed-by Quentin Schulz <[email protected]>Thanks!
Quentin
PATCH v2 11/23 rockchip: rk356x: Update bootph props
In reply to Jonas KarlmanAfter 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.
---
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 ++++++++++++++-------- configs/evb-rk3568_defconfig | 3 +- 7 files changed, 61 insertions(+), 42 deletions(-)
arch/arm/dts/rk3566-pinetab2-u-boot.dtsi +17 -8
@@ -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; }; };
arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi +3 -5
@@ -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; };
arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi +1 -3
@@ -9,11 +9,9 @@ }; &sfc { - bootph-pre-ram; - u-boot,spl-sfc-no-dma; - flash@0 { bootph-pre-ram; + bootph-some-ram; }; };
arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi +3 -4
@@ -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; }; };
arch/arm/dts/rk3568-rock-3a-u-boot.dtsi +2 -3
@@ -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>;
arch/arm/dts/rk356x-u-boot.dtsi +33 -18
118 lines not on this page · raw message
configs/evb-rk3568_defconfig +2 -1
@@ -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
Signature · 1 line
2.43.2
PATCH v2 12/23 rockchip: rk3588: Update bootph props
In reply to Jonas KarlmanAfter 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.
---
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-generic.dts | 1 + 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 ++++++++++++++----- configs/evb-rk3588_defconfig | 4 +- 10 files changed, 71 insertions(+), 42 deletions(-)
arch/arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi +4 -4
@@ -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>;
arch/arm/dts/rk3588-generic.dts +1 -0
@@ -40,5 +40,6 @@ }; &uart2 { + pinctrl-0 = <&uart2m0_xfer>; status = "okay"; };
arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi +6 -6
@@ -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>;
arch/arm/dts/rk3588-orangepi-5-plus-u-boot.dtsi +3 -4
@@ -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; }; };
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi +4 -4
@@ -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>;
arch/arm/dts/rk3588-turing-rk1-u-boot.dtsi +5 -1
@@ -12,6 +12,10 @@ }; &uart9 { - bootph-pre-ram; + bootph-all; clock-frequency = <24000000>; }; + +&uart9m0_xfer { + bootph-all; +};
arch/arm/dts/rk3588s-coolpi-4b-u-boot.dtsi +4 -4
@@ -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>;
arch/arm/dts/rk3588s-orangepi-5-u-boot.dtsi +4 -5
@@ -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; }; };
arch/arm/dts/rk3588s-u-boot.dtsi +37 -13
111 lines not on this page · raw message
configs/evb-rk3588_defconfig +3 -1
@@ -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
Signature · 1 line
2.43.2
Re: [PATCH v2 12/23] rockchip: rk3588: Update bootph props
Hi Jonas,
Quoted 77 lines · Jonas Karlman
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 <[email protected]>---
v2: Add bootph-some-ram props and follow kernel sort orderFollowing bootph props have been applied:
CRU, GRF and UART nodes:
- bootph-all - needed at all or most stagesSD-card regulator related nodes:
- bootph-pre-ram (SPL) - regulator pinctrl may be needed to read FIT from SD-card on some boardseMMC/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-generic.dts | 1 + 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 ++++++++++++++----- configs/evb-rk3588_defconfig | 4 +- 10 files changed, 71 insertions(+), 42 deletions(-)arch/arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi +4
-4@@ -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>;arch/arm/dts/rk3588-generic.dts +0
-0
arch/arm/dts/rk3588-generic.dts line 43
Quoted 4 lines
arch/arm/dts/rk3588-generic.dts +1
-0@@ -40,5 +40,6 @@ }; &uart2 { + pinctrl-0 = <&uart2m0_xfer>;
I think this should be its own patch.
[...]
Quoted 15 lines
configs/evb-rk3588_defconfig +2
-1@@ -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
configs/evb-rk3588_defconfig CONFIG_DWC_ETH_QOS_ROCKCHIP=y · line 56
Quoted 4 lines
configs/evb-rk3588_defconfig +1
-0@@ -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
I have a feeling the changes to the defconfig aren't entirely related to this patch? Specifically, I think at least CONFIG_SPL_DM_SEQ_ALIAS isn't related?
Otherwise,
Thanks,
Quentin
Re: [PATCH v2 12/23] rockchip: rk3588: Update bootph props
Hi Quentin,
Quoted 82 lines · Quentin Schulz
Hi Jonas,
Quoted 79 lines · Jonas Karlman
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 <[email protected]>---
v2: Add bootph-some-ram props and follow kernel sort orderFollowing bootph props have been applied:
CRU, GRF and UART nodes:
- bootph-all - needed at all or most stagesSD-card regulator related nodes:
- bootph-pre-ram (SPL) - regulator pinctrl may be needed to read FIT from SD-card on some boardseMMC/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-generic.dts | 1 + 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 ++++++++++++++----- configs/evb-rk3588_defconfig | 4 +- 10 files changed, 71 insertions(+), 42 deletions(-)arch/arm/dts/rk3588-coolpi-cm5-evb-u-boot.dtsi +4
-4@@ -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>;arch/arm/dts/rk3588-generic.dts +0
-0@@ -40,5 +40,6 @@ };
Quoted 4 lines
arch/arm/dts/rk3588-generic.dts line 43
Quoted 2 lines
arch/arm/dts/rk3588-generic.dts +1
-0&uart2 { + pinctrl-0 = <&uart2m0_xfer>;I think this should be its own patch.
Sure, will move this to its own patch in v3.
Quoted 17 lines
[...]
Quoted 15 lines
configs/evb-rk3588_defconfig +2
-1@@ -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
Quoted 8 lines
configs/evb-rk3588_defconfig CONFIG_DWC_ETH_QOS_ROCKCHIP=y · line 56
Quoted 4 lines
configs/evb-rk3588_defconfig +1
-0CONFIG_PHY_ROCKCHIP_INNO_USB2=y CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y CONFIG_PHY_ROCKCHIP_USBDP=y +CONFIG_SPL_PINCTRL=yI have a feeling the changes to the defconfig aren't entirely related to this patch? Specifically, I think at least
CONFIG_SPL_DM_SEQ_ALIASisn't related?
My original intent of this entire series was to fix/align bootph props and pinctrl use across boards, but after more and more testing it has grown a little bit out of control ;-)
For proper handling in SPL we also need the SPL_DM_SEQ_ALIAS enabled.
In the future I would like to see a ROCKCHIP_COMMON_OPTIONS or similar that imply all these common options, for now this and my other series just tries to get more boards to using all these common options.
Will split out to a evb specific patch in v3.
Regards,
Jonas
Quoted 7 lines
Otherwise,
Reviewed-by Quentin Schulz <[email protected]>Thanks,
Quentin
PATCH v2 13/23 rockchip: rk3566-pinetab2: Fix reading FIT from SPI flash
In reply to Jonas KarlmanThe 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.
---
v2: No change
--- configs/pinetab2-rk3566_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/pinetab2-rk3566_defconfig +1 -0
@@ -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
Signature · 1 line
2.43.2
PATCH v2 14/23 rockchip: rk3588-coolpi: Add boards to documentation
In reply to Jonas KarlmanAdd the CoolPi 4 Model B and CoolPi CM5 EVB board to the documentation. Also fix .dtb-file entries in Makefile.
---
v2: No change
--- arch/arm/dts/Makefile | 4 ++-- doc/board/rockchip/rockchip.rst | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-)
arch/arm/dts/Makefile +2 -2
@@ -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 \
doc/board/rockchip/rockchip.rst +2 -0
@@ -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)
Signature · 1 line
2.43.2
Re: [PATCH v2 14/23] rockchip: rk3588-coolpi: Add boards to documentation
Quoted 2 lines · Jonas Karlman
Add the CoolPi 4 Model B and CoolPi CM5 EVB board to the documentation. Also fix .dtb-file entries in
Makefile.
Perhaps the patch subject could be improved a bit to also mention fixing of the Makefile, but only if there will be v3.
Quoted 3 lines
Fixes 3e15dee38d45 ("board: rockchip: Add support for rk3588 basedCool Pi CM5 EVB")
Signed-off-by Jonas Karlman <[email protected]>
Looking good to me.
Quoted 35 lines
---
v2: No change--- arch/arm/dts/Makefile | 4 ++-- doc/board/rockchip/rockchip.rst | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-)arch/arm/dts/Makefile +2
-2@@ -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 \doc/board/rockchip/rockchip.rst +2
-0@@ -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)
Re: [PATCH v2 14/23] rockchip: rk3588-coolpi: Add boards to documentation
In reply to Jonas KarlmanHi Jonas,
Quoted 3 lines · Jonas Karlman
Add the CoolPi 4 Model B and CoolPi CM5 EVB board to the documentation. Also fix .dtb-file entries in
Makefile.
When one needs to use a list or say "also", "moreover", etc... it usually is a tell the commit should be split.
Here the changes are not related, so please have two separate patches.
The sum of changes is fine though, thanks.
Cheers,
Quentin
Re: [PATCH v2 14/23] rockchip: rk3588-coolpi: Add boards to documentation
Hello Quentin,
Quoted 11 lines · Quentin Schulz
Hi Jonas,
Quoted 3 lines · Jonas Karlman
Add the CoolPi 4 Model B and CoolPi CM5 EVB board to the documentation. Also fix .dtb-file entries in
Makefile.When one needs to use a list or say "also", "moreover", etc... it usually is a tell the commit should be split.
Here the changes are not related, so please have two separate patches.
Agreed.
Quoted 1 line
The sum of changes is fine though, thanks.
Re: [PATCH v2 14/23] rockchip: rk3588-coolpi: Add boards to documentation
Hi Quentin and Dragan,
Quoted 11 lines · Dragan Simic
Hello Quentin,
Quoted 8 lines · Quentin Schulz
Hi Jonas,
Quoted 4 lines · Jonas Karlman
Add the CoolPi 4 Model B and CoolPi CM5 EVB board to the documentation.
Also fix .dtb-file entries inMakefile.
Quoted 6 lines
Quoted 4 lines
When one needs to use a list or say "also", "moreover", etc... it usually is a tell the commit should be split.
Here the changes are not related, so please have two separate patches.
Agreed.
I will split this patch for v3.
Regards,
Jonas
Quoted 2 lines
Quoted 2 lines
The sum of changes is fine though, thanks.
PATCH v2 15/23 rockchip: rk3588-toybrick: Add missing Kconfig options
In reply to Jonas KarlmanAdd .dtb-file entry to Makefile and enable Kconfig options required to configure pinctrl in SPL. Also add missing PHY_ROCKCHIP_NANENG_COMBOPHY.
---
v2: Fix Makefile entry from .dts to .dtb (Quentin)
--- arch/arm/dts/Makefile | 1 + configs/toybrick-rk3588_defconfig | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-)
arch/arm/dts/Makefile +1 -0
@@ -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) += \
configs/toybrick-rk3588_defconfig +4 -1
@@ -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,8 @@ CONFIG_PHY_REALTEK=y CONFIG_DWC_ETH_QOS=y CONFIG_DWC_ETH_QOS_ROCKCHIP=y CONFIG_PHY_ROCKCHIP_INNO_USB2=y +CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y +CONFIG_SPL_PINCTRL=y CONFIG_PWM_ROCKCHIP=y CONFIG_SPL_RAM=y CONFIG_BAUDRATE=1500000
Signature · 1 line
2.43.2
Re: [PATCH v2 15/23] rockchip: rk3588-toybrick: Add missing Kconfig options
Hi Jonas,
Quoted 3 lines · Jonas Karlman
Add .dtb-file entry to
Makefileand enableKconfigoptions required to configure pinctrl in SPL. Also add missingPHY_ROCKCHIP_NANENG_COMBOPHY.
Separate commits please.
Sum of changes is fine though (but a bit more verbose commit log would be welcome, why SPL_DM_SEQ_ALIAS for example).
Cheers,
Quentin
Re: [PATCH v2 15/23] rockchip: rk3588-toybrick: Add missing Kconfig options
Quoted 5 lines · Quentin Schulz
Quoted 2 lines · Jonas Karlman
Add .dtb-file entry to
Makefileand enableKconfigoptions required to configure pinctrl in SPL. Also add missingPHY_ROCKCHIP_NANENG_COMBOPHY.Separate commits please.
Perhaps the Makefile changes from a couple of different patches could be put together into another, separate patch. Those are all related changes, and it would result in one less patch in the v3 of this series.
Quoted 2 lines
Sum of changes is fine though (but a bit more verbose commit log would be welcome, why
SPL_DM_SEQ_ALIASfor example).
Re: [PATCH v2 15/23] rockchip: rk3588-toybrick: Add missing Kconfig options
Hi Dragan,
Quoted 5 lines · Dragan Simic
Quoted 4 lines · Quentin Schulz
Quoted 2 lines · Jonas Karlman
Add .dtb-file entry to
Makefileand enableKconfigoptions required to configure pinctrl in SPL. Also add missingPHY_ROCKCHIP_NANENG_COMBOPHY.
Quoted 7 lines
Quoted 1 line
Separate commits please.
Perhaps the
Makefilechanges from a couple of different patches could be put together into another, separate patch. Those are all related changes, and it would result in one less patch in the v3 of this series.
That would be fine with me.
But always better have too many patches than too few, it's easier to later squash than separate them :)
Cheers,
Quentin
Re: [PATCH v2 15/23] rockchip: rk3588-toybrick: Add missing Kconfig options
Hi Quentin and Dragan,
Quoted 16 lines · Quentin Schulz
Hi Dragan,
Quoted 5 lines · Dragan Simic
Quoted 4 lines · Quentin Schulz
Quoted 2 lines · Jonas Karlman
Add .dtb-file entry to
Makefileand enableKconfigoptions required to configure pinctrl in SPL. Also add missingPHY_ROCKCHIP_NANENG_COMBOPHY.Quoted 7 lines
Quoted 1 line
Separate commits please.
Perhaps the
Makefilechanges from a couple of different patches could be put together into another, separate patch. Those are all related changes, and it would result in one less patch in the v3 of this series.
Quoted 4 lines
That would be fine with me.
But always better have too many patches than too few, it's easier to later squash than separate them :)
Sure, I will split these patches into smaller single purpose patches in v3.
Regards,
Jonas
Quoted 3 lines
Cheers,
Quentin
PATCH v2 16/23 rockchip: rk3588-turing-rk1: Use dwc3-generic driver
In reply to Jonas KarlmanRK35xx 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.
---
v2: Drop change to enable the DWC_AHCI option
--- configs/turing-rk1-rk3588_defconfig | 1 - 1 file changed, 1 deletion(-)
configs/turing-rk1-rk3588_defconfig +0 -1
@@ -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
Signature · 1 line
2.43.2
PATCH v2 17/23 rockchip: rk3588-edgeble-neu6: Enable FIT checksum validation
In reply to Jonas KarlmanEnable 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.
---
v2: No change
--- configs/neu6a-io-rk3588_defconfig | 7 ++++++- configs/neu6b-io-rk3588_defconfig | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-)
configs/neu6a-io-rk3588_defconfig +6 -1
@@ -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
configs/neu6b-io-rk3588_defconfig +6 -1
@@ -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
Signature · 1 line
2.43.2
PATCH v2 18/23 rockchip: rk356x-generic: Fix eMMC and SD-card pinctrl
In reply to Jonas KarlmanAdd missing emmc_datastrobe and sdmmc0_det pinctrl to fix possible issue reading from eMMC or SD-card. Also use correct node for mmc1 alias.
---
v2: Split patch
--- arch/arm/dts/rk3568-generic.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/dts/rk3568-generic.dts +3 -3
@@ -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"; };
Signature · 1 line
2.43.2
PATCH v2 19/23 rockchip: rk356x-generic: Add support for SPI flash
In reply to Jonas KarlmanAdd support for booting from SPI flash using the generic RK3566/RK3568 target.
---
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(-)
arch/arm/dts/rk3568-generic-u-boot.dtsi +7 -0
@@ -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; + }; +};
arch/arm/dts/rk3568-generic.dts +13 -1
@@ -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"; };
configs/generic-rk3568_defconfig +15 -0
@@ -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
Signature · 1 line
2.43.2
PATCH v2 20/23 rockchip: rk356x-generic: Add support for USB OTG
In reply to Jonas KarlmanAdd support for USB OTG, RockUSB and UMS to the generic RK3566/RK3568 target.
---
v2: Split patch
--- arch/arm/dts/rk3568-generic.dts | 19 ++++++++++++++++++- configs/generic-rk3568_defconfig | 10 ++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-)
arch/arm/dts/rk3568-generic.dts +18 -1
@@ -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"; +};
configs/generic-rk3568_defconfig +10 -0
@@ -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
Signature · 1 line
2.43.2
PATCH v2 21/23 rockchip: rk3588-generic: Add support for USB OTG
In reply to Jonas KarlmanAdd support for USB OTG, RockUSB and UMS to the generic RK3588S/RK3588 target.
---
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(-)
arch/arm/dts/rk3588-generic-u-boot.dtsi +22 -0
@@ -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"; +};
arch/arm/dts/rk3588-generic.dts +1 -1
@@ -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/;
configs/generic-rk3588_defconfig +11 -0
@@ -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
Signature · 1 line
2.43.2
PATCH v2 22/23 rockchip: rk35xx-generic: Disable unused features
In reply to Jonas KarlmanThe 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 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.
---
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(+)
configs/generic-rk3568_defconfig +5 -0
@@ -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
configs/generic-rk3588_defconfig +5 -0
@@ -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
Signature · 1 line
2.43.2
PATCH v2 23/23 rockchip: rk3588: Enable use of eMMC HS200 mode on a few missed boards
In reply to Jonas KarlmanA few RK3588 boards are missing a mmc-hs200 prop to signal that HS200 mode is supported in addition to HS400, this lead to bad performance reading FIT in SPL and broken MMC write.
Add cap-mmc-highspeed and mmc-hs200-1_8v to affected boards to enable use of eMMC HS200 mode.
---
v2: New patch
All these mmc-hs200 prop overrides may not be needed if the patch "mmc:
Imply HS200 cap with mmc-hs400 prop to match linux" [1] gets applied, until such time this matches what has been done for all other RK35xx boards.
[1] https://patchwork.ozlabs.org/patch/1921039/
--- arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi | 5 +++++ 6 files changed, 30 insertions(+)
arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi +5 -0
@@ -15,6 +15,11 @@ }; }; +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +}; + &sdmmc { bus-width = <4>; status = "okay";
arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi +5 -0
@@ -14,3 +14,8 @@ u-boot,spl-boot-order = &sdmmc; }; }; + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};
arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi +5 -0
@@ -10,3 +10,8 @@ u-boot,spl-boot-order = "same-as-spl", &sdhci; }; }; + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};
arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi +5 -0
@@ -11,6 +11,11 @@ bootph-some-ram; }; +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +}; + &sfc { pinctrl-names = "default"; pinctrl-0 = <&fspim1_pins>;
arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi +5 -0
@@ -4,3 +4,8 @@ */ #include "rk3588-u-boot.dtsi" + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};
arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi +5 -0
@@ -10,3 +10,8 @@ u-boot,spl-boot-order = "same-as-spl", &sdhci; }; }; + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};
Signature · 1 line
2.43.2
Re: [PATCH v2 23/23] rockchip: rk3588: Enable use of eMMC HS200 mode on a few missed boards
Hello Jonas,
Please see my comments below.
Quoted 8 lines · Jonas Karlman
A few RK3588 boards are missing a mmc-hs200 prop to signal that HS200 mode is supported in addition to HS400, this lead to bad performance reading FIT in SPL and broken MMC write.
Add cap-mmc-highspeed and mmc-hs200-1_8v to affected boards to enable use of eMMC HS200 mode.
Signed-off-by Jonas Karlman <[email protected]>
Shouldn't it be better to follow the Linux kernel's logic in the MMC driver, and enable the HS200 mode when the DT indicates that the HS400 mode is suported? In other words, exactly what you already submitted to the mailing list. [1]
That would allow a significant cleanup of the U-Boot dtsi files to be performed.
Until that's resolved, the patch is looking good to me.
[1] https://lore.kernel.org/u-boot/[email protected]/
Quoted 108 lines
---
v2: New patchAll these mmc-hs200 prop overrides may not be needed if the patch "mmc:
Imply HS200 cap with mmc-hs400 prop to match linux" [1] gets applied, until such time this matches what has been done for all other RK35xx boards.[1] https://patchwork.ozlabs.org/patch/1921039/
--- arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi | 5 +++++ 6 files changed, 30 insertions(+)arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi +5
-0@@ -15,6 +15,11 @@ }; }; +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +}; + &sdmmc { bus-width = <4>; status = "okay";arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi +5
-0@@ -14,3 +14,8 @@ u-boot,spl-boot-order = &sdmmc; }; }; + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi +5
-0@@ -10,3 +10,8 @@ u-boot,spl-boot-order = "same-as-spl", &sdhci; }; }; + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi +5
-0@@ -11,6 +11,11 @@ bootph-some-ram; }; +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +}; + &sfc { pinctrl-names = "default"; pinctrl-0 = <&fspim1_pins>;arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi +5
-0@@ -4,3 +4,8 @@ */ #include "rk3588-u-boot.dtsi" + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi +5
-0@@ -10,3 +10,8 @@ u-boot,spl-boot-order = "same-as-spl", &sdhci; }; }; + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};
Re: [PATCH v2 23/23] rockchip: rk3588: Enable use of eMMC HS200 mode on a few missed boards
Hi Dragan,
Quoted 12 lines · Dragan Simic
Hello Jonas,
Please see my comments below.
Quoted 7 lines · Jonas Karlman
A few RK3588 boards are missing a mmc-hs200 prop to signal that HS200 mode is supported in addition to HS400, this lead to bad performance reading FIT in SPL and broken MMC write.
Add cap-mmc-highspeed and mmc-hs200-1_8v to affected boards to enable use of eMMC HS200 mode.
Quoted 6 lines
Quoted 1 line
Signed-off-by Jonas Karlman <[email protected]>Shouldn't it be better to follow the Linux kernel's logic in the MMC driver, and enable the HS200 mode when the DT indicates that the HS400 mode is suported? In other words, exactly what you already submitted to the mailing list. [1]
Yes, this is somewhat what I tried to make aware of with the note and link under "v2: New patch" :-)
Quoted 5 lines
That would allow a significant cleanup of the U-Boot dtsi files to be performed.
Until that's resolved, the patch is looking good to me.
Fully agree, this will fix the bad performance in SPL and fix MMC write for existing boards making them work same as other RK3588 boards until the MMC maintainer can weigh in on the linked patch.
Quoted 2 lines
Reviewed-by Dragan Simic <[email protected]>
Thanks!
Regards,
Jonas
Quoted 112 lines
[1]
https://lore.kernel.org/u-boot/[email protected]/Quoted 108 lines
---
v2: New patchAll these mmc-hs200 prop overrides may not be needed if the patch "mmc:
Imply HS200 cap with mmc-hs400 prop to match linux" [1] gets applied, until such time this matches what has been done for all other RK35xx boards.[1] https://patchwork.ozlabs.org/patch/1921039/
--- arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi | 5 +++++ 6 files changed, 30 insertions(+)arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi +5
-0@@ -15,6 +15,11 @@ }; }; +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +}; + &sdmmc { bus-width = <4>; status = "okay";arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi +5
-0@@ -14,3 +14,8 @@ u-boot,spl-boot-order = &sdmmc; }; }; + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi +5
-0@@ -10,3 +10,8 @@ u-boot,spl-boot-order = "same-as-spl", &sdhci; }; }; + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi +5
-0@@ -11,6 +11,11 @@ bootph-some-ram; }; +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +}; + &sfc { pinctrl-names = "default"; pinctrl-0 = <&fspim1_pins>;arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi +5
-0@@ -4,3 +4,8 @@ */ #include "rk3588-u-boot.dtsi" + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi +5
-0@@ -10,3 +10,8 @@ u-boot,spl-boot-order = "same-as-spl", &sdhci; }; }; + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};
Re: [PATCH v2 23/23] rockchip: rk3588: Enable use of eMMC HS200 mode on a few missed boards
Quoted 13 lines · Jonas Karlman
Quoted 12 lines · Dragan Simic
Please see my comments below.
Quoted 8 lines · Jonas Karlman
A few RK3588 boards are missing a mmc-hs200 prop to signal that HS200 mode is supported in addition to HS400, this lead to bad performance reading FIT in SPL and broken MMC write.
Add cap-mmc-highspeed and mmc-hs200-1_8v to affected boards to enable use of eMMC HS200 mode.
Signed-off-by Jonas Karlman <[email protected]>
Quoted 7 lines
Quoted 4 lines
Shouldn't it be better to follow the Linux kernel's logic in the MMC driver, and enable the HS200 mode when the DT indicates that the HS400 mode is suported? In other words, exactly what you already submitted to the mailing list. [1]
Yes, this is somewhat what I tried to make aware of with the note and link under "v2: New patch" :-)
Wow, I totally missed that paragraph. :) Though, that also means that we're on the same page. :)
Quoted 8 lines
Quoted 4 lines
That would allow a significant cleanup of the U-Boot dtsi files to be performed.
Until that's resolved, the patch is looking good to me.
Fully agree, this will fix the bad performance in SPL and fix MMC write for existing boards making them work same as other RK3588 boards until the MMC maintainer can weigh in on the linked patch.
That will be nice.
Quoted 3 lines
Quoted 1 line
Reviewed-by Dragan Simic <[email protected]>Thanks!
Thank you for all these nice cleanup patches!
Quoted 110 lines
Quoted 110 lines
[1] https://lore.kernel.org/u-boot/[email protected]/
Quoted 108 lines
---
v2: New patchAll these mmc-hs200 prop overrides may not be needed if the patch "mmc:
Imply HS200 cap with mmc-hs400 prop to match linux" [1] gets applied, until such time this matches what has been done for all other RK35xx boards.[1] https://patchwork.ozlabs.org/patch/1921039/
--- arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi | 5 +++++ arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi | 5 +++++ 6 files changed, 30 insertions(+)arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi +5
-0@@ -15,6 +15,11 @@ }; }; +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +}; + &sdmmc { bus-width = <4>; status = "okay";arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi +5
-0@@ -14,3 +14,8 @@ u-boot,spl-boot-order = &sdmmc; }; }; + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi +5
-0@@ -10,3 +10,8 @@ u-boot,spl-boot-order = "same-as-spl", &sdhci; }; }; + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi +5
-0@@ -11,6 +11,11 @@ bootph-some-ram; }; +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +}; + &sfc { pinctrl-names = "default"; pinctrl-0 = <&fspim1_pins>;arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi +5
-0@@ -4,3 +4,8 @@ */ #include "rk3588-u-boot.dtsi" + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi +5
-0@@ -10,3 +10,8 @@ u-boot,spl-boot-order = "same-as-spl", &sdhci; }; }; + +&sdhci { + cap-mmc-highspeed; + mmc-hs200-1_8v; +};
Re: [PATCH v2 23/23] rockchip: rk3588: Enable use of eMMC HS200 mode on a few missed boards
In reply to Jonas KarlmanHi Jonas,
Quoted 11 lines · Jonas Karlman
A few RK3588 boards are missing a mmc-hs200 prop to signal that HS200 mode is supported in addition to HS400, this lead to bad performance reading FIT in SPL and broken MMC write.
Add cap-mmc-highspeed and mmc-hs200-1_8v to affected boards to enable use of eMMC HS200 mode.
Signed-off-by Jonas Karlman <[email protected]>---
v2: New patch
Quoted 6 lines
All these mmc-hs200 prop overrides may not be needed if the patch "mmc:
Imply HS200 cap with mmc-hs400 prop to match linux" [1] gets applied, until such time this matches what has been done for all other RK35xx boards.
I think this is an acceptable change until we agree on what to do with that other patch :)
I'll abstain from giving my Rb here though as I do not own any of those boards and therefore cannot check this is actually valid.
Cheers,
Quentin