Commit 32018d15 authored by Fabio Estevam's avatar Fabio Estevam Committed by Shawn Guo

ARM: dts: imx28: Fix memory node duplication

Boards based on imx28 have duplicate memory nodes:

- One coming from the board dts file: memory@

- One coming from the imx28.dtsi file.

Fix the duplication by removing the memory node from the dtsi file
and by adding 'device_type = "memory";' in the board dts.
Reported-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent b629e835
...@@ -17,6 +17,7 @@ / { ...@@ -17,6 +17,7 @@ / {
compatible = "armadeus,imx28-apf28", "fsl,imx28"; compatible = "armadeus,imx28-apf28", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
......
...@@ -7,6 +7,7 @@ / { ...@@ -7,6 +7,7 @@ / {
compatible = "bluegiga,apx4devkit", "fsl,imx28"; compatible = "bluegiga,apx4devkit", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x04000000>; reg = <0x40000000 0x04000000>;
}; };
......
...@@ -17,6 +17,7 @@ / { ...@@ -17,6 +17,7 @@ / {
compatible = "crystalfontz,cfa10036", "fsl,imx28"; compatible = "crystalfontz,cfa10036", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
......
...@@ -20,6 +20,7 @@ / { ...@@ -20,6 +20,7 @@ / {
compatible = "i2se,duckbill-2-485", "i2se,duckbill-2", "fsl,imx28"; compatible = "i2se,duckbill-2-485", "i2se,duckbill-2", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
......
...@@ -21,6 +21,7 @@ / { ...@@ -21,6 +21,7 @@ / {
compatible = "i2se,duckbill-2-enocean", "i2se,duckbill-2", "fsl,imx28"; compatible = "i2se,duckbill-2-enocean", "i2se,duckbill-2", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
......
...@@ -24,6 +24,7 @@ aliases { ...@@ -24,6 +24,7 @@ aliases {
}; };
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
......
...@@ -20,6 +20,7 @@ / { ...@@ -20,6 +20,7 @@ / {
compatible = "i2se,duckbill-2", "fsl,imx28"; compatible = "i2se,duckbill-2", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
......
...@@ -19,6 +19,7 @@ / { ...@@ -19,6 +19,7 @@ / {
compatible = "i2se,duckbill", "fsl,imx28"; compatible = "i2se,duckbill", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
......
...@@ -24,6 +24,7 @@ / { ...@@ -24,6 +24,7 @@ / {
compatible = "eukrea,mbmx283lc", "eukrea,mbmx28lc", "fsl,imx28"; compatible = "eukrea,mbmx283lc", "eukrea,mbmx28lc", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x04000000>; reg = <0x40000000 0x04000000>;
}; };
}; };
......
...@@ -23,6 +23,7 @@ / { ...@@ -23,6 +23,7 @@ / {
compatible = "eukrea,mbmx287lc", "eukrea,mbmx283lc", "eukrea,mbmx28lc", "fsl,imx28"; compatible = "eukrea,mbmx287lc", "eukrea,mbmx283lc", "eukrea,mbmx28lc", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
}; };
......
...@@ -10,6 +10,7 @@ / { ...@@ -10,6 +10,7 @@ / {
compatible = "fsl,imx28-evk", "fsl,imx28"; compatible = "fsl,imx28-evk", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
......
...@@ -16,6 +16,7 @@ / { ...@@ -16,6 +16,7 @@ / {
compatible = "aries,m28", "denx,m28", "fsl,imx28"; compatible = "aries,m28", "denx,m28", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
......
...@@ -17,6 +17,7 @@ / { ...@@ -17,6 +17,7 @@ / {
compatible = "msr,m28cu3", "fsl,imx28"; compatible = "msr,m28cu3", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
......
/* /*
* Copyright (C) 2012 Marek Vasut <marex@denx.de> * Copyright (C) 2012 Marek Vasut <marex@denx.de>
* *
* The code contained herein is licensed under the GNU General Public * The code contained herein is licensed under the GNU General Public
......
...@@ -17,6 +17,7 @@ / { ...@@ -17,6 +17,7 @@ / {
compatible = "schulercontrol,imx28-sps1", "fsl,imx28"; compatible = "schulercontrol,imx28-sps1", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x08000000>; reg = <0x40000000 0x08000000>;
}; };
......
...@@ -20,6 +20,7 @@ / { ...@@ -20,6 +20,7 @@ / {
compatible = "technologic,imx28-ts4600", "fsl,imx28"; compatible = "technologic,imx28-ts4600", "fsl,imx28";
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x10000000>; /* 256MB */ reg = <0x40000000 0x10000000>; /* 256MB */
}; };
......
...@@ -66,6 +66,7 @@ aliases { ...@@ -66,6 +66,7 @@ aliases {
}; };
memory@40000000 { memory@40000000 {
device_type = "memory";
reg = <0x40000000 0>; /* will be filled in by U-Boot */ reg = <0x40000000 0>; /* will be filled in by U-Boot */
}; };
......
...@@ -14,10 +14,8 @@ / { ...@@ -14,10 +14,8 @@ / {
* The decompressor and also some bootloaders rely on a * The decompressor and also some bootloaders rely on a
* pre-existing /chosen node to be available to insert the * pre-existing /chosen node to be available to insert the
* command line and merge other ATAGS info. * command line and merge other ATAGS info.
* Also for U-Boot there must be a pre-existing /memory node.
*/ */
chosen {}; chosen {};
memory { device_type = "memory"; };
aliases { aliases {
ethernet0 = &mac0; ethernet0 = &mac0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment