xref: /freebsd/sys/contrib/device-tree/Bindings/iio/dac/mcp4725.txt (revision ebacd8013fe5f7fdf9f6a5b286f6680dd2891036)
1Microchip mcp4725 and mcp4726 DAC device driver
2
3Required properties:
4	- compatible: Must be "microchip,mcp4725" or "microchip,mcp4726"
5	- reg: Should contain the DAC I2C address
6	- vdd-supply: Phandle to the Vdd power supply. This supply is used as a
7	  voltage reference on mcp4725. It is used as a voltage reference on
8	  mcp4726 if there is no vref-supply specified.
9
10Optional properties (valid only for mcp4726):
11	- vref-supply: Optional phandle to the Vref power supply. Vref pin is
12	  used as a voltage reference when this supply is specified.
13	- microchip,vref-buffered: Boolean to enable buffering of the external
14	  Vref pin. This boolean is not valid without the vref-supply. Quoting
15	  the datasheet: This is offered in cases where the reference voltage
16	  does not have the current capability not to drop its voltage when
17	  connected to the internal resistor ladder circuit.
18
19Examples:
20
21	/* simple mcp4725 */
22	mcp4725@60 {
23		compatible = "microchip,mcp4725";
24		reg = <0x60>;
25		vdd-supply = <&vdac_vdd>;
26	};
27
28	/* mcp4726 with the buffered external reference voltage */
29	mcp4726@60 {
30		compatible = "microchip,mcp4726";
31		reg = <0x60>;
32		vdd-supply = <&vdac_vdd>;
33		vref-supply = <&vdac_vref>;
34		microchip,vref-buffered;
35	};
36