board: rockchip: Add support for rk3588 MNT Reform2
Subsystems (2)
PATCH 1/1 board: rockchip: Add support for rk3588 MNT Reform2
Add support for MNT Reform2, it works as a carrier board with a Firefly iCore-3588Q SoM.
Specification:
- Rockchip RK3588
- LPDDR5X 16/32 GB
- eMMC 128/256 GB
- HDMI Type A out x 1
- USB 3.0 Host x 1
- USB-C 3.0 with DisplayPort AltMode
- PCIE M.2 E Key for Wireless connection
- PCIE M.2 M Key for NVME connection
- DSI to eDP panel
- 1Gb Ethernet w/ Microchip KSZ9310 PHY
Tested using Fedora boot on USB stick and eMMC.
--- arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi | 14 ++++ board/rockchip/evb_rk3588/MAINTAINERS | 6 ++ configs/mnt-reform2-rk3588_defconfig | 87 +++++++++++++++++++++ doc/board/rockchip/rockchip.rst | 1 + 4 files changed, 108 insertions(+) create mode 100644 arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi create mode 100644 configs/mnt-reform2-rk3588_defconfig
arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi new file +14 -0
@@ -0,0 +1,14 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +#include "rk3588-u-boot.dtsi" + +/ { + chosen { + u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci; + }; +}; + +&fspim2_pins { + bootph-pre-ram; + bootph-some-ram; +};
board/rockchip/evb_rk3588/MAINTAINERS +6 -0
@@ -29,6 +29,12 @@ F: configs/generic-rk3588_defconfig F: arch/arm/dts/rk3588-generic.dts F: arch/arm/dts/rk3588-generic-u-boot.dtsi +MNT-REFORM2-RK3588 +M: Peter Robinson <[email protected]> +S: Maintained +F: configs/mnt-reform2-rk3588_defconfig +F: arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi + ORANGEPI-5-RK3588 M: Jonas Karlman <[email protected]> S: Maintained
configs/mnt-reform2-rk3588_defconfig new file +87 -0
87 lines not on this page · raw message
doc/board/rockchip/rockchip.rst +1 -0
@@ -149,6 +149,7 @@ List of mainline supported Rockchip boards: - Hardkernel ODROID-M2 (odroid-m2-rk3588s) - Indiedroid Nova (nova-rk3588s) - Khadas Edge2 (khadas-edge2-rk3588s) + - MNT Reform2 (mnt-reform2-rk3588) - Pine64 QuartzPro64 (quartzpro64-rk3588) - Radxa ROCK 5 ITX (rock-5-itx-rk3588) - Radxa ROCK 5A (rock5a-rk3588s)
Signature · 1 line
2.50.0
Quoted 16 lines · Peter Robinson
Add support for MNT Reform2, it works as a carrier board with a Firefly iCore-3588Q SoM.
Specification:
- Rockchip RK3588
- LPDDR5X 16/32 GB
- eMMC 128/256 GB
- HDMI Type A out x 1
- USB 3.0 Host x 1
- USB-C 3.0 with DisplayPort AltMode
- PCIE M.2 E Key for Wireless connection
- PCIE M.2 M Key for NVME connection
- DSI to eDP panel
- 1Gb Ethernet w/ Microchip KSZ9310 PHY
Quoted 4 lines
Tested using Fedora boot on USB stick and eMMC.
Signed-off-by Peter Robinson <[email protected]>---
I forgot to add a note with this that the initial SoM and mainboard dts went upstream in the 6.16 merge window so should come with that rebase.
Quoted 153 lines
arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi | 14 ++++ board/rockchip/evb_rk3588/MAINTAINERS | 6 ++ configs/mnt-reform2-rk3588_defconfig | 87 +++++++++++++++++++++ doc/board/rockchip/rockchip.rst | 1 + 4 files changed, 108 insertions(+) create mode 100644 arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi create mode 100644 configs/mnt-reform2-rk3588_defconfigarch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi new file +14
-0@@ -0,0 +1,14 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +#include "rk3588-u-boot.dtsi" + +/ { + chosen { + u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci; + }; +}; + +&fspim2_pins { + bootph-pre-ram; + bootph-some-ram; +};board/rockchip/evb_rk3588/MAINTAINERS +6
-0@@ -29,6 +29,12 @@ F: configs/generic-rk3588_defconfig F: arch/arm/dts/rk3588-generic.dts F: arch/arm/dts/rk3588-generic-u-boot.dtsi +MNT-REFORM2-RK3588 +M: Peter Robinson <[email protected]> +S: Maintained +F: configs/mnt-reform2-rk3588_defconfig +F: arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi + ORANGEPI-5-RK3588 M: Jonas Karlman <[email protected]> S: Maintainedconfigs/mnt-reform2-rk3588_defconfig new file +87
-0@@ -0,0 +1,87 @@ +CONFIG_ARM=y +CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 +CONFIG_ARCH_ROCKCHIP=y +CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3588-mnt-reform2" +CONFIG_ROCKCHIP_RK3588=y +CONFIG_SPL_SERIAL=y +CONFIG_TARGET_EVB_RK3588=y +CONFIG_SYS_LOAD_ADDR=0xc00800 +CONFIG_DEBUG_UART_BASE=0xFEB50000 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_PCI=y +CONFIG_DEBUG_UART=y +CONFIG_USE_PREBOOT=y +CONFIG_PREBOOT="pci enum; usb start; nvme scan;" +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-mnt-reform2" +# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_DISPLAY_BOARDINFO_LATE=y +CONFIG_SPL_MAX_SIZE=0x40000 +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set +CONFIG_SPL_ATF=y +CONFIG_CMD_GPIO=y +CONFIG_CMD_GPT=y +CONFIG_CMD_I2C=y +CONFIG_CMD_MMC=y +CONFIG_CMD_PCI=y +CONFIG_CMD_USB=y +CONFIG_CMD_USB_MASS_STORAGE=y +# CONFIG_CMD_SETEXPR is not set +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="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 +CONFIG_ROCKCHIP_GPIO=y +CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_LED=y +CONFIG_LED_GPIO=y +CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y +CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS400_ES_SUPPORT=y +CONFIG_SPL_MMC_HS400_ES_SUPPORT=y +CONFIG_MMC_HS400_SUPPORT=y +CONFIG_SPL_MMC_HS400_SUPPORT=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_SDMA=y +CONFIG_MMC_SDHCI_ROCKCHIP=y +CONFIG_PHY_MICREL=y +CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_DWC_ETH_QOS=y +CONFIG_DWC_ETH_QOS_ROCKCHIP=y +CONFIG_PHYLIB=y +CONFIG_NVME_PCI=y +CONFIG_PCIE_DW_ROCKCHIP=y +CONFIG_PHY_ROCKCHIP_INNO_USB2=y +CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y +CONFIG_PHY_ROCKCHIP_USBDP=y +CONFIG_SPL_PINCTRL=y +CONFIG_DM_PMIC=y +CONFIG_PMIC_RK8XX=y +CONFIG_REGULATOR_RK8XX=y +CONFIG_PWM_ROCKCHIP=y +CONFIG_SPL_RAM=y +CONFIG_BAUDRATE=1500000 +CONFIG_DEBUG_UART_SHIFT=2 +CONFIG_SYS_NS16550_MEM32=y +CONFIG_ROCKCHIP_SPI=y +CONFIG_SYSRESET=y +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_EHCI_GENERIC=y +CONFIG_USB_OHCI_HCD=y +CONFIG_USB_OHCI_GENERIC=y +CONFIG_USB_DWC3=y +CONFIG_USB_DWC3_GENERIC=y +CONFIG_ERRNO_STR=ydoc/board/rockchip/rockchip.rst +1
-1@@ -149,6 +149,7 @@ List of mainline supported Rockchip boards: - Hardkernel ODROID-M2 (odroid-m2-rk3588s) - Indiedroid Nova (nova-rk3588s) - Khadas Edge2 (khadas-edge2-rk3588s) + - MNT Reform2 (mnt-reform2-rk3588) - Pine64 QuartzPro64 (quartzpro64-rk3588) - Radxa ROCK 5 ITX (rock-5-itx-rk3588) - Radxa ROCK 5A (rock5a-rk3588s) --2.50.0
Hi Peter,
Quoted 17 lines · Peter Robinson
Quoted 16 lines · Peter Robinson
Add support for MNT Reform2, it works as a carrier board with a Firefly iCore-3588Q SoM.
Specification:
- Rockchip RK3588
- LPDDR5X 16/32 GB
- eMMC 128/256 GB
- HDMI Type A out x 1
- USB 3.0 Host x 1
- USB-C 3.0 with DisplayPort AltMode
- PCIE M.2 E Key for Wireless connection
- PCIE M.2 M Key for NVME connection
- DSI to eDP panel
- 1Gb Ethernet w/ Microchip KSZ9310 PHY
Quoted 9 lines
Quoted 4 lines
Tested using Fedora boot on USB stick and eMMC.
Signed-off-by Peter Robinson <[email protected]>---
I forgot to add a note with this that the initial SoM and mainboard dts went upstream in the 6.16 merge window so should come with that rebase.
You could use tools/update-subtree.sh to cherry-pick the appropriate patches and not have to wait on the 6.16 tag being pushed to devicetree-rebasing and then merged into U-Boot?
Considering 6.16 is likely to be released before -rc1, maybe Tom will merge the 6.16 DT tree in time for 2025.10-rc1 in which case you could just wait for this to happen instead of cherry-picking. Up to you :)
Cheers,
Quentin
Hi Peter,
Quoted 33 lines · Peter Robinson
Add support for MNT Reform2, it works as a carrier board with a Firefly iCore-3588Q SoM.
Specification:
- Rockchip RK3588
- LPDDR5X 16/32 GB
- eMMC 128/256 GB
- HDMI Type A out x 1
- USB 3.0 Host x 1
- USB-C 3.0 with DisplayPort AltMode
- PCIE M.2 E Key for Wireless connection
- PCIE M.2 M Key for NVME connection
- DSI to eDP panel
- 1Gb Ethernet w/ Microchip KSZ9310 PHYTested using Fedora boot on USB stick and eMMC.
Signed-off-by Peter Robinson <[email protected]>--- arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi | 14 ++++ board/rockchip/evb_rk3588/MAINTAINERS | 6 ++ configs/mnt-reform2-rk3588_defconfig | 87 +++++++++++++++++++++ doc/board/rockchip/rockchip.rst | 1 + 4 files changed, 108 insertions(+)create mode 100644
arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsicreate mode 100644 configs/mnt-reform2-rk3588_defconfigarch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi new file +0
-0
arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi line 7
Quoted 7 lines
arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi new file +7
-0@@ -0,0 +1,14 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +#include "rk3588-u-boot.dtsi" + +/ { + chosen { + u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;
This is the same as the one in rk3588s-u-boot.dtsi so I think it can be omitted?
arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi line 14
Quoted 7 lines
arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi new file +7
-0+ }; +}; + +&fspim2_pins { + bootph-pre-ram; + bootph-some-ram; +};
I couldn't see where fspim2_pins is used for this board, are you sure this is correct? I don't see sfc node being enabled.
Quoted 34 lines
board/rockchip/evb_rk3588/MAINTAINERS +6
-0@@ -29,6 +29,12 @@ F: configs/generic-rk3588_defconfig F: arch/arm/dts/rk3588-generic.dts F: arch/arm/dts/rk3588-generic-u-boot.dtsi +MNT-REFORM2-RK3588 +M: Peter Robinson <[email protected]> +S: Maintained +F: configs/mnt-reform2-rk3588_defconfig +F: arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi + ORANGEPI-5-RK3588 M: Jonas Karlman <[email protected]> S: Maintainedconfigs/mnt-reform2-rk3588_defconfig new file +11
-0@@ -0,0 +1,87 @@ +CONFIG_ARM=y +CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 +CONFIG_ARCH_ROCKCHIP=y +CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3588-mnt-reform2" +CONFIG_ROCKCHIP_RK3588=y +CONFIG_SPL_SERIAL=y +CONFIG_TARGET_EVB_RK3588=y +CONFIG_SYS_LOAD_ADDR=0xc00800 +CONFIG_DEBUG_UART_BASE=0xFEB50000 +CONFIG_DEBUG_UART_CLOCK=24000000
configs/mnt-reform2-rk3588_defconfig line 21
Quoted 10 lines
configs/mnt-reform2-rk3588_defconfig new file +10
-0+CONFIG_PCI=y +CONFIG_DEBUG_UART=y +CONFIG_USE_PREBOOT=y +CONFIG_PREBOOT="pci enum; usb start; nvme scan;" +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-mnt-reform2"
Shouldn't that end with .dtb?
Quoted 17 lines
configs/mnt-reform2-rk3588_defconfig new file +17
-0+# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_DISPLAY_BOARDINFO_LATE=y +CONFIG_SPL_MAX_SIZE=0x40000 +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set +CONFIG_SPL_ATF=y +CONFIG_CMD_GPIO=y +CONFIG_CMD_GPT=y +CONFIG_CMD_I2C=y +CONFIG_CMD_MMC=y +CONFIG_CMD_PCI=y +CONFIG_CMD_USB=y +CONFIG_CMD_USB_MASS_STORAGE=y +# CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_REGULATOR=y +# CONFIG_SPL_DOS_PARTITION is not set +CONFIG_SPL_OF_CONTROL=y +CONFIG_OF_LIVE=y
configs/mnt-reform2-rk3588_defconfig line 48
Quoted 10 lines
configs/mnt-reform2-rk3588_defconfig new file +10
-0+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 +CONFIG_ROCKCHIP_GPIO=y +CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_LED=y +CONFIG_LED_GPIO=y +CONFIG_SYS_I2C_ROCKCHIP=y
Mmmm CONFIG_SYS_I2C_ROCKCHIP=y appearing twice smells like hand-edited defconfig, can you run make savedefconfig on it and use that output in the patch?
Quoted 19 lines
configs/mnt-reform2-rk3588_defconfig new file +19
-0+CONFIG_MISC=y +CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS400_ES_SUPPORT=y +CONFIG_SPL_MMC_HS400_ES_SUPPORT=y +CONFIG_MMC_HS400_SUPPORT=y +CONFIG_SPL_MMC_HS400_SUPPORT=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_SDMA=y +CONFIG_MMC_SDHCI_ROCKCHIP=y +CONFIG_PHY_MICREL=y +CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_DWC_ETH_QOS=y +CONFIG_DWC_ETH_QOS_ROCKCHIP=y +CONFIG_PHYLIB=y +CONFIG_NVME_PCI=y +CONFIG_PCIE_DW_ROCKCHIP=y +CONFIG_PHY_ROCKCHIP_INNO_USB2=y +CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y +CONFIG_PHY_ROCKCHIP_USBDP=y
configs/mnt-reform2-rk3588_defconfig line 77
Quoted 10 lines
configs/mnt-reform2-rk3588_defconfig new file +10
-0+CONFIG_SPL_PINCTRL=y +CONFIG_DM_PMIC=y +CONFIG_PMIC_RK8XX=y +CONFIG_REGULATOR_RK8XX=y +CONFIG_PWM_ROCKCHIP=y +CONFIG_SPL_RAM=y +CONFIG_BAUDRATE=1500000 +CONFIG_DEBUG_UART_SHIFT=2 +CONFIG_SYS_NS16550_MEM32=y +CONFIG_ROCKCHIP_SPI=y
I am not sure this setup actually has an SPI flash? At least couldn't find it in the device tree in upstream Linux's Rockchip maintainer tree for 6.17.
Cheers,
Quentin
Hi Quentin,
Quoted 28 lines · Peter Robinson
Quoted 27 lines
Add support for MNT Reform2, it works as a carrier board with a Firefly iCore-3588Q SoM.
Specification:
- Rockchip RK3588
- LPDDR5X 16/32 GB
- eMMC 128/256 GB
- HDMI Type A out x 1
- USB 3.0 Host x 1
- USB-C 3.0 with DisplayPort AltMode
- PCIE M.2 E Key for Wireless connection
- PCIE M.2 M Key for NVME connection
- DSI to eDP panel
- 1Gb Ethernet w/ Microchip KSZ9310 PHYTested using Fedora boot on USB stick and eMMC.
Signed-off-by Peter Robinson <[email protected]>--- arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi | 14 ++++ board/rockchip/evb_rk3588/MAINTAINERS | 6 ++ configs/mnt-reform2-rk3588_defconfig | 87 +++++++++++++++++++++ doc/board/rockchip/rockchip.rst | 1 + 4 files changed, 108 insertions(+)create mode 100644
arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsicreate mode 100644 configs/mnt-reform2-rk3588_defconfig
Quoted 16 lines
arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi line 7
Quoted 13 lines
arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi new file +7
-0@@ -0,0 +1,14 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +#include "rk3588-u-boot.dtsi" + +/ { + chosen { + u-boot,spl-boot-order = "same-as-spl", &sdmmc, &sdhci;This is the same as the one in
rk3588s-u-boot.dtsiso I think it can be omitted?
Yes, I had been working with someone remotely and they had been testing a few things to get it working so there were a few leftovers I missed in the commit.
Quoted 10 lines
arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi line 14
Quoted 7 lines
arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi new file +7
-0+ }; +}; + +&fspim2_pins { + bootph-pre-ram; + bootph-some-ram; +};I couldn't see where
fspim2_pinsis used for this board, are you sure this is correct? I don't see sfc node being enabled.
Initially the user had reported it did have SPI flash, it doesn't, I forgot to clean that up.
Quoted 38 lines
Quoted 38 lines
board/rockchip/evb_rk3588/MAINTAINERS +6
-0@@ -29,6 +29,12 @@ F: configs/generic-rk3588_defconfig F: arch/arm/dts/rk3588-generic.dts F: arch/arm/dts/rk3588-generic-u-boot.dtsi +MNT-REFORM2-RK3588 +M: Peter Robinson <[email protected]> +S: Maintained +F: configs/mnt-reform2-rk3588_defconfig +F: arch/arm/dts/rk3588-mnt-reform2-u-boot.dtsi + ORANGEPI-5-RK3588 M: Jonas Karlman <[email protected]> S: Maintainedconfigs/mnt-reform2-rk3588_defconfig new file +15
-0@@ -0,0 +1,87 @@ +CONFIG_ARM=y +CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 +CONFIG_ARCH_ROCKCHIP=y +CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3588-mnt-reform2" +CONFIG_ROCKCHIP_RK3588=y +CONFIG_SPL_SERIAL=y +CONFIG_TARGET_EVB_RK3588=y +CONFIG_SYS_LOAD_ADDR=0xc00800 +CONFIG_DEBUG_UART_BASE=0xFEB50000 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_PCI=y +CONFIG_DEBUG_UART=y +CONFIG_USE_PREBOOT=y +CONFIG_PREBOOT="pci enum; usb start; nvme scan;"
Quoted 8 lines
configs/mnt-reform2-rk3588_defconfig line 21
Quoted 6 lines
configs/mnt-reform2-rk3588_defconfig new file +6
-0+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-mnt-reform2"Shouldn't that end with .dtb?
Nope.
Quoted 23 lines
Quoted 23 lines
configs/mnt-reform2-rk3588_defconfig new file +23
-0+# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_DISPLAY_BOARDINFO_LATE=y +CONFIG_SPL_MAX_SIZE=0x40000 +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set +CONFIG_SPL_ATF=y +CONFIG_CMD_GPIO=y +CONFIG_CMD_GPT=y +CONFIG_CMD_I2C=y +CONFIG_CMD_MMC=y +CONFIG_CMD_PCI=y +CONFIG_CMD_USB=y +CONFIG_CMD_USB_MASS_STORAGE=y +# CONFIG_CMD_SETEXPR is not set +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="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 +CONFIG_ROCKCHIP_GPIO=y
Quoted 8 lines
configs/mnt-reform2-rk3588_defconfig line 48
Quoted 4 lines
configs/mnt-reform2-rk3588_defconfig new file +4
-0+CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_LED=y +CONFIG_LED_GPIO=y +CONFIG_SYS_I2C_ROCKCHIP=yMmmm
CONFIG_SYS_I2C_ROCKCHIP=yappearing twice smells like hand-edited defconfig, can you run make savedefconfig on it and use that output in the patch?
Yes, done in v2
Quoted 25 lines
Quoted 25 lines
configs/mnt-reform2-rk3588_defconfig new file +25
-0+CONFIG_MISC=y +CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_HS400_ES_SUPPORT=y +CONFIG_SPL_MMC_HS400_ES_SUPPORT=y +CONFIG_MMC_HS400_SUPPORT=y +CONFIG_SPL_MMC_HS400_SUPPORT=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_SDMA=y +CONFIG_MMC_SDHCI_ROCKCHIP=y +CONFIG_PHY_MICREL=y +CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_DWC_ETH_QOS=y +CONFIG_DWC_ETH_QOS_ROCKCHIP=y +CONFIG_PHYLIB=y +CONFIG_NVME_PCI=y +CONFIG_PCIE_DW_ROCKCHIP=y +CONFIG_PHY_ROCKCHIP_INNO_USB2=y +CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y +CONFIG_PHY_ROCKCHIP_USBDP=y +CONFIG_SPL_PINCTRL=y +CONFIG_DM_PMIC=y +CONFIG_PMIC_RK8XX=y +CONFIG_REGULATOR_RK8XX=y +CONFIG_PWM_ROCKCHIP=y +CONFIG_SPL_RAM=y
Quoted 8 lines
configs/mnt-reform2-rk3588_defconfig line 77
Quoted 4 lines
configs/mnt-reform2-rk3588_defconfig new file +4
-0+CONFIG_BAUDRATE=1500000 +CONFIG_DEBUG_UART_SHIFT=2 +CONFIG_SYS_NS16550_MEM32=y +CONFIG_ROCKCHIP_SPI=yI am not sure this setup actually has an SPI flash? At least couldn't find it in the device tree in upstream Linux's Rockchip maintainer tree for 6.17.
It doesn't, I had been told differently initially, and the upstream file is also currently not complete.
Peter
Hi Peter,
Quoted 3 lines · Peter Robinson
Hi Quentin,
Quoted 1 line · Peter Robinson
[...]
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
+CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-mnt-reform2"
Shouldn't that end with .dtb?
Nope.
Interestingly we have a mix of some adding .dtb and some not:
$ git grep CONFIG_DEFAULT_FDT_FILE configs/ | grep -v dtb | wc -l 44 $ git grep CONFIG_DEFAULT_FDT_FILE configs/ | grep dtb | wc -l 244
Most notably, all Rockchip defconfigs add .dtb at the end.
The value of this Kconfig symbol is the content of the fdtfile environment variable, which seems to be expecting a .dtb-suffixed file?
See doc/develop/bootstd/overview.rst:
"""
fdtfile
Name of the flattened device tree (FDT) file to load, e.g. "rockchip/rk3399-rockpro64.dtb"
"""
and doc/develop/distro.rst:
"""
fdtfile:
Mandatory. the name of the DTB file for the specific board for instance the espressobin v5 board the value is
"marvell/armada-3720-espressobin.dtb"
while on a clearfog pro it is "armada-388-clearfog-pro.dtb" in the
case of
a board providing its firmware based DTB this value can be used to
override
the DTB with a different DTB. fdtfile will automatically be set for
you if
it matches the format ${soc}-${board}.dtb which covers most 32 bit
use cases.
AArch64 generally does not match as the Linux kernel put the dtb
files under
SoC vendor directories.
"""
so it seems like we are indeed expecting a .dtb-suffixed file.
boot/pxe_utils.c seems to be reconstructing fdtfile with a forced .dtb suffix (c.f. f4 variable when label->fdt isn't set in label_boot().
What am I missing?
Cheers,
Quentin