From 0773e31fd4309542d210f2d5194a62d4e64a4fbf Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Tue, 7 Mar 2023 13:59:29 +0100 Subject: [PATCH] ccmp15: add DT overlay for the DVK v1 This commit adds an overlay for DVK v1 and modifies the boot script to apply it based on the board_version variable. Signed-off-by: Arturo Buzarra --- meta-digi-arm/conf/machine/ccmp15-dvk.conf | 1 + .../recipes-bsp/u-boot/u-boot-dey/ccmp15-dvk/boot.txt | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/meta-digi-arm/conf/machine/ccmp15-dvk.conf b/meta-digi-arm/conf/machine/ccmp15-dvk.conf index f38f0411f..eaca7d914 100644 --- a/meta-digi-arm/conf/machine/ccmp15-dvk.conf +++ b/meta-digi-arm/conf/machine/ccmp15-dvk.conf @@ -46,6 +46,7 @@ STM32MP_KERNEL_DEVICETREE:ccmp15-dvk += " \ _ov_board_mikroe-gyro-click_ccmp15-dvk.dtbo \ _ov_board_mikroe-i2c-to-spi-click_ccmp15-dvk.dtbo \ _ov_board_uart7_rs232_ccmp15-dvk.dtbo \ + _ov_board_v1_ccmp15-dvk.dtbo \ _ov_som_bt_ccmp15.dtbo \ _ov_som_wifi_ccmp15.dtbo \ " diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp15-dvk/boot.txt b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp15-dvk/boot.txt index 417993214..3ba6307b2 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp15-dvk/boot.txt +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp15-dvk/boot.txt @@ -58,6 +58,11 @@ if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then setenv overlays _ov_som_wifi_ccmp15.dtbo,${overlays} fi +# Apply DVKv1 overlay if the board_version is 1 +if test "${board_version}" -eq "1"; then + setenv overlays _ov_board_v1_ccmp15-dvk.dtbo,${overlays} +fi + dboot linux nand ${mtdbootpart}