1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 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/leds/irled/ 4 $id: http://devicetree.org/schemas/leds/irled/gpio-ir-tx.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: IR LED connected through GPIO pin 7 title: IR LED connected through GPIO pin 8 8 9 maintainers: 9 maintainers: 10 - Sean Young <sean@mess.org> 10 - Sean Young <sean@mess.org> 11 11 12 description: 12 description: 13 IR LED connected through GPIO pin which is u 13 IR LED connected through GPIO pin which is used as remote controller 14 transmitter. 14 transmitter. 15 15 16 properties: 16 properties: 17 compatible: 17 compatible: 18 const: gpio-ir-tx 18 const: gpio-ir-tx 19 19 20 gpios: 20 gpios: 21 maxItems: 1 21 maxItems: 1 22 22 23 required: 23 required: 24 - compatible 24 - compatible 25 - gpios 25 - gpios 26 26 27 additionalProperties: false 27 additionalProperties: false 28 28 29 examples: 29 examples: 30 - | 30 - | 31 #include <dt-bindings/gpio/gpio.h> 31 #include <dt-bindings/gpio/gpio.h> 32 32 33 irled { 33 irled { 34 compatible = "gpio-ir-tx"; 34 compatible = "gpio-ir-tx"; 35 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; 35 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; 36 }; 36 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.