Skip to content

iio: adc: meson: tune init sequence

George Stark linux-amlogic linux-arm-kernel linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3iio: adc: meson: init channels 0,1 input muxesdrivers/iio/adc/meson_saradc.c+16 -01 reply
2/3iio: adc: meson: init internal continuous ring counterdrivers/iio/adc/meson_saradc.c+9 -01 reply
3/3iio: adc: meson: init voltage control bitsdrivers/iio/adc/meson_saradc.c+48 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/3] iio: adc: meson: tune init sequence

This patch is a part of effort to support meson a1 SoC and make meson saradc driver independent from vendor boot code initialization in common.

Information was taken from vendor kernel 5.4, 4.19 and vendor uboot 2019. Most of the bits are undocumented at all or it's not said how they affect measuring.

All those bits are already initialized in bl* code and since kernel driver dosn't rewrite or reset any registers but only changes some bits at init stage everything works fine.

Test procedure is rather simple - one can change those bits in runtime
(e.g. using devmem) and try to read channels (cat /sys/bus/platform/drivers/meson-saradc/.../iio:device0/*) changing some of those bits leads to measure procedure errors or abnormal results.
Another test is build meson saradc as module, reset adc by reset bit, reload module
and compare measure results to those got before reset.

George Stark (3):
iio: adc: meson: init channels 0,1 input muxes
iio: adc: meson: init internal continuous ring counter
iio: adc: meson: init voltage control bits

 drivers/iio/adc/meson_saradc.c | 73 ++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)
Signature · 7 lines
2.38.4


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel