mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Romain TISSERAND <romain.tisserand@gmail.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: "Andy Shevchenko" <andriy.shevchenko@intel.com>,
	"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>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
	sashiko-reviews@lists.linux.dev
Subject: Re: [PATCH 0/4] iio: adc: Add the Miyoo A30 and PocketGo S30 analog stick MCUs
Date: Sat, 28 Nov 2026 17:29:09 +0100	[thread overview]
Message-ID: <20261128162909.2534617-1-romain.tisserand@gmail.com> (raw)
In-Reply-To: <20261128021144.67d1672f@jic23-hlaptop>

Hi Andy, Jonathan,

On Sat, 28 Nov 2026, Jonathan Cameron wrote:
> On Fri, 27 Nov 2026, Andy Shevchenko wrote:
> > Why a brand new driver for each of the cases?
>
> I'd also ask whether we expect to ever see these as useful other than
> for the joystick function.  If not maybe going directly to input makes
> more sense than using the adc joystick bridge?

Two drivers because the two MCUs have nothing in common but the job:
the A30 one is on a UART and pushes framed samples at 9600 baud on its
own, the S30 one is an I2C slave that only answers a 4-byte read
(value, complement, value, complement). Different bus, framing and
flow (push vs poll); the shared part would be the two channel
definitions.

And no, neither MCU does anything but the stick: no other inputs, no
commands. I went through IIO + adc-joystick to follow what the other
Linux handhelds do (Anbernic RGxx3: SARADC + adc-joystick), and to keep
the axis ranges and inversion in the board DT. But since the readings
are only ever a joystick, I'm fine with plain input drivers in
drivers/input/joystick/, as qwiic-joystick and adafruit-seesaw do for
their I2C sticks.

So unless you see a reason to keep IIO, v2 will be two input drivers
(bindings under input/, Cc Dmitry), with your and Sashiko's comments
on the shared parts folded in.

Thanks,
Romain

      reply	other threads:[~2026-11-28 16:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  1:26 Romain TISSERAND
2026-11-27  1:26 ` [PATCH 1/4] dt-bindings: iio: adc: Add the Miyoo A30 analog stick MCU Romain TISSERAND
2026-11-27  1:26 ` [PATCH 2/4] " Romain TISSERAND
2026-11-27  8:47   ` Uwe Kleine-König
2026-11-28  2:21   ` Jonathan Cameron
2026-11-27  1:26 ` [PATCH 3/4] dt-bindings: iio: adc: Add the PocketGo S30 " Romain TISSERAND
2026-11-27  1:26 ` [PATCH 4/4] " Romain TISSERAND
2026-11-28  2:33   ` Jonathan Cameron
2026-11-28 16:29     ` Romain TISSERAND
2026-11-27 11:49 ` [PATCH 0/4] iio: adc: Add the Miyoo A30 and PocketGo S30 analog stick MCUs Andy Shevchenko
2026-11-28  2:11   ` Jonathan Cameron
2026-11-28 16:29     ` Romain TISSERAND [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=20261128162909.2534617-1-romain.tisserand@gmail.com \
    --to=romain.tisserand@gmail.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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®