xref: /linux/Documentation/devicetree/bindings/gpio/fcs,fxl6408.yaml (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1d41116f7SEmanuele Ghidoli# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2d41116f7SEmanuele Ghidoli%YAML 1.2
3d41116f7SEmanuele Ghidoli---
4d41116f7SEmanuele Ghidoli$id: http://devicetree.org/schemas/gpio/fcs,fxl6408.yaml#
5d41116f7SEmanuele Ghidoli$schema: http://devicetree.org/meta-schemas/core.yaml#
6d41116f7SEmanuele Ghidoli
7d41116f7SEmanuele Ghidolititle: Fairchild FXL6408 I2C GPIO Expander
8d41116f7SEmanuele Ghidoli
9d41116f7SEmanuele Ghidolimaintainers:
10d41116f7SEmanuele Ghidoli  - Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
11d41116f7SEmanuele Ghidoli
12d41116f7SEmanuele Ghidoliproperties:
13d41116f7SEmanuele Ghidoli  compatible:
14d41116f7SEmanuele Ghidoli    enum:
15d41116f7SEmanuele Ghidoli      - fcs,fxl6408
16d41116f7SEmanuele Ghidoli
17d41116f7SEmanuele Ghidoli  reg:
18d41116f7SEmanuele Ghidoli    maxItems: 1
19d41116f7SEmanuele Ghidoli
20d41116f7SEmanuele Ghidoli  "#gpio-cells":
21d41116f7SEmanuele Ghidoli    const: 2
22d41116f7SEmanuele Ghidoli
23d41116f7SEmanuele Ghidoli  gpio-controller: true
24d41116f7SEmanuele Ghidoli
25d41116f7SEmanuele Ghidoli  gpio-line-names:
26d41116f7SEmanuele Ghidoli    minItems: 1
27d41116f7SEmanuele Ghidoli    maxItems: 8
28d41116f7SEmanuele Ghidoli
29d41116f7SEmanuele GhidolipatternProperties:
30d41116f7SEmanuele Ghidoli  "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$":
31*0cbda049SKrzysztof Kozlowski    type: object
32d41116f7SEmanuele Ghidoli    required:
33d41116f7SEmanuele Ghidoli      - gpio-hog
34d41116f7SEmanuele Ghidoli
35d41116f7SEmanuele Ghidolirequired:
36d41116f7SEmanuele Ghidoli  - compatible
37d41116f7SEmanuele Ghidoli  - reg
38d41116f7SEmanuele Ghidoli  - gpio-controller
39d41116f7SEmanuele Ghidoli  - "#gpio-cells"
40d41116f7SEmanuele Ghidoli
41d41116f7SEmanuele GhidoliadditionalProperties: false
42d41116f7SEmanuele Ghidoli
43d41116f7SEmanuele Ghidoliexamples:
44d41116f7SEmanuele Ghidoli  - |
45d41116f7SEmanuele Ghidoli    i2c {
46d41116f7SEmanuele Ghidoli        #address-cells = <1>;
47d41116f7SEmanuele Ghidoli        #size-cells = <0>;
48d41116f7SEmanuele Ghidoli
49d41116f7SEmanuele Ghidoli        gpio_expander_43: gpio-expander@43 {
50d41116f7SEmanuele Ghidoli            compatible = "fcs,fxl6408";
51d41116f7SEmanuele Ghidoli            reg = <0x43>;
52d41116f7SEmanuele Ghidoli            gpio-controller;
53d41116f7SEmanuele Ghidoli            #gpio-cells = <2>;
54d41116f7SEmanuele Ghidoli            gpio-line-names = "Wi-Fi_W_DISABLE", "Wi-Fi_WKUP_WLAN",
55d41116f7SEmanuele Ghidoli                              "PWR_EN_+V3.3_WiFi_N", "PCIe_REF_CLK_EN",
56d41116f7SEmanuele Ghidoli                              "USB_RESET_N", "USB_BYPASS_N", "Wi-Fi_PDn",
57d41116f7SEmanuele Ghidoli                              "Wi-Fi_WKUP_BT";
58d41116f7SEmanuele Ghidoli        };
59d41116f7SEmanuele Ghidoli    };
60