Skip to content

Commit 0530c53

Browse files
ajf58kartben
andcommitted
doc: rpi_pico2: Document Raspberry Pi Pico 2 and related changes
Add some documentation for the board itself (mostly aiming to refer to canonical sources of information rather duplicate). Add entries in the release notes where applicable. boards/raspberrypi/rpi_pico2/doc/img/rpi_pico2.webp is a cropped and compressed version of https://www.raspberrypi.com/documentation/microcontrollers/images/pico-2.png which is released under the CC-BY-SA-4.0 license. See https://github.com/raspberrypi/documentation/blob/develop/LICENSE.md Co-authored-by: Benjamin Cabé <[email protected]> Signed-off-by: Andrew Featherstone <[email protected]>
1 parent 830b4f4 commit 0530c53

File tree

5 files changed

+94
-1
lines changed

5 files changed

+94
-1
lines changed

boards/raspberrypi/rpi_pico/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ hardware features:
9696
- :kconfig:option:`CONFIG_SPI`
9797
- :dtcompatible:`raspberrypi,pico-spi-pio`
9898

99+
.. _rpi_pico_pin_mapping:
100+
99101
Pin Mapping
100102
===========
101103

19.5 KB
Loading
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
.. zephyr:board:: rpi_pico2
2+
3+
Overview
4+
********
5+
6+
The Raspberry Pi Pico 2 is the second-generation product in the Raspberry Pi
7+
Pico family. From the `Raspberry Pi website <https://www.raspberrypi.com/documentation/microcontrollers/pico-series.html>`_ is referred to as Pico 2.
8+
9+
Hardware
10+
********
11+
12+
- Dual Cortex-M33 or Hazard3 processors at up to 150MHz
13+
- 520KB of SRAM, and 4MB of on-board flash memory
14+
- USB 1.1 with device and host support
15+
- Low-power sleep and dormant modes
16+
- Drag-and-drop programming using mass storage over USB
17+
- 26 multi-function GPIO pins including 3 that can be used for ADC
18+
- 2 SPI, 2 I2C, 2 UART, 3 12-bit 500ksps Analogue to Digital - Converter (ADC), 24 controllable PWM channels
19+
- 2 Timer with 4 alarms, 1 AON Timer
20+
- Temperature sensor
21+
- 3 Programmable IO (PIO) blocks, 12 state machines total for custom peripheral support
22+
23+
- Flexible, user-programmable high-speed IO
24+
- Can emulate interfaces such as SD Card and VGA
25+
26+
Supported Features
27+
==================
28+
29+
The ``rpi_pico2`` board target supports the following
30+
hardware features:
31+
32+
.. list-table::
33+
:header-rows: 1
34+
35+
* - Peripheral
36+
- Kconfig option
37+
- Devicetree compatible
38+
* - NVIC
39+
- N/A
40+
- :dtcompatible:`arm,v8m-nvic`
41+
* - ADC
42+
- :kconfig:option:`CONFIG_ADC`
43+
- :dtcompatible:`raspberrypi,pico-adc`
44+
* - Clock controller
45+
- :kconfig:option:`CONFIG_CLOCK_CONTROL`
46+
- :dtcompatible:`raspberrypi,pico-clock-controller`
47+
* - Counter
48+
- :kconfig:option:`CONFIG_COUNTER`
49+
- :dtcompatible:`raspberrypi,pico-timer`
50+
* - GPIO
51+
- :kconfig:option:`CONFIG_GPIO`
52+
- :dtcompatible:`raspberrypi,pico-gpio`
53+
* - HWINFO
54+
- :kconfig:option:`CONFIG_HWINFO`
55+
- N/A
56+
* - I2C
57+
- :kconfig:option:`CONFIG_I2C`
58+
- :dtcompatible:`snps,designware-i2c`
59+
* - PWM
60+
- :kconfig:option:`CONFIG_PWM`
61+
- :dtcompatible:`raspberrypi,pico-pwm`
62+
* - SPI
63+
- :kconfig:option:`CONFIG_SPI`
64+
- :dtcompatible:`raspberrypi,pico-spi`
65+
* - UART
66+
- :kconfig:option:`CONFIG_SERIAL`
67+
- :dtcompatible:`raspberrypi,pico-uart`
68+
69+
Connections and IOs
70+
===================
71+
72+
The default pin mapping is unchanged from the Pico 1 (see :ref:`rpi_pico_pin_mapping`).
73+
74+
Programming and Debugging
75+
*************************
76+
77+
As with the Pico 1, the SWD interface can be used to program and debug the
78+
device, e.g. using OpenOCD with the `Raspberry Pi Debug Probe <https://www.raspberrypi.com/documentation/microcontrollers/debug-probe.html>`_ .
79+
80+
References
81+
**********
82+
83+
.. target-notes::

doc/releases/migration-guide-4.1.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ Devicetree
3939
the devicetree property ``poll-interval-ms``.
4040
In interrupt mode, the devicetree property ``repeat`` is supported.
4141

42+
Raspberry Pi
43+
============
44+
45+
* ``CONFIG_SOC_SERIES_RP2XXX`` is renamed to :kconfig:option:`CONFIG_SOC_SERIES_RP2040`.
46+
4247
STM32
4348
=====
4449

4550
* MCO clock source and prescaler are now exclusively configured by the DTS
4651
as it was introduced earlier.
4752
The Kconfig method for configuration is now removed.
4853

49-
5054
Modules
5155
*******
5256

doc/releases/release-notes-4.1.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,14 @@ Boards & SoC Support
9999

100100
* Added support for these SoC series:
101101

102+
* Added Raspberry Pi RP2350
103+
102104
* Made these changes in other SoC series:
103105

104106
* Added support for these boards:
105107

108+
* :zephyr:board:`Raspberry Pi Pico 2 <rpi_pico2>`: ``rpi_pico2``
109+
106110
* Made these board changes:
107111

108112
* All HWMv1 board name aliases which were added as deprecated in v3.7 are now removed

0 commit comments

Comments
 (0)