Skip to content

Commit 58d92a2

Browse files
committed
overlays: Add the rp1-pio-uart overlay
An overlay to enable the PIO-based UART. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 58f5ceb commit 58d92a2

3 files changed

Lines changed: 37 additions & 0 deletions

File tree

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
247247
ramoops-pi4.dtbo \
248248
rootmaster.dtbo \
249249
rotary-encoder.dtbo \
250+
rp1-pio-uart.dtbo \
250251
rpi-backlight.dtbo \
251252
rpi-codeczero.dtbo \
252253
rpi-dacplus.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4527,6 +4527,17 @@ Params: pin_a GPIO connected to rotary encoder channel A
45274527
common) and "binary".
45284528

45294529

4530+
Name: rp1-pio-uart
4531+
Info: Configures a software UART implemented using the RP1 PIO block, with
4532+
DMA moving data and a PIO interrupt used for break detection. Only
4533+
8N1 with no hardware flow control is supported. Only usable on
4534+
Raspberry Pi 5 and other platforms with an RP1 southbridge.
4535+
Load: dtoverlay=rp1-pio-uart,<param>=<val>
4536+
Params: tx_pin GPIO used for TXD (any free - default 14)
4537+
4538+
rx_pin GPIO used for RXD (any free - default 15)
4539+
4540+
45304541
Name: rpi-backlight
45314542
Info: Raspberry Pi official display backlight driver
45324543
Load: dtoverlay=rpi-backlight
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
// Device tree overlay for the RP1 PIO-based UART driver.
3+
/dts-v1/;
4+
/plugin/;
5+
6+
/ {
7+
compatible = "brcm,bcm2712";
8+
9+
fragment@0 {
10+
target-path = "/";
11+
__overlay__ {
12+
rp1_pio_uart: rp1_pio_uart@e {
13+
compatible = "raspberrypi,rp1-pio-uart";
14+
tx-gpios = <&gpio 14 0>;
15+
rx-gpios = <&gpio 15 0>;
16+
status = "okay";
17+
};
18+
};
19+
};
20+
21+
__overrides__ {
22+
tx_pin = <&rp1_pio_uart>, "tx-gpios:4";
23+
rx_pin = <&rp1_pio_uart>, "rx-gpios:4";
24+
};
25+
};

0 commit comments

Comments
 (0)