Skip to content

Commit 25d3e1d

Browse files
committed
arm64: dts: rockchip: fix rk3562 pcie unit addresses
The rk3562 pcie node currently uses the apb register as its unit address which is the second reg area defined in the binding. As can be seen by the dtc warnings like ../arch/arm64/boot/dts/rockchip/rk3562.dtsi:624.26-675.5: Warning (simple_bus_reg): /soc/pcie@ff500000: simple-bus unit address format error, expected "fe000000" using the first reg area as the unit address seems to be preferred. This is the dbi area per the binding, so adapt the unit address accordingly and move the nodes to their new position. With the move also move the reg + reg-names below the compatible, as is the preferred position. Signed-off-by: Heiko Stuebner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7d086f7 commit 25d3e1d

File tree

1 file changed

+53
-53
lines changed

1 file changed

+53
-53
lines changed

arch/arm64/boot/dts/rockchip/rk3562.dtsi

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,59 @@
249249
#size-cells = <2>;
250250
ranges;
251251

252+
pcie2x1: pcie@fe000000 {
253+
compatible = "rockchip,rk3562-pcie", "rockchip,rk3568-pcie";
254+
reg = <0x0 0xfe000000 0x0 0x400000>,
255+
<0x0 0xff500000 0x0 0x10000>,
256+
<0x0 0xfc000000 0x0 0x100000>;
257+
reg-names = "dbi", "apb", "config";
258+
bus-range = <0x0 0xff>;
259+
clocks = <&cru ACLK_PCIE20_MST>, <&cru ACLK_PCIE20_SLV>,
260+
<&cru ACLK_PCIE20_DBI>, <&cru PCLK_PCIE20>,
261+
<&cru CLK_PCIE20_AUX>;
262+
clock-names = "aclk_mst", "aclk_slv",
263+
"aclk_dbi", "pclk", "aux";
264+
device_type = "pci";
265+
interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
266+
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
267+
<GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
268+
<GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
269+
<GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
270+
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
271+
interrupt-names = "sys", "pmc", "msg", "legacy", "err", "msi";
272+
#interrupt-cells = <1>;
273+
interrupt-map-mask = <0 0 0 7>;
274+
interrupt-map = <0 0 0 1 &pcie2x1_intc 0>,
275+
<0 0 0 2 &pcie2x1_intc 1>,
276+
<0 0 0 3 &pcie2x1_intc 2>,
277+
<0 0 0 4 &pcie2x1_intc 3>;
278+
linux,pci-domain = <0>;
279+
max-link-speed = <2>;
280+
num-ib-windows = <8>;
281+
num-viewport = <8>;
282+
num-ob-windows = <2>;
283+
num-lanes = <1>;
284+
phys = <&combphy PHY_TYPE_PCIE>;
285+
phy-names = "pcie-phy";
286+
power-domains = <&power 15>;
287+
ranges = <0x01000000 0x0 0xfc100000 0x0 0xfc100000 0x0 0x100000
288+
0x02000000 0x0 0xfc200000 0x0 0xfc200000 0x0 0x1e00000
289+
0x03000000 0x3 0x00000000 0x3 0x00000000 0x0 0x40000000>;
290+
resets = <&cru SRST_PCIE20_POWERUP>;
291+
reset-names = "pipe";
292+
#address-cells = <3>;
293+
#size-cells = <2>;
294+
status = "disabled";
295+
296+
pcie2x1_intc: legacy-interrupt-controller {
297+
interrupt-controller;
298+
#address-cells = <0>;
299+
#interrupt-cells = <1>;
300+
interrupt-parent = <&gic>;
301+
interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
302+
};
303+
};
304+
252305
gic: interrupt-controller@fe901000 {
253306
compatible = "arm,gic-400";
254307
#interrupt-cells = <3>;
@@ -621,59 +674,6 @@
621674
status = "disabled";
622675
};
623676

624-
pcie2x1: pcie@ff500000 {
625-
compatible = "rockchip,rk3562-pcie", "rockchip,rk3568-pcie";
626-
bus-range = <0x0 0xff>;
627-
clocks = <&cru ACLK_PCIE20_MST>, <&cru ACLK_PCIE20_SLV>,
628-
<&cru ACLK_PCIE20_DBI>, <&cru PCLK_PCIE20>,
629-
<&cru CLK_PCIE20_AUX>;
630-
clock-names = "aclk_mst", "aclk_slv",
631-
"aclk_dbi", "pclk", "aux";
632-
device_type = "pci";
633-
interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
634-
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
635-
<GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
636-
<GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
637-
<GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
638-
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
639-
interrupt-names = "sys", "pmc", "msg", "legacy", "err", "msi";
640-
#interrupt-cells = <1>;
641-
interrupt-map-mask = <0 0 0 7>;
642-
interrupt-map = <0 0 0 1 &pcie2x1_intc 0>,
643-
<0 0 0 2 &pcie2x1_intc 1>,
644-
<0 0 0 3 &pcie2x1_intc 2>,
645-
<0 0 0 4 &pcie2x1_intc 3>;
646-
linux,pci-domain = <0>;
647-
max-link-speed = <2>;
648-
num-ib-windows = <8>;
649-
num-viewport = <8>;
650-
num-ob-windows = <2>;
651-
num-lanes = <1>;
652-
phys = <&combphy PHY_TYPE_PCIE>;
653-
phy-names = "pcie-phy";
654-
power-domains = <&power 15>;
655-
ranges = <0x01000000 0x0 0xfc100000 0x0 0xfc100000 0x0 0x100000
656-
0x02000000 0x0 0xfc200000 0x0 0xfc200000 0x0 0x1e00000
657-
0x03000000 0x3 0x00000000 0x3 0x00000000 0x0 0x40000000>;
658-
reg = <0x0 0xfe000000 0x0 0x400000>,
659-
<0x0 0xff500000 0x0 0x10000>,
660-
<0x0 0xfc000000 0x0 0x100000>;
661-
reg-names = "dbi", "apb", "config";
662-
resets = <&cru SRST_PCIE20_POWERUP>;
663-
reset-names = "pipe";
664-
#address-cells = <3>;
665-
#size-cells = <2>;
666-
status = "disabled";
667-
668-
pcie2x1_intc: legacy-interrupt-controller {
669-
interrupt-controller;
670-
#address-cells = <0>;
671-
#interrupt-cells = <1>;
672-
interrupt-parent = <&gic>;
673-
interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
674-
};
675-
};
676-
677677
spi1: spi@ff640000 {
678678
compatible = "rockchip,rk3066-spi";
679679
reg = <0x0 0xff640000 0x0 0x1000>;

0 commit comments

Comments
 (0)