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
7title: Fairchild FXL6408 I2C GPIO Expander
8
9maintainers:
10  - Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
11
12properties:
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
29patternProperties:
30  "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$":
31    required:
32      - gpio-hog
33
34required:
35  - compatible
36  - reg
37  - gpio-controller
38  - "#gpio-cells"
39
40additionalProperties: false
41
42examples:
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    };
59