Skip to contentSkip to conversation

ARM: versatile: remove leading 0 on unit address

PATCH In review Arnd Bergmann 5 participants 9 messages Oct 13, 2021 – Oct 24, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: versatile: remove leading 0 on unit address

From: Arnd Bergmann <[email protected]>

dtc now warns for the LED nodes on the versatile-ab board:

versatile-ab.dts:126.12-132.5: Warning (unit_address_format): /core-module@10000000/[email protected]: unit name should not have leading 0s versatile-ab-ib2.dts:17.12-24.5: Warning (unit_address_format): /syscon@27000000/[email protected]: unit name should not have leading 0s

Remove the extra zeroes.

Fixes 07ebfa59b9db ("ARM: versatile: add the syscon LEDs to the DT")
Fixes 7fbe5f7ff267 ("ARM: dts: Add Versatile IB2 device tree")
---
 arch/arm/boot/dts/arm-realview-eb.dtsi    | 18 +++++++++---------
 arch/arm/boot/dts/arm-realview-pb1176.dts | 18 +++++++++---------
 arch/arm/boot/dts/arm-realview-pb11mp.dts | 18 +++++++++---------
 arch/arm/boot/dts/arm-realview-pbx.dtsi   | 18 +++++++++---------
 arch/arm/boot/dts/versatile-ab-ib2.dts    |  2 +-
 arch/arm/boot/dts/versatile-ab.dts        | 16 ++++++++--------
 6 files changed, 45 insertions(+), 45 deletions(-)
arch/arm/boot/dts/arm-realview-eb.dtsi +9 -9
index 04e8a27ba1eb..48b8994db0af 100644
@@ -199,7 +199,7 @@ syscon: syscon@10000000 {
 			compatible = "arm,realview-eb-syscon", "syscon", "simple-mfd";
 			reg = <0x10000000 0x1000>;
 
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x01>;
@@ -207,7 +207,7 @@ [email protected] {
 				linux,default-trigger = "heartbeat";
 				default-state = "on";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x02>;
@@ -215,7 +215,7 @@ [email protected] {
 				linux,default-trigger = "mmc0";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x04>;
@@ -223,42 +223,42 @@ [email protected] {
 				linux,default-trigger = "cpu0";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x08>;
 				label = "versatile:3";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x10>;
 				label = "versatile:4";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x20>;
 				label = "versatile:5";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x40>;
 				label = "versatile:6";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x80>;
 				label = "versatile:7";
 				default-state = "off";
 			};
-			oscclk0: osc0@0c {
+			oscclk0: osc0@c {
 				compatible = "arm,syscon-icst307";
 				#clock-cells = <0>;
 				lock-offset = <0x20>;
arch/arm/boot/dts/arm-realview-pb1176.dts +9 -9
index 366687fb1ee3..753c8439ab42 100644
@@ -217,7 +217,7 @@ syscon: syscon@10000000 {
 			compatible = "arm,realview-pb1176-syscon", "syscon", "simple-mfd";
 			reg = <0x10000000 0x1000>;
 
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x01>;
@@ -225,7 +225,7 @@ [email protected] {
 				linux,default-trigger = "heartbeat";
 				default-state = "on";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x02>;
@@ -233,7 +233,7 @@ [email protected] {
 				linux,default-trigger = "mmc0";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x04>;
@@ -241,42 +241,42 @@ [email protected] {
 				linux,default-trigger = "cpu0";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x08>;
 				label = "versatile:3";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x10>;
 				label = "versatile:4";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x20>;
 				label = "versatile:5";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x40>;
 				label = "versatile:6";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x80>;
 				label = "versatile:7";
 				default-state = "off";
 			};
-			oscclk0: osc0@0c {
+			oscclk0: osc0@c {
 				compatible = "arm,syscon-icst307";
 				#clock-cells = <0>;
 				lock-offset = <0x20>;
arch/arm/boot/dts/arm-realview-pb11mp.dts +9 -9
index 228a51a38f95..2974daeac5db 100644
@@ -304,7 +304,7 @@ pb11mp_syscon: syscon@10000000 {
 			compatible = "arm,realview-pb11mp-syscon", "syscon", "simple-mfd";
 			reg = <0x10000000 0x1000>;
 
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x01>;
@@ -312,7 +312,7 @@ [email protected] {
 				linux,default-trigger = "heartbeat";
 				default-state = "on";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x02>;
@@ -320,7 +320,7 @@ [email protected] {
 				linux,default-trigger = "mmc0";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x04>;
@@ -328,7 +328,7 @@ [email protected] {
 				linux,default-trigger = "cpu0";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x08>;
@@ -336,7 +336,7 @@ [email protected] {
 				linux,default-trigger = "cpu1";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x10>;
@@ -344,7 +344,7 @@ [email protected] {
 				linux,default-trigger = "cpu2";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x20>;
@@ -352,14 +352,14 @@ [email protected] {
 				linux,default-trigger = "cpu3";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x40>;
 				label = "versatile:6";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x80>;
@@ -367,7 +367,7 @@ [email protected] {
 				default-state = "off";
 			};
 
-			oscclk0: osc0@0c {
+			oscclk0: osc0@c {
 				compatible = "arm,syscon-icst307";
 				#clock-cells = <0>;
 				lock-offset = <0x20>;
arch/arm/boot/dts/arm-realview-pbx.dtsi +9 -9
index ccf6f756b6ed..535fe91d78a4 100644
@@ -221,7 +221,7 @@ syscon: syscon@10000000 {
 			compatible = "arm,realview-pbx-syscon", "syscon", "simple-mfd";
 			reg = <0x10000000 0x1000>;
 
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x01>;
@@ -229,7 +229,7 @@ [email protected] {
 				linux,default-trigger = "heartbeat";
 				default-state = "on";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x02>;
@@ -237,7 +237,7 @@ [email protected] {
 				linux,default-trigger = "mmc0";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x04>;
@@ -245,42 +245,42 @@ [email protected] {
 				linux,default-trigger = "cpu0";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x08>;
 				label = "versatile:3";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x10>;
 				label = "versatile:4";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x20>;
 				label = "versatile:5";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x40>;
 				label = "versatile:6";
 				default-state = "off";
 			};
-			[email protected] {
+			[email protected] {
 				compatible = "register-bit-led";
 				offset = <0x08>;
 				mask = <0x80>;
 				label = "versatile:7";
 				default-state = "off";
 			};
-			oscclk0: osc0@0c {
+			oscclk0: osc0@c {
 				compatible = "arm,syscon-icst307";
 				#clock-cells = <0>;
 				lock-offset = <0x20>;
arch/arm/boot/dts/versatile-ab-ib2.dts +1 -1
index c577ff4bb4be..74b851fdf11c 100644
@@ -14,7 +14,7 @@ syscon@27000000 {
 		compatible = "arm,versatile-ib2-syscon", "syscon", "simple-mfd";
 		reg = <0x27000000 0x4>;
 
-		[email protected] {
+		[email protected] {
 			compatible = "register-bit-led";
 			offset = <0x00>;
 			mask = <0x10>;
arch/arm/boot/dts/versatile-ab.dts +8 -8
index 151c0220047d..c12c4a3d4ff5 100644
@@ -71,7 +71,7 @@ core-module@10000000 {
 		compatible = "arm,core-module-versatile", "syscon", "simple-mfd";
 		reg = <0x10000000 0x200>;
 
-		[email protected] {
+		[email protected] {
 			compatible = "register-bit-led";
 			offset = <0x08>;
 			mask = <0x01>;
@@ -79,7 +79,7 @@ [email protected] {
 			linux,default-trigger = "heartbeat";
 			default-state = "on";
 		};
-		[email protected] {
+		[email protected] {
 			compatible = "register-bit-led";
 			offset = <0x08>;
 			mask = <0x02>;
@@ -87,7 +87,7 @@ [email protected] {
 			linux,default-trigger = "mmc0";
 			default-state = "off";
 		};
-		[email protected] {
+		[email protected] {
 			compatible = "register-bit-led";
 			offset = <0x08>;
 			mask = <0x04>;
@@ -95,35 +95,35 @@ [email protected] {
 			linux,default-trigger = "cpu0";
 			default-state = "off";
 		};
-		[email protected] {
+		[email protected] {
 			compatible = "register-bit-led";
 			offset = <0x08>;
 			mask = <0x08>;
 			label = "versatile:3";
 			default-state = "off";
 		};
-		[email protected] {
+		[email protected] {
 			compatible = "register-bit-led";
 			offset = <0x08>;
 			mask = <0x10>;
 			label = "versatile:4";
 			default-state = "off";
 		};
-		[email protected] {
+		[email protected] {
 			compatible = "register-bit-led";
 			offset = <0x08>;
 			mask = <0x20>;
 			label = "versatile:5";
 			default-state = "off";
 		};
-		[email protected] {
+		[email protected] {
 			compatible = "register-bit-led";
 			offset = <0x08>;
 			mask = <0x40>;
 			label = "versatile:6";
 			default-state = "off";
 		};
-		[email protected] {
+		[email protected] {
 			compatible = "register-bit-led";
 			offset = <0x08>;
 			mask = <0x80>;
Signature · 1 line
2.29.2
#1 lore raw

PATCH 2/2 arm64: exynos: fix cpu unit name warnings

From: Arnd Bergmann <[email protected]>

dtc started warning about some of the CPU addresses:

arch/arm64/boot/dts/exynos/exynosautov9.dtsi:78.20-83.5: Warning (unit_address_format): /cpus/cpu@000000: unit name should not have leading 0s arch/arm64/boot/dts/exynos/exynosautov9.dtsi:85.20-90.5: Warning (unit_address_format): /cpus/cpu@000100: unit name should not have leading 0s arch/arm64/boot/dts/exynos/exynosautov9.dtsi:92.20-97.5: Warning (unit_address_format): /cpus/cpu@000200: unit name should not have leading 0s arch/arm64/boot/dts/exynos/exynosautov9.dtsi:99.20-104.5: Warning (unit_address_format): /cpus/cpu@000300: unit name should not have leading 0s

Remove the leading zeroes.

Fixes f695b3f4c45d ("arm64: dts: exynos: add initial support for exynosautov9 SoC")
---
 arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/exynos/exynosautov9.dtsi +4 -4
index 1dd1d73a52b8..284a7adb474a 100644
@@ -75,28 +75,28 @@ core3 {
 			};
 		};
 
-		cpu0: cpu@000000 {
+		cpu0: cpu@0 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a76";
 			reg = <0x0>;
 			enable-method = "psci";
 		};
 
-		cpu1: cpu@000100 {
+		cpu1: cpu@100 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a76";
 			reg = <0x100>;
 			enable-method = "psci";
 		};
 
-		cpu2: cpu@000200 {
+		cpu2: cpu@200 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a76";
 			reg = <0x200>;
 			enable-method = "psci";
 		};
 
-		cpu3: cpu@000300 {
+		cpu3: cpu@300 {
 			device_type = "cpu";
 			compatible = "arm,cortex-a76";
 			reg = <0x300>;
Signature · 1 line
2.29.2
#2 lore raw

Re: [PATCH 2/2] arm64: exynos: fix cpu unit name warnings

Quoted 10 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

dtc started warning about some of the CPU addresses:

arch/arm64/boot/dts/exynos/exynosautov9.dtsi:78.20-83.5: Warning (unit_address_format): /cpus/cpu@000000: unit name should not have leading 0s arch/arm64/boot/dts/exynos/exynosautov9.dtsi:85.20-90.5: Warning (unit_address_format): /cpus/cpu@000100: unit name should not have leading 0s arch/arm64/boot/dts/exynos/exynosautov9.dtsi:92.20-97.5: Warning (unit_address_format): /cpus/cpu@000200: unit name should not have leading 0s arch/arm64/boot/dts/exynos/exynosautov9.dtsi:99.20-104.5: Warning (unit_address_format): /cpus/cpu@000300: unit name should not have leading 0s

Quoted 5 lines

Remove the leading zeroes.

Fixes f695b3f4c45d ("arm64: dts: exynos: add initial support for exynosautov9 SoC")

---

Thanks Arnd, but this was fixed with the next version of patchset. It's my bad because I did not drop the patch from my next branch after spotting it, knowing that Chanho will resubmit the next day and then I would replace it. This replacement happened next day but linux next got the older/buggy patch.

Best regards,
Krzysztof

#3 lore raw

Re: [PATCH 2/2] arm64: exynos: fix cpu unit name warnings

Quoted 7 lines · Krzysztof Kozlowski

On Wed, 13 Oct 2021 at 16:38, Arnd Bergmann <[email protected]> wrote:

Thanks Arnd, but this was fixed with the next version of patchset. It's my bad because I did not drop the patch from my next branch after spotting it, knowing that Chanho will resubmit the next day and then I would replace it. This replacement happened next day but linux next got the older/buggy patch.

Ok, I see it now. Looks like I forgot to rebase onto the latest next/master before testing my patches today.

Arnd

Reviewed-by on v1 1/2
#4 lore raw
In reply to Arnd Bergmann
Quoted 4 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

dtc now warns for the LED nodes on the versatile-ab board:

Quoted 8 lines

versatile-ab.dts:126.12-132.5: Warning (unit_address_format): /core-module@10000000/[email protected]: unit name should not have leading 0s versatile-ab-ib2.dts:17.12-24.5: Warning (unit_address_format): /syscon@27000000/[email protected]: unit name should not have leading 0s

Remove the extra zeroes.

Fixes 07ebfa59b9db ("ARM: versatile: add the syscon LEDs to the DT")
Fixes 7fbe5f7ff267 ("ARM: dts: Add Versatile IB2 device tree")

Fair enough,

Can you apply/send this directly to the SoC tree? I don't have any other changes for Versatile this merge window.

Yours,
Linus Walleij

#5 lore raw
In reply to Arnd Bergmann
Quoted 13 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

dtc now warns for the LED nodes on the versatile-ab board:

versatile-ab.dts:126.12-132.5: Warning (unit_address_format): /core-module@10000000/[email protected]: unit name should not have leading 0s versatile-ab-ib2.dts:17.12-24.5: Warning (unit_address_format): /syscon@27000000/[email protected]: unit name should not have leading 0s

Remove the extra zeroes.

Fixes 07ebfa59b9db ("ARM: versatile: add the syscon LEDs to the DT")
Fixes 7fbe5f7ff267 ("ARM: dts: Add Versatile IB2 device tree")
Quoted 8 lines
---
 arch/arm/boot/dts/arm-realview-eb.dtsi    | 18 +++++++++---------
 arch/arm/boot/dts/arm-realview-pb1176.dts | 18 +++++++++---------
 arch/arm/boot/dts/arm-realview-pb11mp.dts | 18 +++++++++---------
 arch/arm/boot/dts/arm-realview-pbx.dtsi   | 18 +++++++++---------
 arch/arm/boot/dts/versatile-ab-ib2.dts    |  2 +-
 arch/arm/boot/dts/versatile-ab.dts        | 16 ++++++++--------
 6 files changed, 45 insertions(+), 45 deletions(-)

Please apply these instead:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

There's also also these fixes that I sent:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

#6 lore raw
Quoted 11 lines · Rob Herring

On Wed, Oct 13, 2021 at 9:38 AM Arnd Bergmann <[email protected]> wrote:

Please apply these instead:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

There's also also these fixes that I sent:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

Is this list still up to date? It looks like some of these are already in linux-next
by now, so I'm not sure which ones to apply. Could you send the ones that you want me to take to [email protected]?

Arnd

maintainer
#7 lore raw
Quoted 7 lines · Arnd Bergmann
Quoted 5 lines · Rob Herring

On Wed, Oct 13, 2021 at 9:38 AM Arnd Bergmann <[email protected]> wrote:

Please apply these instead:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

Linus?

Quoted 3 lines
Quoted 3 lines

There's also also these fixes that I sent:
https://lore.kernel.org/all/[email protected]/

Viresh?

Quoted 1 line
Quoted 1 line

https://lore.kernel.org/all/[email protected]/

Bjorn?

Quoted 2 lines
Quoted 2 lines

https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

These 2 are the only ones in next.

Quoted 4 lines

Is this list still up to date? It looks like some of these are already in linux-next
by now, so I'm not sure which ones to apply. Could you send the ones that you want me to take to [email protected]?

Splitting up dts fixes by sub-arch only to have them ignored and have to chase down the status or resend really doesn't motivate me to fix anything.

Rob

Reviewed-by
#8 lore raw
Quoted 9 lines · Rob Herring
Quoted 6 lines · Arnd Bergmann
Quoted 5 lines · Rob Herring

On Wed, Oct 13, 2021 at 9:38 AM Arnd Bergmann <[email protected]> wrote:

Please apply these instead:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

Linus?

I don't recognize these patches, no idea why I have missed them :(

Arnd, please feel free to go ahead and apply these.

Yours,
Linus Walleij