Skip to content

Commit 1b7170b

Browse files
Chenhongrenkartben
authored andcommitted
dts: ite: it82000: add pinctrl_q and power_ctrl_elpm nodes
as title. Signed-off-by: Ren Chen <[email protected]>
1 parent bdb5c30 commit 1b7170b

File tree

3 files changed

+74
-0
lines changed

3 files changed

+74
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

dts/riscv/ite/it82000-pinctrl-map.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,18 @@
2727
/omit-if-no-ref/ i2c0_data_gpf3_default: i2c0_data_gpf3_default {
2828
pinmuxs = <&pinctrlf 3 IT8XXX2_ALT_FUNC_1>;
2929
};
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+
};
3044
};

dts/riscv/ite/it82000.dtsi

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,31 @@
3737
has-volt-sel = <0 0 0 0 0 0 0 0>;
3838
#gpio-cells = <2>;
3939
};
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+
};
4065
};
4166
};
4267

0 commit comments

Comments
 (0)