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:
parent
8561d0285d
commit
6dd54c8835
|
@ -3,6 +3,7 @@
|
|||
#include <arm/armv7-m.dtsi>
|
||||
#include <mem.h>
|
||||
#include <freq.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
#include <zephyr/dt-bindings/i2c/i2c.h>
|
||||
#include <zephyr/dt-bindings/gpio/gpio.h>
|
||||
|
||||
|
@ -288,6 +289,17 @@
|
|||
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 {
|
||||
compatible = "ambiq,mspi";
|
||||
reg = <0x40060000 0x400>;
|
||||
|
|
|
@ -10,6 +10,11 @@ config AMBIQ_HAL
|
|||
|
||||
if AMBIQ_HAL
|
||||
|
||||
config AMBIQ_HAL_USE_ADC
|
||||
bool
|
||||
help
|
||||
Use the ADC driver from Ambiq HAL
|
||||
|
||||
config AMBIQ_HAL_USE_GPIO
|
||||
bool
|
||||
help
|
||||
|
|
Loading…
Reference in New Issue