]> www.infradead.org Git - linux.git/commitdiff
dt-bindings: pwm: amlogic: Add new bindings for meson A1 PWM
authorGeorge Stark <gnstark@salutedevices.com>
Wed, 10 Jul 2024 23:41:15 +0000 (02:41 +0300)
committerUwe Kleine-König <ukleinek@kernel.org>
Mon, 16 Sep 2024 13:24:59 +0000 (15:24 +0200)
The chip has 3 dual-channel PWM modules PWM_AB, PWM_CD, PWM_EF.

Signed-off-by: George Stark <gnstark@salutedevices.com>
Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com>
Acked-by: Conor Dooley <conor@kernel.org>
Link: https://lore.kernel.org/r/20240710234116.2370655-3-gnstark@salutedevices.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Documentation/devicetree/bindings/pwm/pwm-amlogic.yaml

index 267908c2bf7b86f48970fc25c7ba9fd903e9b332..e021cf59421a6ea417af4a43fedad89bdd23e686 100644 (file)
@@ -37,6 +37,10 @@ properties:
       - enum:
           - amlogic,meson8-pwm-v2
           - amlogic,meson-s4-pwm
+      - items:
+          - enum:
+              - amlogic,meson-a1-pwm
+          - const: amlogic,meson-s4-pwm
       - items:
           - enum:
               - amlogic,meson8b-pwm-v2
@@ -139,6 +143,16 @@ allOf:
       required:
         - clocks
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - amlogic,meson-a1-pwm
+    then:
+      required:
+        - power-domains
+
 additionalProperties: false
 
 examples: