From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 18C62447808 for ; Fri, 9 Oct 2026 12:21:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791548466; cv=none; b=lQ+Wm8YqiDo60fuaGgciNGurxIYk6dO1/xflOHTt0Y7jxLTX7umBcs5L64YBwzyA9Kqmp3YyGzCE+q3vRJWEAuwX3Q2Er5BSrAyKKqlAgPU15RumnW5qUelABaiV8ZkcroSrGN1iEuhnIdxoFghWBFYrDTMVSqCNYxgArEFN918= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791548466; c=relaxed/simple; bh=Cl4LBCNyYjfLcA8M9pFp0MGm50fZVlfvAIPstVNB9dY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gCFlVXKtQ4+MC2B04v8gQcjWLxPHw/GSW79m740Cke9dREEvypZuqUGzBJB/Mt0qWVM3u8Z3fP5knQDREclQWXdMnnJLZqM6SozPdOm5NGqJalyS5/juyy3y0Q2rAwudTWblxL5Ta2sZ9rVd2eP9GI6dAKIIYsrYaZRZCcphlNE= 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=RWD3R2K5; arc=none smtp.client-ip=209.85.214.172 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="RWD3R2K5" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2e8246b13cbso11162445ad.2 for ; Fri, 09 Oct 2026 05:21:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791548460; x=1792153260; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=XEWrIzKLR6ifRFKivyWaAxL1i189Pekuk8YqMPtRbiE=; b=RWD3R2K55OrXY7x3cnfUhdGFsatYiKZk1Ys85Ji/hWfRWbVNLqhgoe4zXbLjChWDPk Sv5WGUpsQQ/eBS4+IKwIyrPjNxFwgtm5xZ7v8sUOwfZ05VSzOLzmh5lZnCG4zGPVAGZJ GpYlmnT2Sn1REyzZ7+9TqlV5OaRCUCTvS4TDIiX9moSHZ9uBcXqu39lHXEHMzOdKj8sR VS4axbhcn50xKS00p3iWLia/CUj4xSVdS+/NTTdjCWOFE35ghk93duMeFLY7VClJ4sVx DIizjn0sKIoexSz6Q7esY8R2pJcJDNTiVmaT0X5VDsi1HpJeWBoD5CDTncSWAIP57hvq TWXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791548460; x=1792153260; h=content-transfer-encoding:mime-version: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=XEWrIzKLR6ifRFKivyWaAxL1i189Pekuk8YqMPtRbiE=; b=Q23AecYIKLU6dD3ZJOB0vCEM2Iz/w0DLOXsXQWArIOBnrc6FMlHHCIjcHw2yjGVl2n yTtLAXu42KKrEn3xkUD9Jfbtlcl//AHdXoZzLJ0+FYMg2OiJrsc85jzivnUOi5oFF9em JYaYHdBI9DydeUOprtIJtEeYTTynIXRS8yu9TxMXzt8W9WWGLtyMudrwqvXHLEUiFV7i HgOA6VwsoHYmNYJRPEvnLvn2+agrNk77RQltloVfArT5M1bcNgPpvngrBNs1oc/KQCUA SuPvfrrw4uzH+4vvYEileOmIr2clTZL6esIJ8reIE+jtjkJth0NMqmKP+DXbnkgHPJ0U FaXg== X-Forwarded-Encrypted: i=1; AKwUvBy0gYFiWxA1ia068OxQzoWWnBwgTtIi2PZujf/4tKRlWa9E8/+ASgjWeiZ3UqoOBc7GGF/c/8kVCN2UPg==@vger.kernel.org X-Gm-Message-State: AFq9FYJ7aaeSsmz5lyKSfIufu1xmq3oawR8C+67eJSj5bMBYzhNtNt1r XOHhRpNjTK9Ph88DcMfEVv2/yuKxip3eACualPzXa5mD0ZyQATzvM1Qp X-Gm-Gg: AYBFou0jmt0uH7L41u9fopJ3cwzgIIp5Lbla0fWLCPz5muayBBg06C1UsiKwjAeXihG W00dI4zEgE3V6uXjyzd4e//iA0SGb0OFxblegGAmEX0uHRbL/ZQ1GDSmArsp+QtE1bdJRl4W4nJ 8/SSHxi43xD/GnTVL/PZJH2WeVvcUsj4+6bZWUENtztpn71liXlHilGYYVY5i6pRrgxBLVGapJe wZSlqEUIr3lfu8a0GJWPpewkL1crbXsPrVn1jfa2UHLfFvJIniPj9oQoTQ4hCI2qxDoll8EgH2K ZZRqjmSGBpyOIuMI98uKAOVaK1nRkfCDXnLLBRcSptv4BuuTKQRbWUH5vUTWKEGBvvio+XMo4gl 3ebrxXjXg5RUNtMiuI4G4rTQH01T8B/Pg9nJ3dyi1m2DysxOIeOshHwhHQJBxXC4Qlffeb/4CnK ITz4qoXehLm4K24SFu9x3xN5F/2gy07K1Og5BdTQz5vfCsgdI/YB29cnxc9A5FHB80tqY= X-Received: by 2002:a17:902:f683:b0:2dd:ad74:ac7f with SMTP id d9443c01a7336-2e842aafe0amr16027565ad.26.1791548459661; Fri, 09 Oct 2026 05:20:59 -0700 (PDT) Received: from wyb-ms7e59 ([38.55.195.146]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e8421b15f4sm7622505ad.45.2026.10.09.05.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2026 05:20:59 -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 0/2] Input: add support for OnePlus/OPPO Pad pogo-pin keyboards Date: Fri, 9 Oct 2026 07:20:44 -0500 Message-ID: <20261009122046.551915-1-wyibo6109@gmail.com> X-Mailer: git-send-email 2.53.0 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 This series adds support for the magnetic pogo-pin smart keyboards of the OnePlus Pad 3 Pro / Pad 4 and the OPPO Pad 5 Pro. The keyboard is built around a Tinno MCU attached to a tablet UART. Both sides share a single data wire, so the host gates its transmission onto the bus with a PMIC GPIO for the duration of a frame, and every host frame is echoed back on RX. The MCU speaks a framed "one wire bus" protocol over the half-duplex 921600 8N1 UART: 8x 0x55 preamble, 0xF1, src/dst addresses, command, length, payload, CRC16-IBM (poly 0x8005, init 0xC596), 0xFE and 4x 0xAA. The protocol was reverse engineered from the vendor kernel driver; this is a clean-room serdev reimplementation that replaces the downstream platform driver, which depends on a private msm_geni_serial callback and a user-space held tty fd. Patch 1 adds the DT binding for the "oneplus,pogo-keyboard" device, describing the supply, TX-gate and wake GPIOs and the touchpad geometry, with a MAINTAINERS entry. Patch 2 adds the driver: keyboard matrix, touchpad, function and URL keys, caps-lock LED, attach detection through the wake GPIO plus a 100 ms heartbeat timeout, and the keyboard backlight as a "pogo-keyboard::kbd_backlight" LED class device so UPower and the desktop keyboard-backlight controls drive it through the standard interface (the level is cached while detached and restored on re-attach). A sysfs battery level is exported for the keyboards that carry a battery. Tested on the OnePlus Pad 4 (iceland) running Linux 7.2.0-sm8850 (v7.2-based iceland tree). --- .../bindings/input/oneplus,pogo-keyboard.yaml | 81 ++ MAINTAINERS | 7 + drivers/input/keyboard/Kconfig | 11 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/oneplus-pogo-kbd.c | 1109 +++++++++++++++++ 5 files changed, 1209 insertions(+) -- 2.53.0