boards: ambiq: add adc to apollo3 and 3 plus boards

Add adc to apollo3 and 3 plus boards

Signed-off-by: BH Li <bli@ambiq.com>
This commit is contained in:
BH Li 2024-08-12 18:12:30 +08:00 committed by Fabio Baltieri
commit 9384e48f8a
6 changed files with 30 additions and 0 deletions

View file

@ -96,6 +96,13 @@
};
};
adc0_default: adc0_default{
group1 {
pinmux = <ADCSE4_P32>, <ADCSE7_P35>;
drive-strength = "0.1";
};
};
mspi0_default: mspi0_default{
group1 {
pinmux = <MSPI0_0_P22>,

View file

@ -151,6 +151,13 @@
status = "okay";
};
&adc0 {
compatible = "ambiq,adc";
pinctrl-0 = <&adc0_default>;
pinctrl-names = "default";
status = "disabled";
};
&gpio0_31 {
status = "okay";
};

View file

@ -9,6 +9,7 @@ toolchain:
- gnuarmemb
supported:
- uart
- adc
- watchdog
- counter
- gpio

View file

@ -96,6 +96,13 @@
};
};
adc0_default: adc0_default{
group1 {
pinmux = <ADCSE4_P32>, <ADCSE7_P35>;
drive-strength = "0.1";
};
};
mspi0_default: mspi0_default{
group1 {
pinmux = <MSPI0_0_P22>,

View file

@ -151,6 +151,13 @@
status = "okay";
};
&adc0 {
compatible = "ambiq,adc";
pinctrl-0 = <&adc0_default>;
pinctrl-names = "default";
status = "disabled";
};
&gpio0_31 {
status = "okay";
};

View file

@ -9,6 +9,7 @@ toolchain:
- gnuarmemb
supported:
- uart
- adc
- watchdog
- counter
- gpio