File tree Expand file tree Collapse file tree 3 files changed +74
-0
lines changed Expand file tree Collapse file tree 3 files changed +74
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2025 ITE Corporation. All Rights Reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ description : IT8XXX2 Extreme Low Power Controller
5
+
6
+ compatible : " ite,it8xxx2-power-elpm"
7
+
8
+ include : [base.yaml, pinctrl-device.yaml]
9
+
10
+ properties :
11
+ reg :
12
+ required : true
13
+
14
+ pinctrl-0 :
15
+ required : true
16
+
17
+ pinctrl-names :
18
+ required : true
19
+
20
+ child-binding :
21
+ description : XLPIN configuration
22
+
23
+ properties :
24
+ reg :
25
+ type : int
26
+ description : the index of XLPIN
27
+
28
+ polarity :
29
+ type : string
30
+ enum : ["default", "low-falling", "high-rising"]
31
+ description : |
32
+ Polarity setting for this XLPIN:
33
+ - "default" disables it
34
+ - "low-falling" triggers on low/falling edge
35
+ - "high-rising" triggers on high/rising edge
Original file line number Diff line number Diff line change 27
27
/omit-if-no-ref/ i2c0_data_gpf3_default: i2c0_data_gpf3_default {
28
28
pinmuxs = <&pinctrlf 3 IT8XXX2_ALT_FUNC_1>;
29
29
};
30
+
31
+ /* VBAT-Power alternate function */
32
+ /omit-if-no-ref/ xlpin0_gpq0_default: xlpin0_gpq0_default {
33
+ pinmuxs = <&pinctrlq 0 IT8XXX2_ALT_FUNC_1>;
34
+ };
35
+ /omit-if-no-ref/ xlpin1_gpq1_default: xlpin1_gpq1_default {
36
+ pinmuxs = <&pinctrlq 1 IT8XXX2_ALT_FUNC_1>;
37
+ };
38
+ /omit-if-no-ref/ xlpin2_gpq2_default: xlpin2_gpq2_default {
39
+ pinmuxs = <&pinctrlq 2 IT8XXX2_ALT_FUNC_1>;
40
+ };
41
+ /omit-if-no-ref/ xlpin4_gpq4_default: xlpin4_gpq4_default {
42
+ pinmuxs = <&pinctrlq 4 IT8XXX2_ALT_FUNC_1>;
43
+ };
30
44
};
Original file line number Diff line number Diff line change 37
37
has-volt-sel = <0 0 0 0 0 0 0 0>;
38
38
#gpio-cells = <2>;
39
39
};
40
+
41
+ pinctrlq: pinctrl@f016e0 {
42
+ compatible = "ite,it8xxx2-pinctrl-func";
43
+ reg = <0x00f016e0 8 /* GPCR */
44
+ NO_FUNC 1>;
45
+ func3-gcr = <NO_FUNC NO_FUNC NO_FUNC NO_FUNC NO_FUNC
46
+ NO_FUNC NO_FUNC NO_FUNC>;
47
+ func3-en-mask = <0 0 0 0 0 0 0 0>;
48
+ func4-gcr = <NO_FUNC NO_FUNC NO_FUNC NO_FUNC NO_FUNC
49
+ NO_FUNC NO_FUNC NO_FUNC>;
50
+ func4-en-mask = <0 0 0 0 0 0 0 0>;
51
+ volt-sel = <NO_FUNC NO_FUNC NO_FUNC NO_FUNC NO_FUNC
52
+ NO_FUNC NO_FUNC NO_FUNC>;
53
+ volt-sel-mask = <0 0 0 0 0 0 0 0>;
54
+ #pinmux-cells = <2>;
55
+ gpio-group;
56
+ };
57
+
58
+ power_ctrl_elpm: power-ctrl-elpm@f03e00 {
59
+ compatible = "ite,it8xxx2-power-elpm";
60
+ reg = <0x00f03e00 0xfd>;
61
+ status = "disabled";
62
+ #address-cells = <1>;
63
+ #size-cells = <0>;
64
+ };
40
65
};
41
66
};
42
67
You can’t perform that action at this time.
0 commit comments