43 lines
716 B
YAML
43 lines
716 B
YAML
# 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: Generic software PWM for modulating GPIOs
|
|
|
|
maintainers:
|
|
- Stefan Wahren <wahrenst@gmx.net>
|
|
|
|
allOf:
|
|
- $ref: pwm.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
const: pwm-gpio
|
|
|
|
"#pwm-cells":
|
|
const: 3
|
|
|
|
gpios:
|
|
description:
|
|
GPIO to be modulated
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- "#pwm-cells"
|
|
- gpios
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
pwm {
|
|
#pwm-cells = <3>;
|
|
compatible = "pwm-gpio";
|
|
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
|
|
};
|