1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/pci/brcm,stb-pcie.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Brcmstb PCIe Host Controller
10 - Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
16 - brcm,bcm2711-pcie # The Raspberry Pi 4
18 - brcm,bcm7211-pcie # Broadcom STB version of RPi4
19 - brcm,bcm7278-pcie # Broadcom 7278 Arm
20 - brcm,bcm7216-pcie # Broadcom 7216 Arm
21 - brcm,bcm7445-pcie # Broadcom 7445 Arm
22 - brcm,bcm7425-pcie # Broadcom 7425 MIPs
23 - brcm,bcm7435-pcie # Broadcom 7435 MIPs
31 - description: PCIe host controller
32 - description: builtin MSI controller
56 description: Identifies the node as an MSI controller.
59 description: MSI controller the device is capable of using.
62 description: Indicates usage of spread-spectrum clocking.
68 description: A string that determines the operating
69 clkreq mode of the PCIe RC HW with respect to controlling the refclk
70 signal. There are three different modes -- "safe", which drives the
71 refclk signal unconditionally and will work for all devices but does
72 not provide any power savings; "no-l1ss" -- which provides Clock
73 Power Management, L0s, and L1, but cannot provide L1 substate (L1SS)
74 power savings. If the downstream device connected to the RC is L1SS
75 capable AND the OS enables L1SS, all PCIe traffic may abruptly halt,
76 potentially hanging the system; "default" -- which provides L0s, L1,
77 and L1SS, but not compliant to provide Clock Power Management;
78 specifically, may not be able to meet the T_CLRon max timing of 400ns
79 as specified in "Dynamic Clock Control", section 3.2.5.2.2 PCI
80 Express Mini CEM 2.1 specification. This situation is atypical and
81 should happen only with older devices.
82 $ref: /schemas/types.yaml#/definitions/string
83 enum: [ safe, no-l1ss, default ]
86 description: u64 giving the 64bit PCIe memory
87 viewport size of a memory controller. There may be up to
88 three controllers, and each size must be a power of two
89 with a size greater or equal to the amount of memory the
90 controller supports. Note that each memory controller
91 may have two component regions -- base and extended -- so
92 this information cannot be deduced from the dma-ranges.
93 $ref: /schemas/types.yaml#/definitions/uint64-array
111 - $ref: /schemas/pci/pci-bus.yaml#
112 - $ref: /schemas/interrupt-controller/msi-controller.yaml#
117 const: brcm,bcm4908-pcie
122 - description: reset controller handling the PERST# signal
135 const: brcm,bcm7216-pcie
140 - description: phandle pointing to the RESCAL reset controller
150 unevaluatedProperties: false
154 #include <dt-bindings/interrupt-controller/irq.h>
155 #include <dt-bindings/interrupt-controller/arm-gic.h>
158 #address-cells = <2>;
160 pcie0: pcie@7d500000 {
161 compatible = "brcm,bcm2711-pcie";
162 reg = <0x0 0x7d500000 0x9310>;
164 #address-cells = <3>;
166 #interrupt-cells = <1>;
167 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
168 <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
169 interrupt-names = "pcie", "msi";
170 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
171 interrupt-map = <0 0 0 1 &gicv2 GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH
172 0 0 0 2 &gicv2 GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH
173 0 0 0 3 &gicv2 GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH
174 0 0 0 4 &gicv2 GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
176 msi-parent = <&pcie0>;
178 ranges = <0x02000000 0x0 0xf8000000 0x6 0x00000000 0x0 0x04000000>;
179 dma-ranges = <0x42000000 0x1 0x00000000 0x0 0x40000000 0x0 0x80000000>,
180 <0x42000000 0x1 0x80000000 0x3 0x00000000 0x0 0x80000000>;
182 brcm,scb-sizes = <0x0000000080000000 0x0000000080000000>;
184 /* PCIe bridge, Root Port */
186 #address-cells = <3>;
188 reg = <0x0 0x0 0x0 0x0 0x0>;
189 compatible = "pciclass,0604";
191 vpcie3v3-supply = <&vreg7>;
197 <0x82010000 0x0 0xf8000000 0x6 0x00000000 0x0 0x2000>;
198 reg = <0x0 0x0 0x0 0x0 0x0>;
199 compatible = "pci14e4,1688";