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