From patchwork Mon Jul 4 16:15:31 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: 587703 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 AB577CCA481 for ; Mon, 4 Jul 2022 16:16:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235025AbiGDQQy (ORCPT ); Mon, 4 Jul 2022 12:16:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234839AbiGDQQr (ORCPT ); Mon, 4 Jul 2022 12:16:47 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60048.outbound.protection.outlook.com [40.107.6.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C44512086; Mon, 4 Jul 2022 09:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i8kjGd0+ZB6EIqEbsGZH6iZcTWPid25J9DeqBWPUEhaCNwoWtVf7n2kVRBKXKGR3vjW5LcplohLoo6r6m6fPyI5JOw9hW+6FizOokU+hWb8LFLjd4DYi38XEl/l1rILXyQawKcZXBH07YVLLbtQvvW9VmksggdypxSmegm54+z43KpdFespA/nEt5WBTHv8ghOl/HxLDbJrmhdxI1eWGCQ6No6SIcwv5O3mYnhyuDroYgRIrW2JEmjiJ1QDDfNZnX/jdKTsuLscCpweRY3y6kzrygGY0pdnw/IZ9i+2wU70hiHknmXU+T4oBak2LCD59NBJc/3H/Z+vcGzgIlZFPYg== 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=kJpTf9kA6MpLhBFFGhAQ9sK3m0THoIk+tgQqVfmBBKI=; b=l1i5/c9br0v/dW38FBS8BbQ3zjeGSdjI9QEhEdQMfMjUvVw/kSO0hveV/VyEaJLhlj5xpJVnZixtHyxNtCTmBCEdwNFqGpmPeHidDNKwJPNRk23gK73/IpJItPUE89SkbA6a9Ctndqa3CJ3IKq8+7LZLyNA0H5gRES4o5JK+e0ORp87NYJn50UupPdJ4AUd6SaPIW3TZoeDo22Q/UPOEPjBF9Fx+0gh1mOVZRqMCzGy4rr3BH3Qwf/OQQBPyk4sejzZtUT2XiPhMe26cF609BZjaknhchPmNLHN5/0WC8JQ4SV9zo3ALzsEJ30t5qDFjKDLCHAU7UDw5awH8sWAhPw== 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=kJpTf9kA6MpLhBFFGhAQ9sK3m0THoIk+tgQqVfmBBKI=; b=b54DV1Aqt6swL+nh2ZIbgI4ppBStovqTi0y9aUI2kqFb5mD/nkzm+WHXaTi/JiY9Q/Hn4pDYw35zLKuA0wMt/bLETbH6pp7WjcD9AaXsKSbYaMu2U48a/IgtkjfcK3tVOXTWjydG5QHDQJnoXDuEZL2keUL9cQgbQtUGSodqzIs= 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 AM6PR04MB6293.eurprd04.prod.outlook.com (2603:10a6:20b:71::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.20; Mon, 4 Jul 2022 16:16:35 +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.5395.020; Mon, 4 Jul 2022 16:16:35 +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 , Peng Fan , Mirela Rabulea , Liu Ying , Oliver Graute , Ming Qian , 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 , Abel Vesa Subject: [PATCH v7 05/15] dt-bindings: power: Add fsl,scu-pd yaml file Date: Mon, 4 Jul 2022 19:15:31 +0300 Message-Id: <20220704161541.943696-6-viorel.suman@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220704161541.943696-1-viorel.suman@oss.nxp.com> References: <20220704161541.943696-1-viorel.suman@oss.nxp.com> X-ClientProxiedBy: AM0PR07CA0008.eurprd07.prod.outlook.com (2603:10a6:208:ac::21) 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: 2a53a769-c5f1-482a-f364-08da5dd890c8 X-MS-TrafficTypeDiagnostic: AM6PR04MB6293: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: LwDF4NFx+HVUw3SRzqftec9cByndfngfmyUg368ZaJe31YnOXIZDdVaJKM64hXUcCWjklJs8jvDLsqs2kKG5V+XYMnZDmzzYJbMTHnQUYu7FYd29qK4UF1H4hZnnstwnfRv522DHI3Le6MNCko72UugwnXhrseu6c7u1bQJUAmsXHeQgVbVN1xgdXLErOnV0vhNJJ8v4nnneBMfLf8dJBbwrhdzpxQzQoAPXld1AaDJ984dayBSq66LDiv0EaDyo6YJj2uh0teUpDleT8dfAf1UHzNY7kGe1xw9Mue40WiO4H1rZHAoycnHiKhmcr1Qk/z5n4TEzKzwlnfS4zRaT6uTadx0s1MbAJvipf+l8zjv48P65buh+SvtMWy073f4iQ51mxgABD3wRG0Y50Fi1x3SfJrh0RhUKwBuWBuMxoEktx3rdj5neIj1mD1OViUxnfIfy0qMQAiL7z7CQHcHyyeoNWCn2ub/1vaSzpkmwATxIVvOCKwIwKlxZywZx4+BiYMMpF/tP6ak1CRNILR7sy8Qduts/Gn2z9qaNXEfOpLP7jFAsF08JxrA1bOCHIlRwfYYGfv0uxO49wnRVPxFXz3MEp4LTn0mSKqkdihgS5t5Ha+Ay1pUF767mBoWCmVma/LzJsHA74rUKLS+NC7AuJ2oR9eK6RMcJ0F6HUZHl90PaACJDcSR7hKMnATYeUob8WjDx9VsUVQvwIwPMow8uhIxFgAhYCIHdp6HfdNR+Pyhaz2Uj6L59OJw8qDcKCG1IDNHStgO/PcJESBxICjGJif9YeggHv8CRS6i3kB2fczeXkSJF5HdLie3dlx2ZfxSx7ihtv8n0BNIsMO/dO/mOA7HcURkaomTqAwX8W80IPWM+Dd49Df8dmeCCN03NYJnAFVyOct7dtOLUM8ZrtnXmtw== 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)(366004)(39860400002)(376002)(346002)(136003)(396003)(2616005)(186003)(1076003)(38100700002)(38350700002)(54906003)(110136005)(66476007)(66946007)(8676002)(4326008)(83380400001)(66556008)(316002)(86362001)(5660300002)(6512007)(7416002)(7406005)(6486002)(966005)(478600001)(8936002)(26005)(6666004)(6506007)(41300700001)(2906002)(921005)(52116002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?q?jhKDlE5Lap/HEWsCxJH4naT?= =?iso-8859-1?q?GhphaLOEL38iVnxCuqYsCwGLP9mDjX250yGftVZqnIxkw5R3CRglaANIdMuY?= =?iso-8859-1?q?j5v6+xOGHPsmkxa/Y7n3jaYiLpWrIEL6DrYw2apiSt3J/YkFdeIhYamWAm/N?= =?iso-8859-1?q?lQfoNZQwUqDkcSE+n8VXJac38lOVHcnRqpxUzNgCGkHIAOXAlJla40yHPpTT?= =?iso-8859-1?q?4cUtrrnUlS+704W97OajHsUpwAmdWw1SJKAZY5IV/Y6ZJahu3uFGpCzcSvpG?= =?iso-8859-1?q?WnZCVAXG3LpD3hVLPp8I1IFSwo9d2PDqWrPvmG1sebCzos9O5WQR3GqHlvGh?= =?iso-8859-1?q?Ska+cQ7vzECplNTFcQIj18m/K78ChAvnyLDhPSaYdcyLccgyQ6bCwUPoVmeI?= =?iso-8859-1?q?2+iA2GqTfLGBxWgt+2SQJovy2Z0Iy9+EaacAKi6P7TVhK7NnppoCTtY00cya?= =?iso-8859-1?q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YgosAeV8NAkTlFXayUYxnQPkN6Vk?= =?iso-8859-1?q?2o+FK16P+ZJEU5UCSqG0sbBIfTK5TM78tPmBEB+79irovARt7nPXF79t8Iem?= =?iso-8859-1?q?b63Y57bBSM/+G//WsGHf/U308KXhM3hkwGdfey3ZtMaRC57KkPauLCH+qkRV?= =?iso-8859-1?q?GQ9U5/BqdabX1pSZIxf/4iL3oXXrE1GAvtpiJENmWbbUNUfTxByCYoePqw2r?= =?iso-8859-1?q?dbuNt3M4P02EWKyiqALKwaVUC6gjx6TYNkV2Kegfvqea1SkvHgjoCAzO6q8L?= =?iso-8859-1?q?AqPkLSyLTwSnAe4pd?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a53a769-c5f1-482a-f364-08da5dd890c8 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5005.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2022 16:16:35.1316 (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: hEAcfuP649sktJy+V3VZeKCfNiWkXw4g3nGRIE+R0tadl0Lwvd0rm6QlchcPyuVi+s+UdhhBX53jmm54f7UR2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6293 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@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 'power controller' child node of the SCU main node. Signed-off-by: Abel Vesa Signed-off-by: Viorel Suman --- .../bindings/arm/freescale/fsl,scu.txt | 25 ----------- .../devicetree/bindings/power/fsl,scu-pd.yaml | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/fsl,scu-pd.yaml diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index 0841ad8bbd22..1a06f627b125 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -62,25 +62,6 @@ i.MX SCU Client Device Node: Client nodes are maintained as children of the relevant IMX-SCU device node. -Power domain bindings based on SCU Message Protocol ------------------------------------------------------------- - -This binding for the SCU power domain providers uses the generic power -domain binding[2]. - -Required properties: -- compatible: Should be one of: - "fsl,imx8qm-scu-pd", - "fsl,imx8qxp-scu-pd" - followed by "fsl,scu-pd" - -- #power-domain-cells: Must be 1. Contains the Resource ID used by - SCU commands. - See detailed Resource ID list from: - include/dt-bindings/firmware/imx/rsrc.h - -[2] Documentation/devicetree/bindings/power/power-domain.yaml - RTC bindings based on SCU Message Protocol ------------------------------------------------------------ @@ -135,11 +116,6 @@ firmware { &lsio_mu1 1 3 &lsio_mu1 3 3>; - pd: imx8qx-pd { - compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd"; - #power-domain-cells = <1>; - }; - rtc: rtc { compatible = "fsl,imx8qxp-sc-rtc"; }; @@ -158,5 +134,4 @@ firmware { serial@5a060000 { ... - power-domains = <&pd IMX_SC_R_UART_0>; }; diff --git a/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml b/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml new file mode 100644 index 000000000000..1f72b18ca0fc --- /dev/null +++ b/Documentation/devicetree/bindings/power/fsl,scu-pd.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/fsl,scu-pd.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX SCU Client Device Node - Power domain 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. + Power domain bindings based on SCU Message Protocol + +allOf: + - $ref: power-domain.yaml# + +properties: + compatible: + items: + - enum: + - fsl,imx8qm-scu-pd + - fsl,imx8qxp-scu-pd + - const: fsl,scu-pd + + '#power-domain-cells': + const: 1 + +required: + - compatible + - '#power-domain-cells' + +additionalProperties: false + +examples: + - | + power-controller { + compatible = "fsl,imx8qxp-scu-pd", "fsl,scu-pd"; + #power-domain-cells = <1>; + };