Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: gpio: ds4520: Add ADI DS4520

Add ADI DS4520 devicetree document.

Signed-off-by: Okan Sahin <okan.sahin@analog.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Okan Sahin and committed by
Bartosz Golaszewski
451c923d 291bc793

+51
+51
Documentation/devicetree/bindings/gpio/adi,ds4520-gpio.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/gpio/adi,ds4520-gpio.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: DS4520 I2C GPIO expander 8 + 9 + maintainers: 10 + - Okan Sahin <okan.sahin@analog.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - adi,ds4520-gpio 16 + 17 + reg: 18 + maxItems: 1 19 + 20 + gpio-controller: true 21 + 22 + "#gpio-cells": 23 + const: 2 24 + 25 + ngpios: 26 + minimum: 1 27 + maximum: 9 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - gpio-controller 33 + - "#gpio-cells" 34 + - ngpios 35 + 36 + additionalProperties: false 37 + 38 + examples: 39 + - | 40 + i2c { 41 + #address-cells = <1>; 42 + #size-cells = <0>; 43 + 44 + gpio@50 { 45 + compatible = "adi,ds4520-gpio"; 46 + reg = <0x50>; 47 + ngpios = <9>; 48 + gpio-controller; 49 + #gpio-cells = <2>; 50 + }; 51 + };