Skip to content

Commit 6b94ee6

Browse files
krzkthierryreding
authored andcommitted
dt-bindings: pwm: google,cros-ec: include generic pwm schema
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>
1 parent 657e54e commit 6b94ee6

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Documentation/devicetree/bindings/mfd/google,cros-ec.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ properties:
8989

9090
ec-pwm:
9191
$ref: "/schemas/pwm/google,cros-ec-pwm.yaml#"
92+
deprecated: true
93+
94+
pwm:
95+
$ref: "/schemas/pwm/google,cros-ec-pwm.yaml#"
9296

9397
keyboard-controller:
9498
$ref: "/schemas/input/google,cros-ec-keyb.yaml#"

Documentation/devicetree/bindings/pwm/google,cros-ec-pwm.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ description: |
1616
An EC PWM node should be only found as a sub-node of the EC node (see
1717
Documentation/devicetree/bindings/mfd/google,cros-ec.yaml).
1818
19+
allOf:
20+
- $ref: pwm.yaml#
21+
1922
properties:
2023
compatible:
2124
const: google,cros-ec-pwm
@@ -39,7 +42,7 @@ examples:
3942
compatible = "google,cros-ec-spi";
4043
reg = <0>;
4144
42-
cros_ec_pwm: ec-pwm {
45+
cros_ec_pwm: pwm {
4346
compatible = "google,cros-ec-pwm";
4447
#pwm-cells = <1>;
4548
};

0 commit comments

Comments
 (0)