From patchwork Thu Nov 1 15:20:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10664113 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 2B8A71734 for ; Thu, 1 Nov 2018 15:20:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B4A12BFC4 for ; Thu, 1 Nov 2018 15:20:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C2A82C034; Thu, 1 Nov 2018 15:20:21 +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 6E9062BFC4 for ; Thu, 1 Nov 2018 15:20:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728117AbeKBAXb (ORCPT ); Thu, 1 Nov 2018 20:23:31 -0400 Received: from mail-eopbgr80042.outbound.protection.outlook.com ([40.107.8.42]:32160 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728110AbeKBAXb (ORCPT ); Thu, 1 Nov 2018 20:23:31 -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=3fbERT7qzkJ93CJNixSkxWx9tpq4RGiyH0kMVAX5yGg=; b=KTXkmS7ONEcM5+L7MfP9R2SP9MrqE6JtxqDsawRk5EQNo9zW1NlHNmeEu7KP1RwHgU3W5c33hf4+EOo8vrAjrYk+pjhDwBO+FbrQoZ9rKUaj0zlPhq8+/z9AW0CoO6GLoZgf+XzStco2c17PMua0rAji4BeT71r0rrTUyeXWeNE= Received: from VI1PR04MB4222.eurprd04.prod.outlook.com (52.134.31.21) by VI1PR04MB5166.eurprd04.prod.outlook.com (20.177.50.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.20; Thu, 1 Nov 2018 15:20:03 +0000 Received: from VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::f535:83fe:d4d4:d0e5]) by VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::f535:83fe:d4d4:d0e5%4]) with mapi id 15.20.1273.028; Thu, 1 Nov 2018 15:20:03 +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" , "robh+dt@kernel.org" , "linux-pm@vger.kernel.org" , "A.s. Dong" Subject: [PATCH V9 3/5] dt-bindings: fsl: scu: update power domain binding Thread-Topic: [PATCH V9 3/5] dt-bindings: fsl: scu: update power domain binding Thread-Index: AQHUcfZc5xlEpZCdLk2htpHT6e5Hyg== Date: Thu, 1 Nov 2018 15:20:02 +0000 Message-ID: <1541085298-375-4-git-send-email-aisheng.dong@nxp.com> References: <1541085298-375-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1541085298-375-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: HK0PR03CA0050.apcprd03.prod.outlook.com (2603:1096:203:52::14) To VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:3e::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB5166;6:KUrbKbDG7Y/1CLzrug1xy0NGQ9lh28Go75ruI0uOpCpmlFZ8OGiIi2y3P3bXcfThL3NAcunHLE4t8xt69NteLa/iVQqHcl8jUP/0LnhHbr2Dz3mV/Vib+2uEXXsUOtiEzsKo0HMhD/w87h14QiuRgriOFktnAz7MaGiqzq5biYroioWUnfJTYTaRbbAn9nAqt2zORx1JJiotWGdgRy6zKXeaok1aSM1lsM/qaFouJjPX5q/v4Y3Zm5ihAY42KD9uo1UNkqOGq4S4UxbrrEaa9vQBz5PYHjHvrdIyuYHrXMuMxJTs8iJ4vXPwI7xg7c72ZSZaKp6cZvzs0XhWBbl2bzYzvSf2AqhkipFc1KkTnbXksGO29pDKAn8Nz9BKc4cKhUjM7rJOsfjDbh6soceQ8onQKL/WIVUetkBzQ7yf93/CVcypZ2xecrYJX/Q7vA7kT7lrhy1xnLKwmYQ7lFqR9w==;5:MB0E7dnZZen+ZUCmk1x73k3e4RdVIRaSiCsyu3uETVSdugX0yhv4mzmyn5yu6BjJRfjFHJ9zHjiLNXrvpqaUGZzY2atpVm+MCDdD5+Cye2jKZ3YgeGo6IAdBE57/Q7ttryO+HSpJfLSpOgrG+JR7ijiY+lmoSmTGO9SDt7IbfWU=;7:JhTLq8tnacHaDznap38ITf56DzBkmxTHolzPW5l5BQkoq5qOY+wJZh+x1jt+mIxvzRUdFm6boLbZdpDoiMfHwfrdyQU5yJCP21pnLTBpLVeTlYifjk355u9CODCcIOXQWOV+PB1EQdc7IvG9ZkPQ1w== x-ms-office365-filtering-correlation-id: b8354d34-d331-477c-16d1-08d6400d7eaf x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB5166; x-ms-traffictypediagnostic: VI1PR04MB5166: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(269456686620040)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB5166;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB5166; x-forefront-prvs: 0843C17679 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(376002)(346002)(39860400002)(396003)(366004)(54534003)(199004)(189003)(52116002)(105586002)(486006)(26005)(102836004)(186003)(106356001)(6916009)(6506007)(386003)(446003)(316002)(478600001)(76176011)(11346002)(36756003)(25786009)(99286004)(68736007)(2351001)(5660300001)(2616005)(476003)(14454004)(54906003)(4326008)(81166006)(81156014)(97736004)(8936002)(6486002)(86362001)(2900100001)(575784001)(5250100002)(7736002)(39060400002)(305945005)(8676002)(66066001)(6512007)(3846002)(5640700003)(14444005)(256004)(2906002)(15650500001)(6436002)(53936002)(6116002)(2501003)(71200400001)(50226002)(71190400001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB5166;H:VI1PR04MB4222.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: p2WliGhLnIWr8GiIVqSX7MxuMIviXQxDDOzXk8UPF6eM+ifnzp84DdAAFEQ3QmGgLZ3vw2ci0JYNyH7JjOhCX0iVg75grGGjKHrjNiXKDnZFr62dXYZeulR633zQO4IznYVhk/QsHag7x9i0/0eG773TNi/MPfbE6xHnANLpn+/BgxtTpttaf473KH2SonHNkGLIqRJe48ckq0S2Z0Yl260KH+qen9eUhQiVpsaoH+aJq3e40E/rWDvaJbQfjpcGkjYj1cgBpVp2Smf+MxjzQy8cpGT84rHJDSd8pjXqYMsOOpMfvA6hh+uGAxAPFPeyjgi0UFuohyq4U1xpuj2R05qnEJYYPH1rWDH4HryiFTI= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8354d34-d331-477c-16d1-08d6400d7eaf X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2018 15:20:03.0635 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5166 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 Reviewed-by: Rob Herring Reviewed-by: Ulf Hansson Signed-off-by: Dong Aisheng --- 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>; };