From patchwork Mon May 15 15:01:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 683741 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 20191C7EE22 for ; Mon, 15 May 2023 15:01:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239182AbjEOPBM (ORCPT ); Mon, 15 May 2023 11:01:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbjEOPBL (ORCPT ); Mon, 15 May 2023 11:01:11 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2079.outbound.protection.outlook.com [40.107.7.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80ADE10C2; Mon, 15 May 2023 08:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oJhYjWBw/SxGZ4mV2Ot7i5X7/oa+UaId3qbumUTHnpMVcoW1J8lsHV18pYfw6lO4wYD/irrzVHfVfZf5iKPuUfuvn3iMy8ubA/lPX/S3UTAbmaR45xlgwoRm7oRJCUFDXmiklRFCjH7vpaoEnthZjRvPrkuY8PGrpi/bVPk2G4Pn3EmKVi0qK4Vsiiy40Bfb+XCZEHmqu5u1SuwtX+VdhlGW5U1N7BmzSPHPKQVpH9H0NzLY/PiWhrDl0jKOF4hhGtPvFl62PelQmv6FQbIMtzPuXD5L3sSWVqm6fTytN/2uHzkmnftHBBn9DQ9fGP7fnv6V7EczA7HjVF/mftAJHQ== 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=J/w98p7Rv9XfeHIsLTjEjGeRBBY+/4FbzuuN0XWRfwI=; b=n9ci8VstWoSt076hQ2rFXYIY/4+jfVq93oqY/1Uj7ECz2cdnzd5MTblsNznyPtSBQujkE2WqRdlOH8y8NVoLRFuIiM94nf61exbnZTARmepWBFak+5TlpJtv1VhOxsktaJ4p09qUhwnVhZsUZ9Im2fyHtMqKgwehz2M5iBJCE3Hu1lAoI2IKlo0RKRrVSvf3Ena7mcMO+Sb1IPQ8c9BumQEpmqgFTpycgiDePsOwD5AWrbT0d+A3O2EJRxh/09Y4PPmXDC1fJ4b9pCivgwW3CNKQzHiW6ki39wOU8l1+0KrR8tnIQrsmHXaUkBbyezSwK5qWYZxnBGcmdj6S7zT1iw== 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=J/w98p7Rv9XfeHIsLTjEjGeRBBY+/4FbzuuN0XWRfwI=; b=bdsTSG7+0ALEC3wpmZpJovQT8XTXyHgOdVpwm5DU4pBPVWxM3OYB7IrSUdsqmJVDF/0GerhMji3QsP2WLCdSRG14JwRkqYG4m5ivsAttbh+bfTvKhGD1ZI5FvznRKq8AN+e99tb+xYr58k4WXbkXL3DvLLycRgeehNI/HajhF9A= 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 VI1PR08MB9982.eurprd08.prod.outlook.com (2603:10a6:800:1c4::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.29; Mon, 15 May 2023 15:01:07 +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.6387.030; Mon, 15 May 2023 15:01:07 +0000 From: Javier Carrasco Date: Mon, 15 May 2023 17:01:01 +0200 Subject: [PATCH v2 4/4] dt-bindings: input: touchscreen: st1232: add example with ts-virtobj Message-Id: <20230510-feature-ts_virtobj_patch-v2-4-f68a6bfe7a0f@wolfvision.net> References: <20230510-feature-ts_virtobj_patch-v2-0-f68a6bfe7a0f@wolfvision.net> In-Reply-To: <20230510-feature-ts_virtobj_patch-v2-0-f68a6bfe7a0f@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=1684162864; l=2481; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=L1HZGtYon0Lsj8171GCXGrnNhGVlNBwOHdE3pp0WTB4=; b=RSy6sQKnTs6FG/8jZef0jKE9dkRm94wCFi/4KxuvfB+Rs8qPhYEA48oMtppQ9JwfqxrNt5msj vqFQwsd7XH3DPE8jgcvH4+Vq0+sIUu9FMeAHXyINW2XLW8hyDAhUyRl X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1P195CA0039.EURP195.PROD.OUTLOOK.COM (2603:10a6:802:5a::28) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|VI1PR08MB9982:EE_ X-MS-Office365-Filtering-Correlation-Id: e10db002-eaf2-4670-8c10-08db555535aa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bmbw5sfIxWM2Xys/rjbaLGVb5Qes4/kWvLUfijxQTQVPvarI8io9gjEI6/Ho/CEDdGbrYLNEJixwUSikFMdaGEfQXMtZIVI2ukTZn6H2T/i3t1i/7EFpVbL/1qsb4Ua10XcNC+MXXdsNtEpTiFmqLO/XpMSAMLYQ/MY15kFWIQvEW5ySreLr0+XjcHGr3BtUpt6NSgpkz2nLD4WfNeIUkdwwfSGjTjjkZm7PlAwwZZ1o6A9MtjAqKwqC+uzr6KYEjs+91Q0x/hb1L0hL+c7CJ/U89wURXKoJKSS6WfcIiXvnw9tZjgVB0eRSRSCMTAZVYp/7/Q00rdyFSDRzlc+kHRZqvraf/B6g77ZdQcPWVYUoEk0zMH8fqxsHxmsSFnEp4PKDkN2qwqxiv9Q2HfdMvLtIZMc4ZmAGihZHf2/CdmCqL7OXnGIn+H+SwGsV507ybCTvEuQOxScFBVzQCWHERmnRhzeKrkzlb2kUX4iMhJVQGhShSF/kr5Tt3iCtKYP/B3YwgmqvgUxiLscX4ZfymAClK5MByhL2oZPswNz1erI/9e8YUaqXUC1b5+UnKSX/qnnEBvOHv+CRdBIByaiVE1xZfySsC48qD2664V3ECc0= 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)(136003)(376002)(396003)(346002)(366004)(39840400004)(451199021)(478600001)(2616005)(86362001)(6486002)(83380400001)(6512007)(6506007)(26005)(186003)(38100700002)(38350700002)(107886003)(36756003)(52116002)(6666004)(110136005)(2906002)(66946007)(66476007)(66556008)(5660300002)(316002)(6636002)(4326008)(44832011)(8676002)(8936002)(41300700001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?p4xPmqcHKLvJy/2HVHM7mAhE0Osd?= =?utf-8?q?rHgjTcNV+6Hinl92hhB9N+Y4GNJA/RI/5PyhLu8/KOhgH1wmVU4Ym2xZKNfCEJUxm?= =?utf-8?q?JjRpIR/bqOMdSIA+yU9O28OfYWUbxa0xXn7eHCrTSoFX9xM+uZE59t7OMi47bkXxM?= =?utf-8?q?kRqAuP1bzaP1oUKgSLR2G8wjdyQP7Ji8lJS0k8CFRs06ShVNzjSe1qUeUVNFw+8Vu?= =?utf-8?q?WPON9B78C731uJrwOJ5UAVdbFXgmW4mX9uyi/5FkYGBc6HizfllOKc3MXLuAZDUTG?= =?utf-8?q?YXXBZXMN5eCNwqLeU1m8qHNCWhEmSJebPvznYjjdO4VTvkL/+U3nSNT8Y0GPaX0dR?= =?utf-8?q?DZeQFIwysrIW097J7ST5X4jwQNlABsmAyo304pyMUvQupaA2k/PetzPYaVubYeXF9?= =?utf-8?q?BJwxii31HHd4oP8SRA9I6xQDLR/kKPRNjupE0BDyGVBE6U00++lMcBZi8cQNaAfnV?= =?utf-8?q?dtMlb/9BOYwe0jyG6QuFfSDRJFx4to1ZbTPuEvE5CSR5IrK7gmQ1lsr2ZpqBgE3KZ?= =?utf-8?q?e8Fx9wXZNK65rpMm/FETwzvS9NL78hNvXZXLXFYZQVWJ/bJPr2RIGYjJY961aD9E2?= =?utf-8?q?KAkDLmCSirbexI01YODjZb+jed9MGG3dNQ4vNPvTecwPH7IZ6avbQ8sBjgd1ZAZIQ?= =?utf-8?q?ghFrhOJAJg2oqDf60RjX31l0w3PuQwTnPg/YAXngnfUq6he9Jxl/UZRT3XPzf8Oat?= =?utf-8?q?QU45+M+ooyvSt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MS-Exchange-CrossTenant-Network-Message-Id: e10db002-eaf2-4670-8c10-08db555535aa X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2023 15:01:06.5307 (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: XXi775TUX85mmcGOgMuxCzHXBEGtHsWp/ED87BAKO3birnhG7whwIXlkcRgybdyaQL5jgXgKNx1XVYzzEZ3p0JKwu5D9mYNTubR4iXvwlZU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB9982 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The st1232 driver supports the virtual-touchscreen and virtual-buttons objects defined in the generic touchscreen bindings and implemented in the ts-virtobj module. Add an example where nodes for a virtual touchscreen and virtual 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..97a2c063b47c 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>; + + virtual-touchscreen { + x-origin = <0>; + x-size = <240>; + y-origin = <40>; + y-size = <280>; + }; + + virtual-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>; + }; + }; + }; + };