Re: [PATCH 0/4] iio: adc: Add the Miyoo A30 and PocketGo S30 analog stick MCUs

From: Romain TISSERAND

Date: Sat Nov 28 2026 - 11:29:24 EST


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