Feature/wb7 adc fixup - #96
Merged
Merged
Conversation
vdromanov
commented
Jun 15, 2022
| info->data->tp_adc_select | | ||
| info->data->adc_chan_select(channel)); | ||
| /* | ||
| * When the IP changes channel, it needs a bit of time to get |
Contributor
Author
There was a problem hiding this comment.
по-моему, ноги из fifo растут
evgeny-boger
approved these changes
Jun 15, 2022
evgeny-boger
left a comment
Member
There was a problem hiding this comment.
а смотрел кстати реализацию в родном драйвере олвиннера? Они это делают?
Contributor
Author
|
у олвиннера нашел 2 реализации:
|
Contributor
Author
|
@ExplorerOL попробовал - у него тоже починилось думаю, можно вливать |
evgeny-boger
pushed a commit
that referenced
this pull request
Aug 3, 2022
* sun4i-gpadc: flushing adc fifo after channel has set up * sun4i-gpadc: removed "waiting for correct values after adc channel changed" * bumped version
evgeny-boger
pushed a commit
that referenced
this pull request
Mar 26, 2024
* sun4i-gpadc: flushing adc fifo after channel has set up * sun4i-gpadc: removed "waiting for correct values after adc channel changed" * bumped version
taraant
pushed a commit
that referenced
this pull request
May 16, 2025
* sun4i-gpadc: flushing adc fifo after channel has set up * sun4i-gpadc: removed "waiting for correct values after adc channel changed" * bumped version
taraant
pushed a commit
that referenced
this pull request
May 16, 2025
Original commits:
drivers/iio/adc/Kconfig
e0e8cf4: iio:adc: add WBEC ADC driver
drivers/iio/adc/Makefile
e0e8cf4: iio:adc: add WBEC ADC driver
drivers/iio/adc/adc-wbec.c
e0e8cf4: iio:adc: add WBEC ADC driver
drivers/iio/adc/axp20x_adc.c
af21015: iio: adc: axp20x_adc: fix charging current reporting on AXP22x
6b2eb49: iio:ad:axp20x: add support for NTC thermistor
drivers/iio/adc/sun4i-gpadc-iio.c
26fd41b: iio: adc: sun4i-gpadc-iio: no temp sensor on R40 (submitted to upstream)
eba9a32: mfd: sun4i-gpadc: add of_compatible for child iio driver
be53fc6: iio: adc: sun4i-gpadc-iio: replace delay with sleep
95b3eb5: Feature/wb7 adc fixup (#96)
taraant
pushed a commit
that referenced
this pull request
May 20, 2025
* sun4i-gpadc: flushing adc fifo after channel has set up * sun4i-gpadc: removed "waiting for correct values after adc channel changed" * bumped version
taraant
pushed a commit
that referenced
this pull request
May 20, 2025
Original commits:
drivers/iio/adc/Kconfig
e0e8cf4: iio:adc: add WBEC ADC driver
drivers/iio/adc/Makefile
e0e8cf4: iio:adc: add WBEC ADC driver
drivers/iio/adc/adc-wbec.c
e0e8cf4: iio:adc: add WBEC ADC driver
drivers/iio/adc/axp20x_adc.c
af21015: iio: adc: axp20x_adc: fix charging current reporting on AXP22x
6b2eb49: iio:ad:axp20x: add support for NTC thermistor
drivers/iio/adc/sun4i-gpadc-iio.c
26fd41b: iio: adc: sun4i-gpadc-iio: no temp sensor on R40 (submitted to upstream)
eba9a32: mfd: sun4i-gpadc: add of_compatible for child iio driver
be53fc6: iio: adc: sun4i-gpadc-iio: replace delay with sleep
95b3eb5: Feature/wb7 adc fixup (#96)
taraant
pushed a commit
that referenced
this pull request
Jun 9, 2025
* sun4i-gpadc: flushing adc fifo after channel has set up * sun4i-gpadc: removed "waiting for correct values after adc channel changed" * bumped version
taraant
pushed a commit
that referenced
this pull request
Jul 29, 2025
* sun4i-gpadc: flushing adc fifo after channel has set up * sun4i-gpadc: removed "waiting for correct values after adc channel changed" * bumped version
taraant
pushed a commit
that referenced
this pull request
Oct 31, 2025
* sun4i-gpadc: flushing adc fifo after channel has set up * sun4i-gpadc: removed "waiting for correct values after adc channel changed" * bumped version
taraant
pushed a commit
that referenced
this pull request
Apr 14, 2026
* sun4i-gpadc: flushing adc fifo after channel has set up * sun4i-gpadc: removed "waiting for correct values after adc channel changed" * bumped version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


На всех wb7 присутствует проблема с adc. Для пользователя выглядит, как "периодические странные показания, когда к каналу не подключено ничего".
Экспериментально выяснено:
до фикса (a1-a3 пустые):

проверка гипотезы про fifo: отпаял vin; тем не менее видим на нем показания. Подключено: 0, 3v3, 5v, vin (разорвал)
