Skip to content

Commit 4fcac0b

Browse files
pelwellpopcornmix
authored andcommitted
dts: bcm2712-rpi: Add the RP1 PIO device
Declare the device that proxies RP1's PIO hardware. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 9ed0cde commit 4fcac0b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@
9797
};
9898
};
9999

100+
pio: &rp1_pio {
101+
status = "okay";
102+
};
103+
100104
/ {
101105
chosen: chosen {
102106
bootargs = "reboot=w coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe cgroup_disable=memory numa_policy=interleave";
@@ -129,6 +133,7 @@
129133
i2c12 = &i2c10;
130134
mailbox = &mailbox;
131135
mmc0 = &sdio1;
136+
pio0 = &pio;
132137
serial0 = &uart0;
133138
serial1 = &uart1;
134139
serial10 = &uart10;

arch/arm64/boot/dts/broadcom/rp1.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,18 @@
10281028
status = "disabled";
10291029
};
10301030

1031+
rp1_pio: pio@178000 {
1032+
reg = <0xc0 0x40178000 0x0 0x20>;
1033+
compatible = "raspberrypi,rp1-pio";
1034+
firmware = <&rp1_firmware>;
1035+
dmas = <&rp1_dma RP1_DMA_PIO_CH0_TX>, <&rp1_dma RP1_DMA_PIO_CH0_RX>,
1036+
<&rp1_dma RP1_DMA_PIO_CH1_TX>, <&rp1_dma RP1_DMA_PIO_CH1_RX>,
1037+
<&rp1_dma RP1_DMA_PIO_CH2_TX>, <&rp1_dma RP1_DMA_PIO_CH2_RX>,
1038+
<&rp1_dma RP1_DMA_PIO_CH3_TX>, <&rp1_dma RP1_DMA_PIO_CH3_RX>;
1039+
dma-names = "tx0", "rx0", "tx1", "rx1", "tx2", "rx2", "tx3", "rx3";
1040+
status = "disabled";
1041+
};
1042+
10311043
rp1_mmc0: mmc@180000 {
10321044
reg = <0xc0 0x40180000 0x0 0x100>;
10331045
compatible = "raspberrypi,rp1-dwcmshc";

0 commit comments

Comments
 (0)