[PATCH 3/4] dt-bindings: iio: adc: Add the PocketGo S30 analog stick MCU

From: Romain TISSERAND

Date: Thu Nov 26 2026 - 20:26:56 EST


The PocketGo S30 handheld (Allwinner A33) reads its analog stick through
a microcontroller on I2C that samples the two stick potentiometers and
returns the raw 8-bit readings. Describe it as an I2C device with two
IIO channels, for adc-joystick.

Signed-off-by: Romain TISSERAND <romain.tisserand@xxxxxxxxx>
---
.../iio/adc/miyoo,pocketgo-s30-stick.yaml | 48 +++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/adc/miyoo,pocketgo-s30-stick.yaml

diff --git a/Documentation/devicetree/bindings/iio/adc/miyoo,pocketgo-s30-stick.yaml b/Documentation/devicetree/bindings/iio/adc/miyoo,pocketgo-s30-stick.yaml
new file mode 100644
index 000000000000..103a11c96fbb
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/adc/miyoo,pocketgo-s30-stick.yaml
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/adc/miyoo,pocketgo-s30-stick.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: PocketGo S30 analog stick MCU
+
+maintainers:
+ - Romain TISSERAND <romain.tisserand@xxxxxxxxx>
+
+description:
+ The PocketGo S30 handheld reads its analog stick through a microcontroller
+ on I2C that samples the stick potentiometers and returns the raw readings.
+ It provides two channels, one per potentiometer. As the stick is mounted,
+ channel 0 follows the vertical axis and channel 1 the horizontal one.
+
+properties:
+ compatible:
+ const: miyoo,pocketgo-s30-stick
+
+ reg:
+ maxItems: 1
+
+ "#io-channel-cells":
+ const: 1
+
+ vdd-supply: true
+
+required:
+ - compatible
+ - reg
+ - "#io-channel-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ adc@60 {
+ compatible = "miyoo,pocketgo-s30-stick";
+ reg = <0x60>;
+ #io-channel-cells = <1>;
+ };
+ };
--
2.43.0