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

dt-bindings: gpio: add fcs,fxl6408

Add Fairchild FXL6408 8-bit I2C-controlled GPIO expander.

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.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

Emanuele Ghidoli and committed by
Bartosz Golaszewski
d41116f7 27a80bd0

+58
+58
Documentation/devicetree/bindings/gpio/fcs,fxl6408.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/fcs,fxl6408.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Fairchild FXL6408 I2C GPIO Expander 8 + 9 + maintainers: 10 + - Emanuele Ghidoli <emanuele.ghidoli@toradex.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - fcs,fxl6408 16 + 17 + reg: 18 + maxItems: 1 19 + 20 + "#gpio-cells": 21 + const: 2 22 + 23 + gpio-controller: true 24 + 25 + gpio-line-names: 26 + minItems: 1 27 + maxItems: 8 28 + 29 + patternProperties: 30 + "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": 31 + required: 32 + - gpio-hog 33 + 34 + required: 35 + - compatible 36 + - reg 37 + - gpio-controller 38 + - "#gpio-cells" 39 + 40 + additionalProperties: false 41 + 42 + examples: 43 + - | 44 + i2c { 45 + #address-cells = <1>; 46 + #size-cells = <0>; 47 + 48 + gpio_expander_43: gpio-expander@43 { 49 + compatible = "fcs,fxl6408"; 50 + reg = <0x43>; 51 + gpio-controller; 52 + #gpio-cells = <2>; 53 + gpio-line-names = "Wi-Fi_W_DISABLE", "Wi-Fi_WKUP_WLAN", 54 + "PWR_EN_+V3.3_WiFi_N", "PCIe_REF_CLK_EN", 55 + "USB_RESET_N", "USB_BYPASS_N", "Wi-Fi_PDn", 56 + "Wi-Fi_WKUP_BT"; 57 + }; 58 + };