microchip,dac-g2

Description

Microchip G2 DAC

Microchip G2 DAC peripherals.

Group G2 DAC includes the following hardware peripherals:
  - module name="DAC" id="U2214" version="2.1.0"

Examples

dac: dac@42005000 {
  compatible = "microchip,dac-g2";
  reg = <0x42005000 0x15>;
  pinctrl-0 = <&dac_default>;
  pinctrl-names = "default";
  external_pin_en = <1>;
};

Properties

Top level properties

These property descriptions apply to “microchip,dac-g2” 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 needed to represent a channel.

This property is required.

Constant value: 1

refsel

string

Reference Voltage selection.

Must be one of:
- "int_ref" (0x0) - Internal Bandgap Reference
- "a_vdd"   (0x1) - Analog Voltage Supply
- "v_ext"   (0x2) - External Voltage Reference

Default value: a_vdd

Legal values: int_ref, a_vdd, v_ext

max-channels

int

Maximum number of channels.

Default value: 1

external-pin-en

int

Enable external output pin for the channel.

This property is required.

Legal values: 0, 1

volt-pump-disable

int

Voltage pump provides power when dac supply voltage
is less than 3.3v, writing 1 will disable it.

Default value: 0

Legal values: 0, 1

run-in-standby

int

The Run in Standby controls the DAC in standby mode.

when bit is reset, the output buffer is disabled and when set, the DAC output
buffer will keep its value in Standby Sleep mode.

Default value: 0

Legal values: 0, 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

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