Skip to content

Commit 37c5cf6

Browse files
committed
mekotronics-r58x-4g: u-boot: create -u-boot.dtsi via hook
- saves one .dtsi file in patch/.../dt_uboot - I had the wrong name (missing `-u-boot` suffix) too so this fixes it too
1 parent 576c709 commit 37c5cf6

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

config/boards/mekotronics-r58x-4g.csc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,20 @@ function pre_config_uboot_target__mekor58x_4g_patch_rockchip_common_boot_order()
5454
regular_git diff -u include/configs/rockchip-common.h || true
5555
}
5656

57+
function pre_config_uboot_target__ekor58x_4g_patch_uboot_dtsi_for_ums() {
58+
[[ "${BRANCH}" == "vendor" ]] && return 0 # Not for 'vendor' branch, which uses 2017.09 vendor u-boot from Radxa
59+
60+
display_alert "u-boot for ${BOARD}" "u-boot: add to u-boot dtsi for UMS" "info" # avoid a patch, just append to the dtsi file
61+
# Append to the t6 u-boot dtsi file with stuff for enabling gadget/otg/peripheral mode
62+
cat <<- EOD >> arch/arm/dts/rk3588-blueberry-edge-v12-linux-u-boot.dtsi
63+
#include "rk3588-generic-u-boot.dtsi"
64+
&u2phy0 { status = "okay"; };
65+
&u2phy0_otg { status = "okay"; };
66+
&usbdp_phy0 { status = "okay"; };
67+
&usb_host0_xhci { dr_mode = "peripheral"; maximum-speed = "high-speed"; status = "okay"; };
68+
EOD
69+
}
70+
5771
function post_config_uboot_target__extra_configs_for_mekor58x_4g_mainline_environment_in_spi() {
5872
display_alert "u-boot for ${BOARD}/${BRANCH}" "u-boot: enable board-specific configs" "info"
5973
run_host_command_logged scripts/config --enable CONFIG_CMD_MISC

patch/u-boot/v2026.04/dt_uboot/rk3588-blueberry-edge-v12-linux.dtsi

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)