Skip to content

Commit b32a31e

Browse files
Manuel Aebischerajf58
authored andcommitted
rpi_pico2: rp2350: Add PIO support and extend samples
Add initial support for the RP2350's PIO peripherals, extend the existing example under samples/boards/raspberrypi/rpi_pico/uart_pio to demonstrate this on the Raspberry Pi Pico 2, and update the board's documentation. Signed-off-by: Andrew Featherstone <[email protected]> Signed-off-by: Manuel Aebischer <[email protected]>
1 parent 03d4037 commit b32a31e

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

boards/raspberrypi/rpi_pico2/doc/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ hardware features:
6565
* - UART
6666
- :kconfig:option:`CONFIG_SERIAL`
6767
- :dtcompatible:`raspberrypi,pico-uart`
68+
* - UART (PIO)
69+
- :kconfig:option:`CONFIG_SERIAL`
70+
- :dtcompatible:`raspberrypi,pico-uart-pio`
6871

6972
Connections and IOs
7073
===================

dts/arm/raspberrypi/rpi_pico/rp2350.dtsi

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,29 @@
384384
status = "disabled";
385385
};
386386

387+
pio0: pio@50200000 {
388+
compatible = "raspberrypi,pico-pio";
389+
reg = <0x50200000 DT_SIZE_K(4)>;
390+
clocks = <&clocks RPI_PICO_CLKID_CLK_SYS>;
391+
resets = <&reset RPI_PICO_RESETS_RESET_PIO0>;
392+
status = "disabled";
393+
};
394+
395+
pio1: pio@50300000 {
396+
compatible = "raspberrypi,pico-pio";
397+
reg = <0x50300000 DT_SIZE_K(4)>;
398+
clocks = <&clocks RPI_PICO_CLKID_CLK_SYS>;
399+
resets = <&reset RPI_PICO_RESETS_RESET_PIO1>;
400+
status = "disabled";
401+
};
402+
403+
pio2: pio@50400000 {
404+
compatible = "raspberrypi,pico-pio";
405+
reg = <0x50400000 DT_SIZE_K(4)>;
406+
clocks = <&clocks RPI_PICO_CLKID_CLK_SYS>;
407+
resets = <&reset RPI_PICO_RESETS_RESET_PIO2>;
408+
status = "disabled";
409+
};
387410
};
388411

389412
pinctrl: pin-controller {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Copyright (c) 2024 Andrew Featherstone <[email protected]>
5+
*/
6+
7+
/* Pico 2 is compatible with the Pico 1, so reuse. */
8+
#include "rpi_pico.overlay"

0 commit comments

Comments
 (0)