ccmp1: add DT overlay for the DVK v2

This commit adds several overlays for DVK v2 and modifies the boot script to apply it
based on the board_version variable.

https://onedigi.atlassian.net/browse/DEL-8746

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
Arturo Buzarra 2023-11-06 15:55:59 +01:00
parent e9aeb051cf
commit f80b70bb72
4 changed files with 12 additions and 0 deletions

View File

@ -43,6 +43,7 @@ STM32MP_KERNEL_DEVICETREE:ccmp13-dvk += " \
_ov_board_mikroe-gyro-click_ccmp13-dvk.dtbo \
_ov_board_mikroe-i2c-to-spi-click_ccmp13-dvk.dtbo \
_ov_board_pwm8_ccmp13-dvk.dtbo \
_ov_board_v2_ccmp13-dvk.dtbo \
_ov_som_bt_ccmp13.dtbo \
_ov_som_bt_test_ccmp13.dtbo \
_ov_som_wifi_ccmp13.dtbo \

View File

@ -49,6 +49,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_v1_ccmp15-dvk.dtbo \
_ov_board_v2_ccmp15-dvk.dtbo \
_ov_som_bt_ccmp15.dtbo \
_ov_som_bt_test_ccmp15.dtbo \
_ov_som_mca_ccmp15.dtbo \

View File

@ -66,6 +66,11 @@ if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then
setenv overlays _ov_som_wifi_ccmp13.dtbo,${overlays}
fi
# Apply DVKv2 overlay if the board_version is 2
if test "${board_version}" -eq "2"; then
setenv overlays _ov_board_v2_ccmp13-dvk.dtbo,${overlays}
fi
if test "${boot_device}" = "mmc"; then
dboot linux mmc
else

View File

@ -77,6 +77,11 @@ if test -z "${board_version}" || test "${board_version}" -eq "1"; then
setenv overlays _ov_board_v1_ccmp15-dvk.dtbo,${overlays}
fi
# Apply DVKv2 overlay if the board_version is 2
if test "${board_version}" -eq "2"; then
setenv overlays _ov_board_v2_ccmp15-dvk.dtbo,${overlays}
fi
if test "${boot_device}" = "mmc"; then
dboot linux mmc
else