[PATCH 1/4] dt-bindings: iio: adc: Add the Miyoo A30 analog stick MCU

From: Romain TISSERAND

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


The Miyoo A30 handheld (Allwinner A33) reads its analog stick through a
microcontroller that samples the two stick potentiometers and streams
the raw 8-bit readings on a UART. Describe it as a serial device with two
IIO channels, X and Y, for adc-joystick.

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

diff --git a/Documentation/devicetree/bindings/iio/adc/miyoo,a30-stick.yaml b/Documentation/devicetree/bindings/iio/adc/miyoo,a30-stick.yaml
new file mode 100644
index 000000000000..6c0e997d4ff0
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/adc/miyoo,a30-stick.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/adc/miyoo,a30-stick.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Miyoo A30 analog stick MCU
+
+maintainers:
+ - Romain TISSERAND <romain.tisserand@xxxxxxxxx>
+
+description:
+ The Miyoo A30 handheld reads its analog stick through a microcontroller
+ that samples the stick potentiometers and streams the raw readings on a
+ UART at 9600 baud. It provides two channels, X (0) and Y (1).
+
+allOf:
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
+
+properties:
+ compatible:
+ const: miyoo,a30-stick
+
+ "#io-channel-cells":
+ const: 1
+
+ vdd-supply: true
+
+required:
+ - compatible
+ - "#io-channel-cells"
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ serial {
+ adc {
+ compatible = "miyoo,a30-stick";
+ #io-channel-cells = <1>;
+ };
+ };
--
2.43.0