From patchwork Sun Oct 28 15:19:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10658655 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B161E13BF for ; Sun, 28 Oct 2018 15:19:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EBCC299F8 for ; Sun, 28 Oct 2018 15:19:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 900FD299FE; Sun, 28 Oct 2018 15:19:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15860299F8 for ; Sun, 28 Oct 2018 15:19:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727251AbeJ2AEu (ORCPT ); Sun, 28 Oct 2018 20:04:50 -0400 Received: from mail-db5eur01on0068.outbound.protection.outlook.com ([104.47.2.68]:22361 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727384AbeJ2AEu (ORCPT ); Sun, 28 Oct 2018 20:04:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xkTWVzmuCcb1JkJRMJ/zw9HY32h/y8h/RmXoKC3b3iY=; b=Ky4VbE0pbSyN//9wbQgz9EYowCUXoYdKeQrXtvmyGoQD9dxbdED7FQ3HW5xErqd38y0nJl4mGSfQAylGbu0ZXB9c/IOlQaOHMtjvlf9laFY9dfOpMAb7AAZnlbLEX7w/9GLpgexDnkSTXgVCYAejUhnv1gfWtL6YZO2VAFJ0YSE= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4289.eurprd04.prod.outlook.com (52.134.126.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.19; Sun, 28 Oct 2018 15:19:44 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10%2]) with mapi id 15.20.1273.027; Sun, 28 Oct 2018 15:19:44 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" CC: "dongas86@gmail.com" , "kernel@pengutronix.de" , "shawnguo@kernel.org" , Fabio Estevam , dl-linux-imx , "rjw@rjwysocki.net" , "ulf.hansson@linaro.org" , "khilman@kernel.org" , "linux-pm@vger.kernel.org" , "A.s. Dong" , Rob Herring , "devicetree@vger.kernel.org" Subject: [PATCH V8 3/5] dt-bindings: fsl: scu: update power domain binding Thread-Topic: [PATCH V8 3/5] dt-bindings: fsl: scu: update power domain binding Thread-Index: AQHUbtGnAepKS3lHB06+sdF/+YGB7w== Date: Sun, 28 Oct 2018 15:19:44 +0000 Message-ID: <1540739690-23750-4-git-send-email-aisheng.dong@nxp.com> References: <1540739690-23750-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1540739690-23750-1-git-send-email-aisheng.dong@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0PR01CA0019.apcprd01.prod.exchangelabs.com (2603:1096:203:92::31) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB4289;6:VXo087FsJahBQ9gja/VR477r3SE/TjPaItlU5N9OpFbNKxqng9k/VMKad2PMgylx5UDk8Z2yngDztL+b/bIIftHnzLw63aBHIKAcRQYn/J5iC0HRenJaffDUjr4lFvQLPF27lIeF2F+MPGLzqCjS/2WX+7o90Z29QiQEGIwElxxUt7pPky57A6tZrcsBiZmU5kbPMk/MyjRIwCmG/KfE4EthxfjfA4adoyKhSWkts/sntaAXoYCRb2oRBIBIQ51p+ZX5o/YMjx7vOnogNKn97rJAgZAzMjf/knKYrB+Q1gQY+VFfr2ad/bAlnhn3W5Y4LhooeTUcz/NaeT4WwvxBGFe65G0FkaNMZJ4BvkihysxwYPsdLLL7ikNO79fuawfnnea3eePkY7FwtpaxtBARx4k+P7rrfPGqTwrz8YhJMYpc1kwf+aVOMCRL22UrUXM9r0wQqceTeszvU1jjAy+m0A==;5:2WFGNJnl02A2ooI2yNGJm+yupQLSK4W7Lin2y0xuXc5I2KomKCGvouPbPBko1VPYk1oq+VkwnAurRojL4WkExWQU2J6anfOxhH7pallOL7Tvkw8T/ueY/ZI7RFJbfAsFXIBjv3w/0yO+/BUPoAV498+Hj7Ftxe31cWVqMU0GW+g=;7:E7uo46XIIrAXfyoHQJLjsK0RKEAtL7iEa5jPBXD4uRfmeboGBxmWYty+Z81INM0npgrfFkV/evPAV1b9/5o3pzNAvXkkBESDhArKl+GHnlD6SpVv3wmUSoEqGNRd/LCPKGzTfMFWsczfWz3H2Rwmng== x-ms-office365-filtering-correlation-id: a0638640-8da5-41fc-f753-08d63ce8c9f5 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB4289; x-ms-traffictypediagnostic: AM0PR04MB4289: authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(269456686620040)(9452136761055)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231382)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:AM0PR04MB4289;BCL:0;PCL:0;RULEID:;SRVR:AM0PR04MB4289; x-forefront-prvs: 0839D067E7 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(366004)(346002)(39860400002)(376002)(396003)(199004)(189003)(54534003)(446003)(486006)(5640700003)(102836004)(50226002)(7416002)(15650500001)(97736004)(86362001)(6436002)(6486002)(36756003)(575784001)(14454004)(2616005)(476003)(4326008)(39060400002)(53936002)(25786009)(2906002)(99286004)(11346002)(6512007)(186003)(6506007)(478600001)(7736002)(2501003)(26005)(3846002)(6916009)(5250100002)(6116002)(8936002)(386003)(14444005)(316002)(54906003)(71190400001)(256004)(68736007)(52116002)(71200400001)(2900100001)(66066001)(2351001)(305945005)(81156014)(81166006)(106356001)(76176011)(8676002)(105586002)(5660300001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4289;H:AM0PR04MB4211.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: t+D3VVL0euitIc8pSCwpowlZ4j9nQAIe3vhV3IzcdzVLvr0kfjrXQgIYvZEYVfJqMZqHvv9SwWpkAZmQUFq91Zvdv/rPfFtnwxvSnEgzrPPa1F0be4INo6Iydpi4sM9YvzsZe27wUW+2lifY10T00W28MeWgBxLuqX9+ozP6G/AUDKVyD6G0hBnbCckRqUOFFd28Wg716je8QOmKfx81tF6ir3vjlRP9LK9JurYVlmJwZjDUvmtcKQ/tymTVzq02VKLBiwIrdwrr/duk6p15gUleH7btU9SJPpu/SJtQSGKEMY44xnrPT5vVyEqdRxEoyCZcNGdfB4z0074UWNqHGc5F8d6gEgQq+JKlKQUW2t8= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0638640-8da5-41fc-f753-08d63ce8c9f5 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Oct 2018 15:19:44.1385 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4289 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Update the power domain binding with #power-domain-cells 1 format. The first cell can be a global SCU power domain and the 2nd cell the device ID. With this approach, we may remove all the sub power domain nodes from device tree which can relief the device tree a lot. Cc: Shawn Guo Cc: Sascha Hauer Cc: Rob Herring Cc: Ulf Hansson Cc: linux-pm@vger.kernel.org Cc: devicetree@vger.kernel.org Suggested-by: Rob Herring Signed-off-by: Dong Aisheng Reviewed-by: Rob Herring --- ChangeLog: v7->v8: * new patch --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 37 +++++----------------- 1 file changed, 8 insertions(+), 29 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index 46d0af1..c20f38e 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -58,19 +58,11 @@ This binding for the SCU power domain providers uses the generic power domain binding[2]. Required properties: -- compatible: Should be "fsl,scu-pd". -- #address-cells: Should be 1. -- #size-cells: Should be 0. - -Required properties for power domain sub nodes: -- #power-domain-cells: Must be 0. - -Optional Properties: -- reg: Resource ID of this power domain. - No exist means uncontrollable by user. +- compatible: Should be "fsl,imx8qxp-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/power/imx-rsrc.h -- power-domains: phandle pointing to the parent power domain. + include/dt-bindings/firmware/imx/rsrc.h Clock bindings based on SCU Message Protocol ------------------------------------------------------------ @@ -152,22 +144,9 @@ firmware { ... }; - imx8qx-pm { - compatible = "fsl,scu-pd"; - #address-cells = <1>; - #size-cells = <0>; - - pd_dma: dma-power-domain { - #power-domain-cells = <0>; - - pd_dma_lpuart0: dma-lpuart0@57 { - reg = ; - #power-domain-cells = <0>; - power-domains = <&pd_dma>; - }; - ... - }; - ... + pd: imx8qx-pd { + compatible = "fsl,imx8qxp-scu-pd"; + #power-domain-cells = <1>; }; }; }; @@ -179,5 +158,5 @@ serial@5a060000 { clocks = <&clk IMX8QXP_UART0_CLK>, <&clk IMX8QXP_UART0_IPG_CLK>; clock-names = "per", "ipg"; - power-domains = <&pd_dma_lpuart0>; + power-domains = <&pd IMX_SC_R_UART_0>; };