Skip to content

Commit

Permalink
soc: raspberrypi: rp2350: Add initial support for the RP2350B
Browse files Browse the repository at this point in the history
RP2350B is a rich IO variant in the RP2350 series.

Signed-off-by: TOKITA Hiroshi <[email protected]>
  • Loading branch information
soburi committed Feb 1, 2025
1 parent 06945e7 commit 3e480d2
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dts/arm/raspberrypi/rpi_pico/rp2350b.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include <arm/raspberrypi/rpi_pico/rp2350.dtsi>

&gpio0 {
ngpios = <32>;
};

&gpio0_hi {
ngpios = <16>;
};

&die_temp {
io-channels = <&adc 8>;
};
9 changes: 9 additions & 0 deletions soc/raspberrypi/rpi_pico/rp2350/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ config SOC_RP2350A_M33
select CPU_HAS_ARM_MPU
select CPU_HAS_ARM_SAU

config SOC_RP2350B_M33
select ARM
select ARM_TRUSTZONE_M
select CPU_CORTEX_M_HAS_SYSTICK
select CPU_CORTEX_M_HAS_VTOR
select CPU_CORTEX_M33
select CPU_HAS_ARM_MPU
select CPU_HAS_ARM_SAU

config RP2_REQUIRES_IMAGE_DEFINITION_BLOCK
bool
default y
Expand Down
11 changes: 11 additions & 0 deletions soc/raspberrypi/rpi_pico/rp2350/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,16 @@ config SOC_RP2350A_M33
help
Use the RP2350A with a Cortex-M33 core in both 'sockets'.

config SOC_RP2350B
bool
select SOC_SERIES_RP2350

config SOC_RP2350B_M33
bool
select SOC_RP2350B
help
Use the RP2350B with a Cortex-M33 core in both 'sockets'.

config SOC
default "rp2350a" if SOC_RP2350A
default "rp2350b" if SOC_RP2350B
3 changes: 3 additions & 0 deletions soc/raspberrypi/rpi_pico/soc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ family:
- name: rp2350a
cpuclusters:
- name: m33
- name: rp2350b
cpuclusters:
- name: m33

0 comments on commit 3e480d2

Please sign in to comment.