0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/pwm/google,cros-ec-pwm.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: PWM controlled by ChromeOS EC
0008
0009 maintainers:
0010 - Thierry Reding <thierry.reding@gmail.com>
0011 - '"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>'
0012
0013 description: |
0014 Google's ChromeOS EC PWM is a simple PWM attached to the Embedded Controller
0015 (EC) and controlled via a host-command interface.
0016 An EC PWM node should be only found as a sub-node of the EC node (see
0017 Documentation/devicetree/bindings/mfd/google,cros-ec.yaml).
0018
0019 allOf:
0020 - $ref: pwm.yaml#
0021
0022 properties:
0023 compatible:
0024 oneOf:
0025 - description: PWM controlled using EC_PWM_TYPE_GENERIC channels.
0026 items:
0027 - const: google,cros-ec-pwm
0028 - description: PWM controlled using CROS_EC_PWM_DT_<...> types.
0029 items:
0030 - const: google,cros-ec-pwm-type
0031
0032 "#pwm-cells":
0033 description: The cell specifies the PWM index.
0034 const: 1
0035
0036 required:
0037 - compatible
0038 - '#pwm-cells'
0039
0040 additionalProperties: false
0041
0042 examples:
0043 - |
0044 spi {
0045 #address-cells = <1>;
0046 #size-cells = <0>;
0047
0048 cros-ec@0 {
0049 compatible = "google,cros-ec-spi";
0050 reg = <0>;
0051
0052 cros_ec_pwm: pwm {
0053 compatible = "google,cros-ec-pwm";
0054 #pwm-cells = <1>;
0055 };
0056 };
0057 };