Skip to content

Commit 049c245

Browse files
inochisaRevySR
authored andcommitted
REVYOS: dts: sophgo: sg2042: move pcie domain config into board devicetree
Signed-off-by: Inochi Amaoto <[email protected]> Signed-off-by: Han Gao <[email protected]>
1 parent cc58680 commit 049c245

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,32 @@
129129
};
130130

131131
&pcie_rc0 {
132+
reg = <0x70 0x60000000 0x0 0x02000000>,
133+
<0x40 0x00000000 0x0 0x00001000>;
134+
linux,pci-domain = <0>;
135+
bus-range = <0x00 0x7f>;
136+
vendor-id = <0x1f1c>;
137+
device-id = <0x2042>;
132138
status = "okay";
133139
};
134140

135-
&pcie_rc1 {
141+
&pcie_rc2 {
142+
reg = <0x70 0x62000000 0x0 0x00800000>,
143+
<0x48 0x00000000 0x0 0x00001000>;
144+
linux,pci-domain = <1>;
145+
bus-range = <0x80 0xbf>;
146+
vendor-id = <0x1f1c>;
147+
device-id = <0x2042>;
136148
status = "okay";
137149
};
138150

139-
&pcie_rc2 {
151+
&pcie_rc3 {
152+
reg = <0x70 0x62800000 0x0 0x00800000>,
153+
<0x4c 0x00000000 0x0 0x00001000>;
154+
linux,pci-domain = <2>;
155+
bus-range = <0xc0 0xff>;
156+
vendor-id = <0x1f1c>;
157+
device-id = <0x2042>;
140158
status = "okay";
141159
};
142160

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

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -247,20 +247,14 @@
247247
pcie_rc0: pcie@7060000000 {
248248
compatible = "sophgo,sg2042-pcie-host";
249249
device_type = "pci";
250-
reg = <0x70 0x60000000 0x0 0x02000000>,
251-
<0x40 0x00000000 0x0 0x00001000>;
252250
reg-names = "reg", "cfg";
253-
linux,pci-domain = <0>;
254251
#address-cells = <3>;
255252
#size-cells = <2>;
256253
ranges = <0x01000000 0x0 0xc0000000 0x40 0xc0000000 0x0 0x00400000>,
257254
<0x42000000 0x0 0xd0000000 0x40 0xd0000000 0x0 0x10000000>,
258255
<0x02000000 0x0 0xe0000000 0x40 0xe0000000 0x0 0x20000000>,
259256
<0x43000000 0x42 0x00000000 0x42 0x00000000 0x2 0x00000000>,
260257
<0x03000000 0x41 0x00000000 0x41 0x00000000 0x1 0x00000000>;
261-
bus-range = <0x0 0xff>;
262-
vendor-id = <0x1f1c>;
263-
device-id = <0x2042>;
264258
cdns,no-bar-match-nbits = <48>;
265259
sophgo,link-id = <0>;
266260
sophgo,syscon-pcie-ctrl = <&cdns_pcie0_ctrl>;
@@ -273,47 +267,35 @@
273267
reg = <0x70 0x61800000 0x0 0x800000>;
274268
};
275269

276-
pcie_rc1: pcie@7062000000 {
270+
pcie_rc2: pcie@7062000000 {
277271
compatible = "sophgo,sg2042-pcie-host";
278272
device_type = "pci";
279-
reg = <0x70 0x62000000 0x0 0x00800000>,
280-
<0x48 0x00000000 0x0 0x00001000>;
281273
reg-names = "reg", "cfg";
282-
linux,pci-domain = <1>;
283274
#address-cells = <3>;
284275
#size-cells = <2>;
285276
ranges = <0x01000000 0x0 0xc0800000 0x48 0xc0800000 0x0 0x00400000>,
286277
<0x42000000 0x0 0xd0000000 0x48 0xd0000000 0x0 0x10000000>,
287278
<0x02000000 0x0 0xe0000000 0x48 0xe0000000 0x0 0x20000000>,
288279
<0x03000000 0x49 0x00000000 0x49 0x00000000 0x1 0x00000000>,
289280
<0x43000000 0x4a 0x00000000 0x4a 0x00000000 0x2 0x00000000>;
290-
bus-range = <0x0 0xff>;
291-
vendor-id = <0x1f1c>;
292-
device-id = <0x2042>;
293281
cdns,no-bar-match-nbits = <48>;
294282
sophgo,link-id = <0>;
295283
sophgo,syscon-pcie-ctrl = <&cdns_pcie1_ctrl>;
296284
msi-parent = <&msi>;
297285
status = "disabled";
298286
};
299287

300-
pcie_rc2: pcie@7062800000 {
288+
pcie_rc3: pcie@7062800000 {
301289
compatible = "sophgo,sg2042-pcie-host";
302290
device_type = "pci";
303-
reg = <0x70 0x62800000 0x0 0x00800000>,
304-
<0x4c 0x00000000 0x0 0x00001000>;
305291
reg-names = "reg", "cfg";
306-
linux,pci-domain = <2>;
307292
#address-cells = <3>;
308293
#size-cells = <2>;
309294
ranges = <0x01000000 0x0 0xc0c00000 0x4c 0xc0c00000 0x0 0x00400000>,
310295
<0x42000000 0x0 0xf8000000 0x4c 0xf8000000 0x0 0x04000000>,
311296
<0x02000000 0x0 0xfc000000 0x4c 0xfc000000 0x0 0x04000000>,
312297
<0x43000000 0x4e 0x00000000 0x4e 0x00000000 0x2 0x00000000>,
313298
<0x03000000 0x4d 0x00000000 0x4d 0x00000000 0x1 0x00000000>;
314-
bus-range = <0x0 0xff>;
315-
vendor-id = <0x1f1c>;
316-
device-id = <0x2042>;
317299
cdns,no-bar-match-nbits = <48>;
318300
sophgo,link-id = <1>;
319301
sophgo,syscon-pcie-ctrl = <&cdns_pcie1_ctrl>;

0 commit comments

Comments
 (0)