iio: dac: ad5791: Add reset, clr and ldac gpios
authorAxel Haslam <ahaslam@baylibre.com>
Thu, 31 Oct 2024 07:17:44 +0000 (08:17 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 Nov 2024 20:33:42 +0000 (20:33 +0000)
commit120c678aa9481ea4e8e342f8237fedc2017edc93
tree22d5c56aa85764dadd7678fb79822a617cc503df
parent080a79f8f5ec3c3b69da98187e8860614de44298
iio: dac: ad5791: Add reset, clr and ldac gpios

The ad7591 has reset, clr and ldac gpios. For the DAC to output data
continuously written to the data register the state of these gpios needs
to be set by the driver.

Add these gpios to the driver making them optional in case they are fixed
on the pcb.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Link: https://patch.msgid.link/20241031071746.848694-5-ahaslam@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5791.c