brintos

brintos / linux-shallow public Read only

0
0
Text · 898 B · 1576c19 Raw
47 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/pwm/pwm-gpio.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Generic software PWM for modulating GPIOs8 9maintainers:10  - Stefan Wahren <wahrenst@gmx.net>11 12allOf:13  - $ref: pwm.yaml#14 15properties:16  compatible:17    const: pwm-gpio18 19  "#pwm-cells":20    const: 321    description:22      See pwm.yaml in this directory for a description of the cells format.23      The first cell which represents the PWM instance number must always24      be zero.25 26  gpios:27    description:28      GPIO to be modulated29    maxItems: 130 31required:32  - compatible33  - "#pwm-cells"34  - gpios35 36additionalProperties: false37 38examples:39  - |40    #include <dt-bindings/gpio/gpio.h>41 42    pwm {43        #pwm-cells = <3>;44        compatible = "pwm-gpio";45        gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;46    };47