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:
Hao Luo 2024-06-07 10:03:07 +08:00 committed by Carles Cufí
commit b532a3ea7f
8 changed files with 212 additions and 3 deletions

View file

@ -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";
};

View file

@ -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

View 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>;
};
};