Re: [PATCH v4 1/4] dt-bindings: pwm: amlogic: Add new bindings for S6 S7 S7D
From: Uwe Kleine-König
Date: Mon Nov 30 2026 - 03:34:41 EST
On Thu, Aug 27, 2026 at 08:40:10AM +0000, Xianwei Zhao via B4 Relay wrote:
> From: Junyi Zhao <junyi.zhao@xxxxxxxxxxx>
>
> 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@xxxxxxxxxxx>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@xxxxxxxxxxxxxx>
> Reviewed-by: Alexandre Mergnat <amergnat@xxxxxxxxxxxx>
> Signed-off-by: Xianwei Zhao <xianwei.zhao@xxxxxxxxxxx>
> ---
> .../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
Attachment:
signature.asc
Description: PGP signature