arm64: dts: fsl-ls1028a: Correct ECAM PCIE window ranges
authorKornel Duleba <mindal@semihalf.com>
Wed, 7 Apr 2021 12:34:38 +0000 (14:34 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 12 Jun 2021 08:17:02 +0000 (16:17 +0800)
Currently all PCIE windows point to bus address 0x0, which does not match
the values obtained from hardware during EA.
Replace those values with CPU addresses, since in reality we
have a 1:1 mapping between the two.

Signed-off-by: Kornel Duleba <mindal@semihalf.com>
Acked-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi

index feecc49..5b500c1 100644 (file)
                        msi-map = <0 &its 0x17 0xe>;
                        iommu-map = <0 &smmu 0x17 0xe>;
                                  /* PF0-6 BAR0 - non-prefetchable memory */
-                       ranges = <0x82000000 0x0 0x00000000  0x1 0xf8000000  0x0 0x160000
+                       ranges = <0x82000000 0x1 0xf8000000  0x1 0xf8000000  0x0 0x160000
                                  /* PF0-6 BAR2 - prefetchable memory */
-                                 0xc2000000 0x0 0x00000000  0x1 0xf8160000  0x0 0x070000
+                                 0xc2000000 0x1 0xf8160000  0x1 0xf8160000  0x0 0x070000
                                  /* PF0: VF0-1 BAR0 - non-prefetchable memory */
-                                 0x82000000 0x0 0x00000000  0x1 0xf81d0000  0x0 0x020000
+                                 0x82000000 0x1 0xf81d0000  0x1 0xf81d0000  0x0 0x020000
                                  /* PF0: VF0-1 BAR2 - prefetchable memory */
-                                 0xc2000000 0x0 0x00000000  0x1 0xf81f0000  0x0 0x020000
+                                 0xc2000000 0x1 0xf81f0000  0x1 0xf81f0000  0x0 0x020000
                                  /* PF1: VF0-1 BAR0 - non-prefetchable memory */
-                                 0x82000000 0x0 0x00000000  0x1 0xf8210000  0x0 0x020000
+                                 0x82000000 0x1 0xf8210000  0x1 0xf8210000  0x0 0x020000
                                  /* PF1: VF0-1 BAR2 - prefetchable memory */
-                                 0xc2000000 0x0 0x00000000  0x1 0xf8230000  0x0 0x020000
+                                 0xc2000000 0x1 0xf8230000  0x1 0xf8230000  0x0 0x020000
                                  /* BAR4 (PF5) - non-prefetchable memory */
-                                 0x82000000 0x0 0x00000000  0x1 0xfc000000  0x0 0x400000>;
+                                 0x82000000 0x1 0xfc000000  0x1 0xfc000000  0x0 0x400000>;
 
                        enetc_port0: ethernet@0,0 {
                                compatible = "fsl,enetc";