From patchwork Mon Apr 22 10:07:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 791700 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2130.outbound.protection.outlook.com [40.107.22.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF25013E8BE; Mon, 22 Apr 2024 10:07:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.130 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713780475; cv=fail; b=XX4GVfyjwqfrlHC3LkHjhLtCKr+q5rv8y/bxpNDMfYD65zBgdH2Xrl8rh5pZuXb99DgRxxfSZeYo7QGndkwJIfr9Zn+8KApYNw+8V6DBQkni7GlA/NAidmnTsg7FSNJjurhbaL2adR9oQoH1wbrfBh+OYM/J3zR0mYRcidgzBrs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713780475; c=relaxed/simple; bh=p9Jwz/8rK0zTZPWVuIL6lA7Sdrjcu8RH3+Ur4C6kCgs=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=j0dk942T/x4sJOdomxpzUNX/68dtZ8wxykTb7CxQc0GzC0qioAYCN8UpYGFGicRIjekrrooa43r+CVsf+DXfbSqS+mBZqw7zKMbaTiyLQpKCikKd5fFEnvqOA4alG43fDknLmXq9E60kbLzI5MioMRH+rwg+HXNTe6j8U42jhYA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net; spf=pass smtp.mailfrom=wolfvision.net; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b=lz2iNvhK; arc=fail smtp.client-ip=40.107.22.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wolfvision.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="lz2iNvhK" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NLLc0Hsu83S2RtHecw7kVVvEJW05ZQ9LoXxBllIUOP9aVca3PZlhASzp5ZGymwRcdPcxhgqgdRZmenNWpRebF+mSNQL6PqYfs4ER3M2gakmxOuxsM6FrGx0th/jbql33rN2vuWL/3+xp+zqm5Mah8M84R1Utb7BQQ1oFRMAIi0xaE1pl8NvYjJhNv10CuOrpGry/hS6pi51s26zOPlL1W5cwlY4sVip/B8SmvGvSDmA74S1qUUf+dJ4bc+dQj6hPHV8ht9/q7Mk/pTWEwVqQ5QZYgyGGb4Aeh/SCgry7BBvXfaTcfMjnLNOSdh4wXOUYGmvs+SIyK7wvvftYd8G9pw== 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=0u1KdYXdRmqiAc1PitUbeMUNPuGUu3updOr0DLsVY+c=; b=BkAFZ7hjyv2PpbzIOxL60Nj/uxUDInOQz4yzk1FF7+4PaBdvbww9tMQIrMVj+TMwOnUxzUD3Da11NB+ms4iitzlCe+6i8qmHNilktHy2aoiMgYG0cIPVlF2fO8vSpAAjtulbPEwxqnFQAP7wrFKy9KLbMHI1RWzJ8IHHBwL16g0+51Y9UFaPo6nzQFx4OOgWvI+N6tqMBerGy07v9WO//cw0wdErL9HCNnG+gxqdRrd/T9eAT5OIqcjEzCw6sZzkqVpWN/wPxrFz5tTczJFd6nnQHGJ/Iffh0qzzejQM8b0tgMQWeL7FI+xnrSQehhpATIWtbntEAn3M/pCajgipfQ== 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=0u1KdYXdRmqiAc1PitUbeMUNPuGUu3updOr0DLsVY+c=; b=lz2iNvhKcfks/MUDSmjMtL3W7J5MujW8+cRYvuOg0tRtU+t4G0PAoeKtU9isc5bW0qI8ITmcLK9Wz9MOCMyphRY5n+idWKDC+XWqGrH26H2SxkravgjGtfi73j8LqRZgJwbD2ejRiO+R3/N7aHLBi/Rrlv6PwElz7Ngdh3B3Nbg= 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 AS8PR08MB7885.eurprd08.prod.outlook.com (2603:10a6:20b:508::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Mon, 22 Apr 2024 10:07:45 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6621:68a6:ab00:c040]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6621:68a6:ab00:c040%5]) with mapi id 15.20.7472.044; Mon, 22 Apr 2024 10:07:45 +0000 From: Javier Carrasco Date: Mon, 22 Apr 2024 12:07:39 +0200 Subject: [PATCH v9 3/4] dt-bindings: input: touchscreen: st1232: add touch-overlay example Message-Id: <20240422-feature-ts_virtobj_patch-v9-3-acf118d12a8a@wolfvision.net> References: <20240422-feature-ts_virtobj_patch-v9-0-acf118d12a8a@wolfvision.net> In-Reply-To: <20240422-feature-ts_virtobj_patch-v9-0-acf118d12a8a@wolfvision.net> To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bastian Hecht , Michael Riesch Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1713780463; l=2517; i=javier.carrasco@wolfvision.net; s=20240320; h=from:subject:message-id; bh=p9Jwz/8rK0zTZPWVuIL6lA7Sdrjcu8RH3+Ur4C6kCgs=; b=veMcZnBSjz+/gVOSf0+SqQmwXYUqbRRVhV4BSUnYUz3Ata7Mc3mhUuxX80kCdPRTy5pKOQIbi yyB/d1pRijIDuaFcum733CC4WIIeucDUyPVxP7k5+5sdgGR1d75OhNV X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=Vxk2/0sGIxM8rsKnceszFuSuHVfQwa1Yo8+is7BX2nY= X-ClientProxiedBy: VI1PR0502CA0004.eurprd05.prod.outlook.com (2603:10a6:803:1::17) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|AS8PR08MB7885:EE_ X-MS-Office365-Filtering-Correlation-Id: ad556cf8-82f5-4a56-99fd-08dc62b40e12 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?VkKxijzPtDYIOsI9CginWGGR8acNowR?= =?utf-8?q?nKnfgo8cfz5zNVWrCcrOraZvRlYAYzPMP3z3hP7oYL2WGkxFAD5hr7rvTDiJ0TndF?= =?utf-8?q?wOPGQg99jGZnbBwu/Kix0jpisnoEWjqIKcVSTv1M5aowCc/ojk5azHaI9hQQYiJpz?= =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8?q?/GCefi26A24zs00so0E03jcy+aw7giyCjTT6vvg9crj3DKZfb6JNfVy5FkRkcOxiX?= =?utf-8?q?oxWWqVpqpVAiaO+w/N1177Lb6F+IQnGArgF+GyKHJNtWatyGoMEfLQPC6Bsk5BUSm?= =?utf-8?q?1qL8i4A7gz6kBi0VJ2bEdOqYjdUmbMHHfPlbceoXlfVsgvyyrNcYueeIUl5GuN7E9?= =?utf-8?q?Bq20K8sIvSeSl17KJVXGh8Pj1wUxw/kj0T9ruN/AXWcIAz97hLvhLI0hnJIzIFE/h?= =?utf-8?q?rz3s8DKWfpZZMk9Rm2c32i+DvS2qRL7nBqA=3D=3D?= 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:(13230031)(52116005)(1800799015)(376005)(366007)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?FPfAEnew+FL4E6u0qCE1ulx0yO5f?= =?utf-8?q?1oNZt/Wrv9qZBcgiDzcaOr4scXTS95qQRTZfa5YyF4Kc235A/dhCtTRKwATM3rOSd?= =?utf-8?q?1l4LFqvwmVIg87ei5y41aSPqhBYRDWwpcz+KVx/eHmdVebtMQhYwhh/BrDss47BQ3?= =?utf-8?q?9K1PRyk++5dihaUfn/LJ/iXZ7J31S87YDIvDq8nGjPkmGbecn4IbBx+hPV2A+jTNB?= =?utf-8?q?3ZX8jRukA+3HjvXL7chhVR6k3DnoXrbX4dnaUM4Vit9ldYbbs8mvLoWctls04jvie?= =?utf-8?q?QlziOT4jlRxW/D6teBr/rcmUAcoCI+irNx5Nm0EOZbDrHTBdcFlnMKl0GysQhtsJA?= =?utf-8?q?Gjywob4LCAUnjGK4YVrdrdqsEEcSJ62PPYDoGkdz0sauOWb+3mKbzM1FpDJO1RC9H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?q?PYsXdfvhT7aXafyLPWegRZEvASXALpXyxIqJ/q2OE1xR8iJlrDlJYoCJp24AcvCeN?= =?utf-8?q?M8fiQEJt+IFGcdJ3ZFtzerkoB3+NuE32GQZ34n7mm+aPu05xFi1viCwLv1wWaBvFA?= =?utf-8?q?NyK9aCTjEBO6QxAU5iTTbLbI6i4v0EQXOCfkklHhaWBxI8t5rTY9lRejul11l9bDV?= =?utf-8?q?CSKqsPXgOcwyl6U8RqkfO8fBcfz5qXcoW2snn9RR9gtPN+oLANfZpZVWuFyxWah1z?= =?utf-8?q?bMzefVGCLQkvPYowFb4QMdlM2RrLAo7x2rIQAC2IJSrMMCAT7DIOIUs=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: ad556cf8-82f5-4a56-99fd-08dc62b40e12 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2024 10:07:45.0867 (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: dLwuz9JRpZepJLbpBsIBJgxVyrspAxlnRZRCKcjKVGx2RBmcoLc8Ckfl7YMem6W8Oe/I00Q4vMxcYQhogjLObt+aEBQbCKKw1jlll31CX04= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB7885 The touch-overlay feature adds support for segments (touch areas) on the touchscreen surface that represent overlays with clipped touchscreen areas and printed buttons. Add nodes for a clipped touchscreen and overlay buttons to the existing example. Reviewed-by: Rob Herring Signed-off-by: Javier Carrasco --- .../input/touchscreen/sitronix,st1232.yaml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml b/Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml index 1d8ca19fd37a..e7ee7a0d74c4 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml @@ -37,6 +37,7 @@ unevaluatedProperties: false examples: - | + #include i2c { #address-cells = <1>; #size-cells = <0>; @@ -46,5 +47,33 @@ examples: reg = <0x55>; interrupts = <2 0>; gpios = <&gpio1 166 0>; + + touch-overlay { + segment-0 { + label = "Touchscreen"; + x-origin = <0>; + x-size = <240>; + y-origin = <40>; + y-size = <280>; + }; + + segment-1a { + label = "Camera light"; + linux,code = ; + x-origin = <40>; + x-size = <40>; + y-origin = <0>; + y-size = <40>; + }; + + segment-2a { + label = "Power"; + linux,code = ; + x-origin = <160>; + x-size = <40>; + y-origin = <0>; + y-size = <40>; + }; + }; }; };