File tree Expand file tree Collapse file tree 3 files changed +113
-0
lines changed
Expand file tree Collapse file tree 3 files changed +113
-0
lines changed Original file line number Diff line number Diff line change 338338 };
339339 };
340340
341+ it8801_mfd: it8801@38 {
342+ compatible = "ite,it8801-mfd";
343+ reg = <0x38>;
344+ irq-gpios = <&test_gpio 1 0>;
345+ #address-cells = <1>;
346+ #size-cells = <1>;
347+
348+ ioex_it8801_port0: it8801_port@0 {
349+ compatible = "ite,it8801-gpio";
350+ reg = <0x00 1 /* GPIPSR */
351+ 0x05 1 /* GPSOVR */
352+ 0x0a 8 /* GPCR */
353+ 0x32 1 /* GPISR */
354+ 0x37 1>; /* GPIER */
355+ gpio-controller;
356+ #gpio-cells = <2>;
357+ ngpios = <8>;
358+ pin-mask = <0xdb>;
359+ };
360+
361+ ioex_it8801_port1: it8801_port@1 {
362+ compatible = "ite,it8801-gpio";
363+ reg = <0x01 1 /* GPIPSR */
364+ 0x06 1 /* GPSOVR */
365+ 0x12 8 /* GPCR */
366+ 0x33 1 /* GPISR */
367+ 0x38 1>; /* GPIER */
368+ gpio-controller;
369+ #gpio-cells = <2>;
370+ ngpios = <8>;
371+ pin-mask = <0x3f>;
372+ };
373+
374+ ioex_it8801_port2: it8801_port@2 {
375+ compatible = "ite,it8801-gpio";
376+ reg = <0x02 1 /* GPIPSR */
377+ 0x07 1 /* GPSOVR */
378+ 0x1a 8 /* GPCR */
379+ 0x34 1 /* GPISR */
380+ 0x39 1>; /* GPIER */
381+ gpio-controller;
382+ #gpio-cells = <2>;
383+ ngpios = <8>;
384+ pin-mask = <0x0f>;
385+ };
386+ };
387+
341388 };
342389
343390 nct3807_alert_1 {
Original file line number Diff line number Diff line change 268268 irq-gpios = <&test_gpio 0 0>;
269269 rst-gpios = <&test_gpio 1 0>;
270270 };
271+
272+ it8801_mfd: it8801@38 {
273+ compatible = "ite,it8801-mfd";
274+ reg = <0x38>;
275+ irq-gpios = <&test_gpio 1 0>;
276+ #address-cells = <1>;
277+ #size-cells = <1>;
278+
279+ ioex_it8801_kbd: it8801_kbd@40 {
280+ compatible = "ite,it8801-kbd";
281+ reg = <0x40 1
282+ 0x41 1
283+ 0x42 1
284+ 0x43 1>;
285+ mfdctrl = <>;
286+ kso-mapping = <0 1 20 3 4 5 6
287+ 17 18 16 15 11 12>;
288+ row-size = <8>;
289+ col-size = <13>;
290+
291+ kscan_input: kscan-input {
292+ compatible = "zephyr,kscan-input";
293+ };
294+ };
295+ };
271296 };
272297
273298 spi@2 {
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2024 ITE Corporation. All Rights Reserved.
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ #include <ite/it8801-mfd-map.dtsi>
8+
9+ / {
10+ test {
11+ #address-cells = <1>;
12+ #size-cells = <1>;
13+
14+ test_i2c: i2c@11112222 {
15+ #address-cells = <1>;
16+ #size-cells = <0>;
17+ compatible = "vnd,i2c";
18+ reg = <0x11112222 0x1000>;
19+ status = "okay";
20+ clock-frequency = <100000>;
21+
22+ it8801_mfd: it8801@38 {
23+ compatible = "ite,it8801-mfd";
24+ reg = <0x38>;
25+ #address-cells = <1>;
26+ #size-cells = <1>;
27+
28+ ioex_it8801_pwm: it8801_pwm@90 {
29+ compatible = "ite,it8801-pwm";
30+ mfdctrl = <&pwm7_gp20_default>;
31+ reg = <0x90 1 /* PWMMCR */
32+ 0x94 1 /* PWMDCR */
33+ 0x96 1 /* PWMPRSL */
34+ 0x97 1>; /* PWMPRSM */
35+ channel = <7>;
36+ #pwm-cells = <3>;
37+ };
38+ };
39+ };
40+ };
41+ };
You can’t perform that action at this time.
0 commit comments