[PATCH v3 4/4] iio: adc: aspeed: Reserve battery sensing channel for on-demand use
Andy Shevchenko
andriy.shevchenko at intel.com
Fri Mar 20 21:33:32 AEDT 2026
On Fri, Mar 20, 2026 at 01:46:38PM +0800, Billy Tsai wrote:
> For controllers with battery sensing capability (AST2600/AST2700), the
> last channel uses a different circuit design optimized for battery
> voltage measurement. This channel should not be enabled by default
> along with other channels to avoid potential interference and power
> efficiency issues.
> This ensures optimal power efficiency for normal ADC operations while
> maintaining full functionality when battery sensing is needed.
...
> + /*
> + * After enable a new channel need to wait some time for ADC stable
Missed period at the end. And you probably wanted to say
"...for ADC to stabilize."
> + * Experiment result is 1ms.
> + */
> + fsleep(1000);
> + }
--
With Best Regards,
Andy Shevchenko
More information about the Linux-aspeed
mailing list