Skip to content

Commit 8eed481

Browse files
tpetazzoniJason Cooper
authored andcommitted
arm: mvebu: fix the 'ranges' property to handle PCIe
Since 82a6826 ('ARM: dts: mvebu: Convert all the mvebu files to use the range property') all the device nodes of Armada 370/XP are under a common 'ranges' property that translates the device register addresses into their absolute address, thanks to the base address of the internal register space. However, beyond just the register areas, there are also PCIe I/O and memory regions, whose addresses should be properly translated. This patch fixes the Armada 370 and XP ranges property to take PCIe into account properly. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Jason Cooper <[email protected]>
1 parent c689cba commit 8eed481

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

arch/arm/boot/dts/armada-370-xp.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
#size-cells = <1>;
3434
compatible = "simple-bus";
3535
interrupt-parent = <&mpic>;
36-
ranges = <0 0 0xd0000000 0x100000>;
36+
ranges = <0 0 0xd0000000 0x0100000 /* internal registers */
37+
0xe0000000 0 0xe0000000 0x8100000 /* PCIe */>;
3738

3839
internal-regs {
3940
compatible = "simple-bus";

arch/arm/boot/dts/armada-370.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
};
3030

3131
soc {
32-
ranges = <0 0xd0000000 0x100000>;
32+
ranges = <0 0xd0000000 0x0100000 /* internal registers */
33+
0xe0000000 0xe0000000 0x8100000 /* PCIe */>;
3334
internal-regs {
3435
system-controller@18200 {
3536
compatible = "marvell,armada-370-xp-system-controller";

0 commit comments

Comments
 (0)