mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: "Olivier Louvignes" <olivier@mgcrea.io>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Paul Cercueil" <paul@crapouillou.net>,
	"H . Nikolaus Schaller" <hns@goldelico.com>,
	"Joshua Crofts" <joshua.crofts1@gmail.com>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/2] iio: adc: Add a driver for the Ingenic X1600 ADC
Date: Wed, 4 Nov 2026 02:04:11 +0000	[thread overview]
Message-ID: <20261104020411.5adb2e2f@jic23-hlaptop> (raw)
In-Reply-To: <aum7smuAHnSSb69e@ashevche-desk.local>

On Tue, 3 Nov 2026 12:47:14 +0200
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:

> On Mon, Nov 02, 2026 at 09:11:55PM +0100, Olivier Louvignes wrote:
> > The X1600's SAR ADC has four auxiliary channels, each with its own start
> > bit, interrupt flag and 12-bit result, and none of the touchscreen or
> > battery engines of the JZ47xx ADCs that ingenic-adc drives. Add a small
> > driver that exposes the four channels as voltages against the 3.3 V
> > reference.
> > 
> > The registers are in chapter 19 of the X1600 programming manual. The
> > ADC clock divider is even, as the manual has it (an odd value divides
> > by one less); the vendor kernel writes the divider minus one, which
> > gives a slightly faster clock than it asks for.
> > 
> > Tested on a HiBy R1, whose play/pause and volume keys sit on channel 0
> > behind adc-keys: all three read and report correctly.  
> 
> A few nit-picks below, otherwise feel free to add
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>

FWIW I took another quick look and don't have anything to add.
So given this is clearly approaching being applied, feel free
to send a new version once you've addresses the questions from
Conor.  No need to wait the normal period under these circumstances.

Jonathan

      reply	other threads:[~2026-11-04  2:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-02 20:11 [PATCH v4 0/2] iio: adc: Add " Olivier Louvignes
2026-11-02 20:11 ` [PATCH v4 1/2] dt-bindings: " Olivier Louvignes
2026-11-02 20:48   ` Conor Dooley
2026-11-02 20:11 ` [PATCH v4 2/2] iio: adc: Add a driver for " Olivier Louvignes
2026-11-03 10:47   ` Andy Shevchenko
2026-11-04  2:04     ` Jonathan Cameron [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261104020411.5adb2e2f@jic23-hlaptop \
    --to=jic23@kernel.org \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=hns@goldelico.com \
    --cc=joshua.crofts1@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=olivier@mgcrea.io \
    --cc=paul@crapouillou.net \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®