ARM: dts: imx23: Remove skeleton.dtsi inclusion
Subsystems (3)
Fabio Estevam
reviewerPATCH v2 1/4 ARM: dts: imx23: Remove skeleton.dtsi inclusion
From: Fabio Estevam <[email protected]>
Remove skeleton.dtsi to avoid the following build warning with W=1:
Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name
---
Changes since v1:
- Remove skeleton.dtsi dependency (Rob)
arch/arm/boot/dts/imx23.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx23.dtsi +3 -1
@@ -9,10 +9,12 @@ * http://www.gnu.org/copyleft/gpl.html */ -#include "skeleton.dtsi" #include "imx23-pinfunc.h" / { + #address-cells = <1>; + #size-cells = <1>; + interrupt-parent = <&icoll>; aliases {
Signature · 1 line
1.9.1
Fabio Estevam
reviewerPATCH v2 2/4 ARM: dts: imx28: Remove skeleton.dtsi inclusion
From: Fabio Estevam <[email protected]>
Remove skeleton.dtsi to avoid the following build warning with W=1:
Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name
---
Changes since v1:
- Remove skeleton.dtsi dependency (Rob)
arch/arm/boot/dts/imx28.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/boot/dts/imx28.dtsi +3 -1
@@ -10,10 +10,12 @@ */ #include <dt-bindings/gpio/gpio.h> -#include "skeleton.dtsi" #include "imx28-pinfunc.h" / { + #address-cells = <1>; + #size-cells = <1>; + interrupt-parent = <&icoll>; aliases {
Signature · 1 line
1.9.1
Fabio Estevam
reviewerPATCH v2 3/4 ARM: dts: imx23: Fix build warnings with W=1
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
Fix the following build warnings with W=1:
Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name
While at it, also pass the 'device_type' property as recommended by the ePAPR specification.
---
Changes since v1:
- None
arch/arm/boot/dts/imx23-evk.dts | 3 ++- arch/arm/boot/dts/imx23-olinuxino.dts | 3 ++- arch/arm/boot/dts/imx23-sansa.dts | 3 ++- arch/arm/boot/dts/imx23-stmp378x_devb.dts | 3 ++- arch/arm/boot/dts/imx23-xfi3.dts | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-)
arch/arm/boot/dts/imx23-evk.dts +2 -1
@@ -16,7 +16,8 @@ model = "Freescale i.MX23 Evaluation Kit"; compatible = "fsl,imx23-evk", "fsl,imx23"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx23-olinuxino.dts +2 -1
@@ -19,7 +19,8 @@ model = "i.MX23 Olinuxino Low Cost Board"; compatible = "olimex,imx23-olinuxino", "fsl,imx23"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x04000000>; };
arch/arm/boot/dts/imx23-sansa.dts +2 -1
@@ -48,7 +48,8 @@ model = "SanDisk Sansa Fuze+"; compatible = "sandisk,sansa_fuze_plus", "fsl,imx23"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x04000000>; };
arch/arm/boot/dts/imx23-stmp378x_devb.dts +2 -1
@@ -16,7 +16,8 @@ model = "Freescale STMP378x Development Board"; compatible = "fsl,stmp378x-devb", "fsl,imx23"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x04000000>; };
arch/arm/boot/dts/imx23-xfi3.dts +2 -1
@@ -48,7 +48,8 @@ model = "Creative ZEN X-Fi3"; compatible = "creative,x-fi3", "fsl,imx23"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x04000000>; };
Signature · 1 line
1.9.1
PATCH v2 3/4 ARM: dts: imx23: Fix build warnings with W=1
Quoted 9 lines
Fabio Estevam <[email protected]> hat am 5. September 2016 um 21:27 geschrieben:
From: Fabio Estevam <[email protected]>
Fix the following build warnings with W=1:
Quoted 7 lines
Warning (
unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit nameWhile at it, also pass the '
device_type' property as recommended by the ePAPR specification.Signed-off-by Fabio Estevam <[email protected]>
Patch 1 and 3 works for my Olinuxino board.
Fabio Estevam
reviewerPATCH v2 4/4 ARM: dts: imx28: Fix build warnings with W=1
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
Fix the following build warnings with W=1:
Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name
While at it, also pass the 'device_type' property as recommended by the ePAPR specification.
---
Changes since v1:
- None
arch/arm/boot/dts/imx28-apf28.dts | 3 ++- arch/arm/boot/dts/imx28-apx4devkit.dts | 3 ++- arch/arm/boot/dts/imx28-cfa10036.dts | 3 ++- arch/arm/boot/dts/imx28-duckbill.dts | 3 ++- arch/arm/boot/dts/imx28-eukrea-mbmx283lc.dts | 3 ++- arch/arm/boot/dts/imx28-eukrea-mbmx287lc.dts | 3 ++- arch/arm/boot/dts/imx28-evk.dts | 3 ++- arch/arm/boot/dts/imx28-m28.dtsi | 3 ++- arch/arm/boot/dts/imx28-m28cu3.dts | 3 ++- arch/arm/boot/dts/imx28-sps1.dts | 3 ++- arch/arm/boot/dts/imx28-tx28.dts | 3 ++- 11 files changed, 22 insertions(+), 11 deletions(-)
arch/arm/boot/dts/imx28-apf28.dts +2 -1
@@ -16,7 +16,8 @@ model = "Armadeus Systems APF28 module"; compatible = "armadeus,imx28-apf28", "fsl,imx28"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-apx4devkit.dts +2 -1
@@ -5,7 +5,8 @@ model = "Bluegiga APX4 Development Kit"; compatible = "bluegiga,apx4devkit", "fsl,imx28"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x04000000>; };
arch/arm/boot/dts/imx28-cfa10036.dts +2 -1
@@ -16,7 +16,8 @@ model = "Crystalfontz CFA-10036 Board"; compatible = "crystalfontz,cfa10036", "fsl,imx28"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-duckbill.dts +2 -1
@@ -16,7 +16,8 @@ model = "I2SE Duckbill"; compatible = "i2se,duckbill", "fsl,imx28"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-eukrea-mbmx283lc.dts +2 -1
@@ -23,7 +23,8 @@ model = "Eukrea Electromatique MBMX283LC"; compatible = "eukrea,mbmx283lc", "eukrea,mbmx28lc", "fsl,imx28"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x04000000>; }; };
arch/arm/boot/dts/imx28-eukrea-mbmx287lc.dts +2 -1
@@ -22,7 +22,8 @@ model = "Eukrea Electromatique MBMX287LC"; compatible = "eukrea,mbmx287lc", "eukrea,mbmx283lc", "eukrea,mbmx28lc", "fsl,imx28"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; }; };
arch/arm/boot/dts/imx28-evk.dts +2 -1
@@ -16,7 +16,8 @@ model = "Freescale i.MX28 Evaluation Kit"; compatible = "fsl,imx28-evk", "fsl,imx28"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-m28.dtsi +2 -1
@@ -15,7 +15,8 @@ model = "DENX M28"; compatible = "denx,m28", "fsl,imx28"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-m28cu3.dts +2 -1
@@ -16,7 +16,8 @@ model = "MSR M28CU3"; compatible = "msr,m28cu3", "fsl,imx28"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-sps1.dts +2 -1
@@ -16,7 +16,8 @@ model = "SchulerControl GmbH, SC SPS 1"; compatible = "schulercontrol,imx28-sps1", "fsl,imx28"; - memory { + memory at 40000000 { + device_type = "memory"; reg = <0x40000000 0x08000000>; };
arch/arm/boot/dts/imx28-tx28.dts +2 -1
@@ -35,7 +35,8 @@ usbotg = &usb0; }; - memory { + memory at 0 { + device_type = "memory"; reg = <0 0>; /* will be filled in by U-Boot */ };
Signature · 1 line
1.9.1
PATCH v2 4/4 ARM: dts: imx28: Fix build warnings with W=1
arch/arm/boot/dts/imx28-tx28.dts line 40
Quoted 12 lines · Fabio Estevam
arch/arm/boot/dts/imx28-tx28.dts +2
-1@@ -35,7 +35,8 @@ usbotg = &usb0; }; - memory { + memory at 0 { + device_type = "memory"; reg = <0 0>; /* will be filled in by U-Boot */
I'm curious to know if the unit-address will be fixed up or not when 'reg' property gets updated by U-Boot.
Shawn
Quoted 10 lines
arch/arm/boot/dts/imx28-tx28.dts +0
-0};Signature · 7 lines
1.9.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v2 4/4 ARM: dts: imx28: Fix build warnings with W=1
Hi,
Quoted 9 lines · On Thu, 8 Sep 2016 22:03:38 +0800 Shawn Guo wrote:
Quoted 8 lines · Fabio Estevam
arch/arm/boot/dts/imx28-tx28.dts +0
-0@@ -35,7 +35,8 @@ usbotg = &usb0; };
Quoted 8 lines
arch/arm/boot/dts/imx28-tx28.dts line 40
Quoted 4 lines
arch/arm/boot/dts/imx28-tx28.dts +2
-1- memory { + memory at 0 { + device_type = "memory"; reg = <0 0>; /* will be filled in by U-Boot */I'm curious to know if the unit-address will be fixed up or not when 'reg' property gets updated by U-Boot.
No. U-Boot does not change the unit name, when updating in the reg property. But that does not do any harm (for now), thus the change is OK.
Lothar Wa?mann
PATCH v2 4/4 ARM: dts: imx28: Fix build warnings with W=1
Quoted 20 lines · Lothar Wa?mann
Hi,
Quoted 9 lines · On Thu, 8 Sep 2016 22:03:38 +0800 Shawn Guo wrote:
Quoted 8 lines · Fabio Estevam
arch/arm/boot/dts/imx28-tx28.dts +0
-0@@ -35,7 +35,8 @@ usbotg = &usb0; };Quoted 8 lines
arch/arm/boot/dts/imx28-tx28.dts line 40
Quoted 4 lines
arch/arm/boot/dts/imx28-tx28.dts +2
-1- memory { + memory at 0 { + device_type = "memory"; reg = <0 0>; /* will be filled in by U-Boot */I'm curious to know if the unit-address will be fixed up or not when 'reg' property gets updated by U-Boot.
Quoted 3 lines
No. U-Boot does not change the unit name, when updating in the reg property. But that does not do any harm (for now), thus the change is OK.
This is confusing when people is looking at nodes in /proc/device-tree. Why cannot we give it a reasonable default configuration instead of <0 0>?
Shawn
PATCH v2 4/4 ARM: dts: imx28: Fix build warnings with W=1
Hello Shawn,
Quoted 21 lines · Shawn Guo
Quoted 20 lines · Lothar Wa?mann
Hi,
Quoted 17 lines · On Thu, 8 Sep 2016 22:03:38 +0800 Shawn Guo wrote:
arch/arm/boot/dts/imx28-tx28.dts line 40
Quoted 12 lines · Fabio Estevam
arch/arm/boot/dts/imx28-tx28.dts +2
-1@@ -35,7 +35,8 @@ usbotg = &usb0; }; - memory { + memory at 0 { + device_type = "memory"; reg = <0 0>; /* will be filled in by U-Boot */I'm curious to know if the unit-address will be fixed up or not when 'reg' property gets updated by U-Boot.
Quoted 8 lines
Quoted 3 lines
No. U-Boot does not change the unit name, when updating in the reg property. But that does not do any harm (for now), thus the change is OK.
This is confusing when people is looking at nodes in
/proc/device-tree. Why cannot we give it a reasonable default configuration instead of <0 0>?
Another option is to not have a memory node if the start address is not known at build time, since U-boot creates a memory node if is not found in the FDT.
Quoted 2 lines
Shawn
Best regards,
Javier
Fabio Estevam
reviewerPATCH v2 4/4 ARM: dts: imx28: Fix build warnings with W=1
In reply to Shawn GuoHi Shawn,
Quoted 9 lines · Shawn Guo
Quoted 8 lines · Fabio Estevam
arch/arm/boot/dts/imx28-tx28.dts +0
-0@@ -35,7 +35,8 @@ usbotg = &usb0; };
Quoted 7 lines
arch/arm/boot/dts/imx28-tx28.dts line 40
Quoted 4 lines
arch/arm/boot/dts/imx28-tx28.dts +2
-1- memory { + memory at 0 { + device_type = "memory"; reg = <0 0>; /* will be filled in by U-Boot */I'm curious to know if the unit-address will be fixed up or not when 'reg' property gets updated by U-Boot.
Should I resend this series and keep imx28-tx28.dts unmodified?
PATCH v2 4/4 ARM: dts: imx28: Fix build warnings with W=1
Quoted 20 lines · Fabio Estevam
Hi Shawn,
Quoted 9 lines · Shawn Guo
Quoted 8 lines · Fabio Estevam
arch/arm/boot/dts/imx28-tx28.dts +0
-0@@ -35,7 +35,8 @@ usbotg = &usb0; };Quoted 7 lines
arch/arm/boot/dts/imx28-tx28.dts line 40
Quoted 4 lines
arch/arm/boot/dts/imx28-tx28.dts +2
-1- memory { + memory at 0 { + device_type = "memory"; reg = <0 0>; /* will be filled in by U-Boot */I'm curious to know if the unit-address will be fixed up or not when 'reg' property gets updated by U-Boot.
Quoted 1 line
Should I resend this series and keep
imx28-tx28.dtsunmodified?
Yeah, probably the best thing we can do.
Shawn