aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu/inv_mpu6050
diff options
context:
space:
mode:
authorJonathan Albrieux <jonathan.albrieux@gmail.com>2020-05-28 17:01:05 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-06-14 11:49:31 +0100
commit9604ed758dd807e749326ae8735f483567d1c35f (patch)
tree100148be0f624b1003ce8dd92f47b20e0859ca48 /drivers/iio/imu/inv_mpu6050
parentiio: magnetometer: ak8975: Fix typo, uniform measurement unit style (diff)
downloadlinux-dev-9604ed758dd807e749326ae8735f483567d1c35f.tar.xz
linux-dev-9604ed758dd807e749326ae8735f483567d1c35f.zip
iio: magnetometer: ak8975: Add gpio reset support
According to AK09911 datasheet, if reset gpio is provided then deassert reset on ak8975_power_on() and assert reset on ak8975_power_off(). Without reset's deassertion during ak8975_power_on(), driver's probe fails on ak8975_who_i_am() while checking for device identity for AK09911 chip. AK09911 has an active low reset gpio to handle register's reset. AK09911 datasheet says that, if not used, reset pin should be connected to VID. This patch emulates this situation. Signed-off-by: Jonathan Albrieux <jonathan.albrieux@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Stephan Gerhold <stephan@gerhold.net> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/imu/inv_mpu6050')
0 files changed, 0 insertions, 0 deletions