dts: arm: ambiq: add ambiq adc to dtsi file

Add Ambiq adc to apollo4 DTSI

Signed-off-by: Richard Wheatley <richard.wheatley@ambiq.com>
This commit is contained in:
Richard Wheatley 2024-08-22 12:44:48 -05:00 committed by Anas Nashif
parent 8561d0285d
commit 6dd54c8835
2 changed files with 17 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include <arm/armv7-m.dtsi> #include <arm/armv7-m.dtsi>
#include <mem.h> #include <mem.h>
#include <freq.h> #include <freq.h>
#include <zephyr/dt-bindings/adc/adc.h>
#include <zephyr/dt-bindings/i2c/i2c.h> #include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/gpio/gpio.h> #include <zephyr/dt-bindings/gpio/gpio.h>
@ -288,6 +289,17 @@
ambiq,pwrcfg = <&pwrcfg 0x4 0x100>; ambiq,pwrcfg = <&pwrcfg 0x4 0x100>;
}; };
adc0: adc@40038000 {
reg = <0x40038000 0x400>;
interrupts = <19 0>;
interrupt-names = "ADC";
channel-count = <10>;
internal-vref-mv = <1190>;
status = "disabled";
#io-channel-cells = <1>;
ambiq,pwrcfg = <&pwrcfg 0x4 0x2000>;
};
mspi0: spi@40060000 { mspi0: spi@40060000 {
compatible = "ambiq,mspi"; compatible = "ambiq,mspi";
reg = <0x40060000 0x400>; reg = <0x40060000 0x400>;

View File

@ -10,6 +10,11 @@ config AMBIQ_HAL
if AMBIQ_HAL if AMBIQ_HAL
config AMBIQ_HAL_USE_ADC
bool
help
Use the ADC driver from Ambiq HAL
config AMBIQ_HAL_USE_GPIO config AMBIQ_HAL_USE_GPIO
bool bool
help help