From patchwork Wed Apr 17 05:27:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 10904513 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 67B0113B5 for ; Wed, 17 Apr 2019 05:28:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D3282871C for ; Wed, 17 Apr 2019 05:28:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F3A428A00; Wed, 17 Apr 2019 05:28:00 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D23C52871C for ; Wed, 17 Apr 2019 05:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6lnzZGmm6jaE6x8oLoN8w/fXc36tqtPm2EobBZ1Zwzk=; b=ARrZ2e1y9KR3fD qxwhL1npBwxiOhNRbMGhcYxetW+Su0qGaz/DnCo+ZzpmhgILtv9ENL3kLa22TqCaUncm8Drxv3pBm uC5x8D4t4jre8Pr+0Air15dpoytsTOXVzEWDuWdy/PO9pbal1rlZ4OuDjcM2xt+9qQa34MwrG4QFh KAtSmSvvEWh+3T57RG2wW8iWkj8zYZr6SmSxmwD6nAK1LEE70EeMIY2n6v5DlVxb8FBqWlqyfRtz8 5G/c2RbycOH8e0vhDV86izHKxQSnUOhz+53qDMpn3LvYcwkxeRKUszkn9X6fhpelD2Yw1CKAkV7mz FnHUwccU1CktKN+tq5uw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGd70-0003PC-Qc; Wed, 17 Apr 2019 05:27:58 +0000 Received: from mail-eopbgr10084.outbound.protection.outlook.com ([40.107.1.84] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGd6i-0002wM-NQ for linux-arm-kernel@lists.infradead.org; Wed, 17 Apr 2019 05:27:42 +0000 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=bqmMB2N/KbPcsSq9CdAP557A660fRrhXRLVmPVsHl5A=; b=ZRylvgHIUJXNSr/yC3CHv3nFcLrJd90c86pwppQPI1m4mIzrfazG3FVr2wq4/Q5JBzbeIDQtmleoQTiptcsJRdBXkOR3/T+JaGYo4abr4EfMCNMYpLrBQeMRYrI2SVtQYFxSsl0EPiiGvrL90tCVAVlV7nG2CEvSHIjJ21fQ8w8= Received: from VI1PR0402MB3519.eurprd04.prod.outlook.com (52.134.4.24) by VI1PR0402MB3552.eurprd04.prod.outlook.com (52.134.4.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Wed, 17 Apr 2019 05:27:30 +0000 Received: from VI1PR0402MB3519.eurprd04.prod.outlook.com ([fe80::f830:3f53:72c1:b14f]) by VI1PR0402MB3519.eurprd04.prod.outlook.com ([fe80::f830:3f53:72c1:b14f%3]) with mapi id 15.20.1792.018; Wed, 17 Apr 2019 05:27:30 +0000 From: Jacky Bai To: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "l.stach@pengutronix.de" , Aisheng Dong Subject: [PATCH 1/3] dt-bindings: power: Add power domain binding for i.mx8m family Thread-Topic: [PATCH 1/3] dt-bindings: power: Add power domain binding for i.mx8m family Thread-Index: AQHU9N5AG2j5WRbryk+coCF3RUVTJA== Date: Wed, 17 Apr 2019 05:27:30 +0000 Message-ID: <20190417053211.2195-2-ping.bai@nxp.com> References: <20190417053211.2195-1-ping.bai@nxp.com> In-Reply-To: <20190417053211.2195-1-ping.bai@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.21.0 x-clientproxiedby: HK0PR01CA0031.apcprd01.prod.exchangelabs.com (2603:1096:203:3e::19) To VI1PR0402MB3519.eurprd04.prod.outlook.com (2603:10a6:803:8::24) authentication-results: spf=none (sender IP is ) smtp.mailfrom=ping.bai@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 299d593a-de35-4db0-76fa-08d6c2f562b8 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600140)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:VI1PR0402MB3552; x-ms-traffictypediagnostic: VI1PR0402MB3552: x-microsoft-antispam-prvs: x-forefront-prvs: 0010D93EFE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(396003)(136003)(39860400002)(376002)(366004)(199004)(189003)(71200400001)(71190400001)(106356001)(6512007)(53936002)(66066001)(105586002)(36756003)(6116002)(3846002)(6436002)(5660300002)(50226002)(8936002)(8676002)(7736002)(81156014)(81166006)(305945005)(6636002)(97736004)(6486002)(486006)(14454004)(478600001)(256004)(2501003)(102836004)(4326008)(2906002)(76176011)(86362001)(25786009)(54906003)(110136005)(1076003)(476003)(99286004)(52116002)(6506007)(386003)(2201001)(186003)(68736007)(26005)(2616005)(316002)(446003)(11346002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB3552; H:VI1PR0402MB3519.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: TKORtNcO+yajl6vMsnuLlx9d0GEESYt14jmqr5glwbcGAk1cCu7ghFTLaeaxGoVaiHw5N9vhx+N8gwWYcVR/ngV7XFYVKgNN2OJh9VrrwLjgm+qPzJHYRtJmXca0cNmLnuTmLhsP0AZa3WXNEA7GUKcoDAW7k8hZycSzy6JxCsx+MLGaOPzdGq/ipAmxgucvyb8PsV2CQy3xHuuk6geg7ySfosgyzrReitGVp+LuxO3dND2GCfHfpl4ulZ0tZBNuj4rcS745Am8e7GQ8Sf3DEfoEDdpXd9SeV+fB8Xxp7vYBogirhDmIJ1GpzE2ig8Dub6KZCG/H+KjrhHDeAX9+8LmDu1pQrGCAMWnAaESXZnOg6bMAvxphv0+mj0oyv/MIkvYQGIk4ZLeJNBC7u0ehAUmK2kLkWeAPyf8KI86UgMc= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 299d593a-de35-4db0-76fa-08d6c2f562b8 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2019 05:27:30.1768 (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-Transport-CrossTenantHeadersStamped: VI1PR0402MB3552 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190416_222740_805684_04406C5D X-CRM114-Status: GOOD ( 14.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "devicetree@vger.kernel.org" , "festevam@gmail.com" , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the binding doc of power domain for i.MX8M SOC family. Signed-off-by: Jacky Bai --- .../bindings/power/fsl,imx8m-genpd.txt | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/fsl,imx8m-genpd.txt diff --git a/Documentation/devicetree/bindings/power/fsl,imx8m-genpd.txt b/Documentation/devicetree/bindings/power/fsl,imx8m-genpd.txt new file mode 100644 index 000000000000..a92a7103de38 --- /dev/null +++ b/Documentation/devicetree/bindings/power/fsl,imx8m-genpd.txt @@ -0,0 +1,46 @@ +Device Tree Bindings for Freescale i.MX8M Generic Power Domain +============================================================== +The binding for the i.MX8M Generic power Domain[1]. + +[1] Documentation/devicetree/bindings/power/power_domain.txt + +Required properties: + + - compatible: should be of: + - "fsl,imx8m-power-domain" + - #power-domain-cells: Number of cells in a PM domain Specifier, must be 0 + - domain-index: should be the domain index number need to pass to TF-A + - domain-name: the name of this pm domain + +Optional properties: + - clocks: a number of phandles to clocks that need to be enabled during + domain power-up sequence to ensure reset propagation into devices + located inside this power domain + - power-supply: Power supply used to power the domain + - parent-domains: the phandle to the parent power domain + +example: + vpu_g1_pd: vpug1-pd { + compatible = "fsl,imx8mm-pm-domain"; + #power-domain-cells = <0>; + domain-index = <6>; + domain-name = "vpu_g1"; + parent-domains = <&vpumix_pd>; + clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>; + }; + + +Specifying Power domain for IP modules +====================================== + +IP cores belonging to a power domain should contain a 'power-domains' +property that is a phandle for PGC node representing the domain. + +Example of a device that is part of the vpu_g1 power domain: + vpu_g1: vpu_g1@38300000 { + /* ... */ + interrupts = ; + interrupt-names = "irq_hantro"; + /* ... */ + power-domains = <&vpu_g1_pd>; + };