[PATCH 1/2] dt-bindings: input: add OnePlus pogo-pin keyboard binding
From: Yibo Wang
Date: Fri Oct 09 2026 - 08:33:24 EST
From: Yibo Wang <wyibo6109@xxxxxxxxx>
Binding for the Tinno keyboard MCU used by the OnePlus Pad 3 Pro /
Pad 4 and OPPO Pad 5 Pro smart keyboards, attached to a tablet UART.
Describes the supply, TX-gate and wake GPIOs and the touchpad
geometry properties, with a MAINTAINERS entry.
Signed-off-by: Yibo Wang <wyibo6109@xxxxxxxxx>
---
.../bindings/input/oneplus,pogo-keyboard.yaml | 81 +++++++++++++++++++
MAINTAINERS | 7 ++
2 files changed, 88 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml
diff --git a/Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml b/Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml
new file mode 100644
index 000000000..849558458
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml
@@ -0,0 +1,81 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# Copyright (c) 2026 Yibo Wang <wyibo6109@xxxxxxxxx>
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/oneplus,pogo-keyboard.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: OnePlus / OPPO Pad pogo-pin smart keyboard
+
+maintainers:
+ - Yibo Wang <wyibo6109@xxxxxxxxx>
+
+description: |
+ The Tinno keyboard MCU used by the OnePlus Pad 3 Pro / Pad 4 and OPPO
+ Pad 5 Pro smart keyboards. It is attached to a tablet UART and speaks
+ a framed half-duplex protocol over a shared single wire; host
+ transmission is gated onto the wire by a PMIC GPIO for the duration of
+ a frame. The device provides a keyboard matrix, a touchpad and a
+ keyboard backlight.
+
+allOf:
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
+
+properties:
+ compatible:
+ const: oneplus,pogo-keyboard
+
+ power-gpios:
+ description: GPIO enabling the keyboard supply, held high while attached.
+ maxItems: 1
+
+ tx-enable-gpios:
+ description: GPIO gating host TX onto the shared one-wire bus.
+ maxItems: 1
+
+ wake-gpios:
+ description: GPIO signalling attach/detach, also used as the wake line.
+ maxItems: 1
+
+ touchpad-xy-max:
+ description: Touchpad maximum X and Y coordinates in units.
+ items:
+ - description: maximum X
+ - description: maximum Y
+ minItems: 2
+ maxItems: 2
+
+ touchpad-xy-resolution:
+ description: Touchpad X and Y resolution in units per millimetre.
+ items:
+ - description: X resolution
+ - description: Y resolution
+ minItems: 2
+ maxItems: 2
+
+required:
+ - compatible
+ - power-gpios
+ - tx-enable-gpios
+ - wake-gpios
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ serial {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ keyboard {
+ compatible = "oneplus,pogo-keyboard";
+ power-gpios = <&pmic_gpios 12 GPIO_ACTIVE_HIGH>;
+ tx-enable-gpios = <&pmic2_gpios 6 GPIO_ACTIVE_HIGH>;
+ wake-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>;
+ touchpad-xy-max = <2560 1440>;
+ touchpad-xy-resolution = <24 25>;
+ };
+ };
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index 8014b9f82..e978a26c1 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -20149,6 +20149,13 @@ S: Maintained
T: git git://linuxtv.org/media.git
F: drivers/media/i2c/ov9734.c
+ONEPLUS POGO-PIN KEYBOARD DRIVER
+M: Yibo Wang <wyibo6109@xxxxxxxxx>
+L: linux-input@xxxxxxxxxxxxxxx
+S: Maintained
+F: Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml
+F: drivers/input/keyboard/oneplus-pogo-kbd.c
+
ONBOARD USB HUB DRIVER
M: Matthias Kaehlcke <mka@xxxxxxxxxxxx>
L: linux-usb@xxxxxxxxxxxxxxx
--
2.53.0