infineon,autanalog-sar-seq-hs

Description

Infineon AutAnalog SAR ADC HS Sequencer Table Entry

High-Speed (HS) mode sequencer table entry for the Infineon AutAnalog SAR
ADC.  Up to 32 entries may be defined as child nodes of the ADC node.  Nodes
must be named "seq-hs-<index>" (e.g. seq-hs-0, seq-hs-1, ...).

Each entry configures one step in the ADC scan sequence.  The hardware
executes entries in order, with the next-action field controlling
transitions between entries.

When only default (single-entry) operation is desired, these nodes may be
omitted entirely and the driver will create a single entry with backward-
compatible defaults.

Use IFX_AUTANALOG_SAR_SEQ_* constants from
<dt-bindings/adc/infineon-autanalog-sar.h> for property values.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

sample-time-en

boolean

Enable the programmable sample-time delay for this sequencer entry.
When disabled, the ADC uses its default minimum sampling window.

acc-en

boolean

Enable accumulation / averaging for conversions triggered by this
sequencer entry.

acc-count

int

Number of samples to accumulate when acc-en is set.
Use IFX_AUTANALOG_SAR_SEQ_ACC_CNT* constants.
  0 = 2 samples   (IFX_AUTANALOG_SAR_SEQ_ACC_CNT2)
  1 = 4 samples   (IFX_AUTANALOG_SAR_SEQ_ACC_CNT4)
  2 = 8 samples   (IFX_AUTANALOG_SAR_SEQ_ACC_CNT8)
  3 = 16 samples  (IFX_AUTANALOG_SAR_SEQ_ACC_CNT16)
  4 = 32 samples  (IFX_AUTANALOG_SAR_SEQ_ACC_CNT32)
  5 = 64 samples  (IFX_AUTANALOG_SAR_SEQ_ACC_CNT64)
  6 = 128 samples (IFX_AUTANALOG_SAR_SEQ_ACC_CNT128)
  7 = 256 samples (IFX_AUTANALOG_SAR_SEQ_ACC_CNT256)

Default value: 0

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

cal-req

int

Real-time calibration request for this sequencer entry.
Use IFX_AUTANALOG_SAR_SEQ_CAL_* constants.
  0 = Disabled  (IFX_AUTANALOG_SAR_SEQ_CAL_DISABLED)
  1 = Both offset and linearity (IFX_AUTANALOG_SAR_SEQ_CAL_BOTH)
  2 = Offset only    (IFX_AUTANALOG_SAR_SEQ_CAL_OFFSET)
  3 = Linearity only (IFX_AUTANALOG_SAR_SEQ_CAL_LINEARITY)

Default value: 0

Legal values: 0, 1, 2, 3

next-action

int

Action after this sequencer entry completes.
Use IFX_AUTANALOG_SAR_SEQ_NEXT_* constants.
  0 = Stop, send SAR_EOS and SAR_DONE, go idle
      (IFX_AUTANALOG_SAR_SEQ_NEXT_STOP)
  1 = Send SAR_EOS and return to start (continuous)
      (IFX_AUTANALOG_SAR_SEQ_NEXT_REPEAT)
  2 = Continue to next entry in scan table
      (IFX_AUTANALOG_SAR_SEQ_NEXT_CONTINUE)
This property applies to intermediate entries only.  The terminal
action of the LAST entry is managed by the driver per API call, since
the same table serves both single-shot and streaming reads: it is
forced to STOP for adc_read() and to REPEAT for streaming.  Any
next-action set on the last entry is therefore ignored.

Default value: 0

Legal values: 0, 1, 2

gpio-channels

int

Bitmask of GPIO channels (0-7) to sample in this sequencer entry.
Each bit enables the corresponding GPIO channel.  Zero means no GPIO
channels are enabled for this entry.

Default value: 0

mux-mode

int

MUX channel operating mode for this sequencer entry.
Use IFX_AUTANALOG_SAR_MUX_* constants.

Default value: 0

Legal values: 0, 1, 2, 3, 4

mux0-sel

int

MUX0 channel selection (0-15) for this entry.
Selects which of the 16 internal MUX channels to sample.

Default value: 0

Legal values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

mux1-sel

int

MUX1 channel selection (0-15) for this entry.
Selects which of the 16 internal MUX channels to sample.

Default value: 0

Legal values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

sample-time-sel

int

Selects one of the 4 hardware sample-time slots for this entry.  Only used
in static sample-time mode (when the ADC node defines sample-times), where
the index refers to that table.  In the default dynamic mode this property
is ignored and the slot is derived from the channels the entry samples.
Use IFX_AUTANALOG_SAR_SEQ_SAMPLE_TIME* constants.

Default value: 0

Legal values: 0, 1, 2, 3