atmel,samd5x-dac

Vendor: Atmel Corporation

Note

An implementation of a driver matching this compatible is available in drivers/dac/dac_samd5x.c.

Description

Atmel SAMD5x/E5x family DAC

To enable the DAC peripheral, it must be enabled in the board dts, or in
subsequent overlay file. In addition, each channel must be configured
using the child-binding properties.

&dac0 {
  status = "okay";
  reference = "intref";

  channel_0 {
    oversampling = <0>;
    refresh-period = <1>;
    current-control = <2>;
  };

  channel_1 {
    oversampling = <0>;
    refresh-period = <1>;
    current-control = <2>;
  };
};

Properties

Top level properties

These property descriptions apply to “atmel,samd5x-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

atmel,assigned-clocks

phandle-array

Assigned-clock information

This property is required.

atmel,assigned-clock-names

string-array

Name of each assigned-clock

This property is required.

reference

string

Reference voltage source

Legal values: 'vrefau', 'vddana', 'vrefab', 'intref'

differential-mode

boolean

Enable differential mode. When enabled, the DAC outputs the difference
between channel 0 and channel 1 on the VOUT0 pin.

#io-channel-cells

int

This property is required.

Constant value: 1

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.

Child node properties

Name

Type

Details

oversampling

string

This field defines the oversampling ratio/interpolation depth:
- 0: 1x oversampling (no interpolation)
- 1: 2x oversampling
- 2: 4x oversampling
- 3: 8x oversampling
- 4: 16x oversampling
- 5: 32x oversampling
Higher oversampling ratios provide better noise reduction but
reduce the maximum update rate.

Legal values: 'OSR_1', 'OSR_2', 'OSR_4', 'OSR_8', 'OSR_16', 'OSR_32'

refresh-period

int

Defines the refresh period for the DAC output. Only work when the
input data is not interpolated, i.e. the oversampling rate is zero.
- 0: Refresh mode disabled
- 1-15: Refresh period = REFRESH * 30µs

run-in-standby

boolean

When enabled, the DAC channel continues to operate in standby mode.

current-control

string

Select the output buffer current according to data rate, power
consumption can be reduced by controlling the output buffer
current, according to conversion rate.
- 0: GCLK_DAC ≤ 1.2MHz (100kSPS)
- 1: 1.2MHz < GCLK_DAC ≤ 6MHz (500kSPS)
- 2: 6MHz < GCLK_DAC ≤ 12MHz (1MSPS)

Legal values: 'CC100K', 'CC1M', 'CC12M'