Skip to content

Commit 6fffb01

Browse files
jim2101024tsbogend
authored andcommitted
MIPS: bmips: Add support PCIe controller device nodes
For Broadcom STB PCIe HW. The 7425 and 7435 are MIPs-based SOCs. Not much difference between the two for the DT properties except that they have slightly different PCIe interrupt assignments. Signed-off-by: Jim Quinlan <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 145790e commit 6fffb01

File tree

4 files changed

+78
-0
lines changed

4 files changed

+78
-0
lines changed

arch/mips/boot/dts/brcm/bcm7425.dtsi

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,4 +584,34 @@
584584
};
585585
};
586586
};
587+
588+
pcie_0: pcie@8b20000 {
589+
status = "disabled";
590+
compatible = "brcm,bcm7425-pcie";
591+
592+
ranges = <0x02000000 0x0 0xd0000000 0xd0000000 0x0 0x08000000
593+
0x02000000 0x0 0xd8000000 0xd8000000 0x0 0x08000000
594+
0x02000000 0x0 0xe0000000 0xe0000000 0x0 0x08000000
595+
0x02000000 0x0 0xe8000000 0xe8000000 0x0 0x08000000>;
596+
597+
reg = <0x10410000 0x19310>;
598+
aspm-no-l0s;
599+
device_type = "pci";
600+
msi-controller;
601+
msi-parent = <&pcie_0>;
602+
#address-cells = <0x3>;
603+
#size-cells = <0x2>;
604+
bus-range = <0x0 0xff>;
605+
interrupt-map-mask = <0x0 0x0 0x0 0x7>;
606+
linux,pci-domain = <0x0>;
607+
608+
interrupt-parent = <&periph_intc>;
609+
interrupts = <37>, <37>;
610+
interrupt-names = "pcie", "msi";
611+
#interrupt-cells = <0x1>;
612+
interrupt-map = <0 0 0 1 &periph_intc 0x21
613+
0 0 0 1 &periph_intc 0x22
614+
0 0 0 1 &periph_intc 0x23
615+
0 0 0 1 &periph_intc 0x24>;
616+
};
587617
};

arch/mips/boot/dts/brcm/bcm7435.dtsi

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,4 +599,34 @@
599599
};
600600
};
601601
};
602+
603+
pcie_0: pcie@8b20000 {
604+
status = "disabled";
605+
compatible = "brcm,bcm7435-pcie";
606+
607+
ranges = <0x02000000 0x0 0xd0000000 0xd0000000 0x0 0x08000000
608+
0x02000000 0x0 0xd8000000 0xd8000000 0x0 0x08000000
609+
0x02000000 0x0 0xe0000000 0xe0000000 0x0 0x08000000
610+
0x02000000 0x0 0xe8000000 0xe8000000 0x0 0x08000000>;
611+
612+
reg = <0x10410000 0x19310>;
613+
aspm-no-l0s;
614+
device_type = "pci";
615+
msi-controller;
616+
msi-parent = <&pcie_0>;
617+
#address-cells = <0x3>;
618+
#size-cells = <0x2>;
619+
bus-range = <0x0 0xff>;
620+
interrupt-map-mask = <0x0 0x0 0x0 0x7>;
621+
linux,pci-domain = <0x0>;
622+
623+
interrupt-parent = <&periph_intc>;
624+
interrupts = <39>, <39>;
625+
interrupt-names = "pcie", "msi";
626+
#interrupt-cells = <0x1>;
627+
interrupt-map = <0 0 0 1 &periph_intc 0x23
628+
0 0 0 1 &periph_intc 0x24
629+
0 0 0 1 &periph_intc 0x25
630+
0 0 0 1 &periph_intc 0x26>;
631+
};
602632
};

arch/mips/boot/dts/brcm/bcm97425svmb.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,12 @@
152152
&waketimer {
153153
status = "okay";
154154
};
155+
156+
&pcie_0 {
157+
status = "okay";
158+
/* 1GB Memc0, 1GB Memc1 */
159+
brcm,scb-sizes = <0 0x40000000 0 0x40000000>;
160+
dma-ranges = <0x43000000 0x00000000 0x00000000 0x00000000 0x0 0x10000000
161+
0x43000000 0x00000000 0x10000000 0x20000000 0x0 0x30000000
162+
0x43000000 0x00000000 0x40000000 0x90000000 0x0 0x40000000>;
163+
};

arch/mips/boot/dts/brcm/bcm97435svmb.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,12 @@
128128
&waketimer {
129129
status = "okay";
130130
};
131+
132+
&pcie_0 {
133+
status = "okay";
134+
/* 1GB Memc0, 1GB Memc1 */
135+
brcm,scb-sizes = <0 0x40000000 0 0x40000000>;
136+
dma-ranges = <0x43000000 0x00000000 0x00000000 0x00000000 0x0 0x10000000
137+
0x43000000 0x00000000 0x10000000 0x20000000 0x0 0x30000000
138+
0x43000000 0x00000000 0x40000000 0x90000000 0x0 0x40000000>;
139+
};

0 commit comments

Comments
 (0)