adi,max22017-dac

Description

Analog Devices MAX22017 16bit DAC

Properties

Top level properties

These property descriptions apply to “adi,max22017-dac” 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

This property is required.

Constant value: 2

num-channels

int

Number of DAC output channels.

Default value: 2

resolution

int

DAC resolution.

Default value: 16

busy-gpios

phandle-array

Busy line indicating the DAC is calculating next sample.

ldac-gpios

phandle-array

Load both DAC latches at the same time.

polarity-mode

uint8-array

Unipolar/bipolar mode selection for channels.
0 Indicates bipolar mode and 1 unipolar mode.
The default settings to bipolar here align with the default mode of the device.

Default value: [0, 0]

dac-mode

uint8-array

Voltage/current mode selection for channels.
0 indicates voltage mode and 1 indicates current mode.
The default settings to voltage mode here align with the default mode of the device.

Default value: [0, 0]

latch-mode

uint8-array

Latch mode selection for channels.
0 means the channel is not latched, 1 means latched.
The default settings to non latched should be more straightforward to use than the latched
mode. The latch mode can be used eitheir with the ldac-gpios to load both channels at the
same time or if no ldac-gpios property is set, latching will be done per channel with a
register write.

Default value: [0, 0]

overcurrent-mode

uint8-array

Overcurrent mode selection for channels.
0 for current limiting mode
1 for short circuit protection auto power up mode
2 for short circuit protection shutdown mode
The default setting to current limiting mode here aligns with the default mode of the device.

Default value: [0, 0]

timeout

int

Timeout in ms.
The value should be between 100 and 1600ms in increments of 100ms.

Child node properties

Name

Type

Details

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.