From patchwork Sun Oct 28 15:19:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10658647 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 1B19313BF for ; Sun, 28 Oct 2018 15:19:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFA08299F8 for ; Sun, 28 Oct 2018 15:19:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEA98299FE; Sun, 28 Oct 2018 15:19:34 +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 5C739299F8 for ; Sun, 28 Oct 2018 15:19:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727340AbeJ2AE0 (ORCPT ); Sun, 28 Oct 2018 20:04:26 -0400 Received: from mail-db5eur01on0056.outbound.protection.outlook.com ([104.47.2.56]:46832 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727251AbeJ2AE0 (ORCPT ); Sun, 28 Oct 2018 20:04:26 -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=tMJEOKXZZJQOZJolII0b7GJy4IGYQ9KIVisK5GOJ1+g=; b=u89c3b6Pdwk2uk+o7pT4b7EfB14rKC2CEYXg27mJ9DaoAJ9KBYBnZ9WdS/UNRlY7rtyUJ/EjcOnIHcWjtlgJM9sikfFm2nUrmqEwrs7X562EGnQzSCUY0L7J7UXcvRS3jHBjkvIYtUjcTLiTW8b4zejz3NGWppyl7Zbazp6gkps= 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:30 +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:30 +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" Subject: [PATCH V8 0/5] soc: imx: add scu power domain driver Thread-Topic: [PATCH V8 0/5] soc: imx: add scu power domain driver Thread-Index: AQHUbtGfmGgzkmDJ9Eynzy8kX69EQg== Date: Sun, 28 Oct 2018 15:19:30 +0000 Message-ID: <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:DkeX4YLDsuyHYyDPVYB8z0otQUUMhTydHTroFsei1zlLgG655YS3obKWnJWJcifwBaT7UXKr18YiJyJqOUn/0gWAsA5nHFfvhrD5lgMxxFsql4BZYoaC+GktqQBwnko6jJYWUsi6dQIIYs6ILta7ZWRqIyikEhDw3BA3pgRP2RVsUjxTQ99hZdOGicOKU1IlCrOy8IzuCKzXG5sPHJFrTYktpku3vkqa+E2+XhUdk9guePjC94PumA/7lg/T++x/m4sEqFYQFraUxynZWFHCD09XwyX7aKLPr+atNIb5bXfYWcTFf7zdyYk0LYmp0eZ5xYeL3v39n+Bxvd90EVVPpv1kw+EHkmMDyHtCoq3landIcyi8tsbcwLI3ZBn64hAyR+duI5tQPNcYNDy4aCpY9LuSda1RJvqiP8s73OHFDcTP8P9mtUJOEc2HEUJ08SHOa3D6LptAbjd13L3OOHcO7A==;5:xKHzHltSZXk0uXbQrEX8zJA87mxHYcZdV4ZDubvZiFemI0vN9jVrWdzsI+f1cvK8o/PqkjNRGRZ1xuBTt9SxfY7+XWcurhKCM3Imx8d3dMm2rWjKjvvtsQ98wA0eVw/QRkBNEfQaNw8UsJA9SBHXgnzTG92dczCNlFgYRJwWBr4=;7:wWP8elHfai25ibzU8abFqEoOgsXeffdtI6CrPzaSSsf9MT7aCqC2PjUt90zISku+gHg3vKvIFMVOKyMKtN74yP5vFb8xlYoGjd4vvxosSP4BPWV1WuLQQW5VzIU40pAZ/iqW9OkiA7HU6kONKKY1WQ== x-ms-office365-filtering-correlation-id: ea0aa1c6-ffbb-454a-83b9-08d63ce8c1a7 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); 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)(486006)(5640700003)(102836004)(50226002)(97736004)(86362001)(6436002)(6486002)(36756003)(14454004)(2616005)(476003)(4326008)(39060400002)(53936002)(25786009)(2906002)(99286004)(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)(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: HVh1S5sU3oI+Lojn72PL0Fs8qrYpPIBz7UeAWp88UZm1Nul+Q5OeYaFc88mGI09hKplrHhX24v4uQgQC1gSejX8MexPvK2ztuMRIKV7DW/OR4yN19ckATerUNLASIT9kk1AdCmsiTT17wXZHZyrRk9HAV1dsImBYyMsEE9tL0uXFqqVctmdY+vj6XxXVcWMV9o5KBwMYB4fwcatDOBabRPYVvx5JiBGKUkCbZdMq3p10M95kVBMxD3xM8Ajdnd41Wn9gFerp8KOkMtYl7NrfoZ74pLmZ71xvGv6s7CBNlK/ZLCXZSZATKrCk6VhMQVm8tL0N64ads7b0K4ggpviXKsyrh/da8sUDt+6W8Lmp8a0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea0aa1c6-ffbb-454a-83b9-08d63ce8c1a7 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Oct 2018 15:19:30.3027 (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 This patch set adds the scu based power domain driver. It depends on SCU driver. Change Log: 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 | 302 +++++++++++ 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, 963 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 Reviewed-by: Ulf Hansson