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 <tokita.hiroshi@gmail.com>
This commit is contained in:
parent
59a82ab357
commit
ef95203267
2 changed files with 36 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
&arduino_i2c {
|
||||
status = "okay";
|
||||
aw9523b@58 {
|
||||
status = "okay";
|
||||
reg = <0x58>;
|
||||
compatible = "awinic,aw9523b";
|
||||
|
||||
aw9523_gpio: gpio {
|
||||
compatible = "awinic,aw9523b-gpio";
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
int-gpios = <&arduino_header 18 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
|
||||
reset-gpios = <&arduino_header 19 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
resources {
|
||||
compatible = "test-gpio-basic-api";
|
||||
status = "okay";
|
||||
out-gpios = <&aw9523_gpio 8 0>;
|
||||
in-gpios = <&aw9523_gpio 9 0>;
|
||||
};
|
||||
};
|
|
@ -95,3 +95,14 @@ tests:
|
|||
- nucleo_wb05kz
|
||||
- nucleo_wb09ke
|
||||
- nucleo_wba55cg
|
||||
drivers.gpio.2pin_aw9523b:
|
||||
depends_on:
|
||||
- gpio
|
||||
- arduino_gpio
|
||||
- i2c
|
||||
harness_config:
|
||||
fixture: aw9523b_on_arduino_header
|
||||
filter: dt_compat_enabled("test-gpio-basic-api") and dt_compat_enabled("arduino-header-r3") and
|
||||
dt_nodelabel_enabled("arduino_i2c")
|
||||
extra_dtc_overlay_files:
|
||||
- boards/aw9523b_on_arduino_header.overlay
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue