Skip to content

boards: raspberrypi: rpi_pico: Add MCUboot variants #91735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions boards/raspberrypi/rpi_pico/board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions boards/raspberrypi/rpi_pico/rpi_pico_rp2040_mcuboot.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "rpi_pico.dts"

/delete-node/ &code_partition;
#include <raspberrypi/partitions_2M_sysbuild.dtsi>
/ {
chosen {
zephyr,code-partition = &slot0_partition;
};
};
23 changes: 23 additions & 0 deletions boards/raspberrypi/rpi_pico/rpi_pico_rp2040_mcuboot.yaml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions boards/raspberrypi/rpi_pico/rpi_pico_rp2040_mcuboot_defconfig
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_mcuboot.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include "rpi_pico_rp2040_w.dts"

/delete-node/ &code_partition;
#include <raspberrypi/partitions_2M_sysbuild.dtsi>
/ {
chosen {
zephyr,code-partition = &slot0_partition;
};
};
23 changes: 23 additions & 0 deletions boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_mcuboot.yaml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_mcuboot_defconfig
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions tests/drivers/adc/adc_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down