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>
41 lines
834 B
Text
41 lines
834 B
Text
/*
|
|
* Copyright (c) 2024 ITE Corporation. All Rights Reserved.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <ite/it8801-mfd-map.dtsi>
|
|
|
|
/ {
|
|
test {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
test_i2c: i2c@11112222 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
compatible = "vnd,i2c";
|
|
reg = <0x11112222 0x1000>;
|
|
status = "okay";
|
|
clock-frequency = <100000>;
|
|
|
|
it8801_mfd: it8801@38 {
|
|
compatible = "ite,it8801-mfd";
|
|
reg = <0x38>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
ioex_it8801_pwm: it8801_pwm@90 {
|
|
compatible = "ite,it8801-pwm";
|
|
mfdctrl = <&pwm7_gp20_default>;
|
|
reg = <0x90 1 /* PWMMCR */
|
|
0x94 1 /* PWMDCR */
|
|
0x96 1 /* PWMPRSL */
|
|
0x97 1>; /* PWMPRSM */
|
|
channel = <7>;
|
|
#pwm-cells = <3>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|