This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 879a19e153a1143e5acebd85c241adb3ddc8aa46
Author: Marco Casaroli <[email protected]>
AuthorDate: Wed Oct 7 18:06:43 2026 +0200

    boards/rp23xx: Add pm configurations for the Pico 2 and Pico Plus 2.
    
    raspberrypi-pico-2:pm and pimoroni-pico-2-plus:pm enable the PM
    standby and dormant states with the greedy governor, suspend to RAM
    with the BOARDIOC_RP23XX_SUSPEND boardctl() command, and the RTC alarm.
    The console receive pin (GPIO 1) wakes the chip, and the dormant state
    is refused for 30 s after boot so that a debugger can attach.  The Pico
    Plus 2 configuration also adds its PSRAM to the heap.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 .../rp23xx/boards/pimoroni-pico-2-plus/index.rst   |  9 ++++
 .../arm/rp23xx/boards/raspberrypi-pico-2/index.rst |  9 ++++
 .../pimoroni-pico-2-plus/configs/pm/defconfig      | 63 ++++++++++++++++++++++
 .../rp23xx/raspberrypi-pico-2/configs/pm/defconfig | 61 +++++++++++++++++++++
 4 files changed, 142 insertions(+)

diff --git 
a/Documentation/platforms/arm/rp23xx/boards/pimoroni-pico-2-plus/index.rst 
b/Documentation/platforms/arm/rp23xx/boards/pimoroni-pico-2-plus/index.rst
index d88a47f1c58..5c13ebb50ad 100644
--- a/Documentation/platforms/arm/rp23xx/boards/pimoroni-pico-2-plus/index.rst
+++ b/Documentation/platforms/arm/rp23xx/boards/pimoroni-pico-2-plus/index.rst
@@ -150,6 +150,15 @@ smp
 Basic NuttShell configuration (console enabled on UART0, at 115200 bps) with
 both Arm cores enabled.
 
+pm
+--
+
+Power management (console on UART0, at 115200 bps).  The idle governor
+uses the standby state, and the dormant state 30 seconds after boot; a
+character on the console receive pin (GPIO 1) wakes the board.  Suspend to
+RAM is available through the ``BOARDIOC_RP23XX_SUSPEND`` boardctl()
+command, and ``/dev/rtc0`` has an alarm.
+
 audiopack
 ---------
 
diff --git 
a/Documentation/platforms/arm/rp23xx/boards/raspberrypi-pico-2/index.rst 
b/Documentation/platforms/arm/rp23xx/boards/raspberrypi-pico-2/index.rst
index aa2acae6f7e..940f0139261 100644
--- a/Documentation/platforms/arm/rp23xx/boards/raspberrypi-pico-2/index.rst
+++ b/Documentation/platforms/arm/rp23xx/boards/raspberrypi-pico-2/index.rst
@@ -230,3 +230,12 @@ smp
 
 Basic NuttShell configuration (console enabled in UART0, at 115200 bps) with
 both ARM cores enabled.
+
+pm
+--
+
+Power management (console on UART0, at 115200 bps).  The idle governor
+uses the standby state, and the dormant state 30 seconds after boot; a
+character on the console receive pin (GPIO 1) wakes the board.  Suspend to
+RAM is available through the ``BOARDIOC_RP23XX_SUSPEND`` boardctl()
+command, and ``/dev/rtc0`` has an alarm.
diff --git a/boards/arm/rp23xx/pimoroni-pico-2-plus/configs/pm/defconfig 
b/boards/arm/rp23xx/pimoroni-pico-2-plus/configs/pm/defconfig
new file mode 100644
index 00000000000..a617eb13415
--- /dev/null
+++ b/boards/arm/rp23xx/pimoroni-pico-2-plus/configs/pm/defconfig
@@ -0,0 +1,63 @@
+#
+# This file is autogenerated: PLEASE DO NOT EDIT IT.
+#
+# You can use "make menuconfig" to make any modifications to the installed 
.config file.
+# You can then do "make savedefconfig" to generate a new defconfig file that 
includes your
+# modifications.
+#
+# CONFIG_ARCH_LEDS is not set
+# CONFIG_NSH_ARGCAT is not set
+# CONFIG_NSH_CMDOPT_HEXDUMP is not set
+# CONFIG_NSH_DISABLE_LOSMART is not set
+# CONFIG_STANDARD_SERIAL is not set
+CONFIG_ARCH="arm"
+CONFIG_ARCH_BOARD="pimoroni-pico-2-plus"
+CONFIG_ARCH_BOARD_COMMON=y
+CONFIG_ARCH_BOARD_PIMORONI_PICO_2_PLUS=y
+CONFIG_ARCH_CHIP="rp23xx"
+CONFIG_ARCH_CHIP_RP23XX=y
+CONFIG_ARCH_RAMVECTORS=y
+CONFIG_ARCH_STACKDUMP=y
+CONFIG_BOARDCTL_IOCTL=y
+CONFIG_BOARDCTL_RESET=y
+CONFIG_BOARD_LOOPSPERMSEC=10450
+CONFIG_BUILTIN=y
+CONFIG_DEBUG_FULLOPT=y
+CONFIG_DEBUG_SYMBOLS=y
+CONFIG_DISABLE_POSIX_TIMERS=y
+CONFIG_EXAMPLES_ALARM=y
+CONFIG_EXAMPLES_HELLO=y
+CONFIG_FS_PROCFS=y
+CONFIG_FS_PROCFS_REGISTER=y
+CONFIG_HOST_MACOS=y
+CONFIG_INIT_ENTRYPOINT="nsh_main"
+CONFIG_MM_REGIONS=2
+CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=6
+CONFIG_NSH_BUILTIN_APPS=y
+CONFIG_NSH_READLINE=y
+CONFIG_PM=y
+CONFIG_PM_GOVERNOR_EXPLICIT_RELAX=30000
+CONFIG_PM_GOVERNOR_GREEDY=y
+CONFIG_PM_PROCFS=y
+CONFIG_RAM_SIZE=532480
+CONFIG_RAM_START=0x20000000
+CONFIG_READLINE_CMD_HISTORY=y
+CONFIG_RP23XX_PM=y
+CONFIG_RP23XX_PM_SUSPEND=y
+CONFIG_RP23XX_PM_WAKEUP_GPIO=1
+CONFIG_RP23XX_PSRAM=y
+CONFIG_RP23XX_RTC=y
+CONFIG_RR_INTERVAL=200
+CONFIG_RTC_ALARM=y
+CONFIG_RTC_DRIVER=y
+CONFIG_SCHED_WAITPID=y
+CONFIG_START_DAY=9
+CONFIG_START_MONTH=2
+CONFIG_START_YEAR=2021
+CONFIG_SYSLOG_CONSOLE=y
+CONFIG_SYSTEM_NSH=y
+CONFIG_TESTING_GETPRIME=y
+CONFIG_TESTING_OSTEST=y
+CONFIG_UART0_SERIAL_CONSOLE=y
+CONFIG_USERLED=y
+CONFIG_USERLED_LOWER=y
diff --git a/boards/arm/rp23xx/raspberrypi-pico-2/configs/pm/defconfig 
b/boards/arm/rp23xx/raspberrypi-pico-2/configs/pm/defconfig
new file mode 100644
index 00000000000..c186031450f
--- /dev/null
+++ b/boards/arm/rp23xx/raspberrypi-pico-2/configs/pm/defconfig
@@ -0,0 +1,61 @@
+#
+# This file is autogenerated: PLEASE DO NOT EDIT IT.
+#
+# You can use "make menuconfig" to make any modifications to the installed 
.config file.
+# You can then do "make savedefconfig" to generate a new defconfig file that 
includes your
+# modifications.
+#
+# CONFIG_ARCH_LEDS is not set
+# CONFIG_NSH_ARGCAT is not set
+# CONFIG_NSH_CMDOPT_HEXDUMP is not set
+# CONFIG_NSH_DISABLE_LOSMART is not set
+# CONFIG_STANDARD_SERIAL is not set
+CONFIG_ARCH="arm"
+CONFIG_ARCH_BOARD="raspberrypi-pico-2"
+CONFIG_ARCH_BOARD_COMMON=y
+CONFIG_ARCH_BOARD_RASPBERRYPI_PICO_2=y
+CONFIG_ARCH_CHIP="rp23xx"
+CONFIG_ARCH_CHIP_RP23XX=y
+CONFIG_ARCH_RAMVECTORS=y
+CONFIG_ARCH_STACKDUMP=y
+CONFIG_BOARDCTL_IOCTL=y
+CONFIG_BOARDCTL_RESET=y
+CONFIG_BOARD_LOOPSPERMSEC=10450
+CONFIG_BUILTIN=y
+CONFIG_DEBUG_FULLOPT=y
+CONFIG_DEBUG_SYMBOLS=y
+CONFIG_DISABLE_POSIX_TIMERS=y
+CONFIG_EXAMPLES_ALARM=y
+CONFIG_EXAMPLES_HELLO=y
+CONFIG_FS_PROCFS=y
+CONFIG_FS_PROCFS_REGISTER=y
+CONFIG_HOST_MACOS=y
+CONFIG_INIT_ENTRYPOINT="nsh_main"
+CONFIG_NFILE_DESCRIPTORS_PER_BLOCK=6
+CONFIG_NSH_BUILTIN_APPS=y
+CONFIG_NSH_READLINE=y
+CONFIG_PM=y
+CONFIG_PM_GOVERNOR_EXPLICIT_RELAX=30000
+CONFIG_PM_GOVERNOR_GREEDY=y
+CONFIG_PM_PROCFS=y
+CONFIG_RAM_SIZE=532480
+CONFIG_RAM_START=0x20000000
+CONFIG_READLINE_CMD_HISTORY=y
+CONFIG_RP23XX_PM=y
+CONFIG_RP23XX_PM_SUSPEND=y
+CONFIG_RP23XX_PM_WAKEUP_GPIO=1
+CONFIG_RP23XX_RTC=y
+CONFIG_RR_INTERVAL=200
+CONFIG_RTC_ALARM=y
+CONFIG_RTC_DRIVER=y
+CONFIG_SCHED_WAITPID=y
+CONFIG_START_DAY=9
+CONFIG_START_MONTH=2
+CONFIG_START_YEAR=2021
+CONFIG_SYSLOG_CONSOLE=y
+CONFIG_SYSTEM_NSH=y
+CONFIG_TESTING_GETPRIME=y
+CONFIG_TESTING_OSTEST=y
+CONFIG_UART0_SERIAL_CONSOLE=y
+CONFIG_USERLED=y
+CONFIG_USERLED_LOWER=y

Reply via email to