Skip to content

Commit d5c8dc0

Browse files
Nicolas Saenz Julienneffainelli
authored andcommitted
ARM: dts: bcm2711: Enable PCIe controller
This enables bcm2711's PCIe bus, which is hardwired to a VIA Technologies XHCI USB 3.0 controller. Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
1 parent c5a1e53 commit d5c8dc0

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

‎arch/arm/boot/dts/bcm2711.dtsi‎

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,36 @@
309309
#address-cells = <2>;
310310
#size-cells = <1>;
311311

312-
ranges = <0x0 0x7c000000 0x0 0xfc000000 0x03800000>;
312+
ranges = <0x0 0x7c000000 0x0 0xfc000000 0x03800000>,
313+
<0x6 0x00000000 0x6 0x00000000 0x40000000>;
314+
315+
pcie0: pcie@7d500000 {
316+
compatible = "brcm,bcm2711-pcie";
317+
reg = <0x0 0x7d500000 0x9310>;
318+
device_type = "pci";
319+
#address-cells = <3>;
320+
#interrupt-cells = <1>;
321+
#size-cells = <2>;
322+
interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
323+
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
324+
interrupt-names = "pcie", "msi";
325+
interrupt-map-mask = <0x0 0x0 0x0 0x7>;
326+
interrupt-map = <0 0 0 1 &gicv2 GIC_SPI 143
327+
IRQ_TYPE_LEVEL_HIGH>;
328+
msi-controller;
329+
msi-parent = <&pcie0>;
330+
331+
ranges = <0x02000000 0x0 0xf8000000 0x6 0x00000000
332+
0x0 0x04000000>;
333+
/*
334+
* The wrapper around the PCIe block has a bug
335+
* preventing it from accessing beyond the first 3GB of
336+
* memory.
337+
*/
338+
dma-ranges = <0x02000000 0x0 0x00000000 0x0 0x00000000
339+
0x0 0xc0000000>;
340+
brcm,enable-ssc;
341+
};
313342

314343
genet: ethernet@7d580000 {
315344
compatible = "brcm,bcm2711-genet-v5";

0 commit comments

Comments
 (0)