* [PATCH] dt-bindings: opp-v2: Fix example 3 CPU reg value
@ 2026-04-03 10:34 Vivian Wang
2026-04-05 7:27 ` Krzysztof Kozlowski
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Vivian Wang @ 2026-04-03 10:34 UTC (permalink / raw)
To: Viresh Kumar, Nishanth Menon, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Viresh Kumar, linux-pm, devicetree, linux-kernel, Vivian Wang
Example 3 is a dual-cluster example, meaning that the CPU nodes should
have reg values 0x0, 0x1, 0x100, 0x101. The example incorrectly uses
decimal 0, 1, 100, 101 instead, which seems unintended. Use the correct
hexadecimal values.
Even though the value doesn't change for the first two CPUs, 0 and 1 in
example 3 are changed to 0x0 and 0x1 respectively for consistency. Other
examples all have reg less than 10, so they have not been changed.
Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
---
Found while trying to figure out if cpu@* unit addresses are supposed to
be decimal or hexadecimal. This is AFAICT the only place in-tree where
an arm/arm64 DTS uses multi-digit decimal. See also:
- https://lore.kernel.org/devicetree-spec/00ddad5a-02f5-474e-af9c-11ce7716ddfc@iscas.ac.cn/
- https://github.com/devicetree-org/devicetree-specification/issues/86
---
Documentation/devicetree/bindings/opp/opp-v2.yaml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/opp/opp-v2.yaml b/Documentation/devicetree/bindings/opp/opp-v2.yaml
index 6972d76233aa..10000a758572 100644
--- a/Documentation/devicetree/bindings/opp/opp-v2.yaml
+++ b/Documentation/devicetree/bindings/opp/opp-v2.yaml
@@ -172,7 +172,7 @@ examples:
cpu@0 {
compatible = "arm,cortex-a7";
device_type = "cpu";
- reg = <0>;
+ reg = <0x0>;
next-level-cache = <&L2>;
clocks = <&clk_controller 0>;
clock-names = "cpu";
@@ -183,7 +183,7 @@ examples:
cpu@1 {
compatible = "arm,cortex-a7";
device_type = "cpu";
- reg = <1>;
+ reg = <0x1>;
next-level-cache = <&L2>;
clocks = <&clk_controller 0>;
clock-names = "cpu";
@@ -194,7 +194,7 @@ examples:
cpu@100 {
compatible = "arm,cortex-a15";
device_type = "cpu";
- reg = <100>;
+ reg = <0x100>;
next-level-cache = <&L2>;
clocks = <&clk_controller 1>;
clock-names = "cpu";
@@ -205,7 +205,7 @@ examples:
cpu@101 {
compatible = "arm,cortex-a15";
device_type = "cpu";
- reg = <101>;
+ reg = <0x101>;
next-level-cache = <&L2>;
clocks = <&clk_controller 1>;
clock-names = "cpu";
---
base-commit: f338e77383789c0cae23ca3d48adcc5e9e137e3c
change-id: 20260403-dt-bindings-opp-v2-hex-cpu-reg-2d2dbec0bb15
Best regards,
--
Vivian "dramforever" Wang
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: opp-v2: Fix example 3 CPU reg value
2026-04-03 10:34 [PATCH] dt-bindings: opp-v2: Fix example 3 CPU reg value Vivian Wang
@ 2026-04-05 7:27 ` Krzysztof Kozlowski
2026-04-06 4:32 ` Viresh Kumar
2026-04-06 22:44 ` Rob Herring (Arm)
2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2026-04-05 7:27 UTC (permalink / raw)
To: Vivian Wang
Cc: Viresh Kumar, Nishanth Menon, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Viresh Kumar, linux-pm,
devicetree, linux-kernel
On Fri, Apr 03, 2026 at 06:34:29PM +0800, Vivian Wang wrote:
> Example 3 is a dual-cluster example, meaning that the CPU nodes should
> have reg values 0x0, 0x1, 0x100, 0x101. The example incorrectly uses
> decimal 0, 1, 100, 101 instead, which seems unintended. Use the correct
> hexadecimal values.
>
> Even though the value doesn't change for the first two CPUs, 0 and 1 in
> example 3 are changed to 0x0 and 0x1 respectively for consistency. Other
> examples all have reg less than 10, so they have not been changed.
>
> Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: opp-v2: Fix example 3 CPU reg value
2026-04-03 10:34 [PATCH] dt-bindings: opp-v2: Fix example 3 CPU reg value Vivian Wang
2026-04-05 7:27 ` Krzysztof Kozlowski
@ 2026-04-06 4:32 ` Viresh Kumar
2026-04-06 22:44 ` Rob Herring (Arm)
2 siblings, 0 replies; 4+ messages in thread
From: Viresh Kumar @ 2026-04-06 4:32 UTC (permalink / raw)
To: Vivian Wang
Cc: Viresh Kumar, Nishanth Menon, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, linux-pm, devicetree,
linux-kernel
On 03-04-26, 18:34, Vivian Wang wrote:
> Example 3 is a dual-cluster example, meaning that the CPU nodes should
> have reg values 0x0, 0x1, 0x100, 0x101. The example incorrectly uses
> decimal 0, 1, 100, 101 instead, which seems unintended. Use the correct
> hexadecimal values.
>
> Even though the value doesn't change for the first two CPUs, 0 and 1 in
> example 3 are changed to 0x0 and 0x1 respectively for consistency. Other
> examples all have reg less than 10, so they have not been changed.
>
> Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
> ---
> Found while trying to figure out if cpu@* unit addresses are supposed to
> be decimal or hexadecimal. This is AFAICT the only place in-tree where
> an arm/arm64 DTS uses multi-digit decimal. See also:
>
> - https://lore.kernel.org/devicetree-spec/00ddad5a-02f5-474e-af9c-11ce7716ddfc@iscas.ac.cn/
> - https://github.com/devicetree-org/devicetree-specification/issues/86
> ---
> Documentation/devicetree/bindings/opp/opp-v2.yaml | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/opp/opp-v2.yaml b/Documentation/devicetree/bindings/opp/opp-v2.yaml
> index 6972d76233aa..10000a758572 100644
> --- a/Documentation/devicetree/bindings/opp/opp-v2.yaml
> +++ b/Documentation/devicetree/bindings/opp/opp-v2.yaml
> @@ -172,7 +172,7 @@ examples:
> cpu@0 {
> compatible = "arm,cortex-a7";
> device_type = "cpu";
> - reg = <0>;
> + reg = <0x0>;
> next-level-cache = <&L2>;
> clocks = <&clk_controller 0>;
> clock-names = "cpu";
> @@ -183,7 +183,7 @@ examples:
> cpu@1 {
> compatible = "arm,cortex-a7";
> device_type = "cpu";
> - reg = <1>;
> + reg = <0x1>;
> next-level-cache = <&L2>;
> clocks = <&clk_controller 0>;
> clock-names = "cpu";
> @@ -194,7 +194,7 @@ examples:
> cpu@100 {
> compatible = "arm,cortex-a15";
> device_type = "cpu";
> - reg = <100>;
> + reg = <0x100>;
> next-level-cache = <&L2>;
> clocks = <&clk_controller 1>;
> clock-names = "cpu";
> @@ -205,7 +205,7 @@ examples:
> cpu@101 {
> compatible = "arm,cortex-a15";
> device_type = "cpu";
> - reg = <101>;
> + reg = <0x101>;
> next-level-cache = <&L2>;
> clocks = <&clk_controller 1>;
> clock-names = "cpu";
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
--
viresh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: opp-v2: Fix example 3 CPU reg value
2026-04-03 10:34 [PATCH] dt-bindings: opp-v2: Fix example 3 CPU reg value Vivian Wang
2026-04-05 7:27 ` Krzysztof Kozlowski
2026-04-06 4:32 ` Viresh Kumar
@ 2026-04-06 22:44 ` Rob Herring (Arm)
2 siblings, 0 replies; 4+ messages in thread
From: Rob Herring (Arm) @ 2026-04-06 22:44 UTC (permalink / raw)
To: Vivian Wang
Cc: Krzysztof Kozlowski, Viresh Kumar, linux-kernel, linux-pm,
Viresh Kumar, devicetree, Nishanth Menon, Conor Dooley,
Stephen Boyd
On Fri, 03 Apr 2026 18:34:29 +0800, Vivian Wang wrote:
> Example 3 is a dual-cluster example, meaning that the CPU nodes should
> have reg values 0x0, 0x1, 0x100, 0x101. The example incorrectly uses
> decimal 0, 1, 100, 101 instead, which seems unintended. Use the correct
> hexadecimal values.
>
> Even though the value doesn't change for the first two CPUs, 0 and 1 in
> example 3 are changed to 0x0 and 0x1 respectively for consistency. Other
> examples all have reg less than 10, so they have not been changed.
>
> Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
> ---
> Found while trying to figure out if cpu@* unit addresses are supposed to
> be decimal or hexadecimal. This is AFAICT the only place in-tree where
> an arm/arm64 DTS uses multi-digit decimal. See also:
>
> - https://lore.kernel.org/devicetree-spec/00ddad5a-02f5-474e-af9c-11ce7716ddfc@iscas.ac.cn/
> - https://github.com/devicetree-org/devicetree-specification/issues/86
> ---
> Documentation/devicetree/bindings/opp/opp-v2.yaml | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
Applied, thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-04-06 22:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-03 10:34 [PATCH] dt-bindings: opp-v2: Fix example 3 CPU reg value Vivian Wang
2026-04-05 7:27 ` Krzysztof Kozlowski
2026-04-06 4:32 ` Viresh Kumar
2026-04-06 22:44 ` Rob Herring (Arm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®