summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/ti-adc128s052.c
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2017-10-31 21:01:46 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-08 16:03:42 +0100
commitfda29dbac9e6604f8eeb660953a2bef360514dc7 (patch)
treeae63afb952771ebc0e318d554fb42e4557faf8d6 /drivers/iio/adc/ti-adc128s052.c
parentiio: ABI: Fix name of timestamp sysfs file (diff)
downloadlinux-fda29dbac9e6604f8eeb660953a2bef360514dc7.tar.xz
linux-fda29dbac9e6604f8eeb660953a2bef360514dc7.zip
iio: adc: meson-saradc: fix the clock frequency on Meson8 and Meson8b
GX SoCs use a 1.2 MHz ADC clock, while the older SoCs use a 1.14 MHz clock. A comment in the driver from Amlogic's GPL kernel says that it's running at 1.28 MHz. However, it's actually programming a divider of 20 + 1. With a XTAL clock of 24 MHz this results in a frequency of 1.14 MHz. (their calculation might be based on a 27 MHz XTAL clock, but this is not what we have on the Meson8 and Meson8b SoCs). The ADC was still working with the 1.2MHz clock. In my own tests I did not see a difference between 1.2 and 1.14 MHz (regardless of the clock frequency used, the ADC results were identical). Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/adc/ti-adc128s052.c')
0 files changed, 0 insertions, 0 deletions