Skip to contentSkip to conversation

dt-bindings: timer: add #size-cells 2 for ARM

PATCH In review David Heidelberg 3 participants 3 messages Dec 15, 2021 – Dec 16, 2021

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

PATCH 1/1 dt-bindings: timer: add #size-cells 2 for ARM

It's already widely used by dt-schemas, so I blindly assume it's correct.

Fixes warnings as:
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: timer@17c90000: #size-cells:0:0: 1 was expected
From schema: Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml

---
 .../devicetree/bindings/timer/arm,arch_timer_mmio.yaml          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml +1 -1
index cd2176cad53a..c061bb90b8e7 100644
@@ -30,7 +30,7 @@ properties:
     enum: [1, 2]
 
   '#size-cells':
-    const: 1
+    enum: [1, 2]
 
   ranges: true
 
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · David Heidelberg

It's already widely used by dt-schemas, so I blindly assume it's correct.

Fixes warnings as:
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: timer@17c90000: #size-cells:0:0: 1 was expected
From schema: Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml

FWIW, that makes sense to me, so:

I assume Rob will pick this (or otherwise correct me).

Thanks,
Mark.

Quoted 20 lines
---
 .../devicetree/bindings/timer/arm,arch_timer_mmio.yaml          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml +1 -1
index cd2176cad53a..c061bb90b8e7 100644
@@ -30,7 +30,7 @@ properties:
     enum: [1, 2]
 
   '#size-cells':
-    const: 1
+    enum: [1, 2]
 
   ranges: true
 
Signature · 1 line
2.34.1
#2 lore raw
In reply to David Heidelberg
Quoted 6 lines · David Heidelberg

It's already widely used by dt-schemas, so I blindly assume it's correct.

Fixes warnings as:
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: timer@17c90000: #size-cells:0:0: 1 was expected
From schema: Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml

That's somewhat on purpose. There's no reason the timer needs >32-bits of address or size. Sadly, QCom has ignored the warnings and just copy-n-pasted the same thing over and over.

Quoted 22 lines
---
 .../devicetree/bindings/timer/arm,arch_timer_mmio.yaml          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml +1 -2
index cd2176cad53a..c061bb90b8e7 100644
@@ -30,7 +30,7 @@ properties:
     enum: [1, 2]
 
   '#size-cells':
-    const: 1
+    enum: [1, 2]
 
   ranges: true
 
--

2.34.1