Skip to content

Commit

Permalink
ARM: tegra: Fix unit_address_vs_reg DTC warnings for /memory
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
krzk authored and thierryreding committed Jul 9, 2018
1 parent f48ba1a commit 4829976
Show file tree
Hide file tree
Showing 23 changed files with 28 additions and 24 deletions.
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra114-dalmore.dts
Expand Up @@ -23,7 +23,7 @@
stdout-path = "serial0:115200n8";
};

memory {
memory@80000000 {
reg = <0x80000000 0x40000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra114-roth.dts
Expand Up @@ -28,7 +28,7 @@
};
};

memory {
memory@80000000 {
/* memory >= 0x79600000 is reserved for firmware usage */
reg = <0x80000000 0x79600000>;
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra114-tn7.dts
Expand Up @@ -28,7 +28,7 @@
};
};

memory {
memory@80000000 {
/* memory >= 0x37e00000 is reserved for firmware usage */
reg = <0x80000000 0x37e00000>;
};
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/tegra114.dtsi
Expand Up @@ -11,8 +11,9 @@
#address-cells = <1>;
#size-cells = <1>;

memory {
memory@80000000 {
device_type = "memory";
reg = <0x80000000 0x0>;
};

host1x@50000000 {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi
Expand Up @@ -15,7 +15,7 @@
compatible = "toradex,apalis-tk1-v1.2", "toradex,apalis-tk1",
"nvidia,tegra124";

memory {
memory@80000000 {
reg = <0x0 0x80000000 0x0 0x80000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra124-apalis.dtsi
Expand Up @@ -50,7 +50,7 @@
model = "Toradex Apalis TK1";
compatible = "toradex,apalis-tk1", "nvidia,tegra124";

memory {
memory@80000000 {
reg = <0x0 0x80000000 0x0 0x80000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra124-jetson-tk1.dts
Expand Up @@ -24,7 +24,7 @@
stdout-path = "serial0:115200n8";
};

memory {
memory@80000000 {
reg = <0x0 0x80000000 0x0 0x80000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra124-nyan.dtsi
Expand Up @@ -13,7 +13,7 @@
stdout-path = "serial0:115200n8";
};

memory {
memory@80000000 {
reg = <0x0 0x80000000 0x0 0x80000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra124-venice2.dts
Expand Up @@ -18,7 +18,7 @@
stdout-path = "serial0:115200n8";
};

memory {
memory@80000000 {
reg = <0x0 0x80000000 0x0 0x80000000>;
};

Expand Down
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/tegra124.dtsi
Expand Up @@ -13,8 +13,9 @@
#address-cells = <2>;
#size-cells = <2>;

memory {
memory@80000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x0 0x0>;
};

pcie@1003000 {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-colibri-512.dtsi
Expand Up @@ -10,7 +10,7 @@
rtc1 = "/rtc@7000e000";
};

memory {
memory@0 {
reg = <0x00000000 0x20000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-harmony.dts
Expand Up @@ -18,7 +18,7 @@
stdout-path = "serial0:115200n8";
};

memory {
memory@0 {
reg = <0x00000000 0x40000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-paz00.dts
Expand Up @@ -19,7 +19,7 @@
stdout-path = "serial0:115200n8";
};

memory {
memory@0 {
reg = <0x00000000 0x20000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-seaboard.dts
Expand Up @@ -18,7 +18,7 @@
stdout-path = "serial0:115200n8";
};

memory {
memory@0 {
reg = <0x00000000 0x40000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-tamonten.dtsi
Expand Up @@ -15,7 +15,7 @@
stdout-path = "serial0:115200n8";
};

memory {
memory@0 {
reg = <0x00000000 0x20000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-trimslice.dts
Expand Up @@ -18,7 +18,7 @@
stdout-path = "serial0:115200n8";
};

memory {
memory@0 {
reg = <0x00000000 0x40000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra20-ventana.dts
Expand Up @@ -18,7 +18,7 @@
stdout-path = "serial0:115200n8";
};

memory {
memory@0 {
reg = <0x00000000 0x40000000>;
};

Expand Down
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/tegra20.dtsi
Expand Up @@ -11,8 +11,9 @@
#address-cells = <1>;
#size-cells = <1>;

memory {
memory@0 {
device_type = "memory";
reg = <0 0>;
};

iram@40000000 {
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/boot/dts/tegra30-apalis.dtsi
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra30-beaver.dts
Expand Up @@ -17,7 +17,7 @@
stdout-path = "serial0:115200n8";
};

memory {
memory@80000000 {
reg = <0x80000000 0x7ff00000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra30-cardhu.dtsi
Expand Up @@ -40,7 +40,7 @@
stdout-path = "serial0:115200n8";
};

memory {
memory@80000000 {
reg = <0x80000000 0x40000000>;
};

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/tegra30-colibri.dtsi
Expand Up @@ -10,7 +10,7 @@
model = "Toradex Colibri T30";
compatible = "toradex,colibri_t30", "nvidia,tegra30";

memory {
memory@80000000 {
reg = <0x80000000 0x40000000>;
};

Expand Down
3 changes: 2 additions & 1 deletion arch/arm/boot/dts/tegra30.dtsi
Expand Up @@ -11,8 +11,9 @@
#address-cells = <1>;
#size-cells = <1>;

memory {
memory@80000000 {
device_type = "memory";
reg = <0x80000000 0x0>;
};

pcie@3000 {
Expand Down

0 comments on commit 4829976

Please sign in to comment.