1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/pwm/google,cros-ec-pwm.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: PWM controlled by ChromeOS EC
8
9maintainers:
10  - Thierry Reding <thierry.reding@gmail.com>
11  - '"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>'
12
13description: |
14  Google's ChromeOS EC PWM is a simple PWM attached to the Embedded Controller
15  (EC) and controlled via a host-command interface.
16  An EC PWM node should be only found as a sub-node of the EC node (see
17  Documentation/devicetree/bindings/mfd/google,cros-ec.yaml).
18
19allOf:
20  - $ref: pwm.yaml#
21
22properties:
23  compatible:
24    const: google,cros-ec-pwm
25  "#pwm-cells":
26    description: The cell specifies the PWM index.
27    const: 1
28
29required:
30  - compatible
31  - '#pwm-cells'
32
33additionalProperties: false
34
35examples:
36  - |
37    spi {
38        #address-cells = <1>;
39        #size-cells = <0>;
40
41        cros-ec@0 {
42            compatible = "google,cros-ec-spi";
43            reg = <0>;
44
45            cros_ec_pwm: pwm {
46                compatible = "google,cros-ec-pwm";
47                #pwm-cells = <1>;
48            };
49        };
50    };
51