From patchwork Tue Oct 17 11:00:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 734610 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 781E64177A for ; Tue, 17 Oct 2023 11:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="XUtxCd+0" Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2047.outbound.protection.outlook.com [40.107.249.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B63BF7; Tue, 17 Oct 2023 04:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B0xMTsXpqwiqQcoRSGaDpNJI2vHwb+LNr6v0o2CLo3cNfGXYZEtqftO5Le3FwUyOe0n/Rqv0X4uyw7/vbf8/oMSZTVcOMIQM/tpknHDWYRZ7QydocVeRE4HAB9VIEYJMZkkHbEVoeV6Kz+2nwnZDYZ/gfupcg0JWr4O2eJo5bIvUh/YjCSMacEJi+0CnKoklswBGfmxbH5aqPvhj+gLntjRQ+ZaY30fPFalbHJF4oQVB23ys3jvFRv2p0gcMs9o/1hhliPFv324PbP7byle6CzM/nV2vrFE5D9JWXBN9PgrTxNI3Hj1tIxCLvcIf87ifgKCz9ngl5Cfmq7fkst2+1Q== 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=s7bJxCqTJ9g4MIATbCMC0K8OKp28hAs7h61w97OYN30=; b=Rm6hkdbZ74HwK/nNGAz1UeN6O4bykfglO6wxnp4Y/iDukE0DCTtU2NVgkAOkI9tEu0GlDTe0FqXSKXUJoTSqRh9ocCfoTe4LpHz4f9yKf5eFAHzDoBL9oNjMWOyne+9KoCKfeIGpWNXN0Sb/Kh55kuOrhWfzooZID1Gxv2zYIXzWqHRw210s1hCS457EcAdF7KzXVUuAzi2J76W5d7TQOjG9/3HqFf8yh6ju2bh9T2rwU6aGviEmPK59hACMtps/uVfYnVLT6sgSZNAUaJfSBvDi1w1fT324CH5ZPS/PRyPgWHfFfdUyczLJXRayJVJt50C+9ulAzd+lZRCyxVpCvQ== 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=s7bJxCqTJ9g4MIATbCMC0K8OKp28hAs7h61w97OYN30=; b=XUtxCd+0Wldq3JggtckXspZtPVEVTDqjXSH8TIt9i//ZHWIo5w6TMs0/CFayZi3H9X02bW6VymEFzayAMuCML6dJkdYwzJQ2RYUZ9nXfrm3mj+r9GlL694CtJxhyvS2rBJffIZqv1yafwQcz7ZT1txJjeXhjK7ejIwtNkJNYNEY= 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 AS8PR08MB6295.eurprd08.prod.outlook.com (2603:10a6:20b:295::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Tue, 17 Oct 2023 11:00:16 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::bc92:216b:11ed:db63]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::bc92:216b:11ed:db63%6]) with mapi id 15.20.6886.034; Tue, 17 Oct 2023 11:00:16 +0000 From: Javier Carrasco Date: Tue, 17 Oct 2023 13:00:10 +0200 Subject: [PATCH v5 4/4] dt-bindings: input: touchscreen: st1232: add touch-overlay example Message-Id: <20230510-feature-ts_virtobj_patch-v5-4-ff6b5c4db693@wolfvision.net> References: <20230510-feature-ts_virtobj_patch-v5-0-ff6b5c4db693@wolfvision.net> In-Reply-To: <20230510-feature-ts_virtobj_patch-v5-0-ff6b5c4db693@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=1697540413; l=2380; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=1LZHOKMnwrpCeQ2+qaEcztfZHfZu03BFbjJG0+mOSG0=; b=w7WigiRzqN4MYZGEwYUBbZ/8FDWA3dLCYshizEXgtxJYWAi05xD+3e9pfGquhb2hAKhlPltbc Io7nKxUKK3YB1lEEoU6fDucrSGDl3cgvttsml7Q4EbU3IIpRS7XtPRQ X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1PR07CA0250.eurprd07.prod.outlook.com (2603:10a6:803:b4::17) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|AS8PR08MB6295:EE_ X-MS-Office365-Filtering-Correlation-Id: 5d35a0a1-cb80-491b-3b9c-08dbcf003e9b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FQPUpZPh3LSfGD1WZwS07NDUjK/YdEKyA8aTEo0RCwmB9uRqvNSgUpnP+2eC15VljqUVQt8p/5N5ZmxF9E0AxqUnKWZINRPRCT5RKBKU/S3uSSoPoxF8LkiT07qbzlhSQuYxXcsxRTsHklRafL/xOscLfZPYLVrFczw7COtuzlwf48rUO5pkn12ovvWwAfXZAeEvJZr2DqgjEA4yr4PEQluyjOd2RULYc9poIkaETcmiQ3NfNq8pBIYIojn9XlqyHjDZVOTAwpq81AKzAOETmvQzF6p4ZENXE/UGRMWjI00S2AprdTkrApZxEkVX+39Q2qGnM+iTuKQOThNsAC8zctetJeQpqetnDhlbYEW9xeUGYXFO+IwNGKQMxCE3LITY+NdHCmCAOUdRcUXeleR6M/9hmakKKo09oHmrxow4KdsDlf2msYhm2dtwnnJnA0fs0VaqgOsx+3WVmxxPCbB50DbXudD9A2tL9sl7fgX6x3bLerbQlCrIDaaatujEkdWGE1/rvyRah9sQFn0PZ6rk5na0trVEgS/cIBtX1Qtou6Fe7WSwTwCw0CXdHPRwJSQ+YhIHL4Xs1TzK3KRTn2KfRycbHzF4Iz+HofpzSlGVn/BhiCSEVViBAiWEgsd6ojh4 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)(136003)(346002)(376002)(39840400004)(396003)(366004)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(107886003)(478600001)(38100700002)(52116002)(6506007)(2616005)(6486002)(38350700005)(26005)(6512007)(6666004)(41300700001)(44832011)(5660300002)(4326008)(8936002)(8676002)(316002)(66946007)(86362001)(110136005)(2906002)(66556008)(66476007)(6636002)(36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CCDI8PcTUI/PWaJUYx/9iw54g7ECdjxMcgXPU3hd2Ri?= =?utf-8?q?hleBqLmUDuRY+uFQEIWxw/DnD30wn8fjuyYMMDRvCCTVYtp5Z72oY27rPda+Sw3zJ?= =?utf-8?q?wOGboh84M/hDA0UxPaTZjci73Jl7nzShWs3na5GRz1wKU4LlZBT+MMRmjh7Ti7MlC?= =?utf-8?q?3KVeUwBxl4yO/Akz1isBSyuJ8vkczwxqX8M5m+aEz7rKyjVxuiu0FmcJHzKdyZFaW?= =?utf-8?q?dDVP255bNmdNh3ztiaGvu1mcUnVMfmNsogGHpSWOGDJrHwTXPHhUiB/k0z/dS7S/N?= =?utf-8?q?FtOZuo/qw4rJdplnVF1wTSlS6dqaY9GixX1gao1CRjPJQf4DJ9mlqS7OgkzTdL/W4?= =?utf-8?q?fQkls5/fREsPIKlIZ3VWcGtJryr0kIJea4SWpDFc5gbFx2fJgcNQ8WHU167ntbelk?= =?utf-8?q?ILb9R1Fy8hicG0/KzTa9mqQT7fX/DycZMPbsXQpRQ40WGZdzZqcwfPXkovNUZEbQA?= =?utf-8?q?b7LLQt1++ZpEo/02GH7eqRS4LbfNcpQN8SgETqzXA0vTwNtscheUorc/5kO50KomN?= =?utf-8?q?TLY+dcqdlU34LZbOLKa9qK82fPEjd/QatCPm55HVZQC+0CLcEnR4oIIytUPvVYTcn?= =?utf-8?q?zOIrrGo+9AquOz60Zx765c5+8/QejtsaZYLPMQTEl1rv0nLYLAfMEWagLGpMhE0qK?= =?utf-8?q?EbYD1cyhOjXi7w3gxTGXrmB3VHygZkOuPcUIRlhazF0p89hhC416l8X3tYgioB/U1?= =?utf-8?q?gKbqcZy7zzjNMqylJnkJE4bK+czqkTJCaEnni+dQqeOb46qZbH4o8fg=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 5d35a0a1-cb80-491b-3b9c-08dbcf003e9b X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2023 11:00:16.1687 (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: Pa25oFj+U583y1Lgy6cdZYVvyQiDyAlojOh7fOatR5FlFBkHIL2WZgPnxl2Q4+I/DZ5UTjj3x/EYD6Y1kBudPTNdkFcHz5uks20Mo0EopQg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6295 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_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 nodes for an overlay touchscreen and overlay buttons to the existing example. Signed-off-by: Javier Carrasco --- .../input/touchscreen/sitronix,st1232.yaml | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml b/Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml index 1d8ca19fd37a..f33fc0113a67 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,32 @@ examples: 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>; + }; + }; }; };