From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.174 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796229905; b=YFHnBxkvvuIbjbypEfN5PqqAO1rs+ftWoxPm/WXjwuLFYqPu3Pru0we1aMtG6oheyZRd TmsZDFAp6Mc4dlit3lZcVZn/A3Wg0EAAHCXDgKCi4ZGqiPUClk3oI47A42wTTUxJdAlrF MkgDA2FoYYJp4M/1Ja5c1XjMLI1qBL6WZq7vRi3mU/ChsUj/c9lvABbNp5jU0/lcSHf4K ea7a6VaPZDCQfuANwEqKbyjEGugIMjPXrjeKQqLVXLOghUEiYZoXbguiQ76Xmxo1J5d9H oXHPJc5Iy1cO+g4PcJHC8t76GTgyNTlTa55UGU1OWe0ePfZ6Vc3D6i/tF6IPQQIrg0A== 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=p9PByBdIV6R6fabPgH/Ciu2mJYCgZCX+sjN4PmA0m+aFl3iE7YvN5H9Ie24xsnjHhYAF xRghoWWYZx1UkLgn/+Y8vji1gKV/VdBGr0xhwiKvT4CVGL06Dpz/MBK/gdFTzR/dSB9Qs Gd9V8z8F3YalAmHiRpgUVOCIj0JR1xfNaNWUDXK2d5wSNBdwMvkaUdwyMJCUE2o+AzS+C 0xhUdQLq5BMYjkDfB5PqsmbXZA8Rcjt4suG2d7h/JzZ05TDiBSaGa4G/IA/iGmKXyCUKN tn3LZ48kbVXvweTnGZbECVYxOr4BiMcjQFOevNAgZtqcvFGE6+eLdB6n1ODKEO0tEPQ== 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.174 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 2ABCD606A332 for ; Wed, 2 Dec 2026 16:45:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2ABCD606A332 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-f174.google.com with SMTP id d2e1a72fcca58-89d6bd67045so16723b3a.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=v2SNqSVcFg0UKvL2P2ZSitxvxdFW0GCjynEHCx6ATgkj+MDUdmhhmq4/adfLs7qPYE fNslejnY3d0PWV2iOIYd2XcWHzJqAu70/j0Z62ox4RDP/flyujSUtInKbM4nV8m4GEP+ TPbjFQMZxf/T9xKbqNPKFFIVqWyYxFuXB/mpskzPnwTzc6TerdVhW8LUSxsrinuNVWJO w18sQtjkhMWpEjz77EOlfKCt6STypS75Z+3QPfuSqch7Rwfq+Ndb7iPVQA0s3l8F87N3 i4FfFHYwViucmo8Og+dzQxe8eDRNjDuB1nGK5ND/t+JJSj7P+kyuCSop9v39spM1su69 qfRQ== X-Forwarded-Encrypted: i=1; AL+hErGI25oXTAvL+uP5y+Z+vBaIErFTf5leWQBaXeMWLcsr8+T1hR5XYyg8VrAeRsCluVir2MBeVqNRYwGK@vger.kernel.org X-Gm-Message-State: APuU4Z8TVpLIjqQlUnPRFVSKVRhFB4srB+un6k/hx0P+Ehh2FOKB38VF lbjxOj0Gobc360og1lHg2rT6Ebv66gVucHhgf996JusTaagn5epL0y/D X-Gm-Gg: AZFdTZcZs0WD5nwE7cFmAneY7JLhteZbmVqBYjUWbNF5sklqxQPJ3FWieWKUDFvmJgH khyjq2wx+jtfjBKo56Fif4YfkB6Z6MsHXZ1IE8Wbe0HL7zL/wxt4KJ9DUwwISjksXIZ9h/TNgKZ iMgqCHsEhpG6ZbsDzcCZnDM+O+Y73VaxV605reJzhJhlLSqs3qlSqz7UdzLZpAus9/DAayRtrel 7EBeXeiL3u7i4FEf6wJj/6HsY+69kabcZDvuxnP4N46ZNPdoiUYrDhmYX5DuWUERZuse5817vOA 34ATfc9TifhaMaSdU7OpNJNrFNiLYYzDVKfPXjoRGG8wPb7yOKI1vf3t3o+kQVdSz7DXDZRsCJq a8MVy1CvNJWSx5quz3tYvEYqc2/73V8ouTQ8g4lJwiogs/Iy03led/ZPSdwO4qvIkUvPjwmz8sB wL2mr0/WLvTfdaRLRFvVUqH7WfwHHLx6kK72NvskIN0Yt6hVOPlQGmvSr0luZrjJd5lOvvX7EcR H9v6BD3ZYrxUHjryFqCxflXdeb7i1xvK+NMbzXy2rgqpFPdsB94ZQ4hTbK/jrmSgHOphk6/H/kV 937Sbe8= 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: devicetree@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