Skip to content

Commit a0db65e

Browse files
congnguyenhuummahadevan108
authored andcommitted
boards: mr_canhubk3: add support adc
Add device tree of adc instances for s32k344 Signed-off-by: Cong Nguyen Huu <[email protected]>
1 parent f809614 commit a0db65e

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

boards/arm/mr_canhubk3/doc/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ LPUART on-chip serial
5252
QSPI on-chip flash
5353
FLEXCAN on-chip can
5454
LPI2C on-chip i2c
55+
ADC SAR on-chip adc
5556
============ ========== ================================
5657

5758
The default configuration can be found in the Kconfig file
@@ -191,6 +192,15 @@ P4.3 PTD14 LPI2C0_SCL
191192
P4.4 PTD13 LPI2C0_SDA
192193
========= ===== ============
193194

195+
ADC
196+
===
197+
198+
ADC is provided through ADC SAR controller with 3 instances. ADC channels are divided into
199+
3 groups (precision, standard and external).
200+
201+
.. note::
202+
All channels of an instance only run on 1 group channel at the same time.
203+
194204
FS26 SBC Watchdog
195205
=================
196206

boards/arm/mr_canhubk3/mr_canhubk3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ supported:
1414
- uart
1515
- can
1616
- i2c
17+
- adc

dts/arm/nxp/nxp_s32k344_m7.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,30 @@
505505
interrupts = <162 0>;
506506
status = "disabled";
507507
};
508+
509+
adc0: adc@400a0000 {
510+
compatible = "nxp,s32-adc-sar";
511+
reg = <0x400a0000 0x1000>;
512+
interrupts = <180 0>;
513+
#io-channel-cells = <1>;
514+
status = "disabled";
515+
};
516+
517+
adc1: adc@400a4000 {
518+
compatible = "nxp,s32-adc-sar";
519+
reg = <0x400a4000 0x1000>;
520+
interrupts = <181 0>;
521+
#io-channel-cells = <1>;
522+
status = "disabled";
523+
};
524+
525+
adc2: adc@400a8000 {
526+
compatible = "nxp,s32-adc-sar";
527+
reg = <0x400a8000 0x1000>;
528+
interrupts = <182 0>;
529+
#io-channel-cells = <1>;
530+
status = "disabled";
531+
};
508532
};
509533
};
510534

0 commit comments

Comments
 (0)