[PATCH v2 08/20] dt-bindings: mfd: twl4030: Document 64-cycle PWM

Krzysztof Kozlowski krzk at kernel.org
Tue Nov 24 06:40:47 PST 2026


On Tue, Nov 24, 2026 at 08:25:48AM +0100, H. Nikolaus Schaller wrote:
> Document the optional ti,twl4030-pwm-frame-64 property for the
> TWL4030 PWM controller. It selects the 64-clock-cycle frame instead
> of the default 128-cycle frame, doubling the output frequency and
> reducing duty-cycle resolution.
> 
> The selection is explicit because the driver does not know the PWM
> input clock rate and cannot derive the hardware frame length from a
> consumer-requested period. The shorter frame can reduce PWM LOW
> intervals during startup mode detection of LED drivers such as the
> TI TPS61160/61.
> 
> Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>
> ---
> 
> Notes:
>     Changes against V1:
>     - Revised commit message to focus on the binding and the reason
>       for explicit 64-cycle frame selection.
>     - Commit-message review assisted by ChatGPT.
> 
>  Documentation/devicetree/bindings/mfd/ti,twl.yaml | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/mfd/ti,twl.yaml b/Documentation/devicetree/bindings/mfd/ti,twl.yaml
> index 9cc3e4721612e..f458f0d80f2cd 100644
> --- a/Documentation/devicetree/bindings/mfd/ti,twl.yaml
> +++ b/Documentation/devicetree/bindings/mfd/ti,twl.yaml
> @@ -396,6 +396,15 @@ properties:
>        '#pwm-cells':
>          const: 2
>  
> +      ti,twl4030-pwm-frame-64:

Drop twl4030. Properties are not model specific, but should be re-usable
among all of devices from that vendor (when applicable).

> +        type: boolean
> +        description:
> +          TWL4030 only; not supported by TWL6030 PWM.

Don't repeat constraints in free form text. Implement proper dt-schema
for this.

> +          Select the short 64-clock-cycle PWM frame instead of the
> +          default 128-cycle frame, doubling the PWM frequency. Required
> +          for dimming inputs requiring short PWM low intervals during
> +          startup mode detection (e.g. TI TPS61160/61).

I don't get how TPS is related here, but if you mention other specific
device then I wonder - why isn't this deducible from the compatible? Or
you mean that PWM consumers might need it, depending on  the consumer?

But isn't this then dynamic choice - depending on PWM frequency the
consumer wants?

Best regards,
Krzysztof




More information about the linux-arm-kernel mailing list