You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
FROMLIST: Documentation: pwm: Add bindings for PWM modulated by GPIO
Change-Id: I17e84d79f32417c98485bcbc51bbd8fdf4871eb9 Signed-off-by: Nicola Di Lieto <nicola.dilieto@gmail.com> Co-developed-by: Stefan Wahren <wahrenst@gmx.net> Signed-off-by: Stefan Wahren <wahrenst@gmx.net> Signed-off-by: Damon Ding <damon.ding@rock-chips.com> (cherry picked from https://patchwork.ozlabs.org/project/linux-gpio/patch/20240204220851.4783-2-wahrenst@gmx.net/)
This commit is contained in:
42
Documentation/devicetree/bindings/pwm/pwm-gpio.yaml
Normal file
42
Documentation/devicetree/bindings/pwm/pwm-gpio.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
# 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>;
|
||||
};
|
||||
Reference in New Issue
Block a user