From patchwork Thu Aug 24 13:17:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13364139 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 616E0C88CB2 for ; Thu, 24 Aug 2023 13:18:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240371AbjHXNSD (ORCPT ); Thu, 24 Aug 2023 09:18:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241024AbjHXNRy (ORCPT ); Thu, 24 Aug 2023 09:17:54 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2051.outbound.protection.outlook.com [40.107.8.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1923319A; Thu, 24 Aug 2023 06:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bcAOMdzd0wH96/mFg9dbGHa35kZsxIEKLR2SUXVasfvGPLEKHbPXZlbADmllPJhp1SPsrG8heEHulf95SfzIg4hgBk4YNx+JTFMno5OvUnsKyxy160nF1JGOBSycl7XwuNwKz6tsxEbpSgpGLRtxmlqW5OIbBVLdMpZpT4+pXX9BODFdq3IFn1J3o0JRQ/JZNeem61Y0yG4cJ1XSbcsdSxyY7VBu8ZazSrxiBQf8eCcVKOMkHu2d94vTRR0O0jNe3JomSJIqoFZDS2dzMkN+NpacsQ6UJqtchg5DqEFDXFNE8P5ZsGLlUdk9CvcwBwiF3idC6UB2E9jaCuCbNcn0Jw== 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=GYdtFDDBz9yufg0hNLisSjqXC3yZme/QuGXLfwrwy58=; b=HmEq4/yCUiM3zYqsUa+AcU2fZIcNJxn09uoSsiV/mZ9ZdL5OIB0B5k2Bdb5aOfLJM2nxiQHjsBqVwXbzW7kcz9Q5Fs/sOO60bqp5wIVnh6rih0UV9EZIHgVA+xAl5fNuzM7t+ACbXOUxlHpzp+3SWNqDePaz/dTz76sS2qdbLf9phwRiYq4XHVNAUWOqmMAcZoBBore9dzB5ztXA51tOckXrRaj+S5fBVsM/jBp+Q2LjDcsuLZ+ggtLmv7VW+YKxW+ZK6dwPEpiPnRR3m3qhtQGchN2f8mnumGQjT8hVbTygc7NYfBRjH3Rdk2UeeDJTLLrO8+ZXPVx+rqWkzpAxyw== 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=GYdtFDDBz9yufg0hNLisSjqXC3yZme/QuGXLfwrwy58=; b=DtQTLDMgSI6l58wM6sC+O733i23rQiG4414//s6pOb0PA8dOtRIBJyYiqKGFBCyhhnW15Tbl9hvb4TE61cmMmHw/Nu1yVfxtrDUt5OdPTo8Psw6QqL9hEhEhsQlBGckrOeQJvyx1EQIghRu1WsedrljYNEPcMLJ5YNcek42QlMo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from AM6PR08MB4966.eurprd08.prod.outlook.com (2603:10a6:20b:d4::23) by AM7PR08MB5397.eurprd08.prod.outlook.com (2603:10a6:20b:dd::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.24; Thu, 24 Aug 2023 13:17:47 +0000 Received: from AM6PR08MB4966.eurprd08.prod.outlook.com ([fe80::f7b3:4adb:c638:d8c7]) by AM6PR08MB4966.eurprd08.prod.outlook.com ([fe80::f7b3:4adb:c638:d8c7%6]) with mapi id 15.20.6699.027; Thu, 24 Aug 2023 13:17:47 +0000 From: Javier Carrasco Date: Thu, 24 Aug 2023 15:17:12 +0200 Subject: [PATCH v4 4/4] dt-bindings: input: touchscreen: st1232: add example with touch-overlay Message-Id: <20230510-feature-ts_virtobj_patch-v4-4-5c6c0fc1eed6@wolfvision.net> References: <20230510-feature-ts_virtobj_patch-v4-0-5c6c0fc1eed6@wolfvision.net> In-Reply-To: <20230510-feature-ts_virtobj_patch-v4-0-5c6c0fc1eed6@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=1692883063; l=2479; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=44cgFwtZzL2OXOflV7LmrL4zTle4mGDX3x0vaww9+g4=; b=9+7+UTtVdpzK1oVd/L4sTJvBrbxdOJ6P0EV+SUj0CO4syjwj2uZxr/JP+DjUUDvwjNQQMbAHw Z2AZUfSUWmwDKYPSt48xEEmQ8GHyWVtHNa6KpsiUphfcZPg1wBSXiv3 X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1PR07CA0301.eurprd07.prod.outlook.com (2603:10a6:800:130::29) To AM6PR08MB4966.eurprd08.prod.outlook.com (2603:10a6:20b:d4::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR08MB4966:EE_|AM7PR08MB5397:EE_ X-MS-Office365-Filtering-Correlation-Id: 841a9e08-cf58-489a-16fe-08dba4a48266 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Hi7yxZgzvMUINLQhcz5l3N70AFpAL3QgqoxTdVsMHEOPalbIEuNCpKe2sa3PPoVFW9F//6rxyl1pGk92Nvcx3wo8jojk5AwidC1+yd6HMw6mKiTTr1hmyov5dgyuXSeCIss8uVDFBRKRn/Cx4ByzA2JmIALd30/lugR5fZp9GpwjV2O/MBOLIHkZ+rnCIbLLWTMaHu4Y5EilAuVZAMEsrAxZ6PtXUghZuTsCkELESMZJaz+iyyUxgykmDURHp7HQTh9fmgBPDs4KWt4NKdvz7c6MtkUV7p+BU6qR6VuZn+6KbQU90CKbciCncSACXUosK60YkUx9p9SLcSfZtVQ8f0PsyL1mvOBWpza/dbG2zWuYB7TJEczBsfyQhySoN2egV2Y3qJAB7vIYzgjLYBe23CK25NHURWN9xTzXRblq68cxtH0FfhXHfdfAApQF08uDemIcsX1IrwC6OKahs3tu4Nr+kBfxob40+uqVvsKCYzelIYlhyVMueoNHOcW01LDEdwxXVW7+zQ0kG0Tl0D6XciA/utnPo9IcHYYrD7eDlwMrPqCb9+aPurDgqXRbeHvXgZApCyQ2KnRPTdUVxDuv9A+IkRtwWNVQ7BJYt5+Hf1cVZ19Fv11wlGE82MqvKMj+ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR08MB4966.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(39840400004)(366004)(376002)(136003)(396003)(451199024)(1800799009)(186009)(2906002)(38350700002)(52116002)(6506007)(6486002)(5660300002)(44832011)(26005)(86362001)(38100700002)(8676002)(107886003)(8936002)(4326008)(2616005)(66946007)(6512007)(66556008)(316002)(66476007)(110136005)(6636002)(478600001)(6666004)(36756003)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?N7DVkdNRcUheMyZTij1zbXbvhyik?= =?utf-8?q?7Hz/wxHQT8IcjZE+BsBRO5A00Fd0l+/AeP/6xHcBEP5zLAH4lU5SFv0ir0AApcXe+?= =?utf-8?q?b84oBi/fy2ZJHhcxgaA8HKH/ocpH5TWAjNay0XbG8i5qVMgWfRN/RtcxMag13+D9I?= =?utf-8?q?lIlsXTrK73LKy6t3DyPW5q7q9Qx8imtzXq5f0BswXBqtOcIZjhsHyo1xNrxuuQlKa?= =?utf-8?q?3lmhCd2FaJaHGQwvfgkQDVgohOP/R68NiL6DJd8pOAHrrPqiYbvevqS8gBgtfD2+g?= =?utf-8?q?+4/j2FSFvqPrqnLu0LxfOqBMx1jV9k8cDQHbtVPlMzioHq+UapOLKkMj0BodJlQ5n?= =?utf-8?q?qivH4Al1FOQXEwwyCJvraA3HgQ1pLrUZYF4jMtUgke9nJUyA6chVQFPxm0VCcgywG?= =?utf-8?q?9EQPN1SNoBs707FyQzOYKdOH6z8uU3Z8HROSWpyfV3VUCHI68GUIDW3oM4mWb/5bA?= =?utf-8?q?nzVr0ljjVbRRPbsm5G/Gu1APR/2t29FOHRjWWCUi27A2oBr4fqOqYPu5Mc/bNT7Qe?= =?utf-8?q?dfx4dwm17hATa5G/WF1Z5JMZPAMpxArLUtvHeC7iIP5VJtU2PkLLI2m6H8fZWdJ/q?= =?utf-8?q?JjG050ZnpxvFlxDmA9g/junMNx3oUU+cuEXbLjw1AFo2DWourGT+nZ+LYcErfNV5Q?= =?utf-8?q?N+ELdENOv21WwybQfOPOjMjhNgqCRrb24JFCl8Bsgdquew/+52Axw4zaELf6X4Gq9?= =?utf-8?q?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atorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 841a9e08-cf58-489a-16fe-08dba4a48266 X-MS-Exchange-CrossTenant-AuthSource: AM6PR08MB4966.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2023 13:17:47.3342 (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: s2ZPFgEr1G54xbut8jO+byeoIod6HAK9+tpbpdrgdhy616GQjguWZDCYQloj8cUNNI+FttJVNmAsPHR4nMMISfw68Vj2eBiz5HA9seLcW0Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR08MB5397 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The st1232 driver supports the overlay-touchscreen and overlay-buttons objects defined in the generic touchscreen bindings and implemented in the touch-overlay module. Add an example where nodes for an overlay touchscreen and overlay 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..857b611f84c2 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>; + + overlay-touchscreen { + x-origin = <0>; + x-size = <240>; + y-origin = <40>; + y-size = <280>; + }; + + overlay-buttons { + button-light { + label = "Camera light"; + linux,code = ; + x-origin = <40>; + x-size = <40>; + y-origin = <0>; + y-size = <40>; + }; + + button-power { + label = "Power"; + linux,code = ; + x-origin = <160>; + x-size = <40>; + y-origin = <0>; + y-size = <40>; + }; + }; + }; + };