From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (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 BCB4137B023 for ; Sat, 10 Oct 2026 14:38:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791643135; cv=none; b=MzC5mYIlaJ17iLsyYW7OSWaRnMeiC4YSkwwlbh056d0AG1regQN8uDuSPMCMoa+qhGRu5NYiRmbZZco21uI0x5DLWYnx8Q7hYxR9zGIZQCw/955Vl/aLatSszdyHsi3QDCfxObK2UI56KESeNWsCRxN+ok9Q21eLZqtllKQIfNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791643135; c=relaxed/simple; bh=uAxyCYziBc7ECXg17HgMb5or0IgwW9xJeT069BBS2RQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VnOT0z9FtgvH3D2896LPkOUDYOJDeiwePG9c+VMTpQnr8O2MVXIT0Ld1c6JOwX+1C8oYMB85gOdjKBj/M1AEzIewdgxM7T4sscU+Q458lbcIes39a0BglE+zNQD6j4BR5zN911rgt/4I586nyxcK+aVW8vV3ArsbNs4NZBk0tLM= 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=Jjznh8tv; arc=none smtp.client-ip=209.85.216.42 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="Jjznh8tv" Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-3ab41538192so415314a91.0 for ; Sat, 10 Oct 2026 07:38:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791643133; x=1792247933; 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=T+JT4xkL/rjUHrLyDkr60TIJnL3a1LtABNKb99HH/9k=; b=Jjznh8tvf1fZstHheamKFB2a2G1j+4mWqjw8F3wCG1HB6HtoqXS6aofrw3HLWBrwtr Rdd8RPTeEHgaQkmONEjv2PW8VmBfUtNGI+SIxLav9Oh/lGUPEANXHugF8yyq6BA+tNKB pjPQKMOoYSeVzFHZhGCt7whLJnuXKsHIJ/aKawEir8LrGdU9gX6uOIVbBck6F1PutwgZ JKRytEbzzchf0LGD5ZwtXiVzqrFsUVERByKuLu5aq69lCRw81bVLjSFZqaBOD0Ppvgfw Ed7xyoBiyydgrTU8CULq62G3/MZUK9rA8CoYw70m6qAhk6E11sUXZGCTS86u1Jng7fmb yZDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791643133; x=1792247933; 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=T+JT4xkL/rjUHrLyDkr60TIJnL3a1LtABNKb99HH/9k=; b=E2QqvPmQvdMx1kIvhafRNFaVsAzFjf62BJFcC8GN5qGmOMmIXbTittcXtVytYcJTVM N5RFy3gvy3dN8Zp21QQNXsJLtx1hO6tGFZv+xHxoqK9O9X/Gl8Trns/QqJaOr6nZZr9B WNx7hEjF1F6oyM9D0OG8UhQySa8t6JJoI4EzZ9KQ4sWdRfBE7czol39+w51kUJFsOSrW oW1m3QNb7fz1WBw1GXvRt3U+Wxss3lLmO4+j01Qv4pbb9yfSyPwd+6z1H9d/DHAxwhRL Z5yvxUnazaWain7uGE7y5e0vIsPIKLmelp6DFZRCEyG9Zqf/1op6RM54o3wciALU6c8b wiow== X-Forwarded-Encrypted: i=1; AKwUvBxE3nxq0Axuna8p0pEoQngdpCXTF7DXwDDGGt2fuQUYguk4ryiNIAMrNGU03G9RnxTqbzvldJeVTVCdhA==@vger.kernel.org X-Gm-Message-State: AFq9FYJ5OZHcIp5UevglbPC/pICJn9qgQyQGSz09xPnMT/joCGfj/1EN 6XaQHPaTmadit0VoP9+z5ZduzPLM5ekb8OouA9f2mT+Np436nLKWToRp X-Gm-Gg: AYBFou2ODxVv4GjXGnOKcN6AUbYCDULvq3FftirkdBPZHaqjp+9Ib9m1RleNCfDIbr4 9pVA2AOOot6gf+RxGHgsqspWmE56FPceJdU/L6XUV97lXGQRuve58kT6zfKRYlOMzMCRlzX2abS Q/NimQ7Xgh0vEYr6oqsWttiX+/ikPPbfwDMRpvOfG07bmygCtjDNRAugfOuc/zRMOHnGHYocO4p lr1ACWv0WTQgUCJPrFFVVWH34YES1XW8Y/CTKAqo14Z62NSD22YgN392SZsfTPkfRN9V7Vtv/iJ sJwoFJM58JFkGFzU5Ll25HtznP7zgdq/zkFfvWaoSp5Ng/iy6KQO/7asOpmXjR3USFV6xXYu8tc kKNDsz4/rkEBnnQSoj5CY6Io0362ZjZC+tIrJpdqtGZsJq3pZimqSsf6tPFiIYzmPYL7MW13ahT 3IjeD9TlP3rb3sUb4e6tXNhdcLGXmqPMU4r/X6tlGDQ4a2yIbal82lNN73c0QZ3Tq1Klc= X-Received: by 2002:a17:90b:1dd0:b0:3ab:1ad0:db41 with SMTP id 98e67ed59e1d1-3ab3a9a4f3bmr4425257a91.62.1791643133000; Sat, 10 Oct 2026 07:38:53 -0700 (PDT) Received: from wyb-ms7e59 ([38.55.195.146]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ab38f2f866sm10821859a91.10.2026.10.10.07.38.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Oct 2026 07:38:52 -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 v2 1/2] dt-bindings: input: add OnePlus pogo-pin keyboard Date: Sat, 10 Oct 2026 09:38:35 -0500 Message-ID: <20261010143836.173883-2-wyibo6109@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261010143836.173883-1-wyibo6109@gmail.com> References: <20261009122046.551915-1-wyibo6109@gmail.com> <20261010143836.173883-1-wyibo6109@gmail.com> Precedence: bulk X-Mailing-List: linux-input@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 touchpad is described through the common touchscreen properties (touchscreen-size-x/y, touchscreen-x-mm/y-mm): the MCU protocol has no way to query the touchpad geometry and the same MCU is shipped in keyboards with different touchpad matrices. Signed-off-by: Yibo Wang --- .../bindings/input/oneplus,pogo-keyboard.yaml | 66 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 72 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..9055ececc --- /dev/null +++ b/Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml @@ -0,0 +1,66 @@ +# 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: + 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 + + 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,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>; + touchscreen-size-x = <2561>; + touchscreen-size-y = <1441>; + }; +... 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