Skip to content

Commit

Permalink
boards: raspberrypi: add PCIe support for Raspberry Pi 5
Browse files Browse the repository at this point in the history
Enable two PCIe controllers for Raspberry Pi 5.

Signed-off-by: Junho Lee <[email protected]>
  • Loading branch information
Lahyllas authored and kartben committed Jan 8, 2025
1 parent 5edfd02 commit 337d271
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions boards/raspberrypi/rpi_5/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ The Raspberry Pi 5 board configuration supports the following hardware features:
* - UART
- :kconfig:option:`CONFIG_SERIAL`
- :dtcompatible:`arm,pl011`
* - PCIE
- :kconfig:option:`CONFIG_PCIE`
- :dtcompatible:`brcm,brcmstb-pcie`

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

Expand Down
1 change: 1 addition & 0 deletions boards/raspberrypi/rpi_5/rpi_5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
zephyr,sram = &sram0;
zephyr,console = &uart10;
zephyr,shell-uart = &uart10;
zephyr,pcie-controller = &pcie1;
};

leds {
Expand Down
3 changes: 3 additions & 0 deletions boards/raspberrypi/rpi_5/rpi_5_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y
CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

CONFIG_PCIE=y
CONFIG_PCIE_CONTROLLER=y
14 changes: 14 additions & 0 deletions dts/arm64/broadcom/bcm2712.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,20 @@
#address-cells = <2>;
#size-cells = <1>;

pcie1: pcie@1000110000 {
compatible = "brcm,brcmstb-pcie";
reg = <0x10 0x110000 0x9310>,
<0x0 0x0 0x8000000>,
<0x0 0x8000000 0x10000>,
<0x0 0x0 0x10>;
#address-cells = <3>;
#size-cells = <2>;
status = "okay";
ranges = <0x02000000 0x0 0x0 0x1b 0x0 0x00 0xfffffffc>,
<0x43000000 0x4 0x0 0x18 0x0 0x03 0x00000000>,
<0x03000000 0x0 0x0 0x10 0x0 0x10 0x00000000>;
};

pcie2: pcie@1000120000 {
compatible = "brcm,brcmstb-pcie";
reg = <0x10 0x120000 0x9310>,
Expand Down

0 comments on commit 337d271

Please sign in to comment.