dt-bindings: pwm: google,cros-ec: include generic pwm schema
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 14 Feb 2022 08:19:13 +0000 (09:19 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 24 Feb 2022 12:41:31 +0000 (13:41 +0100)
Include generic pwm.yaml schema, which enforces PWM node naming.  Keep
the old name in bindings as deprecated.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Documentation/devicetree/bindings/mfd/google,cros-ec.yaml
Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml

index d1f53bd449f7b2764d71acb84c53db2297d0dd24..0255b7028496ad7f8b8befac7f93e05dfe1c28f1 100644 (file)
@@ -89,6 +89,10 @@ properties:
 
   ec-pwm:
     $ref: "/schemas/pwm/google,cros-ec-pwm.yaml#"
+    deprecated: true
+
+  pwm:
+    $ref: "/schemas/pwm/google,cros-ec-pwm.yaml#"
 
   keyboard-controller:
     $ref: "/schemas/input/google,cros-ec-keyb.yaml#"
index 4cfbffd8414a5ae35e8b4dc3fcae4a071a671f85..7ab6912a845fcbf8a4fdefcde7fa96320d2761f8 100644 (file)
@@ -16,6 +16,9 @@ description: |
   An EC PWM node should be only found as a sub-node of the EC node (see
   Documentation/devicetree/bindings/mfd/google,cros-ec.yaml).
 
+allOf:
+  - $ref: pwm.yaml#
+
 properties:
   compatible:
     const: google,cros-ec-pwm
@@ -39,7 +42,7 @@ examples:
             compatible = "google,cros-ec-spi";
             reg = <0>;
 
-            cros_ec_pwm: ec-pwm {
+            cros_ec_pwm: pwm {
                 compatible = "google,cros-ec-pwm";
                 #pwm-cells = <1>;
             };