From patchwork Wed Sep 30 15:49:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Stach X-Patchwork-Id: 11809741 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4EF75139F for ; Wed, 30 Sep 2020 15:50:35 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 16DCD206D4 for ; Wed, 30 Sep 2020 15:50:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nIrgocUN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 16DCD206D4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=MZtdxoihTCVIqPvfqbQcbULNHDcNJ4V9wi2KAGtgvCA=; b=nIrgocUN9bu3l1nDQ4tpwwiR5k XG//0O9+yZC/qh6AGGQ9h7io3J2rshWTb7ilcy2MR3oqg5qlh2xtsjTA/81IJsMpfpK5sjfrdKro3 uMIWNdnwQpI8sPiqngjKjNau7YscbSi7QJSeGtfaG+QJMjpai4uLVu4SzX4/NNcfukTa/KDuY4gWA r/O1uyxsS7O293+msLlXNhHhrxdC4Zydo1AGiihiyulXMPwA7cTixfZrkdG8q8stZGSpldqaGJsja /FOlGIs9pYNaXqV5VsFx6Uztz0xJjVb3Ove0Z33u1vVzARFkGqu4AMYWGy/nVP1DqhUYCLf02Rxpw I0vZWsBQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNeN0-0001RN-U7; Wed, 30 Sep 2020 15:50:19 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNeMy-0001Q3-5F for linux-arm-kernel@lists.infradead.org; Wed, 30 Sep 2020 15:50:17 +0000 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1kNeMp-0006WU-No; Wed, 30 Sep 2020 17:50:08 +0200 From: Lucas Stach To: Shawn Guo , Rob Herring Date: Wed, 30 Sep 2020 17:49:55 +0200 Message-Id: <20200930155006.535712-1-l.stach@pengutronix.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::39 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=4.0 tests=AWL,BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 Subject: [PATCH 00/11] i.MX8MM power domain support X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200930_115016_252699_23F7A000 X-CRM114-Status: GOOD ( 13.74 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , devicetree@vger.kernel.org, Frieder Schrempf , patchwork-lst@pengutronix.de, NXP Linux Team , kernel@pengutronix.de, Fabio Estevam , 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 Hi all, this adds power domain support for the i.MX8MM to the existing GPCv2 driver. It is not complete yet, as it is still missing the VPU and display power domains, as those require support for the BLK_CTL regions of the VPUMIX and DISPLAYMIX domains. A Linux driver for those regions on the i.MX8MP is currently under development and we plan to use this as a template for the i.MX8MM when the dust has settled. The changes in this series have been made with this in mind, so once the BLK_CTL driver exists it should be a matter of hooking things together via DT, with no further changes required on the GPCv2 driver side (famous last words). Special thanks to Marek Vasut who helped with testing and debugging of early versions of this code. Regards, Lucas Lucas Stach (11): soc: imx: gpcv2: move to more ideomatic error handling in probe soc: imx: gpcv2: move domain mapping to domain driver probe soc: imx: gpcv2: split power up and power down sequence control soc: imx: gpcv2: wait for ADB400 handshake soc: imx: gpcv2: add runtime PM support for power-domains soc: imx: gpcv2: allow domains without power-sequence control soc: imx: gpcv2: add support for optional resets dt-bindings: add defines for i.MX8MM power domains soc: imx: gpcv2: add support for i.MX8MM power domains arm64: dts: imx8mm: add GPC node and power domains arm64: dts: imx8mm: put USB controllers into power-domains .../bindings/power/fsl,imx-gpcv2.yaml | 8 + arch/arm64/boot/dts/freescale/imx8mm.dtsi | 59 +++ drivers/soc/imx/gpcv2.c | 501 +++++++++++++++--- include/dt-bindings/power/imx8mm-power.h | 22 + 4 files changed, 516 insertions(+), 74 deletions(-) create mode 100644 include/dt-bindings/power/imx8mm-power.h Tested-by: Frieder Schrempf Tested-by: Adam Ford