From patchwork Thu Jul 7 12:50:12 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: 588311 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 9B674C433EF for ; Thu, 7 Jul 2022 12:51:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235625AbiGGMvP (ORCPT ); Thu, 7 Jul 2022 08:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235592AbiGGMvM (ORCPT ); Thu, 7 Jul 2022 08:51:12 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2053.outbound.protection.outlook.com [40.107.21.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D78032C640; Thu, 7 Jul 2022 05:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hhyDA1zDQiYaiLfiB1gK0tHmtOYGYfTW8Pdvq+DrrM+0Ngvd+AeApDi6J1TGmkoPeOoMarxGozO/CQ/6T+Tw/FLt2jQfxAYVw0rLIqChUQkAlvIZH0j7kLQxmsSQ4qUtnELcikQEfxczZ86LTVav2UX075JWwLpiVSggEQqatcs1bVbx4mko7ewOS278X/5cBLfNOyWPHhyZ5KUPrPB2zPA62PHN1KnzTtxTn9psXkas0lqnT1kysgvUkuBdIURZ+hkeMSxiGfjGGVzg3s/7Sse3tYQIEkH83GZ0x85rpMbCKwPPF4NbSRk+e8sco/17jspaTc3wTt+Feg57v0nh4g== 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=IoD55JLRcGyRIEZTPh5WN5ZAQ8uXmAsEanAHvu4Nj9U=; b=YQPofkYqobWVzUZMj3j25b1HYVwYN1vMhUpJcMsw7X07h6pCTU5DJKKY2LKUlatjNT2zu/0WSz+p/+DpY87CKcfy7iJl3DBlZdvtLfPFh10FnYDG6pWOY41NSjrY0YoHKy2d7j1FKyBbNPD8ZxjWUm0mSwUyaPdxzfT6N3VaQG3WH9Puv6tijkGB/4QlvJxAKRZSYyn3254mEQI40pUYnv4SMhldJbnwIodx9uYdgRgVVALBHI36BosquMo2TpF5A4u00D7kZeSGDrSDBTf5ku3HiEznAzIQdbpX3Nj4cETk5097BhkKoY8CR89Wuly+VvvNfhYuk9Byzqt2TeLw4g== 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=IoD55JLRcGyRIEZTPh5WN5ZAQ8uXmAsEanAHvu4Nj9U=; b=R8IRDmezVkJhcUPb5H8Acu6xUIUEl0YRwLyL9pU7W8khp1kXEr/brZefNsVcngy53lpllwefHJSPDeumFiaoyR/PiVHeNDlwvY5bRZzbfxlnFxVZ0Uj4BJs7eOD9yDH6JyQeYbApZdoeOyHsgBpqIbaoeBeO4Ljpe9KL7Uulyj4= 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:07 +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:07 +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 05/15] dt-bindings: power: Add fsl,scu-pd yaml file Date: Thu, 7 Jul 2022 15:50:12 +0300 Message-Id: <20220707125022.1156498-6-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: f86dc661-602c-484e-2320-08da60175bf1 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: GO067nxUaQP2Z3HRPWEACXVvyYb7lJjTxzTWqm4eWnOSSDb/a9NnKsuTDLAwVF8ZuW2PGx32wjHn9sVqF6TgW/T9hb2Bcs622r+HhZB6WTkjTsHwXWlrRmj2iTZduc/dr6H9cbAvDbMJWnFSjb/lLvodgOe2hmJUnYpgZ9QZ2trmrgTYs5qfaR0lKq5Zp8xknptuPF5UbN8P1H75oqWRECms2biphWTZyw8NX6iRq+EQIfHeZQVrf2azUFW2fAYGTGdBi8uMA/sM56fy930tK2K8J06Oh8P2HQMEU68rEyYMiYhkD6A8aWqn2gxW9rPN7TpMinm9/PHVTvC0SW4fq1dHEPAZpcodBldh56st/9NuCfUW4mFyCMtDZeUHSHi/QEB0lof4ShMkR1TlW+ERx4B3EBtGyTPaytkIIoBw8Z27YMpnrJcSgrt9zvMOBpEOM5nZKElrY5iFFfZcWI8qpgb+mb1lrSJnK9dOuLAByJ7suqvNxbhQWKt96qUOQ/Ib/1b7Qcr7GBmCYNQoCYfTyXzkb8JG6lzOIr05xJRyRlUdk6yqkknLKgpDk/Y0rFSm7BSXyxa7loQHheKOZ0rJbPhaQ8ZsRc4ErHNM9JgBKg1YclG0r+o9Dz/aU0ez96MKAk17UJHslQcHUXv14n8vAH4L94fP79nn541Hi1PXGamRX79PiyRkuhojSJ4JFwdF70Y+TmCk14poi5XjQtvl4/FRTvo6x/f9EH4+Pe1RaiyeEJ8fKYbr2pGZ6MU8ckfJtDxc4ayiZTek/IVKIuXVQFBqfEIw03l3+PGJttWr60UDCUPYlba+HKDVbbusFd54cCb/JuCEH6VZdMbzYApX1fm28G3PooVJuO0U1obUs/Ps81qo/hOfN5y0lLmKbeAYUOkEdHLYVWRjMBfouCE6pQ== 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?ui+mIexETcdUkcjXbRpYbha?= =?iso-8859-1?q?ir/6QFQJHD00v9CTqF1FOGiudxBLYJY4UUlkn8pTOPnqkPUb1ZknAvRqUMRy?= =?iso-8859-1?q?gqLWSSimx7AG8+Ccvv+gh9nkYwUuBvEbuFm5y3onNlGW3S7sMHP+nAdP8mOv?= =?iso-8859-1?q?YYW5U6CHQVDF1E22T30qUzaxYpVqqmBmW7XzVeFJDj0LAqB2nbSGzBn6xhIP?= =?iso-8859-1?q?SfL8OCesGUaXofBF/yRScrEQoEwqD4OiQNNpr6hE3TsmrPs8cPZyI0Ep/EYS?= =?iso-8859-1?q?6WyEtt8ZjleQgu/4ph8LSzIxTaAatZHXqFMn08uT40rGivjnGiKEOepHvR87?= =?iso-8859-1?q?ylvk8dXSNZ6ISr7eyil+b4C8mtASw/xnE+PmbFCecONNQagyRU3dGeKxrBLT?= =?iso-8859-1?q?dUFImIz3Syw7kedZ+Togf0KDb2TEdoPaEf9/gekKOjHGm9n4VLrVqmnzstVE?= =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IX7rGXFRyP6XtNt3ID44PlDYaO7XmhxEAmpLrdF8SL?= =?iso-8859-1?q?LEo0PmbmIRKNmXD27AGvfoxwwCwQgpZ+V5avN0V1+GZPZsy4kNN39hqPijhX?= =?iso-8859-1?q?SokTbBDpOTp/k/X1HfulZG+0nvSWI4uCGiE6Y7f4OspsXkRtbRjFVaJriyXk?= =?iso-8859-1?q?KBIVXehfpC7z6P3tjAXdQZl+t4/6Z2i11Y+S+Qtvrn8NwX5yOav6K39P8nXx?= =?iso-8859-1?q?9ZJxulJbkvCJUq+RJ9/ToXqLEnwvg34LI02kcV8i2gYiLc3VzmZCBAcmfJbS?= =?iso-8859-1?q?13/5ng9ipv4zY+ZP/?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f86dc661-602c-484e-2320-08da60175bf1 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:07.2515 (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: Nr96cCU7qaCerjBsw+QgLPQdKaOYDNwlzjc/nuotMV1DPovq7PO1JCQ9dIUDeVdf//i60y9xQKORAfuqVcWJsg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6418 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Reviewed-by: Krzysztof Kozlowski --- .../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>; + };