Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7137912rwr; Tue, 25 Apr 2023 08:34:16 -0700 (PDT) X-Google-Smtp-Source: AKy350ZtXp7vJgbms8b2sFCIZh1dFXGuL+Ar+GQ4RSAmcq8WaJHhWz5FddnIVNy6d5c7TIrXAbP+ X-Received: by 2002:a17:903:28f:b0:1a9:281c:4522 with SMTP id j15-20020a170903028f00b001a9281c4522mr18253799plr.52.1682436856573; Tue, 25 Apr 2023 08:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682436856; cv=none; d=google.com; s=arc-20160816; b=WdGcVRWDh3+s0ckSx7qs7/QelF0j8iFq3QQ1Gttf0JPU4QCLiZO+vPPe6Ay3+KynLM Qi+Ctk7bDZBup9fK45wWVJNUjk1OO8BsR9PvEjX2EF7w8V8niDro+qjKAJ0l8t5hDfPi Goz0TaFMl+mylO2KOdg5fRnSGFmcQhk9mTiyWVkAY/6LDDEM67hdthdtqBaltTU2CRCa KJgKC7looTCVB/YZGRqQ1Sc6YVUT+jF3eAtF6NuQGbOTs7mDcpBzrjpvxdk+5EIHQPvZ iAhIStbPFua1tRDE91nDqVSdAJRhIva/7gnqDOrXLrSqNNpKiDhfVwusBFWe46YrM9zb tR4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=IcoxeUfbSudo7Nt6eCdB7Nf00H6uTCj9DOErYB+M634=; b=XuHAWijPy2cyjIBC+6v8pBKiUBWr1tdVc14H5UCXvAYFsgYPruBA4aqUUyNZEsge5t QpOrTUKKAuXMGsR+3zsIfQR4wnPSFnRVP1l506X5X3rAXksEhLHe1vpWiafK5NFffQqd KYCMSe1zRd12ZVv3qDE8ChlhFYZQb//b2uOPWr8+Oc24oFog7PhQotwsWvzpIjs+lg0D ZMzbd9/sXOzCsfA2BcMpjZkkJxy88LNX0pMwiZZhj6cyvti0rV9GscrrfyN00FjaMjad VLezj2NFdFlhguleWTAqHcqF6JVMTxd13Glx2uDswJgH+xQnugKCfTo6A9DzUJSjU2yn LKqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=Aft1PU2E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a17090341cd00b0019a7a67d312si838352ple.454.2023.04.25.08.34.04; Tue, 25 Apr 2023 08:34:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=Aft1PU2E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234265AbjDYP3y (ORCPT + 99 others); Tue, 25 Apr 2023 11:29:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233842AbjDYP3w (ORCPT ); Tue, 25 Apr 2023 11:29:52 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A141B467; Tue, 25 Apr 2023 08:29:43 -0700 (PDT) Date: Tue, 25 Apr 2023 17:29:39 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=t-8ch.de; s=mail; t=1682436581; bh=IOG78c7OJGwj6Yd8Ch8wH9TBjkdzSUpcWZzC4T0aTCY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Aft1PU2Eh19Cz6UMYqd253WTTTI9YNcNjgPrB+WVttysNNsgDGzty5vqCwQswNo0K 2FpBkW1MxdHtISKVd6wcTBovc7flg85iZJ11u8/pFFOEjYYkD7Rgw/ndCP8q0GpzNS anlMQq0N19ZeI2pNs5pWS7rlw67IFyDkEEFhKIfw= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Javier Carrasco Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Henrik Rydberg , Ulf Hansson , Hans Verkuil , Stephen Boyd , Sebastian Reichel , Linus Walleij , Jonathan Cameron , Uwe Kleine-g , Bastian Hecht , Michael Riesch Subject: Re: [RFC v1 0/4] Input: support virtual objects on touchscreens Message-ID: <419c9d72-9791-46ff-8317-b4dfe2e2d0a3@t-8ch.de> References: <20230425115049.870003-1-javier.carrasco@wolfvision.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230425115049.870003-1-javier.carrasco@wolfvision.net> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Javier, On 2023-04-25 13:50:45+0200, Javier Carrasco wrote: > Some touchscreens are shipped with a physical layer on top of them where > a number of buttons and a resized touchscreen surface might be available. > > In order to generate proper key events by overlay buttons and adjust the > touch events to a clipped surface, these patches offer a documented, > device-tree-based solution by means of helper functions. > An implementation for a specific touchscreen driver is also included. > > The functions in ts-virtobj provide a simple workflow to acquire > physical objects from the device tree, map them into the device driver > structures as virtual objects and generate events according to > the object descriptions. > > This solution has been tested with a JT240MHQS-E3 display, which uses > the st1624 as a touchscreen and provides two overly buttons and a frame > that clips its effective surface. There are quite a few of notebooks from Asus that feature a printed numpad on their touchpad [0]. The mapping from the touch events to the numpad events needs to happen in software. Do you think your solution is general enough to also support this usecase? The differences I see are * not device-tree based * touchpads instead of touchscreens > [..] [0] https://unix.stackexchange.com/q/494400