Skip to content

Commit 337d271

Browse files
Lahyllaskartben
authored andcommitted
boards: raspberrypi: add PCIe support for Raspberry Pi 5
Enable two PCIe controllers for Raspberry Pi 5. Signed-off-by: Junho Lee <[email protected]>
1 parent 5edfd02 commit 337d271

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

boards/raspberrypi/rpi_5/doc/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ The Raspberry Pi 5 board configuration supports the following hardware features:
4949
* - UART
5050
- :kconfig:option:`CONFIG_SERIAL`
5151
- :dtcompatible:`arm,pl011`
52+
* - PCIE
53+
- :kconfig:option:`CONFIG_PCIE`
54+
- :dtcompatible:`brcm,brcmstb-pcie`
5255

5356
Not all hardware features are supported yet. See `Raspberry Pi hardware`_ for the complete list of hardware features.
5457

boards/raspberrypi/rpi_5/rpi_5.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
zephyr,sram = &sram0;
2424
zephyr,console = &uart10;
2525
zephyr,shell-uart = &uart10;
26+
zephyr,pcie-controller = &pcie1;
2627
};
2728

2829
leds {

boards/raspberrypi/rpi_5/rpi_5_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y
88
CONFIG_SERIAL=y
99
CONFIG_CONSOLE=y
1010
CONFIG_UART_CONSOLE=y
11+
12+
CONFIG_PCIE=y
13+
CONFIG_PCIE_CONTROLLER=y

dts/arm64/broadcom/bcm2712.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,20 @@
9292
#address-cells = <2>;
9393
#size-cells = <1>;
9494

95+
pcie1: pcie@1000110000 {
96+
compatible = "brcm,brcmstb-pcie";
97+
reg = <0x10 0x110000 0x9310>,
98+
<0x0 0x0 0x8000000>,
99+
<0x0 0x8000000 0x10000>,
100+
<0x0 0x0 0x10>;
101+
#address-cells = <3>;
102+
#size-cells = <2>;
103+
status = "okay";
104+
ranges = <0x02000000 0x0 0x0 0x1b 0x0 0x00 0xfffffffc>,
105+
<0x43000000 0x4 0x0 0x18 0x0 0x03 0x00000000>,
106+
<0x03000000 0x0 0x0 0x10 0x0 0x10 0x00000000>;
107+
};
108+
95109
pcie2: pcie@1000120000 {
96110
compatible = "brcm,brcmstb-pcie";
97111
reg = <0x10 0x120000 0x9310>,

0 commit comments

Comments
 (0)