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/adi,ds 4 $id: http://devicetree.org/schemas/gpio/adi,ds4520-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: DS4520 I2C GPIO expander 7 title: DS4520 I2C GPIO expander 8 8 9 maintainers: 9 maintainers: 10 - Okan Sahin <okan.sahin@analog.com> 10 - Okan Sahin <okan.sahin@analog.com> 11 11 12 properties: 12 properties: 13 compatible: 13 compatible: 14 enum: 14 enum: 15 - adi,ds4520-gpio 15 - adi,ds4520-gpio 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 ngpios: 25 ngpios: 26 minimum: 1 26 minimum: 1 27 maximum: 9 27 maximum: 9 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 - ngpios 34 - ngpios 35 35 36 additionalProperties: false 36 additionalProperties: false 37 37 38 examples: 38 examples: 39 - | 39 - | 40 i2c { 40 i2c { 41 #address-cells = <1>; 41 #address-cells = <1>; 42 #size-cells = <0>; 42 #size-cells = <0>; 43 43 44 gpio@50 { 44 gpio@50 { 45 compatible = "adi,ds4520-gpio"; 45 compatible = "adi,ds4520-gpio"; 46 reg = <0x50>; 46 reg = <0x50>; 47 ngpios = <9>; 47 ngpios = <9>; 48 gpio-controller; 48 gpio-controller; 49 #gpio-cells = <2>; 49 #gpio-cells = <2>; 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.