infineon,autanalog-ctdac

Description

PSOC Edge AutAnalog CT DAC

Infineon PSOC Edge AutAnalog CT DAC (Continuous Time Digital-to-Analog Converter)

The CT DAC is a 12-bit continuous-time segmented DAC within the AutAnalog subsystem.
It supports multiple output topologies (direct, buffered internal, buffered external),
configurable voltage reference sources, and optional sample-and-hold operation.

The driver exposes:
  - FW channel (#15): Direct value writes via the standard Zephyr DAC API.
    This is the default channel for simple DAC output (channel 15).
  - Waveform channels (#0-#14): Autonomous waveform output via the AC state
    machine. Channel IDs 0-14 map directly to DAC hardware channels 0-14.
    These use look-up table (LUT) ranges configured via child nodes and
    waveform data loaded at runtime.

The AutAnalog CT DAC is part of the AutAnalog subsystem, which must be set up
before initializing the CTDAC.

Properties

Top level properties

These property descriptions apply to “infineon,autanalog-ctdac” nodes themselves. This page also describes child node properties in the following sections.

Properties not inherited from the base binding file.

Name

Type

Details

#io-channel-cells

int

Number of cells in an io-channel specifier.

This property is required.

Constant value: 1

clk-dst

int

Peripheral clock destination ID for this CTDAC instance.

This property is required.

vref-source

int

Selects the reference voltage source for the DAC.
Use IFX_AUTANALOG_CTDAC_VREF_* constants from
<dt-bindings/dac/infineon-autanalog-ctdac.h>.
  IFX_AUTANALOG_CTDAC_VREF_VDDA     (0x100) - Vdda supply (1.8V typical)
  IFX_AUTANALOG_CTDAC_VREF_VBGR     (0)     - Band-gap reference (0.9V typical)
  IFX_AUTANALOG_CTDAC_VREF_CTB0_OA0 (1)     - CTB0 opamp 0 output
  IFX_AUTANALOG_CTDAC_VREF_CTB0_OA1 (2)     - CTB0 opamp 1 output
  IFX_AUTANALOG_CTDAC_VREF_CTB1_OA0 (3)     - CTB1 opamp 0 output
  IFX_AUTANALOG_CTDAC_VREF_CTB1_OA1 (4)     - CTB1 opamp 1 output
  IFX_AUTANALOG_CTDAC_VREF_PRB_OUT0 (6)     - PRB Vref0
  IFX_AUTANALOG_CTDAC_VREF_PRB_OUT1 (7)     - PRB Vref1

Default value: 0x100

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

topology

int

Selects the DAC output topology.
Use IFX_AUTANALOG_CTDAC_TOPO_* constants from
<dt-bindings/dac/infineon-autanalog-ctdac.h>.
  IFX_AUTANALOG_CTDAC_TOPO_DIRECT            (0) - Direct output
  IFX_AUTANALOG_CTDAC_TOPO_DIRECT_TRACK_CAP  (1) - Direct with track capacitor
  IFX_AUTANALOG_CTDAC_TOPO_DIRECT_TRACK_HOLD (2) - Direct with track and hold capacitors
  IFX_AUTANALOG_CTDAC_TOPO_BUFFERED_INTERNAL (3) - Buffered, internal connections only
  IFX_AUTANALOG_CTDAC_TOPO_BUFFERED_EXTERNAL (4) - Buffered, internal and external

Default value: 4

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

ref-buf-pwr

int

Power mode for the reference voltage buffer.
Use IFX_AUTANALOG_CTDAC_REF_BUF_PWR_* constants from
<dt-bindings/dac/infineon-autanalog-ctdac.h>.
  IFX_AUTANALOG_CTDAC_REF_BUF_PWR_OFF             (0)  - Buffer OFF
  IFX_AUTANALOG_CTDAC_REF_BUF_PWR_ULTRA_LOW       (1)  - 15uA, 30kHz GBW
  IFX_AUTANALOG_CTDAC_REF_BUF_PWR_ULTRA_LOW_RAIL  (2)  - Charge pump ON, 35uA, 30kHz GBW
  IFX_AUTANALOG_CTDAC_REF_BUF_PWR_LOW_RAIL        (4)  - Charge pump ON, 150uA, 350kHz GBW
  IFX_AUTANALOG_CTDAC_REF_BUF_PWR_MEDIUM_RAIL     (6)  - Charge pump ON, 200uA, 700kHz GBW
  IFX_AUTANALOG_CTDAC_REF_BUF_PWR_HIGH            (7)  - 400uA, 1.75MHz GBW (Vref <= 0.9V)
  IFX_AUTANALOG_CTDAC_REF_BUF_PWR_HIGH_RAIL       (8)  - Charge pump ON, 600uA, 1.75MHz GBW
  IFX_AUTANALOG_CTDAC_REF_BUF_PWR_ULTRA_HIGH_RAIL (10) - Charge pump ON, 800uA, 2.8MHz GBW
Set to OFF (0) when vref-source is "vdda", since the Vdda path does not
use the reference buffer.

Default value: 0

Legal values: 0, 1, 2, 4, 6, 7, 8, 10

out-buf-pwr

int

Power mode for the output voltage buffer.
Use IFX_AUTANALOG_CTDAC_OUT_BUF_PWR_* constants from
<dt-bindings/dac/infineon-autanalog-ctdac.h>.
  IFX_AUTANALOG_CTDAC_OUT_BUF_PWR_OFF             (0)  - Buffer OFF
  IFX_AUTANALOG_CTDAC_OUT_BUF_PWR_ULTRA_LOW       (1)  - 15uA, drive 10uA
  IFX_AUTANALOG_CTDAC_OUT_BUF_PWR_ULTRA_LOW_RAIL  (2)  - Charge pump ON, 35uA, drive 10uA
  IFX_AUTANALOG_CTDAC_OUT_BUF_PWR_LOW_RAIL        (4)  - Charge pump ON, 150uA, drive 100uA
  IFX_AUTANALOG_CTDAC_OUT_BUF_PWR_MEDIUM_RAIL     (6)  - Charge pump ON, 200uA, drive 1mA
  IFX_AUTANALOG_CTDAC_OUT_BUF_PWR_HIGH_RAIL       (8)  - Charge pump ON, 600uA, drive 1mA
  IFX_AUTANALOG_CTDAC_OUT_BUF_PWR_ULTRA_HIGH_RAIL (10) - Charge pump ON, 800uA, drive 10mA
Must be non-OFF when topology is "buffered-internal" or "buffered-external".

Default value: 0

Legal values: 0, 1, 2, 4, 6, 8, 10

lp-mode

boolean

Request Low Power (LP) operation for the AutAnalog subsystem.
When set, the parent AutAnalog MFD basic-mode STT enters LP operation
for the AC states. LP mode is also activated if any other AutAnalog
child peripheral (SAR ADC, CTB, PTCOMP, PRB) sets lp-mode.
In advanced mode (ac-states), use the per-state ac-lp-mode property
instead.

lp-div-dac

int

Low-power clock divider for the DAC. The actual divisor applied by
the hardware is (lp-div-dac + 1). Valid range: 0..1023.

Default value: 0

bottom-sel

boolean

R-2R ladder bottom connection selector. When set, the bottom end
of the R-2R resistor ladder is connected to Vref instead of Vssa.

disabled-mode

boolean

DAC output behavior when disabled. When set, the output drives
Vssa or Vref (depending on bottom-sel) when the output is disabled.
Otherwise the output is tri-stated.

deglitch

boolean

Enable the de-glitch functionality. When enabled, a switch on the output
path blanks glitches during code transitions.

deglitch-time

int

De-glitch time in DAC clock cycles (actual value = deglitch-time + 1).
Only used when deglitch is enabled. Range 0..255.

Default value: 0

sign

boolean

When set, the DAC input data is interpreted as a signed 12-bit value
(two's complement). Otherwise unsigned.

sample-time

int

Sample time in DAC clock cycles. Range 0..255.
The actual sample time used by the hardware is (sample-time + 1).

Default value: 0

step-val

array

Step values for waveform address increment. Array of exactly 3
values (step-val[0], step-val[1], step-val[2]). Each waveform
channel selects one via its step-sel property.

Default value: [0, 0, 0]

limit-cfg-0

array

Range detection configuration for limit slot 0.
Three-cell array: <condition low-threshold high-threshold>.
Use IFX_AUTANALOG_CTDAC_LIMIT_* constants from
<dt-bindings/dac/infineon-autanalog-ctdac.h> for the condition:
  IFX_AUTANALOG_CTDAC_LIMIT_BELOW   (0) - Value < low
  IFX_AUTANALOG_CTDAC_LIMIT_INSIDE  (1) - low <= Value < high
  IFX_AUTANALOG_CTDAC_LIMIT_ABOVE   (2) - Value > high
  IFX_AUTANALOG_CTDAC_LIMIT_OUTSIDE (3) - Value < low OR Value >= high
Waveform channels reference this slot via stat-sel = <1>.

limit-cfg-1

array

Range detection configuration for limit slot 1.
Same format as limit-cfg-0. Referenced via stat-sel = <2>.

limit-cfg-2

array

Range detection configuration for limit slot 2.
Same format as limit-cfg-0. Referenced via stat-sel = <3>.

Child node properties

Name

Type

Details

start-addr

int

Start address in the DAC look-up table (0..511).
Required for waveform channels (reg 0-14).

end-addr

int

End address in the DAC look-up table (0..511).
Must be >= start-addr. Required for waveform channels (reg 0-14).

op-mode

int

Waveform operating mode for this channel.
Use IFX_AUTANALOG_CTDAC_OP_* constants from
<dt-bindings/dac/infineon-autanalog-ctdac.h>.
  IFX_AUTANALOG_CTDAC_OP_OS_ONE_QUAD    (0) - One-shot, one quadrant
  IFX_AUTANALOG_CTDAC_OP_OS_TWO_QUAD    (1) - One-shot, two quadrant
  IFX_AUTANALOG_CTDAC_OP_OS_FOUR_QUAD   (2) - One-shot, four quadrant
  IFX_AUTANALOG_CTDAC_OP_CONT_ONE_QUAD  (3) - Continuous, one quadrant
  IFX_AUTANALOG_CTDAC_OP_CONT_TWO_QUAD  (4) - Continuous, two quadrant
  IFX_AUTANALOG_CTDAC_OP_CONT_FOUR_QUAD (5) - Continuous, four quadrant
  IFX_AUTANALOG_CTDAC_OP_ADDR           (6) - External address mode
  IFX_AUTANALOG_CTDAC_OP_DATA           (7) - External data mode

Default value: 3

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

sample-and-hold

boolean

Enable sample-and-hold for this channel.

step-sel

int

Step value selector for address increment.
Use IFX_AUTANALOG_CTDAC_STEP_SEL_* constants from
<dt-bindings/dac/infineon-autanalog-ctdac.h>.
  IFX_AUTANALOG_CTDAC_STEP_SEL_DISABLED (0) - Step value is 1 (default)
  IFX_AUTANALOG_CTDAC_STEP_SEL_0        (1) - Use stepVal[0]
  IFX_AUTANALOG_CTDAC_STEP_SEL_1        (2) - Use stepVal[1]
  IFX_AUTANALOG_CTDAC_STEP_SEL_2        (3) - Use stepVal[2]

Default value: 0

Legal values: 0, 1, 2, 3

stat-sel

int

Range detection / status selector.
Use IFX_AUTANALOG_CTDAC_STAT_SEL_* constants from
<dt-bindings/dac/infineon-autanalog-ctdac.h>.
  IFX_AUTANALOG_CTDAC_STAT_SEL_DISABLED (0) - No range validation
  IFX_AUTANALOG_CTDAC_STAT_SEL_0        (1) - Use chLimitCfg[0]
  IFX_AUTANALOG_CTDAC_STAT_SEL_1        (2) - Use chLimitCfg[1]
  IFX_AUTANALOG_CTDAC_STAT_SEL_2        (3) - Use chLimitCfg[2]

Default value: 0

Legal values: 0, 1, 2, 3

reg

array

Channel identifier.

This property is required.

See Important properties for more information.

zephyr,resolution

int

DAC resolution to be used for the channel.

zephyr,buffered

boolean

Enable output buffer for the channel.

zephyr,internal

boolean

Enable internal output path for the channel.

zephyr,vref-mv

int

This property can be used to specify the voltage (in millivolts)
of the reference selected for this channel, so that applications
can get that value if needed for some calculations.

Specifier cell names

  • io-channel cells: output