On Fri, Aug 14, 2020 at 05:55:12PM +0200, Vincent Whitchurch wrote: > Add bindings for the pwm-gpio driver. > > Signed-off-by: Vincent Whitchurch <vincent.whitchurch@xxxxxxxx> > --- > .../devicetree/bindings/pwm/pwm-gpio.yaml | 29 +++++++++++++++++++ > 1 file changed, 29 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pwm/pwm-gpio.yaml > > diff --git a/Documentation/devicetree/bindings/pwm/pwm-gpio.yaml b/Documentation/devicetree/bindings/pwm/pwm-gpio.yaml > new file mode 100644 > index 000000000000..51941cd03955 > --- /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@xxxxxxxx> > + > +properties: > + compatible: > + enum: > + - pwm-gpio > + > + "#pwm-cells": > + const: 2 > + > + gpio: 'gpios' is the preferred form even if singular. > + maxItems: 1 > + description: GPIO to toggle. > + > +required: > + - compatible > + - "#pwm-cells" > + - gpio > + > +additionalProperties: false > -- > 2.25.1 >