From 165b1ac4ce5bb58abc110f7d03ef50c8ee47d494 Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Mon, 12 May 2025 16:48:51 +0200 Subject: [PATCH] ccmp13: add device tree overlay for DVKv3 This overlay contains a workaround to make the USB-OTG work as USB device when connected to a host. Signed-off-by: Hector Palacios https://onedigi.atlassian.net/browse/DEL-9610 (cherry picked from commit ec92f5fdd10a61e37ac3778d0d3aa1816bc6b0aa) Signed-off-by: Hector Palacios --- meta-digi-arm/conf/machine/ccmp13-dvk.conf | 1 + .../recipes-bsp/u-boot/u-boot-dey/ccmp13-dvk/boot.txt | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-digi-arm/conf/machine/ccmp13-dvk.conf b/meta-digi-arm/conf/machine/ccmp13-dvk.conf index 7b3504c62..00124a7bb 100644 --- a/meta-digi-arm/conf/machine/ccmp13-dvk.conf +++ b/meta-digi-arm/conf/machine/ccmp13-dvk.conf @@ -50,6 +50,7 @@ STM32MP_KERNEL_DEVICETREE:ccmp13-dvk += " \ ccmp13-dvk_mikroe-i2c-to-spi-click.dtbo \ ccmp13-dvk_pwm8.dtbo \ ccmp13-dvk_v2.dtbo \ + ccmp13-dvk_v3.dtbo \ ccmp133-dvk.dtb \ " FIT_CONF_DEFAULT_DTB = "ccmp133-dvk.dtb" diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp13-dvk/boot.txt b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp13-dvk/boot.txt index d0e7e60df..9b8006c68 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp13-dvk/boot.txt +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp13-dvk/boot.txt @@ -66,9 +66,11 @@ if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then setenv overlays ccmp13_wifi.dtbo,${overlays} fi -# Apply DVKv2 overlay if the board_version is 2 +# Apply DVK version overlay if test "${board_version}" -eq "2"; then setenv overlays ccmp13-dvk_v2.dtbo,${overlays} +elif test "${board_version}" -eq "3"; then + setenv overlays ccmp13-dvk_v3.dtbo,${overlays} fi if test "${boot_device}" = "mmc"; then