Skip to content

Commit 0832f18

Browse files
committed
boards: raspberrypi: rpi_pico: Add MCUboot variants
Add MCUboot variants to RPI Pico / Pico W and SysBuild parititions: - rpi_pico/rp2040/mcuboot - rpi_pico/rp2040/w/mcuboot Signed-off-by: John Lin <john.lin@beechwoods.com>
1 parent 553fc84 commit 0832f18

File tree

8 files changed

+95
-3
lines changed

8 files changed

+95
-3
lines changed

boards/raspberrypi/rpi_pico/board.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ board:
33
full_name: Raspberry Pi Pico
44
vendor: raspberrypi
55
socs:
6-
- name: rp2040
7-
variants:
8-
- name: w
6+
- name: rp2040
7+
variants:
8+
- name: w
9+
variants:
10+
- name: mcuboot
11+
- name: mcuboot
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "rpi_pico.dts"
2+
3+
/delete-node/ &code_partition;
4+
#include <raspberrypi/partitions_2M_sysbuild.dtsi>
5+
/ {
6+
chosen {
7+
zephyr,code-partition = &slot0_partition;
8+
};
9+
};
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
identifier: rpi_pico/rp2040/mcuboot
2+
name: Raspberry Pi Pico - MCUboot
3+
type: mcu
4+
arch: arm
5+
flash: 2048
6+
ram: 264
7+
toolchain:
8+
- zephyr
9+
- gnuarmemb
10+
supported:
11+
- uart
12+
- gpio
13+
- adc
14+
- i2c
15+
- spi
16+
- hwinfo
17+
- watchdog
18+
- pwm
19+
- flash
20+
- dma
21+
- counter
22+
- clock
23+
- usbd
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CONFIG_SERIAL=y
2+
CONFIG_CONSOLE=y
3+
CONFIG_UART_CONSOLE=y
4+
CONFIG_GPIO=y
5+
CONFIG_USE_DT_CODE_PARTITION=y
6+
CONFIG_BUILD_OUTPUT_UF2=y
7+
CONFIG_BUILD_OUTPUT_HEX=y
8+
CONFIG_UART_INTERRUPT_DRIVEN=y
9+
CONFIG_RESET=y
10+
CONFIG_CLOCK_CONTROL=y
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "rpi_pico_rp2040_w.dts"
2+
3+
/delete-node/ &code_partition;
4+
#include <raspberrypi/partitions_2M_sysbuild.dtsi>
5+
/ {
6+
chosen {
7+
zephyr,code-partition = &slot0_partition;
8+
};
9+
};
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
identifier: rpi_pico/rp2040/w/mcuboot
2+
name: Raspberry Pi Pico W - MCUboot
3+
type: mcu
4+
arch: arm
5+
flash: 2048
6+
ram: 264
7+
toolchain:
8+
- zephyr
9+
- gnuarmemb
10+
supported:
11+
- uart
12+
- gpio
13+
- adc
14+
- i2c
15+
- spi
16+
- hwinfo
17+
- watchdog
18+
- pwm
19+
- flash
20+
- dma
21+
- pio
22+
- counter
23+
- clock
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
CONFIG_SERIAL=y
2+
CONFIG_CONSOLE=y
3+
CONFIG_UART_CONSOLE=y
4+
CONFIG_GPIO=y
5+
CONFIG_USE_DT_CODE_PARTITION=y
6+
CONFIG_BUILD_OUTPUT_UF2=y
7+
CONFIG_BUILD_OUTPUT_HEX=y
8+
CONFIG_UART_INTERRUPT_DRIVEN=y
9+
CONFIG_RESET=y
10+
CONFIG_CLOCK_CONTROL=y
11+
12+
# Default networking configuration
13+
CONFIG_CYW43439=y

tests/drivers/adc/adc_api/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ tests:
1717
- bl54l15_dvk/nrf54l15/cpuapp/ns
1818
- bl54l15u_dvk/nrf54l15/cpuapp/ns
1919
- raytac_an54l15q_db/nrf54l15/cpuapp/ns
20+
- rpi_pico/rp2040/mcuboot
21+
- rpi_pico/rp2040/w/mcuboot
2022
drivers.adc.b_u585i_iot02a_adc4:
2123
extra_args:
2224
- DTC_OVERLAY_FILE="boards/b_u585i_iot02a_adc4.overlay"

0 commit comments

Comments
 (0)