Message ID | 20200902121236.20514-2-vincent.whitchurch@axis.com |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | GPIO PWM driver | expand |
Context | Check | Description |
---|---|---|
robh/checkpatch | success | |
robh/dt-meta-schema | success |
On Wed, 02 Sep 2020 14:12:35 +0200, Vincent Whitchurch wrote: > Add bindings for the pwm-gpio driver. > > Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com> > --- > .../devicetree/bindings/pwm/pwm-gpio.yaml | 29 +++++++++++++++++++ > 1 file changed, 29 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/pwm-gpio.yaml > Reviewed-by: Rob Herring <robh@kernel.org>
diff --git a/Documentation/devicetree/bindings/pwm/pwm-gpio.yaml b/Documentation/devicetree/bindings/pwm/pwm-gpio.yaml new file mode 100644 index 000000000000..85ae79d5dcff --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-gpio.yaml @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/pwm-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: GPIO-based PWM + +maintainers: + - Vincent Whitchurch <vincent.whitchurch@axis.com> + +properties: + compatible: + enum: + - pwm-gpio + + "#pwm-cells": + const: 2 + + gpios: + maxItems: 1 + description: GPIO to toggle. + +required: + - compatible + - "#pwm-cells" + - gpio + +additionalProperties: false
Add bindings for the pwm-gpio driver. Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com> --- .../devicetree/bindings/pwm/pwm-gpio.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-gpio.yaml