From patchwork Wed May 10 13:50:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 92140 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3640526vqo; Wed, 10 May 2023 06:53:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ObhIC5sR6EwPx5O2Jes15kMv1+Qk9413KBtVu8F5Ms4HiqvdvC+91wftpMeUAH0lUHeQB X-Received: by 2002:a05:6a00:ccc:b0:641:4d30:7922 with SMTP id b12-20020a056a000ccc00b006414d307922mr24297806pfv.4.1683726817348; Wed, 10 May 2023 06:53:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683726817; cv=pass; d=google.com; s=arc-20160816; b=en5tsKtQJbeyynsfxQwyYPk1BxJau9SyZQGDBxavVTXvSRFM7eCUVNjn4OdCFr9bXn BTCDYz7vArNcvC+ztMAUa8jGQ84V+RBnUG8+jeWIer62Bryo0uitlYvuzKkGW4RTl0Aj uQOegXHMB/VUs4uGRT6VD2fA1Xi8gtdqeXhya3H9oYPIQWD5OjfhYkv289aLYye1ICYR fQX+/HvWLg/5gp2eicX83J+RPxjtv7IVJuaubE2f5lqizbBTUc/+41r0dg6YZmP6iiQs Cxxwlh6nJ9ULJJU14WN1Cna3hLm/PVceqa3ML8tAvrrcAFRYzo85fcKI3CRL3Eh8ceeb /rzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:cc:to:in-reply-to:references :message-id:content-transfer-encoding:subject:date:from :dkim-signature; bh=J/w98p7Rv9XfeHIsLTjEjGeRBBY+/4FbzuuN0XWRfwI=; b=WovaMbwBioHZYypwKH51DhGXQRJhLNGjF+4KBHvCNq0gT3Zb996qz9vS4UuE67OVM0 DSRcZ5yHRswQCzAaXkmgdRVXy1/xXJ5qIVopa5BmW9Oze7BMKP3aiVgEO7YjR09s90y+ 5Q3W6boTqroV11At1tvtFEEvISFUY+Hqjk6gvRmzoTZl+5van2HHGPMEPVa1jU+nt3P0 iPhj0GabhmDWYxRQIe0TyWjjfCnaibh5UgVey8By1fkSJ2shi/ppUHo7tpY3OvdsmZ+d J8Ip86QrEagFqM5oWju8mkTNqh3bcXqLLz3utvx2Pq1WqKgpjws8XagQ9EmX7rnk5m+Z ADhw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=RNCI5YYB; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o18-20020a639212000000b0051b6f110ab8si4252326pgd.303.2023.05.10.06.53.24; Wed, 10 May 2023 06:53:37 -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=@wolfvision.net header.s=selector2 header.b=RNCI5YYB; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237060AbjEJNwq (ORCPT + 99 others); Wed, 10 May 2023 09:52:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236355AbjEJNw2 (ORCPT ); Wed, 10 May 2023 09:52:28 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20631.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2D232130; Wed, 10 May 2023 06:51:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mHYTWhUVE6QZZNfpPBt9XQveCJFJnW9xiSntG2UzSXceRza06YHaZCUXZkQg2DG7VqjFqOe143FDTKBY6mldWCMchZoLuAKn4HmwvzXuc986z0AO91b4y6sle97Z0ssmG35LNgpzvfloymfC03NbQwEYlDuH8HEaz7ove+c0rgZNNPaX1QwId/M4usZl9DylaBs1ejHmnMHCXAJnp7stPuGapOqevwxfpfRBWAVXnIf2X4q+ewjEQ89vxE+hi9o3KtwQ4I0MO9SyCIctp4D3BRzLi/9TOizZT86YmRZERux9rX4C6/bLr0uIX+v0LLk8LP6w3GxL6VyOviO42OBHtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=J/w98p7Rv9XfeHIsLTjEjGeRBBY+/4FbzuuN0XWRfwI=; b=MsTR+tyipsU7lsIwkkWcPeOjmoMlyz5OJDdhgY9VDIativyC9xJNzASDTjdErEg6167vEQ/w5IQs3PzpQPwoSrmzIYq/nGQNrf/X/t5VPxkfG8ZoV9gBUZ5U0zuNgq/je8jk7t6TKQGDKlICvuMu1HfGfvQgY58zFEglsOHg9S15aFxXATr1/eoHmzBP2n3b/KhzxdpBiqUcV5CQqyIMGv1I49CLQaoi61FdIM/iXPhVZ6+qw4dHbaND3TK/Qa9QeQwKr6AHcabPD7OCIcOOgcp0Q1JO4joHnDpy7MJ1y33VJetDABxQyoPIaqh/6d/pJoTzyrHNMJwEaHaJCKAtuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J/w98p7Rv9XfeHIsLTjEjGeRBBY+/4FbzuuN0XWRfwI=; b=RNCI5YYBjSJGmFCf95qXXXDtm/nBgNN9bnj2dNIlAnmZ7wYubVD0bZSlkEF3IZRQ9LU5Tae7GaUMnMtECHcC5L4WMd24vT12sVgKPUMHRJOqrW2RiVSoypvIqyDabINMrZ+PysnCT0kNlrjrpDuhRXlqyDShMbYFBlGuTa1eAZs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by PAWPR08MB10212.eurprd08.prod.outlook.com (2603:10a6:102:369::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.19; Wed, 10 May 2023 13:51:13 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::bd0e:a139:9e67:b86d]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::bd0e:a139:9e67:b86d%4]) with mapi id 15.20.6387.019; Wed, 10 May 2023 13:51:13 +0000 From: Javier Carrasco Date: Wed, 10 May 2023 15:50:49 +0200 Subject: [PATCH 4/4] dt-bindings: input: touchscreen: st1232: add example with ts-virtobj Message-Id: <20230510-feature-ts_virtobj_patch-v1-4-5ae5e81bc264@wolfvision.net> References: <20230510-feature-ts_virtobj_patch-v1-0-5ae5e81bc264@wolfvision.net> In-Reply-To: <20230510-feature-ts_virtobj_patch-v1-0-5ae5e81bc264@wolfvision.net> To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Henrik Rydberg , Bastian Hecht , Michael Riesch Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1683726670; l=2481; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=L1HZGtYon0Lsj8171GCXGrnNhGVlNBwOHdE3pp0WTB4=; b=lkvjoEGqMVKC47UUSoWEIcyfEkqJJWQlBhDKJ2MuLqTvnXUPdFUa/PY90PH6/aUs7HED/PiEp H6a1SMtjfugACpmVRfiLZzual2Jj7vCv3QLDdgSkjlJHX+QDQc3W3jN X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1PR0102CA0093.eurprd01.prod.exchangelabs.com (2603:10a6:803:15::34) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|PAWPR08MB10212:EE_ X-MS-Office365-Filtering-Correlation-Id: 1341ba47-dcaa-46a8-6d2e-08db515d9e5e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xhcUYR65ibgG6bQ1MmzsMtQrPzWsyq7SRwfelWJSrUAITc0/9yZAYD3Z3pEewxZNIGfd699M1hRepUwKgRibULLDoN23+O7A9KBYiIWbAgm0OBqV1nhZQe5mxp/+yYwMZ/bAHq9v0ZxBHdFLLFns1FPyY6aTGfqXp9JrdfRzG098V0Ab9JMl+YimYETXfQbCoQbVqQnywOkffuK/jf6jkoNTrGvm6Ui6qtbvQeyQ7mSjU7GU0uclz6lwEqeju6eqv01+YN7QCYvZI/XRHRLNetdSyLsyCtBDfHsDTGv3lLNg0rBuNs8bXyYvv/413f+EVSeCXZsGhC17Pixq4opc4hMBaHkVVPl5mJ1b8S+JyDAkf7IUSJCtheq4h+d1gIoaSc5loLMqSBHxsSSCeBLSFgM4moDVTr8nsN/p+tN4I2d7sKi7EDW9ruREvsi+nV9R2bq1DSaJjrzcBvy8nxFFqW7NCP5S/ucN1Ea0Yhs5eOJ0zLU0iMEAX2ObxWwMNuMohl8OUPa3lwo+mrUEgWMZ8tryeAl+Qbaq1ggV/Roi0gh5Yy/LvXIO3+Bh8mTxg9t7YQMwWUE53yCDoGKVofcN+TYoJnl8mMTMX8wwLiIkacg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4974.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(346002)(376002)(136003)(39850400004)(396003)(451199021)(86362001)(36756003)(6666004)(110136005)(316002)(6636002)(4326008)(66476007)(52116002)(478600001)(66946007)(66556008)(6486002)(41300700001)(5660300002)(44832011)(8936002)(8676002)(2906002)(38100700002)(38350700002)(186003)(2616005)(26005)(6512007)(107886003)(6506007)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Z6JGIBTXMdUw2gWE3vyiORQwz/TO?= =?utf-8?q?j6KiS/lGrwTIvTYEQ1POOiw6PL6Qb46vorHZZfJrdyEUWzUwcdVfh5nDTKRBZV4Bx?= =?utf-8?q?UpUw+CfaiD3sMlwaGOKDdmxjWU1I1VO3rLnQaCw9c9k2I1DNpURNlDjv8GCtccl8u?= =?utf-8?q?yG+QL+2K57XJ0CdTQ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wLlemMB7WMGQO45yahJbSF6i2yjskj1Am/DsZYl?= =?utf-8?q?9Y6jVCWeSezhmwMjqmBehTkftm+NiO/jAUK04yAq99mMkgIqM2nw4k/4lkPPdUZG6?= =?utf-8?q?gGpJZqg2MXVr05jz748QXZMA+tICYJvtJJgBs6uCQfsAZxrf9Wc/LOmcAj669aPkK?= =?utf-8?q?5D3vLlygwezIrQqvE/dziVmDjft99Y/6WKF0LIlasHeNo2HzxU5ihmPYOTcHe0eGQ?= =?utf-8?q?Gd45L/fgbwTMTP+7Cc/xIC8Ci0+jOVVMwdO7NL/sVYPZRetMyxGCK8xAigcp2AgiY?= =?utf-8?q?jiZVtckE3Y2aM5r3P2e0Bgq0DcWtfxJMbzZzDNCjK9yJQy6W07z6kyEeeB5uESery?= =?utf-8?q?8jN4SX5kzlo5Dc830AqTYbDy7GfjHtot1IV49725SzBDAc8D6Pt0+1/EDNokvrpoy?= =?utf-8?q?PAzJgeBxzE9r+YowU0ZaqEG23WwXwk+Vwbhl4ya6YNrAN18djYNrWTdEvWbw7t1wt?= =?utf-8?q?RrAh2t+nytvU/PH74LgShvmhkwMJj6uATaUlK8kjAXbjeUd1ZEy+7+k=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 1341ba47-dcaa-46a8-6d2e-08db515d9e5e X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2023 13:51:13.5063 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gk6bCu9Eg6kUDXfLVxMpOI3DMS7hq6bZnrnAZG2FprnsCIXwOgmFFrRG7HavRubFa+pF333LdAA/+u93A+ANEsrw/m7XsVCsaTLw2p+DVlI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB10212 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765515531229539882?= X-GMAIL-MSGID: =?utf-8?q?1765515531229539882?= The st1232 driver supports the virtual-touchscreen and virtual-buttons objects defined in the generic touchscreen bindings and implemented in the ts-virtobj module. Add an example where nodes for a virtual touchscreen and virtual buttons are defined. Signed-off-by: Javier Carrasco --- .../input/touchscreen/sitronix,st1232.yaml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml b/Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml index 1d8ca19fd37a..97a2c063b47c 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml @@ -48,3 +48,43 @@ examples: gpios = <&gpio1 166 0>; }; }; + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@55 { + compatible = "sitronix,st1232"; + reg = <0x55>; + interrupts = <2 0>; + gpios = <&gpio1 166 0>; + + virtual-touchscreen { + x-origin = <0>; + x-size = <240>; + y-origin = <40>; + y-size = <280>; + }; + + virtual-buttons { + button-light { + label = "Camera light"; + linux,code = ; + x-origin = <40>; + x-size = <40>; + y-origin = <0>; + y-size = <40>; + }; + + button-suspend { + label = "Suspend"; + linux,code = ; + x-origin = <160>; + x-size = <40>; + y-origin = <0>; + y-size = <40>; + }; + }; + }; + };