From patchwork Thu Nov 1 15:19:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10664111 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 43B7B1734 for ; Thu, 1 Nov 2018 15:19:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 338832BFC4 for ; Thu, 1 Nov 2018 15:19:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26BF52BFC8; Thu, 1 Nov 2018 15:19:57 +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 8231B2BFC4 for ; Thu, 1 Nov 2018 15:19:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727996AbeKBAXT (ORCPT ); Thu, 1 Nov 2018 20:23:19 -0400 Received: from mail-he1eur01on0086.outbound.protection.outlook.com ([104.47.0.86]:36864 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727966AbeKBAXT (ORCPT ); Thu, 1 Nov 2018 20:23:19 -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=PoYyWCy9ueqpYgypvLpbkyztkLhOCqamlp961dVXxIU=; b=d6TCXDO1z9dQ5dxIjNKcIzkkoK7Ra+fFLm+Oe1TgEq5jd+K9YxjyCQgHOTUyLKC7v8YWZ2VTsmp+7ltysH41aThRkkQPw2L4+ZaQLokc2VC2lNWFnrVl+505wEdNZNhTJDcEG5TTa4IPAskxcuLbCOHgS53FeuG6EYecNRIkHhs= Received: from VI1PR04MB4222.eurprd04.prod.outlook.com (52.134.31.21) by VI1PR04MB4416.eurprd04.prod.outlook.com (20.177.55.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.26; Thu, 1 Nov 2018 15:19:48 +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:19:48 +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 0/5] soc: imx: add scu power domain driver Thread-Topic: [PATCH V9 0/5] soc: imx: add scu power domain driver Thread-Index: AQHUcfZU00NBb1SF4Uee7sTGKdxUwg== Date: Thu, 1 Nov 2018 15:19:48 +0000 Message-ID: <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;VI1PR04MB4416;6:5MNzA/1eQozeALV5nBHYDx1XYK25Tc6JrJYahHBpBwAqWRvMuKPWV8vxCLMrTnMGKJEAY+1UA7Z6mEMdHkCpNbUN0lC6wDi2/ZhuUumVpVaWPfPrhE0iVPdCZBNWMZNP8D0IZhIONUSihK45SgzGLrKX7eqhnZPSbRNelGk8KOUasD6OuMIQxy/jqNaMZcL/3l3WaE2gaBSNFyiISvWLNgsdgm2M1IjzXFgOnHLzMYlsIZHV9iPDcstvs9gUapvFQ+fosbHYEeou7VdTRvuKYE0xV2tj9jEERaLtkZDHDLDTPf9Y2+OeiL9zfQMRIrbjWy449L06Nyj0qrxSWz6lU5KZ3me61EuWCo20zJgGUcyBi4Y9cc3tFOQdQ1k6fvTyodTqMO0gF8LhaX998eyCKrDWdo1D2BhBaYSFXDT8iai/2rHSIiTEu6P7dHfl1KWRW64DnKBch7jstd/TZrr6Ug==;5:HgRCFAaI6QTq6zGcCDOTggF86O2r9JRr3Wr71XsBC//26x66iOz0YlezHYVXhzN2yfFwydUaC8bqZQ4y35wimKJF4sT5RBoRRaDETIqPfIaM+cS0xxQ0VFBxJATivQnJP4uDDpfU7dGsM8lnJhUdOEHa7Cd0AUG7U00sEYLBnxE=;7:JN4GVNMJtu+FeRS2UVq9sAdkTJvZMpngmso5NzbAmtvtkKWaodDGR1lchqwOk73hM8MFzS2J+a7x/Gvx2rxNDjUHgfckJJ4hW1FevN3DUoeGmY+mA0Gk5LIa7r38IbcgiHlQq6YcdQt97VR49lE4Vw== x-ms-office365-filtering-correlation-id: f5b51dd7-fcb8-4ef1-50b4-08d6400d7628 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:VI1PR04MB4416; x-ms-traffictypediagnostic: VI1PR04MB4416: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(269456686620040); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB4416;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4416; x-forefront-prvs: 0843C17679 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(136003)(39860400002)(366004)(396003)(376002)(54534003)(189003)(199004)(4326008)(305945005)(5660300001)(6116002)(3846002)(54906003)(486006)(26005)(2616005)(476003)(68736007)(97736004)(66066001)(52116002)(186003)(316002)(50226002)(6916009)(7736002)(8936002)(81156014)(8676002)(81166006)(2900100001)(36756003)(71190400001)(86362001)(71200400001)(14454004)(5640700003)(106356001)(53936002)(6436002)(6486002)(105586002)(6512007)(478600001)(2351001)(25786009)(39060400002)(102836004)(99286004)(386003)(6506007)(2906002)(5250100002)(2501003)(14444005)(256004);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4416;H:VI1PR04MB4222.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: q/78tFUwF2i+3zm0YH7heinBx6ocBuVIku38ZNpjTAt40GZYVCk5nrKBEEmR3rDsd3sIyry/5je1UCKaL91rIJoCWC0FKGLRgj3CmcDgIXxJQpO/YB+8f3m4Y2OJkdRp2Zp2/nYfETb1+Q3XcOU8y9c67jZiSzD+ncAHbUPaCfYfchXshh9j1ULWX3U663WC0DIYC9b9B37IJiF8x3vYAzQHN3r48y3qezSMnETnbPoYdEk78lvyfVTpTbILBdFv9XN47d75V5KAAlk3ENWk6mkj8yLs3qNUDOXIYRcNGq1dQifoYW6run7tGlqk/B/5Yr8dBadT0xIrtSEufqnoX7A4jbM59B+NXzUcYnJQQIM= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f5b51dd7-fcb8-4ef1-50b4-08d6400d7628 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2018 15:19:48.7054 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4416 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 This patch set adds the scu based power domain driver. It depends on SCU driver. Change Log: v8->v9: * add comment at the top of scu-pd.c file about how to convert to "single global domain". v7->v8: * update to #power-domain-cells 1 binding v6->v7: * keep "fsl,scu-pd" as fall back compatible string v5->v6: * only compatible string name updated from fsl,scu-pd to fsl,imx8qxp-scu-pd accordingly v4->v5: * some minor improvements according to Sascha's suggestion Note: did not use dev_* print functions due to we already have proper prefix by redefining pr_fmt. So it seems not quite neccesary to pass in a struct device * pointer for debug purpose only in each functions. v3->v4: * only scu headfile path update v2->v3: * structure and enums name update * api usage update Dong Aisheng (5): dt-bindings: imx: add scu resource id headfile firmware: imx: remove resource id enums dt-bindings: fsl: scu: update power domain binding firmware: imx: add pm svc headfile firmware: imx: add SCU power domain driver .../devicetree/bindings/arm/freescale/fsl,scu.txt | 37 +- drivers/firmware/imx/Kconfig | 6 + drivers/firmware/imx/Makefile | 3 +- drivers/firmware/imx/scu-pd.c | 339 +++++++++++++ include/dt-bindings/firmware/imx/rsrc.h | 559 +++++++++++++++++++++ include/linux/firmware/imx/sci.h | 1 + include/linux/firmware/imx/svc/pm.h | 85 ++++ include/linux/firmware/imx/types.h | 552 -------------------- 8 files changed, 1000 insertions(+), 582 deletions(-) create mode 100644 drivers/firmware/imx/scu-pd.c create mode 100644 include/dt-bindings/firmware/imx/rsrc.h create mode 100644 include/linux/firmware/imx/svc/pm.h