* [PATCH v1] dt-bindings: pwm: describe the cells in #pwm-cells in pwm.yaml
@ 2024-05-17 17:38 Conor Dooley
2024-05-18 21:49 ` Uwe Kleine-König
2024-05-20 20:37 ` Rob Herring (Arm)
0 siblings, 2 replies; 3+ messages in thread
From: Conor Dooley @ 2024-05-17 17:38 UTC (permalink / raw)
To: linux-pwm
Cc: conor, Conor Dooley, Chris Packham, Guenter Roeck,
Uwe Kleine-König, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, devicetree, linux-kernel
From: Conor Dooley <conor.dooley@microchip.com>
When commit 89650a1e3b6f ("dt-bindings: pwm: Convert PWM bindings
to json-schema") converted the pwm provider section of the text binding
to dt-schema it also updated all references to pwm.txt in pwm provider
bindings to pwm.yaml.
Most pwm provider bindings had a reference to pwm.txt as it contains a
description of what the cells in #pwm-cells are, albeit in the consumer
section of the document. Only information in the provider section of the
document was moved to the yaml binding, and it contains no information
about the cell format, making all references to it for the cell format
unhelpful.
Fixes: 89650a1e3b6f ("dt-bindings: pwm: Convert PWM bindings to json-schema")
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
I yoinked the wording from pwm.txt. Having "Typically" feels a bit
clumsy, but a given provider is free to override that order AFAIU.
CC: Chris Packham <Chris.Packham@alliedtelesis.co.nz>
CC: Guenter Roeck <linux@roeck-us.net>
CC: Uwe Kleine-König <ukleinek@kernel.org>
CC: Rob Herring <robh@kernel.org>
CC: Krzysztof Kozlowski <krzk+dt@kernel.org>
CC: Conor Dooley <conor+dt@kernel.org>
CC: linux-pwm@vger.kernel.org
CC: devicetree@vger.kernel.org
CC: linux-kernel@vger.kernel.org
---
Documentation/devicetree/bindings/pwm/pwm.yaml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/pwm/pwm.yaml b/Documentation/devicetree/bindings/pwm/pwm.yaml
index abd9fa873354..f2206ec3c7c4 100644
--- a/Documentation/devicetree/bindings/pwm/pwm.yaml
+++ b/Documentation/devicetree/bindings/pwm/pwm.yaml
@@ -16,8 +16,10 @@ properties:
pattern: "^pwm(@.*|-([0-9]|[1-9][0-9]+))?$"
"#pwm-cells":
- description:
- Number of cells in a PWM specifier.
+ description: |
+ Number of cells in a PWM specifier. Typically the cells represent, in
+ order: the chip-relative PWM number, the PWM period in nanoseconds and
+ optionally a number of flags (defined in <dt-bindings/pwm/pwm.h>).
required:
- "#pwm-cells"
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] dt-bindings: pwm: describe the cells in #pwm-cells in pwm.yaml
2024-05-17 17:38 [PATCH v1] dt-bindings: pwm: describe the cells in #pwm-cells in pwm.yaml Conor Dooley
@ 2024-05-18 21:49 ` Uwe Kleine-König
2024-05-20 20:37 ` Rob Herring (Arm)
1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2024-05-18 21:49 UTC (permalink / raw)
To: Conor Dooley
Cc: linux-pwm, Conor Dooley, Chris Packham, Guenter Roeck,
Uwe Kleine-König, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1392 bytes --]
On Fri, May 17, 2024 at 06:38:46PM +0100, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
>
> When commit 89650a1e3b6f ("dt-bindings: pwm: Convert PWM bindings
> to json-schema") converted the pwm provider section of the text binding
> to dt-schema it also updated all references to pwm.txt in pwm provider
> bindings to pwm.yaml.
>
> Most pwm provider bindings had a reference to pwm.txt as it contains a
> description of what the cells in #pwm-cells are, albeit in the consumer
> section of the document. Only information in the provider section of the
> document was moved to the yaml binding, and it contains no information
> about the cell format, making all references to it for the cell format
> unhelpful.
>
> Fixes: 89650a1e3b6f ("dt-bindings: pwm: Convert PWM bindings to json-schema")
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> ---
>
> I yoinked the wording from pwm.txt. Having "Typically" feels a bit
> clumsy, but a given provider is free to override that order AFAIU.
All drivers that have 3 cells use that order, some drivers use less and
skip different values.
The patch looks fine, thanks. Will apply it after the merge window.
Thanks
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] dt-bindings: pwm: describe the cells in #pwm-cells in pwm.yaml
2024-05-17 17:38 [PATCH v1] dt-bindings: pwm: describe the cells in #pwm-cells in pwm.yaml Conor Dooley
2024-05-18 21:49 ` Uwe Kleine-König
@ 2024-05-20 20:37 ` Rob Herring (Arm)
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2024-05-20 20:37 UTC (permalink / raw)
To: Conor Dooley
Cc: devicetree, Guenter Roeck, Uwe Kleine-König, linux-kernel,
Conor Dooley, Krzysztof Kozlowski, Chris Packham, linux-pwm,
Conor Dooley
On Fri, 17 May 2024 18:38:46 +0100, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
>
> When commit 89650a1e3b6f ("dt-bindings: pwm: Convert PWM bindings
> to json-schema") converted the pwm provider section of the text binding
> to dt-schema it also updated all references to pwm.txt in pwm provider
> bindings to pwm.yaml.
>
> Most pwm provider bindings had a reference to pwm.txt as it contains a
> description of what the cells in #pwm-cells are, albeit in the consumer
> section of the document. Only information in the provider section of the
> document was moved to the yaml binding, and it contains no information
> about the cell format, making all references to it for the cell format
> unhelpful.
>
> Fixes: 89650a1e3b6f ("dt-bindings: pwm: Convert PWM bindings to json-schema")
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> ---
>
> I yoinked the wording from pwm.txt. Having "Typically" feels a bit
> clumsy, but a given provider is free to override that order AFAIU.
>
> CC: Chris Packham <Chris.Packham@alliedtelesis.co.nz>
> CC: Guenter Roeck <linux@roeck-us.net>
> CC: Uwe Kleine-König <ukleinek@kernel.org>
> CC: Rob Herring <robh@kernel.org>
> CC: Krzysztof Kozlowski <krzk+dt@kernel.org>
> CC: Conor Dooley <conor+dt@kernel.org>
> CC: linux-pwm@vger.kernel.org
> CC: devicetree@vger.kernel.org
> CC: linux-kernel@vger.kernel.org
> ---
> Documentation/devicetree/bindings/pwm/pwm.yaml | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-20 20:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-17 17:38 [PATCH v1] dt-bindings: pwm: describe the cells in #pwm-cells in pwm.yaml Conor Dooley
2024-05-18 21:49 ` Uwe Kleine-König
2024-05-20 20:37 ` 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®