Skip to content

Commit

Permalink
soc: arm: nxp_s32: s32k1: add support for ADC
Browse files Browse the repository at this point in the history
Add support for the Analog-to-Digital Converter (ADC).

Signed-off-by: Marcin Wierzbicki <[email protected]>
  • Loading branch information
marcin-wierzbicki authored and nashif committed Aug 30, 2024
1 parent cb20e86 commit eebaa2b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions dts/arm/nxp/nxp_s32k1xx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -326,5 +326,27 @@
clock-frequency = <32000>;
prescaler = <32000>;
};

adc0: adc@4003b000 {
compatible = "nxp,kinetis-adc12";
reg = <0x4003b000 0x1000>;
interrupts = <39 0>;
clk-source = <0>;
clk-divider = <1>;
clocks = <&clock NXP_S32_ADC0_CLK>;
#io-channel-cells = <1>;
status = "disabled";
};

adc1: adc@40027000 {
compatible = "nxp,kinetis-adc12";
reg = <0x40027000 0x1000>;
interrupts = <40 0>;
clk-source = <0>;
clk-divider = <1>;
clocks = <&clock NXP_S32_ADC1_CLK>;
#io-channel-cells = <1>;
status = "disabled";
};
};
};
1 change: 1 addition & 0 deletions soc/nxp/s32/s32k1/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ config SOC_SERIES_S32K1
select HAS_MCUX_FLEXCAN
select HAS_MCUX_WDOG32
select HAS_MCUX_RTC
select HAS_MCUX_ADC12

config SOC_S32K116
select CPU_CORTEX_M0PLUS
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ manifest:
groups:
- hal
- name: hal_nxp
revision: 00fd3f5a3b1b7fc3a715b1e96cb2d5036b5cc27e
revision: 466000a80e6eb5bbcb691bae936ec5654a7796d4
path: modules/hal/nxp
groups:
- hal
Expand Down

0 comments on commit eebaa2b

Please sign in to comment.