]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: dac: ad5758: Add support for hard reset
authorStefan Popa <stefan.popa@analog.com>
Wed, 29 Aug 2018 14:58:42 +0000 (17:58 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 2 Sep 2018 18:01:30 +0000 (19:01 +0100)
commitff5059302642d349596a7ebc3282a978a78144bd
treedf7375f3c30724ee6752b700b87d46112b584012
parent1fc378fa9dab9d3036562ecd58b26ecae2dbd85d
iio: dac: ad5758: Add support for hard reset

The ad5758 has a hardware reset active low input pin. This patch adds a
devicetree entry for a reset GPIO and a new ad5758_reset() function.
During
initialization, it is checked if the reset property is specified and the
the GPIO is being asserted, therefore the device will become active.

When the reset function is called, if the gpio_reset var is set, then
the
GPIO will be toggled, otherwise a software reset is performed.

Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/dac/ad5758.txt
drivers/iio/dac/ad5758.c