From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 055D25372C4 for ; Wed, 14 Oct 2026 13:53:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791985993; cv=none; b=ePe0aENMa2VzKRvI97SVo9F4ROd3EIxF5AgSxYGUkvTCHYzoTolcksn+I/6PdSnfwExp1qu9tuUlChbylckKP1z8VHhm1tyQyXd+16az1V7f59EG1LjU0+4qKam9wRCqSrajkq14Pg53aaSHd5rr+qaZ8F+7aB/e052T5gU/7PA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791985993; c=relaxed/simple; bh=0icqhKr6MsJgiZdcEAm0LDF2/5Cq9MdogAKND+4eIdE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QMDDtrmoxB4uSyjMURx9xpyAo1zvcjba006JuhH2CCHEMXINrcAqmTK8JkD3WfbNQ/LjUDUtEiSSNdeJtNapJ3V1vWsRrEBS1X8QETVv1FLxXg0q0TOFDL2j36RQHlmPIa1fmce6ucxiAViHcQY+GtNsc44odB7PcAACEwlKfXE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=q0p9CEDO; arc=none smtp.client-ip=209.85.215.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="q0p9CEDO" Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-cc4ca696de6so2258126a12.2 for ; Wed, 14 Oct 2026 06:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791985989; x=1792590789; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=wI86ONB8uqjA0vZcYHaXMUTTr01KnzjoyVx6R5+2APc=; b=q0p9CEDOxKGhdA7O65f3RgtI+RrlnWjGH7MTM0TD3kJOf7Ea5a3MPUbPgWzf3qYVBm N042UFfv6dnOZHCSLesOLUahCx93DADCyFnVKwX5S40Ajxe7IZH6nseIiMEJi3m8Ddzr av3E1svvjyPdqN4HTi/g4hYsb+xp22b/9AmFNz/YZUcaEDQX9B0cYKqoWjY8OGWWkKON fwqE/AZqxHiLlJws+Fdp0OKFA6Chuctl9eEwM7gk95F+4S8jlzLf8fIzcuqzw/rJpUBW IdQZ/4OIqHox2Kj2QbNvx5UZV7drwZZjWUOLmZgX86U9wh4i/YIaQvrHFpK4nFyG7k7M h6xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791985989; x=1792590789; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=wI86ONB8uqjA0vZcYHaXMUTTr01KnzjoyVx6R5+2APc=; b=r5DVLmHrvf/eVlEZugaoZvDSmgY4eLnATN8tvEGnTmNJDrRo4li/+nm1PJaOeUwZLK XF8Wn5odkkqqbQpUm69hyzymSE9IRgYQn6/K6ECueLPrwxVDfiQn3tyiGQqN30okQewD rkyvCjJg0cPxV88qltBx3xMm7x/mJQPUFJNESi4mtr7XPaRKxfYZx3FMmuMyp6cg6B08 DNzdozMzCpSj8EPhAWV3QTV9f32xOl3i7mJCXyT9uY8IPohvl/iA/P8WmraYYoaoNbqA BDvz+o3EloaMnwiGGnSMhzIt6ohW/MnEj0oB0YOnWEnZjMSR8eSq3+ZnTD8tcXQCNABX 3zyA== X-Forwarded-Encrypted: i=1; AKwUvBzX7uSai++gHrT0tb67Tf92buLHrzgeoHQnXg/0cNCIC7vkmksKcD0+8tTaO6my8yDoQEAHqW9Rq6u9fio=@vger.kernel.org X-Gm-Message-State: AFq9FYJSLZB38BkEdfceDMrHoSprZrTW+kUsEoWEOje5a4r3WVYGmOOr ruDPlUxoUtY0+dHDHK/hv1hg7KJvrrE9axXfzA2u9MuvMW+9Dyb/csq4 X-Gm-Gg: AYBFou3Rd0Cqu185aezTD1xnkBy2yN8vAGuncYpAgBVNnZlvfqhwTECaDtqPQx7lfXc nh2Hwi3qRywGaZzMN9Tu/y4cPSGdn06QASCIjAuIPIInNfz9WCaUK7kRb7Cjjg+SLNUzGgist5J wntE3DmO5iYwkH9jF5/B1L1YJD4PdQpn3CbS/pavSuEM0uGCEiZUNF9OrNa5fQYrnJJh91YpzKk R9SPZ+H22b4ygx+rFXl9ZuDZUERv74oCTyZxL5QuhzUAlJArD3ewc4SzKpIAMvSQEAz3504f1xA CwjlHzYZ28zNDg/Dr+QMuioLYA1H8UqvZqm7AaIRbELS3f35/9NSdIq/4l5071xj1kd9XIVTXLe 7jisydlMypcI4jT6dB9xn/bLddbXvbg1zgt2HvHjMyBYL8asbqGoNiLeFe7tm0HNdiw8Leb2/cT sWgaCG/UXhvYghaOiu89xG7lS0uIus0Qn1Cy99l4ogzz9Q5HG1zmHrYRv50vMqSCtGjaeRcYt4f KgRnsw= X-Received: by 2002:a05:6300:6d90:10b0:3e1:6c6d:ffd5 with SMTP id adf61e73a8af0-3e16c6e02f6mr8912915637.33.1791985988869; Wed, 14 Oct 2026 06:53:08 -0700 (PDT) Received: from wyb-ms7e59 ([38.55.195.146]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-89d804e6e77sm1121244b3a.40.2026.10.14.06.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 06:53:08 -0700 (PDT) From: wyibo6109@gmail.com To: Dmitry Torokhov , linux-input@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yibo Wang Subject: [PATCH v3 1/2] dt-bindings: input: add OnePlus pogo-pin keyboard Date: Wed, 14 Oct 2026 08:52:50 -0500 Message-ID: <20261014135251.11234-2-wyibo6109@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261014135251.11234-1-wyibo6109@gmail.com> References: <20261010143836.173883-1-wyibo6109@gmail.com> <20261014135251.11234-1-wyibo6109@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Yibo Wang 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, with a MAINTAINERS entry. The compatible names the tablet project the pogo port belongs to (caihong, erhai or iceland), which pins the keyboard MCU generation and with it the protocol extensions the host may use: the 0x3A general sub-commands grew over time, from the caihong (sm8650 era) MCUs with neither wake notification nor backlight, through erhai (sm8750 era, wake notification) to iceland (sm8850 era, keyboard backlight). The touchpad geometry and the product names are fixed per project and live in the driver; the common touchscreen properties (touchscreen-size-x/y, touchscreen-x-mm/y-mm) remain as an optional override if a variant ever needs one. Signed-off-by: Yibo Wang --- .../bindings/input/oneplus,pogo-keyboard.yaml | 73 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 79 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..fa1579ed5 --- /dev/null +++ b/Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2026 Yibo Wang +%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 + +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# + - $ref: /schemas/input/touchscreen/touchscreen.yaml# + +properties: + compatible: + description: | + Names the tablet project the pogo port belongs to, which pins the + keyboard MCU generation and the protocol extensions the host may + use: caihong (sm8650 era) supports neither the wake notification + nor a backlight, erhai (sm8750 era) adds the wake notification, + iceland (sm8850 era) adds the keyboard backlight. + enum: + - oneplus,caihong-pogo-keyboard + - oneplus,erhai-pogo-keyboard + - oneplus,iceland-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 + + touchscreen-size-x: true + touchscreen-size-y: true + touchscreen-x-mm: true + touchscreen-y-mm: true + +required: + - compatible + - power-gpios + - tx-enable-gpios + - wake-gpios + +unevaluatedProperties: false + +examples: + - | + #include + + keyboard { + compatible = "oneplus,iceland-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>; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 8014b9f82..9c29eb961 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20156,6 +20156,12 @@ S: Maintained F: Documentation/ABI/testing/sysfs-bus-platform-onboard-usb-dev F: drivers/usb/misc/onboard_usb_dev.c +ONEPLUS POGO-PIN KEYBOARD DRIVER +M: Yibo Wang +L: linux-input@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml + ONENAND FLASH DRIVER M: Kyungmin Park L: linux-mtd@lists.infradead.org -- 2.53.0