1# Copyright (c) 2022 ITE Corporation. All Rights Reserved.
2# SPDX-License-Identifier: Apache-2.0
3
4description: ITE IT8XXX2 pin controller function node
5
6compatible: "ite,it8xxx2-pinctrl-func"
7
8include: base.yaml
9
10properties:
11  func3-gcr:
12    type: array
13
14  func3-en-mask:
15    type: array
16
17  func3-ext:
18    type: array
19    description: |
20      When the alternate setting is configured as func3, in addition to
21      the setting of func3-gcr, some pins require external setting.
22
23  func3-ext-mask:
24    type: array
25
26  func4-gcr:
27    type: array
28
29  func4-en-mask:
30    type: array
31
32  volt-sel:
33    type: array
34
35  volt-sel-mask:
36    type: array
37
38  pp-od-mask:
39    type: int
40    description: |
41      KSI[7:0] does not support push-pull and open-drain mode.
42      If KSO[17:0] is in KBS mode, setting 1 selects open-drain mode,
43      setting 0 selects push-pull mode.
44      If KSO[15:0] is in GPIO mode, then this bit is always disabled.
45
46  pullup-mask:
47    type: int
48    description: |
49      If KSI[7:0]/KSO[15:0] is in KBS mode , setting 1 enables the internal
50      pull-up (KSO[17:16] setting internal pull-up by GPIO port GPCR register).
51      If KSI[7:0]/KSO[15:0] is in GPIO mode, then this bit is always disabled.
52
53  gpio-group:
54    type: boolean
55    description: |
56      Default setting pin configure to alternate mode for all GPIO group pins
57      (include KSO[17:16]), otherwise setting pin configure to keyboard scan
58      mode for KSI[7:0] and KSO[15:0] pins.
59
60pinmux-cells:
61  - pin
62  - alt_func
63