WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / pwm / google,cros-ec-pwm.yaml
blob4cfbffd8414a5ae35e8b4dc3fcae4a071a671f85
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#
7 title: PWM controlled by ChromeOS EC
9 maintainers:
10   - Thierry Reding <thierry.reding@gmail.com>
11   - '"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>'
13 description: |
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).
19 properties:
20   compatible:
21     const: google,cros-ec-pwm
22   "#pwm-cells":
23     description: The cell specifies the PWM index.
24     const: 1
26 required:
27   - compatible
28   - '#pwm-cells'
30 additionalProperties: false
32 examples:
33   - |
34     spi {
35         #address-cells = <1>;
36         #size-cells = <0>;
38         cros-ec@0 {
39             compatible = "google,cros-ec-spi";
40             reg = <0>;
42             cros_ec_pwm: ec-pwm {
43                 compatible = "google,cros-ec-pwm";
44                 #pwm-cells = <1>;
45             };
46         };
47     };