tests: drivers: build_all: Add IT8801 mfd drivers test
Add build tests for the IT8801 MFD drivers, including GPIO, Input and PWM functionalities. GPIO, Input test: west build -p always -b native_sim PWM test: west build -p always -b it82xx2_evb Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
This commit is contained in:
parent
788bca2ea8
commit
e7b7356dc4
3 changed files with 113 additions and 0 deletions
|
@ -338,6 +338,53 @@
|
|||
};
|
||||
};
|
||||
|
||||
it8801_mfd: it8801@38 {
|
||||
compatible = "ite,it8801-mfd";
|
||||
reg = <0x38>;
|
||||
irq-gpios = <&test_gpio 1 0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
ioex_it8801_port0: it8801_port@0 {
|
||||
compatible = "ite,it8801-gpio";
|
||||
reg = <0x00 1 /* GPIPSR */
|
||||
0x05 1 /* GPSOVR */
|
||||
0x0a 8 /* GPCR */
|
||||
0x32 1 /* GPISR */
|
||||
0x37 1>; /* GPIER */
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <8>;
|
||||
pin-mask = <0xdb>;
|
||||
};
|
||||
|
||||
ioex_it8801_port1: it8801_port@1 {
|
||||
compatible = "ite,it8801-gpio";
|
||||
reg = <0x01 1 /* GPIPSR */
|
||||
0x06 1 /* GPSOVR */
|
||||
0x12 8 /* GPCR */
|
||||
0x33 1 /* GPISR */
|
||||
0x38 1>; /* GPIER */
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <8>;
|
||||
pin-mask = <0x3f>;
|
||||
};
|
||||
|
||||
ioex_it8801_port2: it8801_port@2 {
|
||||
compatible = "ite,it8801-gpio";
|
||||
reg = <0x02 1 /* GPIPSR */
|
||||
0x07 1 /* GPSOVR */
|
||||
0x1a 8 /* GPCR */
|
||||
0x34 1 /* GPISR */
|
||||
0x39 1>; /* GPIER */
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
ngpios = <8>;
|
||||
pin-mask = <0x0f>;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
nct3807_alert_1 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue