arm: dts: lx2160a: Add IO range
authorWasim Khan <wasim.khan@nxp.com>
Wed, 23 Sep 2020 14:04:45 +0000 (19:34 +0530)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 24 Sep 2020 15:27:32 +0000 (20:57 +0530)
Add IO range property to fix below error on uboot
PCI: Failed autoconfig bar 18

Signed-off-by: Wasim Khan <wasim.khan@nxp.com>
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/dts/fsl-lx2160a.dtsi

index 744bd99..bfdf178 100644 (file)
                #size-cells = <2>;
                device_type = "pci";
                bus-range = <0x0 0xff>;
-               ranges = <0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000>;
+               ranges = <0x81000000 0x0 0x00000000 0x80 0x00020000 0x0 0x00010000   /* downstream I/O */
+                         0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
        };
 
        pcie@3500000 {
                device_type = "pci";
                num-lanes = <2>;
                bus-range = <0x0 0xff>;
-               ranges = <0x82000000 0x0 0x40000000 0x88 0x40000000 0x0 0x40000000>;
+               ranges = <0x81000000 0x0 0x00000000 0x88 0x00020000 0x0 0x00010000   /* downstream I/O */
+                         0x82000000 0x0 0x40000000 0x88 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
        };
 
        pcie@3600000 {
                #size-cells = <2>;
                device_type = "pci";
                bus-range = <0x0 0xff>;
-               ranges = <0x82000000 0x0 0x40000000 0x90 0x40000000 0x0 0x40000000>;
+               ranges = <0x81000000 0x0 0x00000000 0x90 0x00020000 0x0 0x00010000   /* downstream I/O */
+                         0x82000000 0x0 0x40000000 0x90 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
        };
 
        pcie@3700000 {
                #size-cells = <2>;
                device_type = "pci";
                bus-range = <0x0 0xff>;
-               ranges = <0x82000000 0x0 0x40000000 0x98 0x40000000 0x0 0x40000000>;
+               ranges = <0x81000000 0x0 0x00000000 0x98 0x00020000 0x0 0x00010000   /* downstream I/O */
+                         0x82000000 0x0 0x40000000 0x98 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
        };
 
        pcie@3800000 {
                #size-cells = <2>;
                device_type = "pci";
                bus-range = <0x0 0xff>;
-               ranges = <0x82000000 0x0 0x40000000 0xa0 0x40000000 0x0 0x40000000>;
+               ranges = <0x81000000 0x0 0x00000000 0xa0 0x00020000 0x0 0x00010000   /* downstream I/O */
+                         0x82000000 0x0 0x40000000 0xa0 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
        };
 
        pcie@3900000 {
                #size-cells = <2>;
                device_type = "pci";
                bus-range = <0x0 0xff>;
-               ranges = <0x82000000 0x0 0x40000000 0xa8 0x40000000 0x0 0x40000000>;
+               ranges = <0x81000000 0x0 0x00000000 0xa8 0x00020000 0x0 0x00010000   /* downstream I/O */
+                         0x82000000 0x0 0x40000000 0xa8 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */
        };
 
        fsl_mc: fsl-mc@80c000000 {