Skip to content

Commit 4cda6dc

Browse files
unicornxxry111
authored andcommitted
FROMLIST: riscv: sophgo: dts: add PCIe controllers for SG2042
Add PCIe controller nodes in DTS for Sophgo SG2042. Default they are disabled. Signed-off-by: Inochi Amaoto <inochiama@gmail.com> Signed-off-by: Chen Wang <unicorn_wang@outlook.com> Link: https://lore.kernel.org/r/828860951ec4973285fe92fceb4b6f0ecb365a2f.1757643388.git.unicorn_wang@outlook.com Signed-off-by: Han Gao <rabenda.cn@gmail.com>
1 parent ab3e8b1 commit 4cda6dc

1 file changed

Lines changed: 88 additions & 0 deletions

File tree

arch/riscv/boot/dts/sophgo/sg2042.dtsi

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,94 @@
240240
#clock-cells = <1>;
241241
};
242242

243+
pcie_rc0: pcie@7060000000 {
244+
compatible = "sophgo,sg2042-pcie-host";
245+
device_type = "pci";
246+
reg = <0x70 0x60000000 0x0 0x00800000>,
247+
<0x40 0x00000000 0x0 0x00001000>;
248+
reg-names = "reg", "cfg";
249+
linux,pci-domain = <0>;
250+
#address-cells = <3>;
251+
#size-cells = <2>;
252+
ranges = <0x01000000 0x0 0xc0000000 0x40 0xc0000000 0x0 0x00400000>,
253+
<0x42000000 0x0 0xd0000000 0x40 0xd0000000 0x0 0x10000000>,
254+
<0x02000000 0x0 0xe0000000 0x40 0xe0000000 0x0 0x20000000>,
255+
<0x43000000 0x42 0x00000000 0x42 0x00000000 0x2 0x00000000>,
256+
<0x03000000 0x41 0x00000000 0x41 0x00000000 0x1 0x00000000>;
257+
bus-range = <0x0 0xff>;
258+
vendor-id = <0x1f1c>;
259+
device-id = <0x2042>;
260+
cdns,no-bar-match-nbits = <48>;
261+
msi-parent = <&msi>;
262+
status = "disabled";
263+
};
264+
265+
pcie_rc1: pcie@7060800000 {
266+
compatible = "sophgo,sg2042-pcie-host";
267+
device_type = "pci";
268+
reg = <0x70 0x60800000 0x0 0x00800000>,
269+
<0x44 0x00000000 0x0 0x00001000>;
270+
reg-names = "reg", "cfg";
271+
linux,pci-domain = <1>;
272+
#address-cells = <3>;
273+
#size-cells = <2>;
274+
ranges = <0x01000000 0x0 0xc0400000 0x44 0xc0400000 0x0 0x00400000>,
275+
<0x42000000 0x0 0xd0000000 0x44 0xd0000000 0x0 0x10000000>,
276+
<0x02000000 0x0 0xe0000000 0x44 0xe0000000 0x0 0x20000000>,
277+
<0x43000000 0x46 0x00000000 0x46 0x00000000 0x2 0x00000000>,
278+
<0x03000000 0x45 0x00000000 0x45 0x00000000 0x1 0x00000000>;
279+
bus-range = <0x0 0xff>;
280+
vendor-id = <0x1f1c>;
281+
device-id = <0x2042>;
282+
cdns,no-bar-match-nbits = <48>;
283+
msi-parent = <&msi>;
284+
status = "disabled";
285+
};
286+
287+
pcie_rc2: pcie@7062000000 {
288+
compatible = "sophgo,sg2042-pcie-host";
289+
device_type = "pci";
290+
reg = <0x70 0x62000000 0x0 0x00800000>,
291+
<0x48 0x00000000 0x0 0x00001000>;
292+
reg-names = "reg", "cfg";
293+
linux,pci-domain = <2>;
294+
#address-cells = <3>;
295+
#size-cells = <2>;
296+
ranges = <0x01000000 0x0 0xc0800000 0x48 0xc0800000 0x0 0x00400000>,
297+
<0x42000000 0x0 0xd0000000 0x48 0xd0000000 0x0 0x10000000>,
298+
<0x02000000 0x0 0xe0000000 0x48 0xe0000000 0x0 0x20000000>,
299+
<0x03000000 0x49 0x00000000 0x49 0x00000000 0x1 0x00000000>,
300+
<0x43000000 0x4a 0x00000000 0x4a 0x00000000 0x2 0x00000000>;
301+
bus-range = <0x0 0xff>;
302+
vendor-id = <0x1f1c>;
303+
device-id = <0x2042>;
304+
cdns,no-bar-match-nbits = <48>;
305+
msi-parent = <&msi>;
306+
status = "disabled";
307+
};
308+
309+
pcie_rc3: pcie@7062800000 {
310+
compatible = "sophgo,sg2042-pcie-host";
311+
device_type = "pci";
312+
reg = <0x70 0x62800000 0x0 0x00800000>,
313+
<0x4c 0x00000000 0x0 0x00001000>;
314+
reg-names = "reg", "cfg";
315+
linux,pci-domain = <3>;
316+
#address-cells = <3>;
317+
#size-cells = <2>;
318+
ranges = <0x01000000 0x0 0xc0c00000 0x4c 0xc0c00000 0x0 0x00400000>,
319+
<0x42000000 0x0 0xf8000000 0x4c 0xf8000000 0x0 0x04000000>,
320+
<0x02000000 0x0 0xfc000000 0x4c 0xfc000000 0x0 0x04000000>,
321+
<0x43000000 0x4e 0x00000000 0x4e 0x00000000 0x2 0x00000000>,
322+
<0x03000000 0x4d 0x00000000 0x4d 0x00000000 0x1 0x00000000>;
323+
bus-range = <0x0 0xff>;
324+
vendor-id = <0x1f1c>;
325+
device-id = <0x2042>;
326+
cdns,no-bar-match-nbits = <48>;
327+
msi-parent = <&msi>;
328+
status = "disabled";
329+
};
330+
243331
clint_mswi: interrupt-controller@7094000000 {
244332
compatible = "sophgo,sg2042-aclint-mswi", "thead,c900-aclint-mswi";
245333
reg = <0x00000070 0x94000000 0x00000000 0x00004000>;

0 commit comments

Comments
 (0)