From patchwork Wed Oct 16 04:02:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 836890 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2099.outbound.protection.outlook.com [40.107.104.99]) (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 5BFB618A93F; Wed, 16 Oct 2024 04:02:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.99 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729051381; cv=fail; b=uQ/PY4Q0Saby45GWDLFu1D9NO47d0hY3XYS6m31qDRkoO3zmzYM8V9mN4tC+QAik9UdehZ4BZidUlsxa0B/mMqmW/gPm1kf6+eCHf3cT8S6hQ2mglrHwAKsp8vrJH/ncGz3b2ac5a5sB4Sw9LjeJfOhOkIvKow7kPVN+jlvcfJg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729051381; c=relaxed/simple; bh=XWHXrVKqE2CO9WPWm0JSgomvOBlZ7nKTdoLdXMwhYpk=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=C4RXWm3WkRt8hRiGJkyQG6b03TkXWCHdrC5D75HNfSvvYlz/9akx5fHYC9Imvui9HxnEPBFTVqe6ERSDgbuGgL3PipvcjMYRrsPvU4RgyNxJ6HCeJZUb06IyrLcFR3GJ0AhU+SAQzB4AdeIVjPTY//54EoqmvFAU95xxTZoVcVQ= 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=jf2RBX6B; arc=fail smtp.client-ip=40.107.104.99 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="jf2RBX6B" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SefXL8PbzSJGaEcsJyLW/nOx2c0rK3o1l+3qYa+tr2RO/vqqHDnVm4FMne5J2LsLK+Ccf12Zt25uATW6voOoJnROuHJBCIenEvy5AVVodTXJ81/5JgwCx6BMfaSp8DkucaDqffFBx59ObrBbuXq4VuyYkB/OTjfZZJwHuntybUyFfgNWObhTK6KeOvJGnx1FQK7c1F2Xyp+uCtPEA4bG1yVkl0xD87wZ7+nshMAUoSALOmQv/4hM8q6nbfVXol05yVL8W6eM62L+KRHMmNElxegSzTnGx9J13agxKl9HQCmooD6AdDUsNjL3+6CbSXaiZQMXfaRD4aA9U4lZ+JRw6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=OMAGtTuTnOUoFkDvbGTrc/5C9LZDKdMlTNViTlbiSRQ=; b=ZlYlwRhA5CBmXd+Caz5IKQY9rO5ddLjJ4DDvSu0MP6NsGsfZha2ZeiR0BjcB6aRxyRjcdU1nGL1csshz3zAaRYJmbC3mdfJ4YkMta3caOwzn31vkljGQvgEhPMXqHukAeNs2snyZdJrF7Elxx1fjRfTatjvd7EqeVuaM3lBQIHcXl77/rhzCkvS+wMzNjW4WaIXDaaMId0WmjgtEfJe7i6SqGE4z6KD5cE1znLyfczljNZWpH0URvIGtSOdGd021QawLs/wI3VkT3j8P5EFisU2xVZiG/I1CA1pSsuGNipCixC4ObOZhtqhxp8cu2+2CZAJPw4tUaqeXQgOCdNcNug== 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=OMAGtTuTnOUoFkDvbGTrc/5C9LZDKdMlTNViTlbiSRQ=; b=jf2RBX6BHtDskvUB84e/9hSOUaVFCe27VjQBmAPeeT2q1OFHTeeGxZSjfo7aFsQsqTm76mH+gg8M7qtRLx/kXtEpMSlHcDjN7V6TspMCu2sw+RVIm0xUgO05QnRYxGUjhJHKoAqLyyk6Z2Dm+BqjDeuZbGxWb/GA/u3QuI7vaHc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from DB4PR08MB9190.eurprd08.prod.outlook.com (2603:10a6:10:3fd::21) by PAWPR08MB10183.eurprd08.prod.outlook.com (2603:10a6:102:368::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Wed, 16 Oct 2024 04:02:51 +0000 Received: from DB4PR08MB9190.eurprd08.prod.outlook.com ([fe80::c7a:6978:9afa:19a4]) by DB4PR08MB9190.eurprd08.prod.outlook.com ([fe80::c7a:6978:9afa:19a4%6]) with mapi id 15.20.8048.020; Wed, 16 Oct 2024 04:02:51 +0000 From: Javier Carrasco Date: Wed, 16 Oct 2024 06:02:42 +0200 Subject: [PATCH v11 3/4] dt-bindings: input: touchscreen: st1232: add touch-overlay example Message-Id: <20241016-feature-ts_virtobj_patch-v11-3-b292a1bbb0a1@wolfvision.net> References: <20241016-feature-ts_virtobj_patch-v11-0-b292a1bbb0a1@wolfvision.net> In-Reply-To: <20241016-feature-ts_virtobj_patch-v11-0-b292a1bbb0a1@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=1729051368; l=2517; i=javier.carrasco@wolfvision.net; s=20240617; h=from:subject:message-id; bh=XWHXrVKqE2CO9WPWm0JSgomvOBlZ7nKTdoLdXMwhYpk=; b=ZDQYS1QI2o5Q8E4/PyNeXvhlm9If7BAMd/TUA+C7PmIhqysNISDC1G1uIyi5U32OzS+Uzm+nk eMFaSVC7kOYA3U6IrYf5eXe2myZnGrjFuOE5+SNibonzNpotXgobvWK X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=hfASRUP6l4lf3Lo2mjLM085/h37dT3m0Qj1HejXDPDc= X-ClientProxiedBy: VI1PR07CA0154.eurprd07.prod.outlook.com (2603:10a6:802:16::41) To DB4PR08MB9190.eurprd08.prod.outlook.com (2603:10a6:10:3fd::21) 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: DB4PR08MB9190:EE_|PAWPR08MB10183:EE_ X-MS-Office365-Filtering-Correlation-Id: ffe7a1a6-adb2-452e-d2ef-08dced9767b3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|1800799024|366016|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?3lPuqu1fwueA+NsTXnrZsdAhsTMWe0G?= =?utf-8?q?p5Q53cfi3YExazStjqoyn+TL3kBXj3yINBIJ4IaLx8eDE4M8aqRrmGdeeo5tZ8MRQ?= =?utf-8?q?6tgjEwg3d7M1I+fm4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?= =?utf-8?q?irXYEDH8c3TME82LnQWFjCAZu7NCf6peeupJA2PS+Wwy5U86q/M++on/zAAtoADKY?= =?utf-8?q?P/l2asVBqzeKFRT8i9PQjhfJ0h/rpRhEubJfNveiWjnotAvjV0BGAK8bMBTP2q0Y0?= =?utf-8?q?VuSzFT8gP1TO0v8fCH3Nur7xTL1ARlkJi95/xNamGCAYr1MtIYscmgYn7fHxJXaFp?= =?utf-8?q?aRkdgozQxlaSUAYgg3Bi+RZpWgQpvCg+2kOynXeOfImN7a4ToXzOmq/IAHPpw42kw?= =?utf-8?q?NHWWueykP3ZF2Ny42hfuJU0eijQfKMzijgBB5FOeh5BRMk9NFfbeNK4teWHoRiHSQ?= =?utf-8?q?VSj+4hXg8SNMBbCwnZ3TjoGaXselOpKl0Hg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB4PR08MB9190.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(1800799024)(366016)(376014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?DatVF+u+iFx0e2G78jfqjbsqcY+7?= =?utf-8?q?uTULAitA2swW08IRSX352lf10ora8zPXpPwwOHvxDIDCmOddlI/8oZDXnz8qTRi3r?= =?utf-8?q?xR5anuwJ5bXc7ZGSxFe5bS62FsTJk8y3iOvoS0MdrdoOIV3VDbfoBGV0GtW5L3y5I?= =?utf-8?q?omgQvD2+7CadVQmR7lLMlqPU1E005/Z7QVXX0LlUcUovA46ZUljEc+yPhOj/e5PHa?= =?utf-8?q?44Dr+GEo0NvWCqSOFhfmqLNgY+LkFFG3zZgqAcJ+P1uDn9ZrfDbxgU+rgyAbrEfJ6?= =?utf-8?q?md8+IXvkdCVSC87Jk/o/6KyIzzArFbdXqHPVRkS56aT31cCUDP/DdmfN/ZjbljmH7?= =?utf-8?q?qeNaSuIIja614e5tBxwApalI/g337Rkr7UhLe8qsJUlC6ygNneEFeUuI84hwZkEc0?= =?utf-8?q?ASbW+o/64MduQTs9BMB6Yi9Z6kaP5RSRzvmbOo/wVRxVzPLTb2ikA3yzol9r2z8wM?= =?utf-8?q?V8pUcTW5Dv88yMeqDxqcQEb+/qHt+M74/9nBK7cVA3Dy2KeleWoEGrte966rmpbnt?= =?utf-8?q?hhDR3AW7muJ2aca6EoMY8kuONF7TauV85p53L/B9BkKzAiCTs5RA+AbKdsPQA6amJ?= =?utf-8?q?r57SzXqexzYuAPXo1nAWPNmIG3N3gSdtP+YiteFG9b094ge+fZzPdz8zuDfzjhMay?= =?utf-8?q?BiQj712pLrTtsLZk32nwdKHhySDO00wx6OgvrL5TmttNSdtxdUggXxXSxj3lrl1xl?= =?utf-8?q?plfRau/f5W+/r6pDEP1/o01F7etgjofWmLzsPmPq+a8NX+2xygwFHmW2xKED4VO9u?= =?utf-8?q?ZbZiVG9h8Sv0HhHkJWM1Y5GmzTmYtREuHHbp3XPnp11LmSoof9G5eXqgd4jcE7RmQ?= =?utf-8?q?AXHbwA6Qwp3lPVtO0AHuTiQFZIF04xVpwEefiEMs8c3xbGsmbLXDgZ91bQmM6zuIz?= =?utf-8?q?a9pI1Jj9++dyIeyEbftsHInZ/FNR/JFEINxrprolkgRWBCs8HdT4paUCqhrWT1N5J?= =?utf-8?q?5gtzCduS9BjrxdhhuevjWNxFXImMlungVKA1TPV1kAG28EYMO9okkzArJuttmjM4L?= =?utf-8?q?kNJyHgG97y+tMFIiviz1SuOhxWEZfitONvaPNG9PGOWtNgAl1E6KsyAQbMXldme3e?= =?utf-8?q?Um2FeV2EnTldT4jqyuGcAQG0It5rlq5MVH2e632haHbjFhbhVh+048sDnsFEceyjs?= =?utf-8?q?S0xd050E0usst1KiCKyRy7aSF9nv9LyOSBfFr2MU0KiujcUESbZAkGz8EWxRI6wCz?= =?utf-8?q?qjhMOAwKRlbir6UZ0cZp17Hl/OyKOavVBgbZr0s7ShaqrtcxZqgB++Kw0MoQd8JL2?= =?utf-8?q?l5E5fXd7OQGZneCnOWE21VWi4/oSt37bqqjMk6aFvskf98nxh20WRa3F22bqCzEnn?= =?utf-8?q?G3p7IIT+CNVrwsSRKhydpvg4dug55d6LzTAaqPKTlB8L6Aj+oXskTgiwtyYIUQlAH?= =?utf-8?q?6gq12T3kRrpEM6oCwud2IUcr3TlN3GpAwXcbH4FqVi/r6AodjAfbE213i/UyuqODq?= =?utf-8?q?5kV9R0TT73s4r7u5xx0/5sYXr8U6QxKiH1rJGtd4tXOsk05vdwWNDapQHObJJkBy4?= =?utf-8?q?YHoYCQxMUhj/iwzbyvL5gp5LV5gvIkb+XCWEs0Tc6BmsHltzw8WNXew=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: ffe7a1a6-adb2-452e-d2ef-08dced9767b3 X-MS-Exchange-CrossTenant-AuthSource: DB4PR08MB9190.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2024 04:02:51.6074 (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: omwnKBAkm0hcze/gc9WIS4qfke7pZ+TzE3n1LjZ7A9F8Oev9DN5MkMildkH6QunHxmmEuBMMFFRD1DMxWkk+QH5rrtRvxK2lum/ZGPjO92g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB10183 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>; + }; + }; }; };