Skip to content

Commit ef95203

Browse files
soburikartben
authored andcommitted
tests: drivers: gpio: gpio_basic_api: Add AW9523B test configuration
Add test configuration for Awinic AW9523B. This device is a GPIO Expander, and no boards currently implement it. Define the connection that connects it via the Arduino header and define a fixture to enable it. This has been confirmed with nucleo_h503rb. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 59a82ab commit ef95203

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
&arduino_i2c {
2+
status = "okay";
3+
aw9523b@58 {
4+
status = "okay";
5+
reg = <0x58>;
6+
compatible = "awinic,aw9523b";
7+
8+
aw9523_gpio: gpio {
9+
compatible = "awinic,aw9523b-gpio";
10+
gpio-controller;
11+
#gpio-cells = <2>;
12+
int-gpios = <&arduino_header 18 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
13+
reset-gpios = <&arduino_header 19 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
14+
};
15+
};
16+
};
17+
18+
/ {
19+
resources {
20+
compatible = "test-gpio-basic-api";
21+
status = "okay";
22+
out-gpios = <&aw9523_gpio 8 0>;
23+
in-gpios = <&aw9523_gpio 9 0>;
24+
};
25+
};

tests/drivers/gpio/gpio_basic_api/testcase.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,14 @@ tests:
9595
- nucleo_wb05kz
9696
- nucleo_wb09ke
9797
- nucleo_wba55cg
98+
drivers.gpio.2pin_aw9523b:
99+
depends_on:
100+
- gpio
101+
- arduino_gpio
102+
- i2c
103+
harness_config:
104+
fixture: aw9523b_on_arduino_header
105+
filter: dt_compat_enabled("test-gpio-basic-api") and dt_compat_enabled("arduino-header-r3") and
106+
dt_nodelabel_enabled("arduino_i2c")
107+
extra_dtc_overlay_files:
108+
- boards/aw9523b_on_arduino_header.overlay

0 commit comments

Comments
 (0)