1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/pwm/pwm-gpi 4 $id: http://devicetree.org/schemas/pwm/pwm-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Generic software PWM for modulating GPI 7 title: Generic software PWM for modulating GPIOs 8 8 9 maintainers: 9 maintainers: 10 - Stefan Wahren <wahrenst@gmx.net> 10 - Stefan Wahren <wahrenst@gmx.net> 11 11 12 allOf: 12 allOf: 13 - $ref: pwm.yaml# 13 - $ref: pwm.yaml# 14 14 15 properties: 15 properties: 16 compatible: 16 compatible: 17 const: pwm-gpio 17 const: pwm-gpio 18 18 19 "#pwm-cells": 19 "#pwm-cells": 20 const: 3 20 const: 3 21 description: 21 description: 22 See pwm.yaml in this directory for a des 22 See pwm.yaml in this directory for a description of the cells format. 23 The first cell which represents the PWM 23 The first cell which represents the PWM instance number must always 24 be zero. 24 be zero. 25 25 26 gpios: 26 gpios: 27 description: 27 description: 28 GPIO to be modulated 28 GPIO to be modulated 29 maxItems: 1 29 maxItems: 1 30 30 31 required: 31 required: 32 - compatible 32 - compatible 33 - "#pwm-cells" 33 - "#pwm-cells" 34 - gpios 34 - gpios 35 35 36 additionalProperties: false 36 additionalProperties: false 37 37 38 examples: 38 examples: 39 - | 39 - | 40 #include <dt-bindings/gpio/gpio.h> 40 #include <dt-bindings/gpio/gpio.h> 41 41 42 pwm { 42 pwm { 43 #pwm-cells = <3>; 43 #pwm-cells = <3>; 44 compatible = "pwm-gpio"; 44 compatible = "pwm-gpio"; 45 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; 45 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; 46 }; 46 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.