18c2ecf20Sopenharmony_ciBindings for DAC emulation using a digital potentiometer 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciIt is assumed that the dpot is used as a voltage divider between the 48c2ecf20Sopenharmony_cicurrent dpot wiper setting and the maximum resistance of the dpot. The 58c2ecf20Sopenharmony_cidivided voltage is provided by a vref regulator. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci .------. 88c2ecf20Sopenharmony_ci .-----------. | | 98c2ecf20Sopenharmony_ci | vref |--' .---. 108c2ecf20Sopenharmony_ci | regulator |--. | | 118c2ecf20Sopenharmony_ci '-----------' | | d | 128c2ecf20Sopenharmony_ci | | p | 138c2ecf20Sopenharmony_ci | | o | wiper 148c2ecf20Sopenharmony_ci | | t |<---------+ 158c2ecf20Sopenharmony_ci | | | 168c2ecf20Sopenharmony_ci | '---' dac output voltage 178c2ecf20Sopenharmony_ci | | 188c2ecf20Sopenharmony_ci '------+------------+ 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciRequired properties: 218c2ecf20Sopenharmony_ci- compatible: Should be "dpot-dac" 228c2ecf20Sopenharmony_ci- vref-supply: The regulator supplying the voltage divider. 238c2ecf20Sopenharmony_ci- io-channels: Channel node of the dpot to be used for the voltage division. 248c2ecf20Sopenharmony_ci- io-channel-names: Should be "dpot". 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciExample: 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci &i2c { 298c2ecf20Sopenharmony_ci dpot: mcp4651-503@28 { 308c2ecf20Sopenharmony_ci compatible = "microchip,mcp4651-503"; 318c2ecf20Sopenharmony_ci reg = <0x28>; 328c2ecf20Sopenharmony_ci #io-channel-cells = <1>; 338c2ecf20Sopenharmony_ci }; 348c2ecf20Sopenharmony_ci }; 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci dac { 378c2ecf20Sopenharmony_ci compatible = "dpot-dac"; 388c2ecf20Sopenharmony_ci vref-supply = <®_3v3>; 398c2ecf20Sopenharmony_ci io-channels = <&dpot 0>; 408c2ecf20Sopenharmony_ci io-channel-names = "dpot"; 418c2ecf20Sopenharmony_ci }; 42