From patchwork Thu Jul 7 12:50:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Viorel Suman \(OSS\)" X-Patchwork-Id: 589728 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 7282BCCA48C for ; Thu, 7 Jul 2022 12:51:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235442AbiGGMvQ (ORCPT ); Thu, 7 Jul 2022 08:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235163AbiGGMvF (ORCPT ); Thu, 7 Jul 2022 08:51:05 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2078.outbound.protection.outlook.com [40.107.21.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B2262B639; Thu, 7 Jul 2022 05:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ahCb+nelweNfoF1kOwl/P0outH43uwlXtGksnFJzm7dzb6B02g0TI3w50ZjYfPuQ+r5nUDAGtegmWCUfaOAffU5V0q48VnJvsFduk30nZCi0wpHzspen+eEn6Ug1if6KO8zryFzLL/LiLYEGPdl8qaNtwbxud5pfxFbE/t0MyRy9QN1XeTVWwxjgUsk+AMZfvnX8HnlldwsyYhrmttJt32VvJSe1oZ+wTbxfNxKIxKQMwx/h0rZq5G5t95EbUggvPYhT1rL+klCbbe1wu+//O0GNDM4brOkKcfMHVFjGsudmEWgAxyodHrQWZ3fTuHDzZPmz6rnMfPcokF0WBnenvw== 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=+chh9o4nIrSqxcuuLON4gUKhTkPGphmx8ispHNGmT04=; b=S9cHNiNQz96H2LdTneW3JJmrh3uPj8nFTV+GnOhjLNKPjdr4v4H913x2KpE7lZI9Q0YWzwcJlh+9/EEGy5jjRqv7oxoonJ3SM73i6CQSEa0sdyftsOtSTITzYA+EUx116Z8Ju79wF3qauWNbqYVFftBekcnGutcJL8/BqID+RmKMsslYiXEfLJp5NGm3Lp9LaQ8c5lc3wReu4Es19et/CdAiI5VeW58FljVuawHFGP1aixUyWRLASqm4mYjXTf6KRQd7CtMKJs5zwmZAs1HEq7pjwgIFuu5PfLf0MgCxzNthymTVxrx/v0K6WwP83ps9d323UFIMR+v/EFGjGdlA+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+chh9o4nIrSqxcuuLON4gUKhTkPGphmx8ispHNGmT04=; b=KNbgKOnGXVIWRfudOi3pfzMTtLuAqlp1Q58GHys1iTbQ/SpwP4//xuF29BFn5QdtOaDQLzeUX+gct9uT0VEta6bmUKI0etfDwMaPM+uz7VQr2ByKfXE+B0ELju4XgkXWGakYMt2rGrKF1C8f+eQoVrB0l3U7Z2oeM2BQjTW3YIk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5005.eurprd04.prod.outlook.com (2603:10a6:803:57::30) by AM0PR04MB6418.eurprd04.prod.outlook.com (2603:10a6:208:169::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.16; Thu, 7 Jul 2022 12:51:01 +0000 Received: from VI1PR04MB5005.eurprd04.prod.outlook.com ([fe80::6546:3ee1:5e6c:278f]) by VI1PR04MB5005.eurprd04.prod.outlook.com ([fe80::6546:3ee1:5e6c:278f%5]) with mapi id 15.20.5417.016; Thu, 7 Jul 2022 12:51:01 +0000 From: "Viorel Suman (OSS)" To: Rob Herring , Krzysztof Kozlowski , Michael Turquette , Stephen Boyd , Dmitry Torokhov , Srinivas Kandagatla , Dong Aisheng , Fabio Estevam , Shawn Guo , Stefan Agner , Pengutronix Kernel Team , Linus Walleij , Alessandro Zummo , Alexandre Belloni , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Wim Van Sebroeck , Guenter Roeck , Sascha Hauer , NXP Linux Team , Abel Vesa , Viorel Suman , Oliver Graute , Peng Fan , Liu Ying , Shijie Qin , Ming Qian , Mirela Rabulea , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-input@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org, linux-pm@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Viorel Suman Subject: [PATCH v8 03/15] dt-bindings: input: Add fsl,scu-key yaml file Date: Thu, 7 Jul 2022 15:50:10 +0300 Message-Id: <20220707125022.1156498-4-viorel.suman@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220707125022.1156498-1-viorel.suman@oss.nxp.com> References: <20220707125022.1156498-1-viorel.suman@oss.nxp.com> X-ClientProxiedBy: AM9P192CA0026.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:21d::31) To VI1PR04MB5005.eurprd04.prod.outlook.com (2603:10a6:803:57::30) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6882d1a2-0e07-4077-138c-08da60175822 X-MS-TrafficTypeDiagnostic: AM0PR04MB6418:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kDfV/swYiYjqpvlYQfRMYnDHfnee5TUG9TB/KRWuavtNe5ukZBVdg86iDOsiRSXI3OjbN9jM3Q3SaQZLJl9NgXK1m4lcZimkUmJQx2b01Jp9dCcx8nGasYUwHAenzYsQpPJuycE1/gAxIt117/2mIb33+3g5uZL94Thvi4mPd78AgkoWI2RbhckldW7YC9lkE+HRFu7uEDN77vPla3TPoxv4cPb+Fv/T+lSJuNVz2G/0sRxRXdL3bwsucqTRZzxZ8g3zOSFLFjpw3Wbbyw93A1JoTdcwVGy7HQzBtqwcINbP5Kd4lpm1DII+9rl/pwS5YskJGt5/k2ijJd8uZct8ltoGHy7ZEqD3yz4gEAoTMzw2T9eiMA/5heaSBNnSFyWm8MCU9JW5gC8+7oAko6wXHTJ7Ozrv1LBicK+qQputoSHx4CPFUrzHTqhicR7wbNeMJ11Peaxnx+gtGBrKdYb2gR/+wryJ3DIBVtgygWjYO1FcDBEecYQFrPKLGQtQlCeH2A/dBuDndo2WePyIVYcDdZxTbMmc6ytN+ZtZKCJbi3y0cNu7PHWv3LydDAiH3jPlmbxR2enFo8ZlOoqqXucbww9xda9PhiC4Agv7+Qowdt8X5Lif+FujmBDIzJdJDoe19f4L47T+YcNnWEXICSk7n+bEhJgsCNOYifZifElZp/NevBbkHzGSE4qNkMbObv0vU8ffx2nf9ap/6fqI0SiYTBc/OcH3+avdLgvK3eyzG1P25pNCbqZvs+PYpdQf0tJUpQthXOUs0ObErxr9EWVmW9MyXSEJeqWJI5XbRW39LiBQ5norU0HoasT1GHyiK6KXAh4+s8jXDm6PLB/YGJ3LnHaEmCg2x1J0anjCQ9TI3VkZjFW5ANwrWNA0VDdMdeBMPAF4BFni3DYowZnkVzBBgQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5005.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(396003)(136003)(376002)(346002)(39860400002)(366004)(6666004)(86362001)(5660300002)(966005)(38350700002)(6486002)(316002)(38100700002)(2906002)(41300700001)(7416002)(478600001)(921005)(7406005)(66946007)(66476007)(6512007)(66556008)(8676002)(4326008)(8936002)(186003)(52116002)(83380400001)(26005)(110136005)(2616005)(6506007)(1076003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?q?/SCKZgUHtbn2bqTAukmv+M9?= =?iso-8859-1?q?rAfeMR65+60G5Z37jSTX2/Ihj+NIK0lK5+zVGsomzu5+z/QuH58zGUo8kCml?= =?iso-8859-1?q?GRmdlHyRlpJAmyQ1Jo4jkCLRFM8E9qSLUAhb8zOXpg5DXsc4RuYskJ1Qgsrv?= =?iso-8859-1?q?CwSXLrJFf1W9X36RYM7h0i7ZrvTWlkU2DFs+Ak+LeNUA6dNZhahu6rxcS056?= =?iso-8859-1?q?BwzqDt+DCibt7cAlkEsJn7w5Ytu8nBuaXqiYvFyqgxSc+c1ppHYSdUO9ELj/?= =?iso-8859-1?q?7kp7+4otCkti3J70HOrlHTnXFKZHwcA1RGuWUET/pWT4NLXqa2NCHlqyTUYF?= =?iso-8859-1?q?ScJITNpguuEpA3pXhTCrmklELyHEW6FzwwBmeG/qahYPS4zA11o2vk3ubIa9?= =?iso-8859-1?q?WFnChOLH9K61S6CgclUAR4EUJUbDEIlqrqfL8gFjAufe3KRoqh7z5tp0JS2N?= =?iso-8859-1?q?qQUeLJc72jP+VNCLcU0KygwUnJRCCHtIxYGsgquuuGsGvgFaVAl2t5zu59fS?= =?iso-8859-1?q?+nO6T8JIfeI/lvn0o1SG1CtaL+1ylFZfP3m/cn1OIdSGMIR1cv1lvsW2C4fg?= =?iso-8859-1?q?CNtrtUdt1ArzzREo019eZI6YHEp818zTZOKY8xRpXV6maLmm5ysIU3hMF0qB?= =?iso-8859-1?q?3KdyLeQBeLIeqjm9IAJugsHR4XZ3FPNL+YSI7HpnaYHIRpqYmqZdLjqwnPg8?= =?iso-8859-1?q?Mi6jKIxSPb8OLbwS29HI8iqa8ApxMiRYY2cgu1Tyqy81fovz1/6HqJLE0BSR?= =?iso-8859-1?q?SyMChsZ+u6q+zY35ul5fD44CGejoZ5myxUGlG1tKQeAT8kvKYrvAsk5V9aJw?= =?iso-8859-1?q?rl7noADLVHUbHc0ZQJD07PnVrDxG8poHeoLvbiTJJWruq2Oe81pYrW+DsL/V?= =?iso-8859-1?q?a86kntQcMvjQMgg+2BigvD5JMNDtY/F0q+eN/herbitoMVa96mcvcsj35FRP?= =?iso-8859-1?q?++cXtvWeVDlVysw74jgQaRwOhakbHVIpoWe+ICA+kZauZeiA63FCM17fX6tH?= =?iso-8859-1?q?5yCK/R1pUApWsvyi2jbi223gjDTb5B9HHSMhGC6uluA1qjbYaQv65HDaVjOP?= =?iso-8859-1?q?lCcSAYPsCGk6A3KFThLoJdy22aSsVOrCTRrEBl1AfW2g5CgzwXMC8WBuGEyi?= =?iso-8859-1?q?da8GaFpG0CIayLQmPgGDxVtNjQkEGDZkEr9nkMKoo5eQYlaogIHIdQKmGf2U?= =?iso-8859-1?q?RMEu/NGCVnQcH52qwNAlJL5BNn/7d9wFtm+1j6+R2WfBUNMJi+/ukPRS3rJG?= =?iso-8859-1?q?81Jy9fpfTDE8MhvlScr2D+F3/eU4AUGNuL60ENTcfuCRFlMhfnzflEcW7/sp?= =?iso-8859-1?q?0dlf1AXDDcetzRui6L3tCvb1SWHs/Z+UqZSDHpiiCdGmcX4PE0V3xx+jZHjN?= =?iso-8859-1?q?ktFTKWzoWubAT8yJyXQrojgxN3tZR5rkeMyLToTmXdcJhO9wNODgzinBBejv?= =?iso-8859-1?q?Jtvr1hSSyHMj49qzDffBjZmS4x/CKy6Oeanjwrep21mhEEr24hl2dNCpXA0x?= =?iso-8859-1?q?F4tBnLI4eu4euCxvtjeuB+q9TZKTaO7IOdv+kUjbrTUBaqV/sotKYl6YBRCo?= =?iso-8859-1?q?4wNVERjpuz4o5CGjX8lXSapGcJDfNNbY+NBZluWmmwKtP1xg0xCTO+WLT66x?= =?iso-8859-1?q?ypgrU9mwyus3LcDCB?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6882d1a2-0e07-4077-138c-08da60175822 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5005.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2022 12:51:01.0176 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zc5q891Qs3psbmrhTaf8ivJgswU4AKDfZ40B30jPNYcsKTNku6P4HNsDA8LDOyUYFTU5HsGu7Oi5RUh9Xrr2gQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6418 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Abel Vesa In order to replace the fsl,scu txt file from bindings/arm/freescale, we need to split it between the right subsystems. This patch documents separately the 'keys' child node of the SCU main node. Signed-off-by: Abel Vesa Signed-off-by: Viorel Suman Reviewed-by: Krzysztof Kozlowski --- .../bindings/arm/freescale/fsl,scu.txt | 14 ------- .../bindings/input/fsl,scu-key.yaml | 40 +++++++++++++++++++ 2 files changed, 40 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/fsl,scu-key.yaml diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index 5ec2a031194e..572cb2e628bf 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -111,15 +111,6 @@ Required properties: Optional properties: - timeout-sec: contains the watchdog timeout in seconds. -SCU key bindings based on SCU Message Protocol ------------------------------------------------------------- - -Required properties: -- compatible: should be: - "fsl,imx8qxp-sc-key" - followed by "fsl,imx-sc-key"; -- linux,keycodes: See Documentation/devicetree/bindings/input/input.yaml - Thermal bindings based on SCU Message Protocol ------------------------------------------------------------ @@ -177,11 +168,6 @@ firmware { compatible = "fsl,imx8qxp-sc-rtc"; }; - scu_key: scu-key { - compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key"; - linux,keycodes = ; - }; - watchdog { compatible = "fsl,imx8qxp-sc-wdt", "fsl,imx-sc-wdt"; timeout-sec = <60>; diff --git a/Documentation/devicetree/bindings/input/fsl,scu-key.yaml b/Documentation/devicetree/bindings/input/fsl,scu-key.yaml new file mode 100644 index 000000000000..e6266d188266 --- /dev/null +++ b/Documentation/devicetree/bindings/input/fsl,scu-key.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/fsl,scu-key.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX SCU Client Device Node - SCU key bindings based on SCU Message Protocol + +maintainers: + - Dong Aisheng + +description: i.MX SCU Client Device Node + Client nodes are maintained as children of the relevant IMX-SCU device node. + +allOf: + - $ref: input.yaml# + +properties: + compatible: + items: + - const: fsl,imx8qxp-sc-key + - const: fsl,imx-sc-key + + linux,keycodes: + maxItems: 1 + +required: + - compatible + - linux,keycodes + +additionalProperties: false + +examples: + - | + #include + + keys { + compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key"; + linux,keycodes = ; + };