From 123472013ad76fd7b93ca2a07c5ab1b3874342f4 Mon Sep 17 00:00:00 2001 From: TOKITA Hiroshi Date: Mon, 2 Sep 2024 21:54:34 +0900 Subject: [PATCH] soc: raspberrypi: rp2350: Add initial support for the RP2350B RP2350B is a rich IO variant in the RP2350 series. Signed-off-by: TOKITA Hiroshi --- dts/arm/raspberrypi/rpi_pico/rp2350b.dtsi | 13 +++++++++++++ soc/raspberrypi/rpi_pico/rp2350/Kconfig | 9 +++++++++ soc/raspberrypi/rpi_pico/rp2350/Kconfig.soc | 11 +++++++++++ soc/raspberrypi/rpi_pico/soc.yml | 3 +++ 4 files changed, 36 insertions(+) create mode 100644 dts/arm/raspberrypi/rpi_pico/rp2350b.dtsi diff --git a/dts/arm/raspberrypi/rpi_pico/rp2350b.dtsi b/dts/arm/raspberrypi/rpi_pico/rp2350b.dtsi new file mode 100644 index 00000000000..55b67427237 --- /dev/null +++ b/dts/arm/raspberrypi/rpi_pico/rp2350b.dtsi @@ -0,0 +1,13 @@ +#include + +&gpio0 { + ngpios = <32>; +}; + +&gpio0_hi { + ngpios = <16>; +}; + +&die_temp { + io-channels = <&adc 8>; +}; diff --git a/soc/raspberrypi/rpi_pico/rp2350/Kconfig b/soc/raspberrypi/rpi_pico/rp2350/Kconfig index 2de28a5dd56..28553021e2c 100644 --- a/soc/raspberrypi/rpi_pico/rp2350/Kconfig +++ b/soc/raspberrypi/rpi_pico/rp2350/Kconfig @@ -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 diff --git a/soc/raspberrypi/rpi_pico/rp2350/Kconfig.soc b/soc/raspberrypi/rpi_pico/rp2350/Kconfig.soc index 19012bb5648..069bc56cfbf 100644 --- a/soc/raspberrypi/rpi_pico/rp2350/Kconfig.soc +++ b/soc/raspberrypi/rpi_pico/rp2350/Kconfig.soc @@ -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 diff --git a/soc/raspberrypi/rpi_pico/soc.yml b/soc/raspberrypi/rpi_pico/soc.yml index 32039c20944..fac2f36cd96 100644 --- a/soc/raspberrypi/rpi_pico/soc.yml +++ b/soc/raspberrypi/rpi_pico/soc.yml @@ -9,3 +9,6 @@ family: - name: rp2350a cpuclusters: - name: m33 + - name: rp2350b + cpuclusters: + - name: m33