dt-bindings: google,cros-ec-pwm: Add the new -type compatible
authorFabio Baltieri <fabiobaltieri@chromium.org>
Thu, 28 Apr 2022 10:04:20 +0000 (10:04 +0000)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 20 May 2022 14:39:39 +0000 (16:39 +0200)
Update google,cros-ec-pwm node documentation to mention the
google,cros-ec-pwm-type compatible as a valid alternative.

Signed-off-by: Fabio Baltieri <fabiobaltieri@chromium.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml

index 7ab6912..c8577bd 100644 (file)
@@ -21,7 +21,14 @@ allOf:
 
 properties:
   compatible:
-    const: google,cros-ec-pwm
+    oneOf:
+      - description: PWM controlled using EC_PWM_TYPE_GENERIC channels.
+        items:
+          - const: google,cros-ec-pwm
+      - description: PWM controlled using CROS_EC_PWM_DT_<...> types.
+        items:
+          - const: google,cros-ec-pwm-type
+
   "#pwm-cells":
     description: The cell specifies the PWM index.
     const: 1