ARM: tegra: Fix unit_address_vs_reg DTC warnings for /memory
authorKrzysztof Kozlowski <krzk@kernel.org>
Mon, 9 Jul 2018 16:05:17 +0000 (18:05 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 9 Jul 2018 16:50:10 +0000 (18:50 +0200)
Add a generic /memory node in each Tegra DTSI (with empty reg property,
to be overidden by each DTS) and set proper unit address for /memory
nodes to fix the DTC warnings:

    arch/arm/boot/dts/tegra20-harmony.dtb: Warning (unit_address_vs_reg):
        /memory: node has a reg or ranges property, but no unit name

The DTB after the change is the same as before except adding
unit-address to /memory node.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
23 files changed:
arch/arm/boot/dts/tegra114-dalmore.dts
arch/arm/boot/dts/tegra114-roth.dts
arch/arm/boot/dts/tegra114-tn7.dts
arch/arm/boot/dts/tegra114.dtsi
arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi
arch/arm/boot/dts/tegra124-apalis.dtsi
arch/arm/boot/dts/tegra124-jetson-tk1.dts
arch/arm/boot/dts/tegra124-nyan.dtsi
arch/arm/boot/dts/tegra124-venice2.dts
arch/arm/boot/dts/tegra124.dtsi
arch/arm/boot/dts/tegra20-colibri-512.dtsi
arch/arm/boot/dts/tegra20-harmony.dts
arch/arm/boot/dts/tegra20-paz00.dts
arch/arm/boot/dts/tegra20-seaboard.dts
arch/arm/boot/dts/tegra20-tamonten.dtsi
arch/arm/boot/dts/tegra20-trimslice.dts
arch/arm/boot/dts/tegra20-ventana.dts
arch/arm/boot/dts/tegra20.dtsi
arch/arm/boot/dts/tegra30-apalis.dtsi
arch/arm/boot/dts/tegra30-beaver.dts
arch/arm/boot/dts/tegra30-cardhu.dtsi
arch/arm/boot/dts/tegra30-colibri.dtsi
arch/arm/boot/dts/tegra30.dtsi

index eafff16..1788556 100644 (file)
@@ -23,7 +23,7 @@
                stdout-path = "serial0:115200n8";
        };
 
-       memory {
+       memory@80000000 {
                reg = <0x80000000 0x40000000>;
        };
 
index 7ed7370..3d38355 100644 (file)
@@ -28,7 +28,7 @@
                };
        };
 
-       memory {
+       memory@80000000 {
                /* memory >= 0x79600000 is reserved for firmware usage */
                reg = <0x80000000 0x79600000>;
        };
index 7fc4a8b..bfdd1bf 100644 (file)
@@ -28,7 +28,7 @@
                };
        };
 
-       memory {
+       memory@80000000 {
                /* memory >= 0x37e00000 is reserved for firmware usage */
                reg = <0x80000000 0x37e00000>;
        };
index d45337f..0d7a632 100644 (file)
@@ -11,8 +11,9 @@
        #address-cells = <1>;
        #size-cells = <1>;
 
-       memory {
+       memory@80000000 {
                device_type = "memory";
+               reg = <0x80000000 0x0>;
        };
 
        host1x@50000000 {
index 3455822..573aaa5 100644 (file)
@@ -15,7 +15,7 @@
        compatible = "toradex,apalis-tk1-v1.2", "toradex,apalis-tk1",
                     "nvidia,tegra124";
 
-       memory {
+       memory@80000000 {
                reg = <0x0 0x80000000 0x0 0x80000000>;
        };
 
index 9f960c8..0f0d4a4 100644 (file)
@@ -50,7 +50,7 @@
        model = "Toradex Apalis TK1";
        compatible = "toradex,apalis-tk1", "nvidia,tegra124";
 
-       memory {
+       memory@80000000 {
                reg = <0x0 0x80000000 0x0 0x80000000>;
        };
 
index 6dbcf84..9151b3e 100644 (file)
@@ -24,7 +24,7 @@
                stdout-path = "serial0:115200n8";
        };
 
-       memory {
+       memory@80000000 {
                reg = <0x0 0x80000000 0x0 0x80000000>;
        };
 
index 3609367..d5f11d6 100644 (file)
@@ -13,7 +13,7 @@
                stdout-path = "serial0:115200n8";
        };
 
-       memory {
+       memory@80000000 {
                reg = <0x0 0x80000000 0x0 0x80000000>;
        };
 
index 89bcc17..82d1396 100644 (file)
@@ -18,7 +18,7 @@
                stdout-path = "serial0:115200n8";
        };
 
-       memory {
+       memory@80000000 {
                reg = <0x0 0x80000000 0x0 0x80000000>;
        };
 
index 951feea..183c5ac 100644 (file)
@@ -13,8 +13,9 @@
        #address-cells = <2>;
        #size-cells = <2>;
 
-       memory {
+       memory@80000000 {
                device_type = "memory";
+               reg = <0x0 0x80000000 0x0 0x0>;
        };
 
        pcie@1003000 {
index 5c202b3..5623ff8 100644 (file)
@@ -10,7 +10,7 @@
                rtc1 = "/rtc@7000e000";
        };
 
-       memory {
+       memory@0 {
                reg = <0x00000000 0x20000000>;
        };
 
index 628a55a..1d96d92 100644 (file)
@@ -18,7 +18,7 @@
                stdout-path = "serial0:115200n8";
        };
 
-       memory {
+       memory@0 {
                reg = <0x00000000 0x40000000>;
        };
 
index 3043696..ef24529 100644 (file)
@@ -19,7 +19,7 @@
                stdout-path = "serial0:115200n8";
        };
 
-       memory {
+       memory@0 {
                reg = <0x00000000 0x20000000>;
        };
 
index 284aae3..f914416 100644 (file)
@@ -18,7 +18,7 @@
                stdout-path = "serial0:115200n8";
        };
 
-       memory {
+       memory@0 {
                reg = <0x00000000 0x40000000>;
        };
 
index 872046d..20137fc 100644 (file)
@@ -15,7 +15,7 @@
                stdout-path = "serial0:115200n8";
        };
 
-       memory {
+       memory@0 {
                reg = <0x00000000 0x20000000>;
        };
 
index d55c6b2..9eb26dc 100644 (file)
@@ -18,7 +18,7 @@
                stdout-path = "serial0:115200n8";
        };
 
-       memory {
+       memory@0 {
                reg = <0x00000000 0x40000000>;
        };
 
index ee3fbf9..f44551e 100644 (file)
@@ -18,7 +18,7 @@
                stdout-path = "serial0:115200n8";
        };
 
-       memory {
+       memory@0 {
                reg = <0x00000000 0x40000000>;
        };
 
index 20ea6b1..86d8cd6 100644 (file)
@@ -11,8 +11,9 @@
        #address-cells = <1>;
        #size-cells = <1>;
 
-       memory {
+       memory@0 {
                device_type = "memory";
+               reg = <0 0>;
        };
 
        iram@40000000 {
index 01796dc..349c04d 100644 (file)
@@ -10,8 +10,8 @@
        model = "Toradex Apalis T30";
        compatible = "toradex,apalis_t30", "nvidia,tegra30";
 
-       memory {
-               reg = <0 0>;
+       memory@80000000 {
+               reg = <0x80000000 0x40000000>;
        };
 
        pcie@3000 {
index ae52a50..1434d50 100644 (file)
@@ -17,7 +17,7 @@
                stdout-path = "serial0:115200n8";
        };
 
-       memory {
+       memory@80000000 {
                reg = <0x80000000 0x7ff00000>;
        };
 
index 3b1db7b..fb9222b 100644 (file)
@@ -40,7 +40,7 @@
                stdout-path = "serial0:115200n8";
        };
 
-       memory {
+       memory@80000000 {
                reg = <0x80000000 0x40000000>;
        };
 
index c44d8c4..9bf3327 100644 (file)
@@ -10,7 +10,7 @@
        model = "Toradex Colibri T30";
        compatible = "toradex,colibri_t30", "nvidia,tegra30";
 
-       memory {
+       memory@80000000 {
                reg = <0x80000000 0x40000000>;
        };
 
index 0a3267a..a6781f6 100644 (file)
@@ -11,8 +11,9 @@
        #address-cells = <1>;
        #size-cells = <1>;
 
-       memory {
+       memory@80000000 {
                device_type = "memory";
+               reg = <0x80000000 0x0>;
        };
 
        pcie@3000 {