boards: ambiq: apollo3: add connector dtsi for apollo3 boards
Added connector dtsi files for apollo3_evb and apollo3p_evb, and ran gpio_basic_api to test, all cases pass Signed-off-by: Hao Luo <hluo@ambiq.com>
This commit is contained in:
parent
02af64400f
commit
b532a3ea7f
8 changed files with 212 additions and 3 deletions
|
@ -0,0 +1,31 @@
|
|||
&counter0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&counter1 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&counter2 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&counter3 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&counter4 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&counter5 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&counter6 {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&counter7 {
|
||||
status = "disabled";
|
||||
};
|
|
@ -977,7 +977,7 @@ static bool reliable_cancel_capable(const struct device *dev)
|
|||
}
|
||||
#endif
|
||||
#ifdef CONFIG_COUNTER_AMBIQ
|
||||
if (dev == DEVICE_DT_GET(DT_NODELABEL(counter0))) {
|
||||
if (single_channel_alarm_capable(dev)) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
|
13
tests/drivers/gpio/gpio_basic_api/boards/apollo3_evb.overlay
Normal file
13
tests/drivers/gpio/gpio_basic_api/boards/apollo3_evb.overlay
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Ambiq Micro Inc. <www.ambiq.com>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
resources {
|
||||
compatible = "test-gpio-basic-api";
|
||||
out-gpios = <&ambiq_header 5 0>;
|
||||
in-gpios = <&ambiq_header 6 0>;
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue