All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: timer: armv7: Don't sanction address/size-cells values
@ 2023-03-08  1:28 Konrad Dybcio
  2023-03-16 22:47 ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Konrad Dybcio @ 2023-03-08  1:28 UTC (permalink / raw)
  To: linux-arm-msm, andersson, agross
  Cc: marijn.suijten, Konrad Dybcio, Daniel Lezcano, Thomas Gleixner,
	Rob Herring, Krzysztof Kozlowski, Marc Zyngier, Mark Rutland,
	linux-kernel, devicetree

The driver itself does not read the -cells values (and frankly, it
shouldn't), so there's little sense in only allowing [1, 2] x [1].
Allow any values.

Fixes: 4d2bb3e65035 ("dt-bindings: timer: Convert ARM timer bindings to json-schema")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 .../devicetree/bindings/timer/arm,arch_timer_mmio.yaml      | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml b/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml
index f6efa48c4256..236e2a05c1ad 100644
--- a/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml
+++ b/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml
@@ -26,11 +26,9 @@ properties:
     maxItems: 1
     description: The control frame base address
 
-  '#address-cells':
-    enum: [1, 2]
+  '#address-cells': true
 
-  '#size-cells':
-    const: 1
+  '#size-cells': true
 
   ranges: true
 
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: timer: armv7: Don't sanction address/size-cells values
  2023-03-08  1:28 [PATCH] dt-bindings: timer: armv7: Don't sanction address/size-cells values Konrad Dybcio
@ 2023-03-16 22:47 ` Rob Herring
  2023-03-17  0:20   ` Konrad Dybcio
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2023-03-16 22:47 UTC (permalink / raw)
  To: Konrad Dybcio
  Cc: linux-arm-msm, andersson, agross, marijn.suijten, Daniel Lezcano,
	Thomas Gleixner, Krzysztof Kozlowski, Marc Zyngier, Mark Rutland,
	linux-kernel, devicetree

On Wed, Mar 08, 2023 at 02:28:53AM +0100, Konrad Dybcio wrote:
> The driver itself does not read the -cells values (and frankly, it
> shouldn't), 

Agreed, because this is standard address translation and only the DT 
core address functions should read cells props.

> so there's little sense in only allowing [1, 2] x [1].

Why does the timer need 64-bits of address space? It doesn't, so that's 
the reason for restricting it.

> Allow any values.
> 
> Fixes: 4d2bb3e65035 ("dt-bindings: timer: Convert ARM timer bindings to json-schema")
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> ---
>  .../devicetree/bindings/timer/arm,arch_timer_mmio.yaml      | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml b/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml
> index f6efa48c4256..236e2a05c1ad 100644
> --- a/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml
> +++ b/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml
> @@ -26,11 +26,9 @@ properties:
>      maxItems: 1
>      description: The control frame base address
>  
> -  '#address-cells':
> -    enum: [1, 2]
> +  '#address-cells': true

So 3 address cells is valid?

Until recently (and not yet in a dtschema release), there was no 
constraint on #address-cells or #size-cells values other than the 
#.*-cells constraint of 8. Now it is 3 and 2.

>  
> -  '#size-cells':
> -    const: 1
> +  '#size-cells': true
>  
>    ranges: true
>  
> -- 
> 2.39.2
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: timer: armv7: Don't sanction address/size-cells values
  2023-03-16 22:47 ` Rob Herring
@ 2023-03-17  0:20   ` Konrad Dybcio
  0 siblings, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2023-03-17  0:20 UTC (permalink / raw)
  To: Rob Herring
  Cc: linux-arm-msm, andersson, agross, marijn.suijten, Daniel Lezcano,
	Thomas Gleixner, Krzysztof Kozlowski, Marc Zyngier, Mark Rutland,
	linux-kernel, devicetree



On 16.03.2023 23:47, Rob Herring wrote:
> On Wed, Mar 08, 2023 at 02:28:53AM +0100, Konrad Dybcio wrote:
>> The driver itself does not read the -cells values (and frankly, it
>> shouldn't), 
> 
> Agreed, because this is standard address translation and only the DT 
> core address functions should read cells props.
> 
>> so there's little sense in only allowing [1, 2] x [1].
> 
> Why does the timer need 64-bits of address space? It doesn't, so that's 
> the reason for restricting it.
> 
>> Allow any values.
>>
>> Fixes: 4d2bb3e65035 ("dt-bindings: timer: Convert ARM timer bindings to json-schema")
>> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
>> ---
>>  .../devicetree/bindings/timer/arm,arch_timer_mmio.yaml      | 6 ++----
>>  1 file changed, 2 insertions(+), 4 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml b/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml
>> index f6efa48c4256..236e2a05c1ad 100644
>> --- a/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml
>> +++ b/Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml
>> @@ -26,11 +26,9 @@ properties:
>>      maxItems: 1
>>      description: The control frame base address
>>  
>> -  '#address-cells':
>> -    enum: [1, 2]
>> +  '#address-cells': true
> 
> So 3 address cells is valid?
> 
> Until recently (and not yet in a dtschema release), there was no 
> constraint on #address-cells or #size-cells values other than the 
> #.*-cells constraint of 8. Now it is 3 and 2.
Okay, I didn't know that. I suppose we can forget about this patch.

Konrad
> 
>>  
>> -  '#size-cells':
>> -    const: 1
>> +  '#size-cells': true
>>  
>>    ranges: true
>>  
>> -- 
>> 2.39.2
>>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-17  0:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08  1:28 [PATCH] dt-bindings: timer: armv7: Don't sanction address/size-cells values Konrad Dybcio
2023-03-16 22:47 ` Rob Herring
2023-03-17  0:20   ` Konrad Dybcio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.