All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: dts: da850: fix warnings related to memory node
@ 2018-04-17 10:01 Sekhar Nori
  2018-04-17 10:01 ` [PATCH 1/2] ARM: dts: da850: get rid of skeleton.dtsi Sekhar Nori
  2018-04-17 10:01 ` [PATCH 2/2] ARM: dts: da850-lcdk: add unit name for memory node Sekhar Nori
  0 siblings, 2 replies; 6+ messages in thread
From: Sekhar Nori @ 2018-04-17 10:01 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Here are fixes to W=1 warnings related to memory nodes in
DA850 device-tree files.

Sekhar Nori (2):
  ARM: dts: da850: get rid of skeleton.dtsi
  ARM: dts: da850-lcdk: add unit name for memory node

 arch/arm/boot/dts/da850-lcdk.dts |  2 +-
 arch/arm/boot/dts/da850.dtsi     | 11 ++++++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

-- 
2.16.2

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] ARM: dts: da850: get rid of skeleton.dtsi
  2018-04-17 10:01 [PATCH 0/2] ARM: dts: da850: fix warnings related to memory node Sekhar Nori
@ 2018-04-17 10:01 ` Sekhar Nori
  2018-04-17 16:52   ` David Lechner
  2018-04-17 10:01 ` [PATCH 2/2] ARM: dts: da850-lcdk: add unit name for memory node Sekhar Nori
  1 sibling, 1 reply; 6+ messages in thread
From: Sekhar Nori @ 2018-04-17 10:01 UTC (permalink / raw)
  To: linux-arm-kernel

skeleton.dtsi is deprecated. Drop its usage in da850.dtsi
and move the nodes and properties included by it directly
to keep the dtb same.

The memory node has been changed to get rid of warnings
(see below). It contains the memory base address as that is
fixed for DA850 SoCs. But the size needs to be added by
bootloader or a board specific dts.

This gets rid of the following W=1 warnings:

arch/arm/boot/dts/da850-enbw-cmc.dtb: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name
arch/arm/boot/dts/da850-evm.dtb: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name
arch/arm/boot/dts/da850-lego-ev3.dtb: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
---
 arch/arm/boot/dts/da850.dtsi | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi
index 73bf7cd3d229..cba3afd00763 100644
--- a/arch/arm/boot/dts/da850.dtsi
+++ b/arch/arm/boot/dts/da850.dtsi
@@ -7,10 +7,19 @@
  * Free Software Foundation;  either version 2 of the  License, or (at your
  * option) any later version.
  */
-#include "skeleton.dtsi"
 #include <dt-bindings/interrupt-controller/irq.h>
 
 / {
+	#address-cells = <1>;
+	#size-cells = <1>;
+	chosen { };
+	aliases { };
+
+	memory at c0000000 {
+		device_type = "memory";
+		reg = <0xc0000000 0x0>;
+	};
+
 	arm {
 		#address-cells = <1>;
 		#size-cells = <1>;
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] ARM: dts: da850-lcdk: add unit name for memory node
  2018-04-17 10:01 [PATCH 0/2] ARM: dts: da850: fix warnings related to memory node Sekhar Nori
  2018-04-17 10:01 ` [PATCH 1/2] ARM: dts: da850: get rid of skeleton.dtsi Sekhar Nori
@ 2018-04-17 10:01 ` Sekhar Nori
  2018-04-17 16:55   ` David Lechner
  1 sibling, 1 reply; 6+ messages in thread
From: Sekhar Nori @ 2018-04-17 10:01 UTC (permalink / raw)
  To: linux-arm-kernel

Add unit name for memory node to squash the W=1 warning:

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

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
---
 arch/arm/boot/dts/da850-lcdk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts
index a1f4d6d5a569..e80839bb071b 100644
--- a/arch/arm/boot/dts/da850-lcdk.dts
+++ b/arch/arm/boot/dts/da850-lcdk.dts
@@ -21,7 +21,7 @@
 		stdout-path = "serial2:115200n8";
 	};
 
-	memory {
+	memory at c0000000 {
 		device_type = "memory";
 		reg = <0xc0000000 0x08000000>;
 	};
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 1/2] ARM: dts: da850: get rid of skeleton.dtsi
  2018-04-17 10:01 ` [PATCH 1/2] ARM: dts: da850: get rid of skeleton.dtsi Sekhar Nori
@ 2018-04-17 16:52   ` David Lechner
  0 siblings, 0 replies; 6+ messages in thread
From: David Lechner @ 2018-04-17 16:52 UTC (permalink / raw)
  To: linux-arm-kernel

On 04/17/2018 05:01 AM, Sekhar Nori wrote:
> skeleton.dtsi is deprecated. Drop its usage in da850.dtsi
> and move the nodes and properties included by it directly
> to keep the dtb same.
> 
> The memory node has been changed to get rid of warnings
> (see below). It contains the memory base address as that is
> fixed for DA850 SoCs. But the size needs to be added by
> bootloader or a board specific dts.
> 
> This gets rid of the following W=1 warnings:
> 
> arch/arm/boot/dts/da850-enbw-cmc.dtb: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name
> arch/arm/boot/dts/da850-evm.dtb: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name
> arch/arm/boot/dts/da850-lego-ev3.dtb: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name
> 
> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
> ---

Reviewed-by: David Lechner <david@lechnology.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 2/2] ARM: dts: da850-lcdk: add unit name for memory node
  2018-04-17 10:01 ` [PATCH 2/2] ARM: dts: da850-lcdk: add unit name for memory node Sekhar Nori
@ 2018-04-17 16:55   ` David Lechner
  2018-04-18  8:21     ` Sekhar Nori
  0 siblings, 1 reply; 6+ messages in thread
From: David Lechner @ 2018-04-17 16:55 UTC (permalink / raw)
  To: linux-arm-kernel

On 04/17/2018 05:01 AM, Sekhar Nori wrote:
> Add unit name for memory node to squash the W=1 warning:
> 
> arch/arm/boot/dts/da850-lcdk.dtb: Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name
> 
> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
> ---
>   arch/arm/boot/dts/da850-lcdk.dts | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts
> index a1f4d6d5a569..e80839bb071b 100644
> --- a/arch/arm/boot/dts/da850-lcdk.dts
> +++ b/arch/arm/boot/dts/da850-lcdk.dts
> @@ -21,7 +21,7 @@
>   		stdout-path = "serial2:115200n8";
>   	};
>   
> -	memory {
> +	memory at c0000000 {
>   		device_type = "memory";

Should we drop `device_type = "memory";` since it is now specified
in da850.dtsi?

>   		reg = <0xc0000000 0x08000000>;

I wouldn't mind a comment that says that this is 128MiB. The number
is too big for me to do the hex in my head. :-)

>   	};
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 2/2] ARM: dts: da850-lcdk: add unit name for memory node
  2018-04-17 16:55   ` David Lechner
@ 2018-04-18  8:21     ` Sekhar Nori
  0 siblings, 0 replies; 6+ messages in thread
From: Sekhar Nori @ 2018-04-18  8:21 UTC (permalink / raw)
  To: linux-arm-kernel

On Tuesday 17 April 2018 10:25 PM, David Lechner wrote:
> On 04/17/2018 05:01 AM, Sekhar Nori wrote:
>> Add unit name for memory node to squash the W=1 warning:
>>
>> arch/arm/boot/dts/da850-lcdk.dtb: Warning (unit_address_vs_reg):
>> /memory: node has a reg or ranges property, but no unit name
>>
>> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
>> ---
>> ? arch/arm/boot/dts/da850-lcdk.dts | 2 +-
>> ? 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/boot/dts/da850-lcdk.dts
>> b/arch/arm/boot/dts/da850-lcdk.dts
>> index a1f4d6d5a569..e80839bb071b 100644
>> --- a/arch/arm/boot/dts/da850-lcdk.dts
>> +++ b/arch/arm/boot/dts/da850-lcdk.dts
>> @@ -21,7 +21,7 @@
>> ????????? stdout-path = "serial2:115200n8";
>> ????? };
>> ? -??? memory {
>> +??? memory at c0000000 {
>> ????????? device_type = "memory";
> 
> Should we drop `device_type = "memory";` since it is now specified
> in da850.dtsi?

It was specified in skeleton.dtsi too, but good point. I will drop.

> 
>> ????????? reg = <0xc0000000 0x08000000>;
> 
> I wouldn't mind a comment that says that this is 128MiB. The number
> is too big for me to do the hex in my head. :-)

Sure :)

Thanks,
Sekhar

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-04-18  8:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-17 10:01 [PATCH 0/2] ARM: dts: da850: fix warnings related to memory node Sekhar Nori
2018-04-17 10:01 ` [PATCH 1/2] ARM: dts: da850: get rid of skeleton.dtsi Sekhar Nori
2018-04-17 16:52   ` David Lechner
2018-04-17 10:01 ` [PATCH 2/2] ARM: dts: da850-lcdk: add unit name for memory node Sekhar Nori
2018-04-17 16:55   ` David Lechner
2018-04-18  8:21     ` Sekhar Nori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.