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