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/gpio/gpio-t 4 $id: http://devicetree.org/schemas/gpio/gpio-tpic2810.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: TPIC2810 GPIO controller 7 title: TPIC2810 GPIO controller 8 8 9 maintainers: 9 maintainers: 10 - Aswath Govindraju <a-govindraju@ti.com> 10 - Aswath Govindraju <a-govindraju@ti.com> 11 11 12 properties: 12 properties: 13 compatible: 13 compatible: 14 enum: 14 enum: 15 - ti,tpic2810 15 - ti,tpic2810 16 16 17 reg: 17 reg: 18 maxItems: 1 18 maxItems: 1 19 19 20 gpio-controller: true 20 gpio-controller: true 21 21 22 "#gpio-cells": 22 "#gpio-cells": 23 const: 2 23 const: 2 24 24 25 gpio-line-names: 25 gpio-line-names: 26 minItems: 1 26 minItems: 1 27 maxItems: 32 27 maxItems: 32 28 28 29 required: 29 required: 30 - compatible 30 - compatible 31 - reg 31 - reg 32 - gpio-controller 32 - gpio-controller 33 - "#gpio-cells" 33 - "#gpio-cells" 34 34 35 additionalProperties: false 35 additionalProperties: false 36 36 37 examples: 37 examples: 38 - | 38 - | 39 #include <dt-bindings/gpio/gpio.h> 39 #include <dt-bindings/gpio/gpio.h> 40 40 41 i2c { 41 i2c { 42 #address-cells = <1>; 42 #address-cells = <1>; 43 #size-cells = <0>; 43 #size-cells = <0>; 44 gpio@60 { 44 gpio@60 { 45 compatible = "ti,tpic2810"; 45 compatible = "ti,tpic2810"; 46 reg = <0x60>; 46 reg = <0x60>; 47 gpio-controller; 47 gpio-controller; 48 #gpio-cells = <2>; 48 #gpio-cells = <2>; 49 gpio-line-names = "LED A", "LED B" 49 gpio-line-names = "LED A", "LED B", "LED C"; 50 }; 50 }; 51 }; 51 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.