Skip to content

Commit 6e96356

Browse files
ajf58kartben
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 <andrew.featherstone@gmail.com> Signed-off-by: Manuel Aebischer <manuel.aebischer@belden.com>
1 parent aeecc3c commit 6e96356

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
@@ -69,6 +69,9 @@ hardware features:
6969
* - UART
7070
- :kconfig:option:`CONFIG_SERIAL`
7171
- :dtcompatible:`raspberrypi,pico-uart`
72+
* - UART (PIO)
73+
- :kconfig:option:`CONFIG_SERIAL`
74+
- :dtcompatible:`raspberrypi,pico-uart-pio`
7275

7376
Connections and IOs
7477
===================

dts/arm/raspberrypi/rpi_pico/rp2350.dtsi

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

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

391414
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 <andrew.featherstone@gmail.com>
5+
*/
6+
7+
/* Pico 2 is compatible with the Pico 1, so reuse. */
8+
#include "rpi_pico.overlay"

0 commit comments

Comments
 (0)