Skip to content

Commit 59a82ab

Browse files
soburikartben
authored andcommitted
tests: drivers: gpio: gpio_api_1pin: 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 538d34c commit 59a82ab

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
port0-push-pull;
13+
int-gpios = <&arduino_header 18 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
14+
reset-gpios = <&arduino_header 19 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
15+
};
16+
};
17+
};
18+
19+
/ {
20+
leds {
21+
aw9523_led0: aw9523_led0 {
22+
gpios = < &aw9523_gpio 8 0>;
23+
};
24+
};
25+
26+
aliases {
27+
led0 = &aw9523_led0;
28+
};
29+
};

tests/drivers/gpio/gpio_api_1pin/testcase.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,18 @@ tests:
1111
- mps2/an521/cpu0
1212
- neorv32
1313
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds")
14+
drivers.gpio.1pin.aw9523b:
15+
tags:
16+
- drivers
17+
- gpio
18+
depends_on:
19+
- gpio
20+
- arduino_gpio
21+
- i2c
22+
min_flash: 48
23+
harness_config:
24+
fixture: aw9523b_on_arduino_header
25+
filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and
26+
dt_compat_enabled("arduino-header-r3")
27+
extra_dtc_overlay_files:
28+
- "boards/aw9523b_on_arduino_header.overlay"

0 commit comments

Comments
 (0)