1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-23 00:20:52 -05:00
linux/drivers/iio/dac
Nuno Sa 561e2e3e90 iio: dac: ad9739a: write complete MU_CNT1 register during lock
As specified by the datasheet we should write the value 0x3 (enable
plus tracking gain) into the MU_CNT1 register during the MU lock phase.

Currently we were only setting the enable bit (bit 0) as the tracking
gain default value is already set to 1. While we should be mostly fine
in assuming the tracking gain will have the value it should, better to
explicitly write it. On top of that the datasheet also states to
re-attempt the writes in case the lock fails which we were not doing for
the tracking gain bit.

Lastly, the recommended value for the MU phase slope lock (bit 6) is 0
but for some reason the default value is 1 and hence, we were not
changing it accordingly.

Note there was no problem with the MU lock mechanism so this is not
being treated as a fix but rather an improvement.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240429-ad9739a-improv-v1-1-c076a06a697d@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2024-04-29 21:11:12 +01:00
..
ad3552r.c iio: dac: ad3552: Use __free(fwnode_handle) to simplify error handling. 2024-04-06 11:29:06 +01:00
ad5064.c
ad5360.c
ad5380.c
ad5421.c
ad5446.c
ad5449.c
ad5504.c
ad5592r-base.c
ad5592r-base.h
ad5592r.c
ad5593r.c
ad5624r.h
ad5624r_spi.c
ad5686-spi.c
ad5686.c
ad5686.h
ad5696-i2c.c
ad5755.c iio: dac: ad5755: make use of of_device_id table 2024-04-13 18:12:14 +01:00
ad5758.c
ad5761.c
ad5764.c
ad5766.c
ad5770r.c iio: dac: ad5770r: Use device_for_each_child_node_scoped() 2024-04-06 11:18:51 +01:00
ad5791.c
ad7293.c
ad7303.c
ad8801.c
ad9739a.c iio: dac: ad9739a: write complete MU_CNT1 register during lock 2024-04-29 21:11:12 +01:00
adi-axi-dac.c iio: dac: adi-axi: fix a mistake in axi_dac_ext_info_set() 2024-04-29 20:53:25 +01:00
cio-dac.c
dpot-dac.c
ds4424.c
Kconfig iio: dac: support the ad9739a RF DAC 2024-04-20 15:41:32 +01:00
lpc18xx_dac.c
ltc1660.c
ltc2632.c
ltc2688.c
m62332.c
Makefile iio: dac: support the ad9739a RF DAC 2024-04-20 15:41:32 +01:00
max517.c
max5522.c
max5821.c
mcp4725.c
mcp4728.c
mcp4821.c
mcp4922.c
stm32-dac-core.c
stm32-dac-core.h
stm32-dac.c
ti-dac082s085.c
ti-dac5571.c
ti-dac7311.c
ti-dac7612.c
vf610_dac.c