[PATCH v4 1/4] dt-bindings: pwm: amlogic: Add new bindings for S6 S7 S7D

Uwe Kleine-König ukleinek at kernel.org
Mon Nov 30 00:34:27 PST 2026


On Thu, Aug 27, 2026 at 08:40:10AM +0000, Xianwei Zhao via B4 Relay wrote:
> From: Junyi Zhao <junyi.zhao at amlogic.com>
> 
> Amlogic S7/S7D/S6 different from the previous SoCs, a controller
> includes one pwm, at the same time, the controller has only one
> input clock source.
> 
> Signed-off-by: Junyi Zhao <junyi.zhao at amlogic.com>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski at oss.qualcomm.com>
> Reviewed-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
> Reviewed-by: Alexandre Mergnat <amergnat at baylibre.com>
> Signed-off-by: Xianwei Zhao <xianwei.zhao at amlogic.com>
> ---
>  .../devicetree/bindings/pwm/pwm-amlogic.yaml          | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
> index c337d85da40f..93fa97f4011b 100644
> --- a/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
> +++ b/Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml
> @@ -37,6 +37,7 @@ properties:
>        - enum:
>            - amlogic,meson8-pwm-v2
>            - amlogic,meson-s4-pwm
> +          - amlogic,s7-pwm
>        - items:
>            - enum:
>                - amlogic,a4-pwm
> @@ -45,6 +46,11 @@ properties:
>                - amlogic,t7-pwm
>                - amlogic,meson-a1-pwm
>            - const: amlogic,meson-s4-pwm
> +      - items:
> +          - enum:
> +              - amlogic,s6-pwm
> +              - amlogic,s7d-pwm
> +          - const: amlogic,s7-pwm
>        - items:
>            - enum:
>                - amlogic,meson8b-pwm-v2
> @@ -146,6 +152,19 @@ allOf:
>          clock-names: false
>        required:
>          - clocks
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            enum:
> +              - amlogic,s7-pwm
> +    then:
> +      properties:
> +        clocks:
> +          maxItems: 1
> +        clock-names: false

The clock doesn't have a name? It's fine for me to keep as suggested in
this patch, but maybe it would be cleaner to state a name just to make
it easier to match to the reference for a human?!

Best regards
Uwe
-------------- 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/20261130/22dfb858/attachment.sig>


More information about the linux-arm-kernel mailing list