Skip to contentSkip to conversation

ARM: dts: berlin: fix dtc warnings

PATCH In review Jisheng Zhang 2 participants 11 messages Sep 6, 2016 – Sep 29, 2016 Device tree bindings

lore
Share & tools
lore
#0 lore raw

cover ARM: dts: berlin: fix dtc warnings

This is a clean up series to fix berlin arm platforms dtc warnings. Firstly we remove skeleton.dtsi inclusion. Then add missing unit name of /soc node and /memory node. Lastly, we fix regulators' name

Jisheng Zhang (10):
ARM: dts: berlin2q: Remove skeleton.dtsi inclusion
ARM: dts: berlin2cd: Remove skeleton.dtsi inclusion
ARM: dts: berlin2: Remove skeleton.dtsi inclusion
ARM: dts: berlin2q: Add missing unit name to /soc node
ARM: dts: berlin2cd: Add missing unit name to /soc node
ARM: dts: berlin2: Add missing unit name to /soc node
ARM: dts: berlin2q-marvell-dmp: add missing unit name to /memory node
ARM: dts: chromecast: add missing unit name to /memory node
ARM: dts: sony-nsz-gs7: add missing unit name to /memory node
ARM: dts: berlin2q-marvell-dmp: fix regulators' name

 arch/arm/boot/dts/berlin2-sony-nsz-gs7.dts        |  2 +-
 arch/arm/boot/dts/berlin2.dtsi                    |  5 +++--
 arch/arm/boot/dts/berlin2cd-google-chromecast.dts |  2 +-
 arch/arm/boot/dts/berlin2cd.dtsi                  |  5 +++--
 arch/arm/boot/dts/berlin2q-marvell-dmp.dts        | 12 ++++++------
 arch/arm/boot/dts/berlin2q.dtsi                   |  6 +++---
 6 files changed, 17 insertions(+), 15 deletions(-)
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/10 ARM: dts: berlin2q: Remove skeleton.dtsi inclusion

As noted in [1], "there are a number of problems with skeleton.dtsi, and it would be prefereable to remove it entirely." This patch is to remove skeleton.dtsi inclusion from berlin2q.

[1] http://www.spinics.net/lists/arm-kernel/msg528080.html

---
 arch/arm/boot/dts/berlin2q.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/berlin2q.dtsi +2 -2
index 2c34bfb..4554945 100644
@@ -37,11 +37,11 @@
 #include <dt-bindings/clock/berlin2q.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 
-#include "skeleton.dtsi"
-
 / {
 	model = "Marvell Armada 1500 pro (BG2-Q) SoC";
 	compatible = "marvell,berlin2q", "marvell,berlin";
+	#address-cells = <1>;
+	#size-cells = <1>;
 
 	aliases {
 		serial0 = &uart0;
Signature · 1 line
2.9.3
#2 lore raw

PATCH 2/10 ARM: dts: berlin2cd: Remove skeleton.dtsi inclusion

In reply to Jisheng Zhang

As noted in [1], "there are a number of problems with skeleton.dtsi, and it would be prefereable to remove it entirely." This patch is to remove skeleton.dtsi inclusion from berlin2cd.

[1] http://www.spinics.net/lists/arm-kernel/msg528080.html

---
 arch/arm/boot/dts/berlin2cd.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/berlin2cd.dtsi +2 -1
index 6d06b61..d2bf390 100644
@@ -39,13 +39,14 @@
  *     OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#include "skeleton.dtsi"
 #include <dt-bindings/clock/berlin2.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 
 / {
 	model = "Marvell Armada 1500-mini (BG2CD) SoC";
 	compatible = "marvell,berlin2cd", "marvell,berlin";
+	#address-cells = <1>;
+	#size-cells = <1>;
 
 	aliases {
 		serial0 = &uart0;
Signature · 1 line
2.9.3
#3 lore raw

PATCH 3/10 ARM: dts: berlin2: Remove skeleton.dtsi inclusion

In reply to Jisheng Zhang

As noted in [1], "there are a number of problems with skeleton.dtsi, and it would be prefereable to remove it entirely." This patch is to remove skeleton.dtsi inclusion from berlin2.

[1] http://www.spinics.net/lists/arm-kernel/msg528080.html

---
 arch/arm/boot/dts/berlin2.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/berlin2.dtsi +2 -1
index ae81009..c89a441 100644
@@ -39,13 +39,14 @@
  *     OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#include "skeleton.dtsi"
 #include <dt-bindings/clock/berlin2.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 
 / {
 	model = "Marvell Armada 1500 (BG2) SoC";
 	compatible = "marvell,berlin2", "marvell,berlin";
+	#address-cells = <1>;
+	#size-cells = <1>;
 
 	aliases {
 		serial0 = &uart0;
Signature · 1 line
2.9.3
#4 lore raw

PATCH 4/10 ARM: dts: berlin2q: Add missing unit name to /soc node

In reply to Jisheng Zhang

This patch fixes the following DTC warning with W=1:

"Node /soc has a reg or ranges property, but no unit name"

---
 arch/arm/boot/dts/berlin2q.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/berlin2q.dtsi +1 -1
index 4554945..6bd92ffd 100644
@@ -99,7 +99,7 @@
 		clock-frequency = <25000000>;
 	};
 
-	soc {
+	soc at f7000000 {
 		compatible = "simple-bus";
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 1 line
2.9.3
#5 lore raw

PATCH 5/10 ARM: dts: berlin2cd: Add missing unit name to /soc node

In reply to Jisheng Zhang

This patch fixes the following DTC warning with W=1:

"Node /soc has a reg or ranges property, but no unit name"

---
 arch/arm/boot/dts/berlin2cd.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/berlin2cd.dtsi +1 -1
index d2bf390..4fe1574 100644
@@ -79,7 +79,7 @@
 		clock-frequency = <25000000>;
 	};
 
-	soc {
+	soc at f7000000 {
 		compatible = "simple-bus";
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 1 line
2.9.3
#6 lore raw

PATCH 6/10 ARM: dts: berlin2: Add missing unit name to /soc node

In reply to Jisheng Zhang

This patch fixes the following DTC warning with W=1:

"Node /soc has a reg or ranges property, but no unit name"

---
 arch/arm/boot/dts/berlin2.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/berlin2.dtsi +1 -1
index c89a441..e5a1a32 100644
@@ -90,7 +90,7 @@
 		clock-frequency = <25000000>;
 	};
 
-	soc {
+	soc at f7000000 {
 		compatible = "simple-bus";
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 1 line
2.9.3
#7 lore raw

PATCH 7/10 ARM: dts: berlin2q-marvell-dmp: add missing unit name to /memory node

In reply to Jisheng Zhang

This patch fixes the following DTC warning with W=1:

"Node /memory has a reg or ranges property, but no unit name"

---
 arch/arm/boot/dts/berlin2q-marvell-dmp.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/berlin2q-marvell-dmp.dts +1 -1
index 33b2875..f485308 100644
@@ -43,7 +43,7 @@
 	model = "Marvell BG2-Q DMP";
 	compatible = "marvell,berlin2q-dmp", "marvell,berlin2q", "marvell,berlin";
 
-	memory {
+	memory at 0 {
 		device_type = "memory";
 		reg = <0x00000000 0x80000000>;
 	};
Signature · 1 line
2.9.3
#8 lore raw

PATCH 8/10 ARM: dts: chromecast: add missing unit name to /memory node

In reply to Jisheng Zhang

This patch fixes the following DTC warning with W=1:

"Node /memory has a reg or ranges property, but no unit name"

---
 arch/arm/boot/dts/berlin2cd-google-chromecast.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/berlin2cd-google-chromecast.dts +1 -1
index 8ba8b50..ca24def 100644
@@ -50,7 +50,7 @@
 		stdout-path = "serial0:115200n8";
 	};
 
-	memory {
+	memory at 0 {
 		device_type = "memory";
 		reg = <0x00000000 0x20000000>; /* 512 MB */
 	};
Signature · 1 line
2.9.3
#9 lore raw
In reply to Jisheng Zhang
Quoted 4 lines · Jisheng Zhang

This is a clean up series to fix berlin arm platforms dtc warnings. Firstly we remove skeleton.dtsi inclusion. Then add missing unit name of /soc node and /memory node. Lastly, we fix regulators' name

Quoted 9 lines

Jisheng Zhang (10):
ARM: dts: berlin2q: Remove skeleton.dtsi inclusion
ARM: dts: berlin2cd: Remove skeleton.dtsi inclusion
ARM: dts: berlin2: Remove skeleton.dtsi inclusion
ARM: dts: berlin2q: Add missing unit name to /soc node
ARM: dts: berlin2cd: Add missing unit name to /soc node
ARM: dts: berlin2: Add missing unit name to /soc node
ARM: dts: berlin2q-marvell-dmp: add missing unit name to /memory node
ARM: dts: chromecast: add missing unit name to /memory node

Jisheng,

Applied the 8 patches above.

Quoted 1 line

ARM: dts: sony-nsz-gs7: add missing unit name to /memory node

I didn't receive this one and could not find it online. I recreated the patch by using the chromecast patch above, so applied.

Quoted 1 line

ARM: dts: berlin2q-marvell-dmp: fix regulators' name

I have no clue what it should be fixed to.

Sebastian

Quoted 8 lines
  arch/arm/boot/dts/berlin2-sony-nsz-gs7.dts        |  2 +-
  arch/arm/boot/dts/berlin2.dtsi                    |  5 +++--
  arch/arm/boot/dts/berlin2cd-google-chromecast.dts |  2 +-
  arch/arm/boot/dts/berlin2cd.dtsi                  |  5 +++--
  arch/arm/boot/dts/berlin2q-marvell-dmp.dts        | 12 ++++++------
  arch/arm/boot/dts/berlin2q.dtsi                   |  6 +++---
  6 files changed, 17 insertions(+), 15 deletions(-)
#10 lore raw

Hi Sebastian,

Quoted 21 lines · On Wed, 28 Sep 2016 21:40:21 +0200 Sebastian Hesselbarth wrote:
Quoted 4 lines · Jisheng Zhang

This is a clean up series to fix berlin arm platforms dtc warnings. Firstly we remove skeleton.dtsi inclusion. Then add missing unit name of /soc node and /memory node. Lastly, we fix regulators' name

Quoted 9 lines

Jisheng Zhang (10):
ARM: dts: berlin2q: Remove skeleton.dtsi inclusion
ARM: dts: berlin2cd: Remove skeleton.dtsi inclusion
ARM: dts: berlin2: Remove skeleton.dtsi inclusion
ARM: dts: berlin2q: Add missing unit name to /soc node
ARM: dts: berlin2cd: Add missing unit name to /soc node
ARM: dts: berlin2: Add missing unit name to /soc node
ARM: dts: berlin2q-marvell-dmp: add missing unit name to /memory node
ARM: dts: chromecast: add missing unit name to /memory node

Jisheng,

Applied the 8 patches above.

Quoted 1 line

ARM: dts: sony-nsz-gs7: add missing unit name to /memory node

Quoted 7 lines

I didn't receive this one and could not find it online. I recreated the patch by using the chromecast patch above, so applied.

Quoted 1 line

ARM: dts: berlin2q-marvell-dmp: fix regulators' name

I have no clue what it should be fixed to.

DTC will complain with W=1:

Warning (unit_address_vs_reg): Node /regulators/regulator at 0 has a unit name, but no reg property

This patch tries to fix that warning.

Thanks,
Jisheng

Quoted 12 lines

Sebastian

Quoted 8 lines
  arch/arm/boot/dts/berlin2-sony-nsz-gs7.dts        |  2 +-
  arch/arm/boot/dts/berlin2.dtsi                    |  5 +++--
  arch/arm/boot/dts/berlin2cd-google-chromecast.dts |  2 +-
  arch/arm/boot/dts/berlin2cd.dtsi                  |  5 +++--
  arch/arm/boot/dts/berlin2q-marvell-dmp.dts        | 12 ++++++------
  arch/arm/boot/dts/berlin2q.dtsi                   |  6 +++---
  6 files changed, 17 insertions(+), 15 deletions(-)