diff --git a/boards/raspberrypi/rpi_pico/board.yml b/boards/raspberrypi/rpi_pico/board.yml index c7378a328018..cd3858f77bff 100644 --- a/boards/raspberrypi/rpi_pico/board.yml +++ b/boards/raspberrypi/rpi_pico/board.yml @@ -3,6 +3,9 @@ board: full_name: Raspberry Pi Pico vendor: raspberrypi socs: - - name: rp2040 - variants: - - name: w + - name: rp2040 + variants: + - name: w + variants: + - name: mcuboot + - name: mcuboot diff --git a/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_mcuboot.dts b/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_mcuboot.dts new file mode 100644 index 000000000000..c07b478eebd2 --- /dev/null +++ b/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_mcuboot.dts @@ -0,0 +1,9 @@ +#include "rpi_pico.dts" + +/delete-node/ &code_partition; +#include +/ { + chosen { + zephyr,code-partition = &slot0_partition; + }; +}; diff --git a/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_mcuboot.yaml b/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_mcuboot.yaml new file mode 100644 index 000000000000..217130faea82 --- /dev/null +++ b/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_mcuboot.yaml @@ -0,0 +1,23 @@ +identifier: rpi_pico/rp2040/mcuboot +name: Raspberry Pi Pico - MCUboot +type: mcu +arch: arm +flash: 2048 +ram: 264 +toolchain: + - zephyr + - gnuarmemb +supported: + - uart + - gpio + - adc + - i2c + - spi + - hwinfo + - watchdog + - pwm + - flash + - dma + - counter + - clock + - usbd diff --git a/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_mcuboot_defconfig b/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_mcuboot_defconfig new file mode 100644 index 000000000000..aaaa51cbdb98 --- /dev/null +++ b/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_mcuboot_defconfig @@ -0,0 +1,10 @@ +CONFIG_SERIAL=y +CONFIG_CONSOLE=y +CONFIG_UART_CONSOLE=y +CONFIG_GPIO=y +CONFIG_USE_DT_CODE_PARTITION=y +CONFIG_BUILD_OUTPUT_UF2=y +CONFIG_BUILD_OUTPUT_HEX=y +CONFIG_UART_INTERRUPT_DRIVEN=y +CONFIG_RESET=y +CONFIG_CLOCK_CONTROL=y diff --git a/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_mcuboot.dts b/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_mcuboot.dts new file mode 100644 index 000000000000..266fd2b3397f --- /dev/null +++ b/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_mcuboot.dts @@ -0,0 +1,9 @@ +#include "rpi_pico_rp2040_w.dts" + +/delete-node/ &code_partition; +#include +/ { + chosen { + zephyr,code-partition = &slot0_partition; + }; +}; diff --git a/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_mcuboot.yaml b/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_mcuboot.yaml new file mode 100644 index 000000000000..9471ae9fdd95 --- /dev/null +++ b/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_mcuboot.yaml @@ -0,0 +1,23 @@ +identifier: rpi_pico/rp2040/w/mcuboot +name: Raspberry Pi Pico W - MCUboot +type: mcu +arch: arm +flash: 2048 +ram: 264 +toolchain: + - zephyr + - gnuarmemb +supported: + - uart + - gpio + - adc + - i2c + - spi + - hwinfo + - watchdog + - pwm + - flash + - dma + - pio + - counter + - clock diff --git a/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_mcuboot_defconfig b/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_mcuboot_defconfig new file mode 100644 index 000000000000..9438a979c63e --- /dev/null +++ b/boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_mcuboot_defconfig @@ -0,0 +1,13 @@ +CONFIG_SERIAL=y +CONFIG_CONSOLE=y +CONFIG_UART_CONSOLE=y +CONFIG_GPIO=y +CONFIG_USE_DT_CODE_PARTITION=y +CONFIG_BUILD_OUTPUT_UF2=y +CONFIG_BUILD_OUTPUT_HEX=y +CONFIG_UART_INTERRUPT_DRIVEN=y +CONFIG_RESET=y +CONFIG_CLOCK_CONTROL=y + +# Default networking configuration +CONFIG_CYW43439=y diff --git a/tests/drivers/adc/adc_api/testcase.yaml b/tests/drivers/adc/adc_api/testcase.yaml index 652c3e12a85c..ede33dcb01d4 100644 --- a/tests/drivers/adc/adc_api/testcase.yaml +++ b/tests/drivers/adc/adc_api/testcase.yaml @@ -17,6 +17,8 @@ tests: - bl54l15_dvk/nrf54l15/cpuapp/ns - bl54l15u_dvk/nrf54l15/cpuapp/ns - raytac_an54l15q_db/nrf54l15/cpuapp/ns + - rpi_pico/rp2040/mcuboot + - rpi_pico/rp2040/w/mcuboot drivers.adc.b_u585i_iot02a_adc4: extra_args: - DTC_OVERLAY_FILE="boards/b_u585i_iot02a_adc4.overlay"