From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796229906; b=moe+QFNwh+MscZ7t6yBo3rb4pspwD88++z2dnpFsqgxy45yaNtJbOKyOXhYqsnAmC3gz 6DDZ+qu7YQkMsSgafwHuia4kdFxErDbdq88MRfzj7aMxllE6umJQY8jgDZ+oon2UAq0er 8u9aoYEmWEoAzhPPosJBzNoJvOFBFgvSH1xancVCltxAQYalE79LhE79c/Ovs7WhbNS4K p2eZv7mWbE7L2E9wIY5D4VYRguUIbhwUXIGyc/SWE2wS9c3sDGWEqRqZD1ruPKoxCikA/ twu5K+61n9XWdw8Nl3sIFBUiY8fpof+fKT51XMhYb/yvoqkLZ7XD/SZkg2HTcP94JoQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796229906; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=s5+tukC4ydTEIAM5FKj45jJEaxEnnRCsYo4AMmiHxoU=; b=DVf0/B45TGhvI9sZbpAzJevs7rzfGCFibGoWZdSwlncKFW+No08IFlQnFKLHa0DBqf4X VN61qvD99Ww8sokr7P1Gho5PC2UcCevXsxDpFb4kOkS2ToSmYwwH5UzKfZE4aPXNiJ3ZM XDvuLujiIGoix1DqMuryCuxfpH2XXRBRlimr1s/jVV4pGz828Kc8mhYeXND2pByVsD/EX pPKHtEVf9OGfo1UlHfA76z6izK83T2zmjcq+HxNUSPfgPUDnM3t7Dt1Ia3GfDyQG3So3R T7oJZt30RRRbx6pnzlfUFjKqxc1SGiuR4IQxODhcPyRcVJaruV4zleuu10k+Z93JFlg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=JzD7fthe; arc=none smtp.remote-ip=209.85.210.173 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 229E2606A330 for ; Wed, 2 Dec 2026 16:45:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 229E2606A330 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.a=rsa-sha256 header.s=20260707 header.b=JzD7fthe Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-89d6bd67045so16722b3a.0 for ; Wed, 02 Dec 2026 08:45:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796229904; x=1796834704; 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=s5+tukC4ydTEIAM5FKj45jJEaxEnnRCsYo4AMmiHxoU=; b=JzD7fthecBMQ/nkG3okK1ZLIdQhsTvfR9S2twFoaHjp6v9sua8Yx9eOGXlAU4tTXkU rNxGfrESs/sjTIM55hCw7QlCoYxhEHbtrZPnmIboQ1Zu4bi2xvK/b2ZZXnmL1dz77QS4 moL+jrEq+d+QksrfDmnfQMwW1OMBYi6iOgmTXVLxlJWiDfa1Pk5GgxlhuNF8NIHbDRXr 1hQD6FOWCYydf5nz+PLXD3qjqAOqkPtlLR9j8mlrTWRZ/CAqymAo+zSLOlQtS3qQ6XR4 WhwEfBtj7tFt05ka1oOUtyA/kYWlJ9COaKaIPQjsLsQxaZlvcxZ2W/nmJPDyYygiqkRz vZQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796229904; x=1796834704; 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=s5+tukC4ydTEIAM5FKj45jJEaxEnnRCsYo4AMmiHxoU=; b=cJytB6DGKxA0oWKpeZPrzZ44EieMDyu2nafMjbCfZ7yLTihGZLt/rQ69IWVh7BHUFG EcLLhcDk+ybnFm7S275A+49eKi9EfBbiiKdVHsl54GSajGfHuzEH6GiEjEPZ1Rw8GMHS mv1WVe23y1/KgCngpIpsppi5xdCazPIF02+7qSmbocmTtqQehAH6iTlznmP8x+BtSFZ3 V9qFLWHBmFb9VRYVUy+9gx6sjfT51nc3w9l40bkF7DfFAQwrFw5Ys7GmNbMzICP/+c6c jKnkvJfN2vwy6m5Pt3MjmkRwswElJgS2OepzNJnD+Osg7KLJ2k+6Zawu/VTV8p6Q3nZy hTmw== X-Forwarded-Encrypted: i=1; AL+hErF1YadUcUt65ZYo8VneIICZ1ocNp2dGmMosjTPSrapCI1eew2rYmbyw8cf4CIolK+3kAbWCfSd52CXjMCU=@vger.kernel.org X-Gm-Message-State: APuU4Z8ikBCJkGWx+jJtuUQU11FUISatQJ1CsAXrfwrCyoTKoCQgyIki yaCbQshZgWQNOmal+4fSPI2S4xrTSIcFlTgD80WnZbRSnMplxHpXrJfo X-Gm-Gg: AZFdTZc/pUdkY2GHphIGU2w55Az3YLr613hOlTs/HD4m7wpGgtiQ84BbWendGJ3liDJ gL6jUqIDiFosCUt4xQ5i3spFj0FFSPzEaCkOWlPzi96AfzsOuALsKgksRXHcg9GH2Xk+iaoGthE OJ98VunqqoW6OYRqc7qX82HULTF7wNVQSAtGEpHYDk3zW+D5aIHS259agb97OQ/BbVze8G1VpZH 8pU71HBpHW2uH0WPoZYBKZZZniTj8lcSxME9kU7jbkjBnvk4OTqBuHpS9bcOlsaKKpR0AXfF/Uy rCqCAb2rBZUseu9Mb/VAPfLl8kBKiWlu4QoE6eWqxMV7fLnor/9PrdREniAxbOcmhf+bUpOhvNB 5Uf8MMcy5TKX3AsYEhHhOM16GRa1+AscEGrrGhgCoQLrlpWwtDj0umqDVGSdQaFI0qLORto13T1 hBO14erBe591E9rC2/i8jS9MKREaJcpoo2VKm03DUGxtNG3fhwQmTOOnIET/no63GPLMoa8w1BE eaO8pg5frmeRqvIEjHyHCD4+60H3Vf2d7HLsK9cqO7dm2Vyil8FO5Y9CrJPxhQrLJ0jdP8O8bOz 1auaRvc= X-Received: by 2002:a05:6a00:414a:b0:8c6:37f1:16ed with SMTP id d2e1a72fcca58-8c7de67d8camr29264009b3a.45.1796229904300; Wed, 02 Dec 2026 08:45:04 -0800 (PST) Received: from wyb-ms7e59 ([2001:df1:7880:4::50a]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c87285c14fsm22196082b3a.15.2026.12.02.08.45.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 08:45:04 -0800 (PST) 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 v8 1/2] dt-bindings: input: add OnePlus pogo-pin keyboard Date: Wed, 2 Dec 2026 10:44:56 -0600 Message-ID: <20261202164457.1577424-2-wyibo6109@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261202164457.1577424-1-wyibo6109@gmail.com> References: <20261202164457.1577424-1-wyibo6109@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Yibo Wang 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 --- .../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 +%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 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 + + 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 +L: linux-input@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml + ONEXPLAYER HID DRIVER M: Derek J. Clark L: linux-input@vger.kernel.org -- 2.53.0