1# Copyright (c) 2021 Nuvoton Technology Corporation.
2# SPDX-License-Identifier: Apache-2.0
3
4description: Nuvoton NCT38XX series I2C-based GPIO expander port
5
6compatible: "nuvoton,nct38xx-gpio-port"
7
8include: [gpio-controller.yaml, base.yaml]
9
10properties:
11  reg:
12    required: true
13
14  pin_mask:
15    type: int
16    required: true
17    description: |
18      Not every GPIOs are usable for different NCT38XX series. This property
19      indicates the usable GPIO mask.
20
21      NCT3808: <0xdc>
22      others: <0xff>
23
24  pinmux_mask:
25    type: int
26    description: |
27      NCT38XX series port 0 has Pin Multiplexing functionality. However, not
28      every GPIOs have pinmux controller functionality. This property
29      indicates the usable GPIO pinmux mask. For port 1, this property is
30      ignored.
31
32      NCT3807 port 0: <0xf7>
33      others: <0xff>
34
35  "#gpio-cells":
36    const: 2
37
38gpio-cells:
39  - pin
40  - flags
41