Re: [PATCH v3] dt-bindings: pwm: Convert NXP PCA9685 PWM controller to DT schema
From: Rob Herring (Arm)
Date: Thu Oct 15 2026 - 16:28:04 EST
On Mon, 12 Oct 2026 14:03:46 +0000, Jeremy Dean Clifton wrote:
> Convert the NXP PCA9685 PWM controller binding to DT schema format.
>
> Changes from the text binding:
>
> Document the 'reg' property and make it required. It was missing
> from the text binding, although the example used it and the device
> cannot work without the I2C address.
>
> Rename the example node to the generic 'pwm', as required by
> pwm.yaml.
>
> Describe both cells of the PWM specifier, and state that 'invert'
> and 'open-drain' apply to all outputs, as per the datasheet (INVRT
> and OUTDRV bits in MODE2).
>
> Assisted-by: LLM
> Signed-off-by: Jeremy Dean Clifton <deaner92@xxxxxxxxx>
> ---
> Changes in v3:
> - Full name in From, Signed-off-by and maintainers. (Jeremy Dean
> Clifton)
> v2:
> https://lore.kernel.org/all/0aabb9f2-a144-4267-b67e-a0972d228f2a@xxxxxxxxx/
> though the storage width was widened.
> - Use the same name in 'maintainers' as in the Signed-off-by.
>
> v1:
> https://lore.kernel.org/all/20261006033518.34332-1-deaner92@xxxxxxxxx/
>
> The schema and commit message were drafted with AI assistant.
> I verified each property against the driver source, the
> PCA9685 datasheet and the binding. Passes make dt_binding_check.
>
> .../bindings/pwm/nxp,pca9685-pwm.txt | 27 --------
> .../bindings/pwm/nxp,pca9685-pwm.yaml | 62 +++++++++++++++++++
> 2 files changed, 62 insertions(+), 27 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.txt
> create mode 100644 Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.yaml
>
Reviewed-by: Rob Herring (Arm) <robh@xxxxxxxxxx>