Skip to content

Commit

Permalink
dts: arm: ambiq: add ambiq adc to dtsi file
Browse files Browse the repository at this point in the history
Add Ambiq adc to apollo4 DTSI

Signed-off-by: Richard Wheatley <[email protected]>
  • Loading branch information
RichardSWheatley authored and nashif committed Aug 30, 2024
1 parent 8561d02 commit 6dd54c8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dts/arm/ambiq/ambiq_apollo4p.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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>;
Expand Down
5 changes: 5 additions & 0 deletions modules/hal_ambiq/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6dd54c8

Please sign in to comment.