File tree Expand file tree Collapse file tree 3 files changed +54
-0
lines changed
arch/arm/boot/dts/overlays Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
233233 rpi-dacpro.dtbo \
234234 rpi-digiampplus.dtbo \
235235 rpi-ft5406.dtbo \
236+ rpi-fw-uart.dtbo \
236237 rpi-poe.dtbo \
237238 rpi-poe-plus.dtbo \
238239 rpi-sense.dtbo \
Original file line number Diff line number Diff line change @@ -4141,6 +4141,18 @@ Params: touchscreen-size-x Touchscreen X resolution (default 800)
41414141 touchscreen-swapped-x-y Swap X and Y cordinates (default 0);
41424142
41434143
4144+ Name: rpi-fw-uart
4145+ Info: Configures the firmware software UART driver.
4146+ This driver requires exclusive usage of the second VPU core. The
4147+ following config.txt entries should be set when this driver is used.
4148+ dtparam=audio=off
4149+ isp_use_vpu0=1
4150+ Load: dtoverlay=rpi-fw-uart,<param>[=<val>]
4151+ Params: txd0_pin GPIO pin for TXD0 (any free - default 20)
4152+
4153+ rxd0_pin GPIO pin for RXD0 (any free - default 21)
4154+
4155+
41444156Name: rpi-poe
41454157Info: Raspberry Pi PoE HAT fan
41464158Load: dtoverlay=rpi-poe,<param>[=<val>]
Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: GPL-2.0
2+ // Overlay for the Raspberry Pi Firmware UART driver
3+ /dts-v1/;
4+ /plugin/;
5+
6+ /{
7+ compatible = "brcm,bcm2835";
8+
9+ fragment@0 {
10+ target = <&gpio>;
11+ __overlay__ {
12+ rpi_fw_uart_pins: rpi_fw_uart_pins@4 {
13+ brcm,pins = <20 21>;
14+ brcm,function = <1 0>; /* output input */
15+ brcm,pull = <0 2>; /* none pull-up */
16+ };
17+ };
18+ };
19+
20+ fragment@1 {
21+ target = <&soc>;
22+ __overlay__ {
23+ rpi_fw_uart: rpi_fw_uart@7e000000 {
24+ compatible = "raspberrypi,firmware-uart";
25+ reg = <0x7e000000 0x100>; /* VideoCore MS sync regs */
26+ firmware = <&firmware>;
27+ pinctrl-names = "default";
28+ pinctrl-0 = <&rpi_fw_uart_pins>;
29+ tx-gpios = <&gpio 20 0>;
30+ rx-gpios = <&gpio 21 0>;
31+ };
32+ };
33+ };
34+
35+ __overrides__ {
36+ txd0_pin = <&rpi_fw_uart>,"tx-gpios:4",
37+ <&rpi_fw_uart_pins>, "brcm,pins:0";
38+ rxd0_pin = <&rpi_fw_uart>,"rx-gpios:4",
39+ <&rpi_fw_uart_pins>, "brcm,pins:4";
40+ };
41+ };
You can’t perform that action at this time.
0 commit comments