From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.169 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796229905; b=zrr4zVxABLArsoYHfr1vKcQbCGwoGBQIFeX+e8RRx6AW6GQUG96cfLFvXFShHOlk3tEH pa3oTPUP7YjMzsaCvIfYfcySDCKSb6oGM52V98d3pht/O2anFPStl9Ck+5/MEJFYgSqaN eH6BlDl+eMS7cIibKQQ12fV38CWSoI3BuYJkHOOSVW3+p4KQH/BM8VtHdK4gtFXq115Qn ANH3o5hKniTrI2m1s0HFFeBjLfx8R6b5gOyWcdlOxNcpbQMeN7xMMymLJbFq8hQP2V32x EoctdBEptNniUVOFo57KXLx6mvcHvp6NcGOC7mnSdwHHfVeQNmwyBzq3gUOI3yIR4iw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796229905; 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=PuBHk8yBNy3VH1tRn1v5/FqyTLgvoLq8lZjkFtWCURMjrErzmYErTPRrTBJ1w7XYhpIO EAeIcF4X98YgRPVKyZfxC+V3GuEK6moOoSgLssFkqiufqMWSUgqVmhirDXlvvP+OSB2WY 07gp0PvqESzFXmp9P24PaRmhKajRylHyF+cM9FXgdQMA1DJYpz/8nzZhRtNr5moxugCxN NDbtO9G9CtVZx2SJi/4gCsbNHspmUTtK7ITjiQMbh3T2gZQ3QKxMJc73dzrfKcyNd/cTJ F4g0+VY6xnp+2qoAn/s8y6cM5zG3nGBtNO8pL4pJzGXzBn6jptXEC1fKKo6N6wkhUZw== 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.169 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 1C280606A329 for ; Wed, 2 Dec 2026 16:45:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1C280606A329 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-f169.google.com with SMTP id d2e1a72fcca58-8a0880a46e7so10205b3a.1 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=NavJPDFBAJ7xJIjJQuvXbJPbF96Z0Jr/R8uoNyi4iLtwGQSn08BtWAMeebkd6CQT4Z 4AsHL2unjy/iXSbAiL8rTcV1Nn904jflg/h7mICQroY+iGuGIuu7lI1IFEUAY+xHSeRa g/2S0yFc4YZIfWJOE7VSc/6Oo4bgv0+lwaBtIZfQ6Q3tw0BZB6odWRRGozBfDF6gPG20 IWfgAEkMzoAl16fCvntSdVYPXCUmxaRfxhVn+8gVgmFF+3HXcEgyZkAPzJvf2/y4Z9Hu +MhC34Wqpjr1ShJWOSRcNeLvktM+eREg7KEEYautifHZeXHqevBiUkKsA/Y8GCyqWqnc P4SQ== X-Forwarded-Encrypted: i=1; AL+hErGuJ5xtB4COB/FBRrgPatPDSxshqMAnwHtYMGLNYIxdnt8e15dJRdGaQF1Pcdlc4skdbcMaM0rPqFFdcw==@vger.kernel.org X-Gm-Message-State: APuU4Z8emAikm2HkiMWbyu6yXFpcRLWeF+/D2Prw4MbP87nGkNP8CBUF be6z8NQE/boQI+Ey3DNZObzmtJrVjTys2Tfcdo6BRKzlHgc+lBrMGTd3 X-Gm-Gg: AZFdTZfyV600ZGt+qIhiuKsVQnExf7YG7ebDO1Jvkyy4f5YGhh+bCIRlgM61lHy72Wi Rb6Kp+zGDPxR1LVQJJ9NDlfyKQ5Woen1kCgMU+67wGt+Lm9XUa6H3EcO/EKZqHVV5sCK2Ud7kU9 FjagZ1M3lzafbHy37BoyLlrs6/yfub81GRL22/PGQ6rjFBJLS5kvpv3x931ly1rHsSnUBJvA3Pt uFfyO8gODSdt5kaVcQujZSKaVzwyIr9Ox+kOhPMtjFyGFL8XZkMSysMVs0YT/N7sUf6+NlMyQcm HmUKiz97QWefT6FXkerFfjky3a+V3yQxRV5nA+++VmsZS2VqiNsfRMXMFQfonooek5OrsSDHRlS arQHQWpN16sWGqyfkFgSwoB9YCXmvlZXzVk0F499agoKp+bQ2IXVWrM2IUF3AEkXdYKU9QMioGl 9J/cgC9URHUraUq0yLJQuMskvFjbFeQlY5Ey/vNVNI7RxxD/ZJrQWSzlgt9ZiUDzmtyR9PB2lvi KxrPDGg1X3OcJk6JYNWLKK6WMDZFACY/CwtZ3s+VGjYPRQdvjPoiqtmYU/m8NTJE+DDNaT8ylOi Xy6sNQM= 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-input@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