-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <tokita.hiroshi@gmail.com>
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
tests/drivers/gpio/gpio_api_1pin/boards/aw9523b_on_arduino_header.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
&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>; | ||
port0-push-pull; | ||
int-gpios = <&arduino_header 18 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>; | ||
reset-gpios = <&arduino_header 19 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>; | ||
}; | ||
}; | ||
}; | ||
|
||
/ { | ||
leds { | ||
aw9523_led0: aw9523_led0 { | ||
gpios = < &aw9523_gpio 8 0>; | ||
}; | ||
}; | ||
|
||
aliases { | ||
led0 = &aw9523_led0; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters