From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 6AD0B4D09F8 for ; Fri, 9 Oct 2026 12:21:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791548484; cv=none; b=ATMz6QRYNk2YSelO/4Q2Gay0iOttxgrmWVIH92Bvv7gvLIMJ8S3shDv70ZDr12Ze/ua8utNxkERsLYsCZjRhEx2Fs6EYe3owGLMEVKhfPh9+P9e4potiX79JtY1W4a2NqndJdJ3/W6rblEyk1coUqyzeME+r4RsKW/KgOqcMOjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791548484; c=relaxed/simple; bh=DxUv0mvssxN3iJhOpegrRee7xWpW2o1yHuPk8Cu2DW0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oNO52HI6AmziAFwEXQ3Egxb8lblh/dVvlMW6G1pt8IQssAgl2E2p1dOaBeWbaF5znUrf4XkH4ZHZUeGxPkoZs3yFP9Ct7SAW2s7XxW9QGXsESdejy5/0pHkJRfrPBPTPCeDiQqbKNwyNqHYfdXrcEYNq+EsnKC7lr7PRb/HFf84= 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=SSbj8JKG; arc=none smtp.client-ip=209.85.214.179 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="SSbj8JKG" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-2e49851734cso25251145ad.3 for ; Fri, 09 Oct 2026 05:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791548469; x=1792153269; 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=gs2kW6mPfU0JJJVaVDYl+M+hweObzydf3vfAXZLYSp8=; b=SSbj8JKG0VG9obdGXHSm1fLWklGAMIpt0PIrJIKjkddSQ9Tzk6EwpfH4Sn2BHRYAj0 UcGooJbhuhenL96ZZB0+uuR3fmmG2+vWVog28bsEieMqarpm4xxWCok4gPT8Wqjy293b 1dSGwN3EN9wdxhMNHOwbsofqxTOHoEDdD2vhUElLLzoYyw+r5LNG3ClW1rX05Ikc9QPJ 6/GkDEu7gj+E16GZsaAb+BIye2k9APbpDrU8hX/yCQowjAg2oat8BGzEmMylV84bfeEo VlESBjDqoXTT0bn1zBCYW3gxFy/7Et5Vif+ZP30g1jt/VerC3FfJmPXM0fIP6wHeS2N0 YM4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791548469; x=1792153269; 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=gs2kW6mPfU0JJJVaVDYl+M+hweObzydf3vfAXZLYSp8=; b=nbUFDn/FY8b/nrWy6r1py9W2+Bug30P/AjNHyF2XWaZJTTvCnyURzYgsBAeCx7z5Zy mOa+W0I5w/rMIrNRjkGvJnqlZrgou19t1Dk2TsO/KfKI0ly9uT6hTCrMTM3fnXo0YJhs phUXXcrm+dToILiWxH618mqqzmONMZx2Ojh7uu8ine/OMjX33Bi+r8S215WLks8Bik+E 3okXdxNPpfKuYM590xDKbByk4lFm4ZKdGI44ZdhunSKP240bsaBVu9wlpJKQlcY0uSpQ XbpBdKt8B4ZRZEHR5oGhFa0J4Qyoojw4QKk4FzS8Dm1x1RuQz3tnf8lsaEMXf0kHZYtL 63MA== X-Forwarded-Encrypted: i=1; AKwUvBzMmPK4AxEQq0OYbmBEUEiYZuotPiRG7eUlw8xdsAXBjf3xURqsAHNpp014IW3y8Yc3TifBFUJkJs+pQQo=@vger.kernel.org X-Gm-Message-State: AFq9FYLiOlPXphu06LaPCc7/nEw3V13t8EjUKJNE+j7w3JmkdwEDm0j2 gj2eZS8KkZozPiljPOCpshOoDu0ncNnNz0UhUcgq49QQW3Jlo6a4n0N4 X-Gm-Gg: AYBFou3Y5zwuGDrszGHSTL/J2+MplIZiWJH9ANybS0heix8oTQ/Ywjeymfljxg0OrT2 guZtvSEb5jJqVW/G6pbnboXLjvcyYBlguAlYVs5TyJy82tBZbVLjaVZAg7x+3N1Wh+bAkRB3PeZ UAA5ZrOPZQaKAo2SUpc2ZmSMwt/vAgqlVk9VTV2dy32NysBEtlnaNYWel6gG7vi2uxF8CTr902V gVtae8YQOy+sfkik6g04AzmKYfzoZn+0ScAQzVQ1Mrf92xbY+UtPNEvkGSM1IQos7atuxZEMyH2 ln70q3BfsERKGRVz412ooquzzZine2FL9H3oXQO9JLKqig7ep6Ieskr4EYhgy89zw2B5ANyIC46 BXIH4eK45sHct2yBsDnpBWiLlFyEh8ZFAoZqXu8/InNi9v3MxBne89bgoMNtBJ8aDe7cqZCehPh Bs6d/AIHhtbsCn8f1DfDmgXOuxSJ2ogYlK1NYVDNoocKQl0pyNbeERbSbHcFAePThszVP4cQq+s wv/Bw== X-Received: by 2002:a17:902:ef49:b0:2e6:c39:b25b with SMTP id d9443c01a7336-2e842ab6910mr13464835ad.14.1791548468607; Fri, 09 Oct 2026 05:21:08 -0700 (PDT) Received: from wyb-ms7e59 ([38.55.195.146]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e8421b15f4sm7622505ad.45.2026.10.09.05.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2026 05:21:08 -0700 (PDT) From: wyibo6109@gmail.com To: Dmitry Torokhov , linux-input@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yibo Wang Subject: [PATCH 1/2] dt-bindings: input: add OnePlus pogo-pin keyboard binding Date: Fri, 9 Oct 2026 07:20:45 -0500 Message-ID: <20261009122046.551915-2-wyibo6109@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261009122046.551915-1-wyibo6109@gmail.com> References: <20261009122046.551915-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 and the touchpad geometry properties, with a MAINTAINERS entry. Signed-off-by: Yibo Wang --- .../bindings/input/oneplus,pogo-keyboard.yaml | 81 +++++++++++++++++++ MAINTAINERS | 7 ++ 2 files changed, 88 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..849558458 --- /dev/null +++ b/Documentation/devicetree/bindings/input/oneplus,pogo-keyboard.yaml @@ -0,0 +1,81 @@ +# 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# + +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 + + touchpad-xy-max: + description: Touchpad maximum X and Y coordinates in units. + items: + - description: maximum X + - description: maximum Y + minItems: 2 + maxItems: 2 + + touchpad-xy-resolution: + description: Touchpad X and Y resolution in units per millimetre. + items: + - description: X resolution + - description: Y resolution + minItems: 2 + maxItems: 2 + +required: + - compatible + - power-gpios + - tx-enable-gpios + - wake-gpios + +additionalProperties: false + +examples: + - | + #include + + serial { + #address-cells = <1>; + #size-cells = <0>; + + 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>; + touchpad-xy-max = <2560 1440>; + touchpad-xy-resolution = <24 25>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 8014b9f82..e978a26c1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20149,6 +20149,13 @@ S: Maintained T: git git://linuxtv.org/media.git F: drivers/media/i2c/ov9734.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 +F: drivers/input/keyboard/oneplus-pogo-kbd.c + ONBOARD USB HUB DRIVER M: Matthias Kaehlcke L: linux-usb@vger.kernel.org -- 2.53.0