Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Raspberry Pi RP2040 reset controller helpers

Peripheral reset-cell identifiers for RP2040 SoC. More...

Files

file  rp2040_reset.h
 Peripheral reset identifiers for Raspberry Pi RP2040.

Detailed Description

Peripheral reset-cell identifiers for RP2040 SoC.

Devicetree macros for peripheral reset cells on Raspberry Pi RP2040 devices, for use with the raspberrypi,pico-reset compatible reset controller.

Reset identifiers follow the pattern RPI_PICO_RESETS_RESET_<PERIPHERAL>, where <PERIPHERAL> is an RP2040 peripheral name (for example, RPI_PICO_RESETS_RESET_UART0 resets UART0). Each identifier is the bit position of the peripheral in the RP2040 RESETS registers. Pass these identifiers directly to a resets property.

#include <zephyr/dt-bindings/reset/rp2040_reset.h>
&uart0 {
// ...
resets = <&reset RPI_PICO_RESETS_RESET_UART0>;
// ...
};