Skip to content

Commit fd5e5dd

Browse files
Ray Juiffainelli
authored andcommitted
arm64: dts: Add PCIe0 and PCIe4 DT nodes for NS2
This patch enables PCIe0 and PCIe4 for NS2 by adding appropriate DT nodes in NS2 DT. Signed-off-by: Ray Jui <rjui@broadcom.com> Signed-off-by: Anup Patel <anup.patel@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
1 parent 6e79e7c commit fd5e5dd

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed

arch/arm64/boot/dts/broadcom/ns2-svk.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@
5252
};
5353
};
5454

55+
&pcie0 {
56+
status = "ok";
57+
};
58+
59+
&pcie4 {
60+
status = "ok";
61+
};
62+
5563
&i2c0 {
5664
status = "ok";
5765
};

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

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,80 @@
137137
};
138138
};
139139

140+
pcie0: pcie@20020000 {
141+
compatible = "brcm,iproc-pcie";
142+
reg = <0 0x20020000 0 0x1000>;
143+
144+
#interrupt-cells = <1>;
145+
interrupt-map-mask = <0 0 0 0>;
146+
interrupt-map = <0 0 0 0 &gic GIC_SPI 281 IRQ_TYPE_NONE>;
147+
148+
linux,pci-domain = <0>;
149+
150+
bus-range = <0x00 0xff>;
151+
152+
#address-cells = <3>;
153+
#size-cells = <2>;
154+
device_type = "pci";
155+
ranges = <0x83000000 0 0x00000000 0 0x00000000 0 0x20000000>;
156+
157+
brcm,pcie-ob;
158+
brcm,pcie-ob-oarr-size;
159+
brcm,pcie-ob-axi-offset = <0x00000000>;
160+
brcm,pcie-ob-window-size = <256>;
161+
162+
status = "disabled";
163+
164+
msi-parent = <&msi0>;
165+
msi0: msi@20020000 {
166+
compatible = "brcm,iproc-msi";
167+
msi-controller;
168+
interrupt-parent = <&gic>;
169+
interrupts = <GIC_SPI 277 IRQ_TYPE_NONE>,
170+
<GIC_SPI 278 IRQ_TYPE_NONE>,
171+
<GIC_SPI 279 IRQ_TYPE_NONE>,
172+
<GIC_SPI 280 IRQ_TYPE_NONE>;
173+
brcm,num-eq-region = <1>;
174+
brcm,num-msi-msg-region = <1>;
175+
};
176+
};
177+
178+
pcie4: pcie@50020000 {
179+
compatible = "brcm,iproc-pcie";
180+
reg = <0 0x50020000 0 0x1000>;
181+
182+
#interrupt-cells = <1>;
183+
interrupt-map-mask = <0 0 0 0>;
184+
interrupt-map = <0 0 0 0 &gic GIC_SPI 305 IRQ_TYPE_NONE>;
185+
186+
linux,pci-domain = <4>;
187+
188+
bus-range = <0x00 0xff>;
189+
190+
#address-cells = <3>;
191+
#size-cells = <2>;
192+
device_type = "pci";
193+
ranges = <0x83000000 0 0x00000000 0 0x30000000 0 0x20000000>;
194+
195+
brcm,pcie-ob;
196+
brcm,pcie-ob-oarr-size;
197+
brcm,pcie-ob-axi-offset = <0x30000000>;
198+
brcm,pcie-ob-window-size = <256>;
199+
200+
status = "disabled";
201+
202+
msi-parent = <&msi4>;
203+
msi4: msi@50020000 {
204+
compatible = "brcm,iproc-msi";
205+
msi-controller;
206+
interrupt-parent = <&gic>;
207+
interrupts = <GIC_SPI 301 IRQ_TYPE_NONE>,
208+
<GIC_SPI 302 IRQ_TYPE_NONE>,
209+
<GIC_SPI 303 IRQ_TYPE_NONE>,
210+
<GIC_SPI 304 IRQ_TYPE_NONE>;
211+
};
212+
};
213+
140214
soc: soc {
141215
compatible = "simple-bus";
142216
#address-cells = <1>;

0 commit comments

Comments
 (0)