[PATCH v8 1/2] dt-bindings: input: add OnePlus pogo-pin keyboard

From: wyibo6109

Date: Wed Dec 02 2026 - 11:45:18 EST


From: Yibo Wang <wyibo6109@xxxxxxxxx>

Binding for the OnePlus Pad 3 Pro / Pad 4 and OPPO Pad 5 Pro pogo-pin
smart keyboards, built around a Tinno keyboard MCU and attached to a
tablet UART. Describes the supply, the TX-gate and enable GPIOs and
the wake line, with a MAINTAINERS entry.

The compatible names the tablet project the pogo port belongs to
(caihong, erhai or iceland), which pins the keyboard generation and
with it the protocol extensions the host may use: the 0x3A general
sub-commands grew over time, from the caihong (sm8650 era) keyboards
with neither wake notification nor backlight, through erhai (sm8750
era, wake notification) to iceland (sm8850 era, keyboard backlight).

The keyboard is a fixed physical device, so the touchpad geometry and
the product names are per-project constants and live in the driver.

The keyboard power is described with an optional vdd-supply regulator
and an optional enable-gpios pin, mirroring the vendor driver: it keys
its supply handling on the presence of a pogopin-power-supply property
(feeding the connector from an LDO) and otherwise drives a pinctrl
power enable:

https://github.com/OnePlusOSS/android_kernel_modules_and_devicetree_oneplus_sm8850/tree/oneplus/sm8850_b_16.0.0_oneplus_15/vendor/oplus/kernel/device_info/pogo_keyboard

Boards that provide neither keep the supply and the enable always-on.

Signed-off-by: Yibo Wang <wyibo6109@xxxxxxxxx>
---
.../bindings/input/oneplus,pogo-keyboard.yaml | 78 +++++++++++++++++++
MAINTAINERS | 6 ++
2 files changed, 84 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 0000000000..48aad7bf22
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml
@@ -0,0 +1,78 @@
+# 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 OnePlus Pad 3 Pro / Pad 4 and OPPO Pad 5 Pro pogo-pin smart
+ keyboards, built around a Tinno keyboard MCU. The keyboard 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. It provides a keyboard
+ matrix, a touchpad and a keyboard backlight.
+
+allOf:
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
+
+properties:
+ compatible:
+ description:
+ Names the tablet project the pogo port belongs to, which pins the
+ keyboard generation and the protocol extensions the host may use.
+ The caihong (sm8650 era) keyboards support neither the wake
+ notification nor a backlight, erhai (sm8750 era) adds the wake
+ notification, and iceland (sm8850 era) adds the keyboard
+ backlight.
+ enum:
+ - oneplus,caihong-pogo-keyboard
+ - oneplus,erhai-pogo-keyboard
+ - oneplus,iceland-pogo-keyboard
+
+ vdd-supply:
+ description:
+ Keyboard supply regulator, for boards that feed the pogo
+ connector through an LDO. Boards that tie it always-on can
+ leave it out.
+
+ enable-gpios:
+ description:
+ Enable for the keyboard, driven high while attached. On boards
+ without an LDO this pin gates the keyboard power; boards that
+ tie it always-on can leave it out.
+ 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
+
+required:
+ - compatible
+ - tx-enable-gpios
+ - wake-gpios
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ serial {
+ keyboard {
+ compatible = "oneplus,iceland-pogo-keyboard";
+ enable-gpios = <&pmic_gpios 12 GPIO_ACTIVE_HIGH>;
+ tx-enable-gpios = <&pmic2_gpios 6 GPIO_ACTIVE_HIGH>;
+ wake-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>;
+ };
+ };
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index 8014b9f825..7730128d6c 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -20163,6 +20163,12 @@ S: Maintained
F: drivers/mtd/nand/onenand/
F: include/linux/mtd/onenand*.h

+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
+
ONEXPLAYER HID DRIVER
M: Derek J. Clark <derekjohn.clark@xxxxxxxxx>
L: linux-input@xxxxxxxxxxxxxxx
--
2.53.0