brintos

brintos / linux-shallow public Read only

0
0
Text · 1.4 KiB · f7bc84b Raw
58 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---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 EC8 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 Controller15  (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 (see17  Documentation/devicetree/bindings/mfd/google,cros-ec.yaml).18 19allOf:20  - $ref: pwm.yaml#21 22properties:23  compatible:24    oneOf:25      - description: PWM controlled using EC_PWM_TYPE_GENERIC channels.26        items:27          - const: google,cros-ec-pwm28      - description: PWM controlled using CROS_EC_PWM_DT_<...> types.29        items:30          - const: google,cros-ec-pwm-type31 32  "#pwm-cells":33    description: The cell specifies the PWM index.34    const: 135 36required:37  - compatible38 39additionalProperties: false40 41examples:42  - |43    spi {44        #address-cells = <1>;45        #size-cells = <0>;46 47        cros-ec@0 {48            compatible = "google,cros-ec-spi";49            reg = <0>;50            interrupts = <101 0>;51 52            cros_ec_pwm: pwm {53                compatible = "google,cros-ec-pwm";54                #pwm-cells = <1>;55            };56        };57    };58