* [PATCH v3] dt-bindings: pwm: Convert NXP PCA9685 PWM controller to DT schema
[not found] <20261012140346.3065-1-deaner92.ref@yahoo.com>
@ 2026-10-12 14:03 ` Jeremy Dean Clifton
2026-10-15 20:23 ` Rob Herring (Arm)
2026-10-16 10:33 ` Uwe Kleine-König
0 siblings, 2 replies; 3+ messages in thread
From: Jeremy Dean Clifton @ 2026-10-12 14:03 UTC (permalink / raw)
To: Uwe Kleine-König, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-pwm, devicetree, linux-kernel, Jeremy Dean Clifton
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@yahoo.com>
---
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@yahoo.com/
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@yahoo.com/
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
diff --git a/Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.txt b/Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.txt
deleted file mode 100644
index f21b55c95738..000000000000
--- a/Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-NXP PCA9685 16-channel 12-bit PWM LED controller
-================================================
-
-Required properties:
- - compatible: "nxp,pca9685-pwm"
- - #pwm-cells: Should be 2. See pwm.yaml in this directory for a description of
- the cells format.
- The index 16 is the ALLCALL channel, that sets all PWM channels at the same
- time.
-
-Optional properties:
- - invert (bool): boolean to enable inverted logic
- - open-drain (bool): boolean to configure outputs with open-drain structure;
- if omitted use totem-pole structure
-
-Example:
-
-For LEDs that are directly connected to the PCA, the following setting is
-applicable:
-
-pca: pca@41 {
- compatible = "nxp,pca9685-pwm";
- #pwm-cells = <2>;
- reg = <0x41>;
- invert;
- open-drain;
-};
diff --git a/Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.yaml b/Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.yaml
new file mode 100644
index 000000000000..04d2ddd8f108
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/nxp,pca9685-pwm.yaml
@@ -0,0 +1,62 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pwm/nxp,pca9685-pwm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP PCA9685 16-channel 12-bit PWM LED controller
+
+maintainers:
+ - Jeremy Dean Clifton <deaner92@yahoo.com>
+
+allOf:
+ - $ref: pwm.yaml#
+
+properties:
+ compatible:
+ const: nxp,pca9685-pwm
+
+ reg:
+ maxItems: 1
+
+ "#pwm-cells":
+ const: 2
+ description:
+ The first cell is the PWM channel index, from 0 to 15, or 16 for the
+ ALLCALL channel, which sets all PWM channels at the same time. The
+ second cell is the PWM period in nanoseconds.
+
+ invert:
+ type: boolean
+ description:
+ Invert the logic state of all outputs (INVRT bit in the MODE2
+ register). The setting applies to the whole chip, not to individual
+ channels, and is typically used when the outputs drive an external
+ driver stage.
+
+ open-drain:
+ type: boolean
+ description:
+ Configure all outputs with an open-drain structure (OUTDRV bit in the
+ MODE2 register). If omitted, the outputs use a totem-pole structure.
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ pwm@41 {
+ compatible = "nxp,pca9685-pwm";
+ reg = <0x41>;
+ #pwm-cells = <2>;
+ invert;
+ open-drain;
+ };
+ };
base-commit: aac26bee2287c88af5be5a5ff96d783b19a28790
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3] dt-bindings: pwm: Convert NXP PCA9685 PWM controller to DT schema
2026-10-12 14:03 ` [PATCH v3] dt-bindings: pwm: Convert NXP PCA9685 PWM controller to DT schema Jeremy Dean Clifton
@ 2026-10-15 20:23 ` Rob Herring (Arm)
2026-10-16 10:33 ` Uwe Kleine-König
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2026-10-15 20:23 UTC (permalink / raw)
To: Jeremy Dean Clifton
Cc: devicetree, linux-pwm, linux-kernel, Conor Dooley,
Uwe Kleine-König, Krzysztof Kozlowski
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@yahoo.com>
> ---
> 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@yahoo.com/
> 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@yahoo.com/
>
> 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@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3] dt-bindings: pwm: Convert NXP PCA9685 PWM controller to DT schema
2026-10-12 14:03 ` [PATCH v3] dt-bindings: pwm: Convert NXP PCA9685 PWM controller to DT schema Jeremy Dean Clifton
2026-10-15 20:23 ` Rob Herring (Arm)
@ 2026-10-16 10:33 ` Uwe Kleine-König
1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2026-10-16 10:33 UTC (permalink / raw)
To: Jeremy Dean Clifton
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-pwm,
devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 255 bytes --]
Hello Jeremy,
On Mon, Oct 12, 2026 at 02:03:46PM +0000, Jeremy Dean Clifton wrote:
> +maintainers:
> + - Jeremy Dean Clifton <deaner92@yahoo.com>
What kind of commitment do you plan for this maintainer role? Do you
have the hardware?
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-16 10:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20261012140346.3065-1-deaner92.ref@yahoo.com>
2026-10-12 14:03 ` [PATCH v3] dt-bindings: pwm: Convert NXP PCA9685 PWM controller to DT schema Jeremy Dean Clifton
2026-10-15 20:23 ` Rob Herring (Arm)
2026-10-16 10:33 ` Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox