[PATCH 1/3] dt-bindings: pwm: imx-pwm: Add constraints for #pwm-cells
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Mon Nov 6 02:36:21 PST 2023
Hello,
[dropped Philippe Schenker from Cc as his email bounced in the past]
On Mon, Nov 06, 2023 at 10:52:03AM +0100, Alexander Stein wrote:
> Only fsl,imx1-pwm comptabile devices use #pwm-cells = <2>. Newer SoCs
> supportinverted PWM output, thus #pwm-cells needs to be set to 3.
>
> Signed-off-by: Alexander Stein <alexander.stein at ew.tq-group.com>
> ---
> .../devicetree/bindings/pwm/imx-pwm.yaml | 20 ++++++++++++++++---
> 1 file changed, 17 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pwm/imx-pwm.yaml b/Documentation/devicetree/bindings/pwm/imx-pwm.yaml
> index c01dff3b7f843..59a981c0f39ab 100644
> --- a/Documentation/devicetree/bindings/pwm/imx-pwm.yaml
> +++ b/Documentation/devicetree/bindings/pwm/imx-pwm.yaml
> @@ -9,9 +9,6 @@ title: Freescale i.MX PWM controller
> maintainers:
> - Philipp Zabel <p.zabel at pengutronix.de>
>
> -allOf:
> - - $ref: pwm.yaml#
> -
> properties:
> "#pwm-cells":
> description: |
> @@ -74,6 +71,23 @@ required:
>
> additionalProperties: false
>
> +allOf:
> + - $ref: pwm.yaml#
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: fsl,imx1-pwm
> + then:
> + properties:
> + "#pwm-cells":
> + enum: [2]
Given that arch/arm/boot/dts/nxp/imx/imx1.dtsi has:
pwm: pwm at 208000 {
#pwm-cells = <3>;
compatible = "fsl,imx1-pwm";
...
this looks wrong.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20231106/525806fd/attachment.sig>
More information about the linux-arm-kernel
mailing list