boards: ambiq: add adc to apollo4p boards

Add adc to apollo4 plus boards

Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
This commit is contained in:
Richard Wheatley 2024-08-22 12:44:57 -05:00 committed by Anas Nashif
commit 9a4091b02a
3 changed files with 14 additions and 1 deletions

View file

@ -17,6 +17,12 @@
input-enable; input-enable;
}; };
}; };
adc0_default: adc0_default{
group1 {
pinmux = <ADCSE4_P15>, <ADCSE7_P12>;
drive-strength = "0.1";
};
};
i2c0_default: i2c0_default { i2c0_default: i2c0_default {
group1 { group1 {
pinmux = <M0SCL_P5>, <M0SDAWIR3_P6>; pinmux = <M0SCL_P5>, <M0SDAWIR3_P6>;
@ -81,7 +87,6 @@
bias-pull-up; bias-pull-up;
}; };
}; };
spi0_default: spi0_default { spi0_default: spi0_default {
group1 { group1 {
pinmux = <M0SCK_P5>, <M0MISO_P7>, <M0MOSI_P6>; pinmux = <M0SCK_P5>, <M0MISO_P7>, <M0MOSI_P6>;

View file

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

View file

@ -15,6 +15,7 @@ supported:
- spi - spi
- i2c - i2c
- rtc - rtc
- adc
- hwinfo - hwinfo
testing: testing:
ignore_tags: ignore_tags: