1# Copyright (c) 2020 Nuvoton Technology Corporation.
2# SPDX-License-Identifier: Apache-2.0
3
4description: Nuvoton, NPCX-GPIO node
5
6compatible: "nuvoton,npcx-gpio"
7
8include: [gpio-controller.yaml, base.yaml]
9
10properties:
11  reg:
12    required: true
13
14  index:
15    type: int
16    required: true
17    description: index of gpio device
18
19  wui-maps:
20    type: phandles
21    required: true
22    description: |
23        Mapping table between Wake-Up Input (WUI) and 8 IOs belong to this device.
24        Please notice not all IOs connect to WUIs.
25        In this case, it will be presented by wui_none.
26
27        For example the WUI mapping on NPCX7 GPIO8 would be
28           wui-maps = <&wui_io80 &wui_io81 &wui_io82 &wui_io83
29                       &wui_none &wui_none &wui_io86 &wui_io87>;
30
31  lvol-maps:
32    type: phandles
33    description: |
34        Mapping table between Low-Voltage controllers and 8 IOs belong to
35        this device. Please notice not all IOs support Low-Voltage detection.
36        In this case, it will be presented by lvol_none.
37
38        For example the LVOL mapping on NPCX7 GPIOC would be
39           lvol-maps = <&lvol_none &lvol_ioc1 &lvol_ioc2 &lvol_none
40                        &lvol_none &lvol_ioc5 &lvol_ioc6 &lvol_ioc7>;
41
42  "#gpio-cells":
43    const: 2
44
45gpio-cells:
46  - pin
47  - flags
48