From patchwork Fri Jun 16 07:28:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 693470 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 4DD92EB64D7 for ; Fri, 16 Jun 2023 07:29:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244932AbjFPH3T (ORCPT ); Fri, 16 Jun 2023 03:29:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244936AbjFPH3R (ORCPT ); Fri, 16 Jun 2023 03:29:17 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2057.outbound.protection.outlook.com [40.107.7.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E6E42110; Fri, 16 Jun 2023 00:29:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TLIazik4f35cIIUUsLK3+I7x3TcldgZXr2+Klzt1VSdXSI//+J1baxafSaCqgNJUE0V3JlVx+FN1Ow5wcdPxE51YZg+qAXASEF6s7M7cEyPUK5VlOSS814D9MenVxHfo0cr5JGMGtGFWjwDRPAAN8qdBC5jCEELSdS3jYBD5/AbGz85XY2/gjE2hbNk54QPhup8QyvjoAR/ykv/GMEm3GLMT/fOPmYCYq0gwCpoEuC3y5UkuhcqQMUlsmQjLGnjG/cf8VYiQplIvKvE2Ez6fLBK0MoxYlFw8sNeQ6nmDvUpOZeC5rYgvFVQiBEd6YCspOYgWOguBVtI6K0aQm/CRWw== 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=LCrl4ZbJ3Kh6c3qmxW6uwwiFwGgNUB5sft9lr3jk/K0=; b=leNV9MM8h8YzBhcSA16692qWCBl6G+6Jg1ePZUufGtOH2nTfbFRHFnC2iskFWV0FT86gsqS7t+9YaBd1omLX7mj8O1OUZXZzUFnPG4HejSs1lTTvtsxlllcUtwuRMJkBd+YI5XC0RRLOVFwQiZUrWvFKplhAvJwj/MnOM5TCebwjrXheFAghq84BqGnUx1sLMWromWqnioziii9a8kYF6/mdXyByC7OotsiDf5XtXDJS/k2dCMzNWaWPu7+ouHOI50rhWPa+Xi3RE41yveuMur2b4VCIKBpdANoJP3FVOX6+fm0OmoekzytER0JMwnjCe4PckehPnsorcZeBbtT4Sg== 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=LCrl4ZbJ3Kh6c3qmxW6uwwiFwGgNUB5sft9lr3jk/K0=; b=X4a67l+3865kTscv7coywZjQRUHZn6/mtTt6hLIrxT4EzVSIuHILZQUAlUvxpy5zL8wfIAin3RRl0AFu6x1Br7glh16/unxmVqOJ0YlgQBOBCKrbU1752P0hsBRa/HAG8N7wXFK3FklzWJ7qHkrMk6tmyRHefp39EP0eUDSDi2I= 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 GV1PR08MB9916.eurprd08.prod.outlook.com (2603:10a6:150:a6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.37; Fri, 16 Jun 2023 07:29:11 +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.6477.037; Fri, 16 Jun 2023 07:29:11 +0000 From: Javier Carrasco Date: Fri, 16 Jun 2023 09:28:54 +0200 Subject: [PATCH v3 4/4] dt-bindings: input: touchscreen: st1232: add example with ts-overlay Message-Id: <20230510-feature-ts_virtobj_patch-v3-4-b4fb7fc4bab7@wolfvision.net> References: <20230510-feature-ts_virtobj_patch-v3-0-b4fb7fc4bab7@wolfvision.net> In-Reply-To: <20230510-feature-ts_virtobj_patch-v3-0-b4fb7fc4bab7@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=1686900549; l=2481; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=u41+vfnnWlumMLfPi3uNqi+j7l8YievMuwAbZnCAEtc=; b=weaZMYa9i73fJy1hCjWn5NlMCoWNIfZ4Y3iRVyNC5bpL69dtSHvgusSHOPYx9R6Fcda5m3/Op QW4SrIFOKUlD5D1QCT/yRniZfm2w7EwabDe9rdHAuUZbE3sIGo7VOto X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1PR07CA0197.eurprd07.prod.outlook.com (2603:10a6:802:3f::21) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|GV1PR08MB9916:EE_ X-MS-Office365-Filtering-Correlation-Id: 2d8d9333-7a74-4369-4e8b-08db6e3b60c3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oUFFTODsQK6ruovUgingej42hKFKDl4emCCT5oFWqCTLlQlGiISZ6bvIFl90NYQ7l7iTjlIQSkIJ48njDWoWRvNTQ/DdQb5oQb1FyPlG/E90wNby8/qS6JpZx5Re7ILd3GHCE/jP3WW1fsh8MnmFBpoiKfV5OBJ9jbOIDqsDVpy1Nbj6aHG+D86RXCkliTx+AzsIIVgLiuyZFiX6ckbYmtcSuKx7ZuDOtxlOGVOqXbVeUEOt55o2YXiVlvXmNG117B4kmpy7YYlQgX03wxdz0YME6j/XNJ70j+cuUchAWCN9dErQi42PIwe+yebBLr/XfLImjPW6J3f2m3vggyGe9RZNwCI5CMtcndgp19aNUWDUw3bXw+SCRjADjVt2e85r53nkqwhKa8yzKUMup9+anThmk2nxsnBDQpxotqXwoua3NFdCGuad6qwbniGfYXgpxaaUqfwIPoQKgHxUA7xnbYuTKcnaLmPKhxTaEEwYdpd8zrTb/LHH2MknnCh6lEmiuT0SJa+E5mBYbesfLvRT1Ga3Wk+AchNEauV8U/zK/7wQtK1aKj+VkuZoXFqaXjcGtkREl8G9wGeNnmjuXhdDpS1lRh3EFmy67r+slYSd6JRorZ3U08/yrS3QlXbp9SWB 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)(376002)(136003)(396003)(366004)(39850400004)(346002)(451199021)(36756003)(86362001)(2906002)(44832011)(83380400001)(6486002)(6666004)(186003)(52116002)(107886003)(6512007)(6506007)(26005)(6636002)(66476007)(110136005)(316002)(41300700001)(38100700002)(4326008)(66556008)(2616005)(38350700002)(66946007)(5660300002)(478600001)(8676002)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?/DK2GbKAWIBUaImWNltIRceWGS3Z?= =?utf-8?q?/BxHTH/MR/s87WUtlshTH50Mul7REpKEmBBgrhkFQs6TWbNRJ+0AlL6EXYA8EPNEQ?= =?utf-8?q?/LxhS2SXHmenZWSw+Xg6WSBLkk2wcfxVDAoLiI7JgE1CstbUcL754KXXugjwHyXJ8?= =?utf-8?q?BmyZ4euYkxgJipCCWHrcTX4WqHe8+KKYowcJ2wEtgTqkzUKG8fBsGKtVOmdHb801y?= =?utf-8?q?yhhrM3AEDXRV8/66Y9ldRmnNgwgb3fRvXU8NcCcrWfOKKhiHedQyNr/jUNcAB0bdO?= =?utf-8?q?U0y7wYhl5EQ+4H95fkFfMPQHCghCBt2nrNYO4EZQQlUf0nDs5ZQwq+26hHD4IVDha?= =?utf-8?q?S4bG0Um7DPegBIqTxHTlmlIgY/yshJyzk3v1wgjtQrESlviyCgt5DHTBy4LahtbjA?= =?utf-8?q?m13PvnMbWNWv6p3hYudX8NKb87WEOxnr0YNMA6Yri4HtFNPwitcfH59B6eLN1bnUo?= =?utf-8?q?uGtPlfiQghnv3Av1RpIWPemSiQXbqSwPdcnExO3SJMdSOU67NcwmHP/9bcKC8PAAQ?= =?utf-8?q?OIUD+CLbKRrN0yJaVw/kQGoL9nuAZqB6Ly7a2mGlUgONHwuRiiq8Mzj76Em2NxO+z?= =?utf-8?q?+D8AtxLsus79DA9ZTPgWns1WGc+T4FyNm9gxXxO8iVbs0OBwK+W6RhWyJCwGySseE?= =?utf-8?q?2qbI3KT5+WOnxwhj3O6DuND8XNoPCeT5u2m+xRL9Y2aBBZSRzuiIHTIMKM/RuSbBh?= =?utf-8?q?8J2ok728OQzRWIcbcSXxOBnxgnl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-4369-4e8b-08db6e3b60c3 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2023 07:29:10.9809 (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: 3gUUfkHwaU+P/lYEDVSqr/fb9l5tGySubc4o2OHlZfFMbyG3fUHf5q5JUva+mbmPzOhOxf21W0273UNQkEkWEy4+VDPIAUDb479hsGSlmDc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB9916 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 ts-overlay module. Add an example where nodes for a 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..6cc34e4c6c87 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-suspend { + label = "Suspend"; + linux,code = ; + x-origin = <160>; + x-size = <40>; + y-origin = <0>; + y-size = <40>; + }; + }; + }; + };