From patchwork Thu May 6 01:04:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12241379 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B39A0C433B4 for ; Thu, 6 May 2021 00:35:22 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 04BA661222 for ; Thu, 6 May 2021 00:35:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 04BA661222 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc: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=eJgNuyGYPUWWHjQT6acY8iiBxwApzooEZST83axuTKE=; b=eprUGG3lk/t3E6AK+lG1AT+PNB GrlDl6UWMAFmn39x2sAiahClVVJj4Q2xaOvxg9c1i/Yc+TqiN7K+Jc6sjxBfQkA4PZlCdMZFQPvLk 2IeC7f07ZWqx7YqU4tO2WoGgF7Gh5tcG5O46FcBFGdmynYI3D47GeABJVaaNbNgP5snLhLrGTY4K5 NVVWbQCVgaKzABIXtOrtgl0KVbYd9D/1A5M2uah61IclelzWBOPGP5nJRy3vvuLA0dz0hfw5rF6/r 8/JDw40PnS6lU9D+cDD41GbuM8E9czXy5iJt0GYuCTZiUD8bB/RaJRlVzKGqptZ3GmwL+Y7LTlmZP q4r4zoiQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leRwX-002hYg-4L; Thu, 06 May 2021 00:32:41 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leRwS-002hYG-KF for linux-arm-kernel@desiato.infradead.org; Thu, 06 May 2021 00:32:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=F6k2WIpRRA9ACZEJXANL/tH/+86o7qQa0yJFOXvUNAk=; b=2XhQ38eoh8nwcRK+gZYT4F7nik mHzre+rz+v5mSDpKCBCd+qVgYlTBuKksJgvQF3kAa3MnhqkIpuDp/YaFbZYaeU9z/zMEJHMW6iqXC rDKomWcbRMPRsvkWiD64XmpxzyBhPINWFPnSIkB3T6oYsDbFT9PjaZehZ8UAUSINfFTKgvQE91fmU /QBNA66T3KjO6oZzsQ28PQkyPvOHBDwT/RaWKJi61f/18SBSFFSeUR2QnSVv2ppDZq6LE9STilmZ0 a8D51oHnSxgAMJttO2sC99s6uOIU7FX87O1wBTNjLj4bdoApBv8sofmXJWFO+Uy2WsGbJA9SHSH1o lEopTmxA==; Received: from mail-eopbgr20047.outbound.protection.outlook.com ([40.107.2.47] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leRwQ-005RBN-0y for linux-arm-kernel@lists.infradead.org; Thu, 06 May 2021 00:32:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JAzqBwS/Yoftky7OPsjhpAlRLXug4YnBLU7+Y9fRYUjje4X1CUCpmFH+cCpG0wYZs3erW6wf0WF1rNz+E5YW7bN+UUcWO3pD/aQeqh5INx4RyBBCZNlSZVJgFvaqGYvgi3Y8BcWxc6H0jLNFB0kXAabyzA2FWs7/G64hZWB+tpTd4fVKyN+2Ig+2vSW/3mG7Bp7eDeN4uj2BmSi0Ci34f+9p7U0T6eyG/6Zmv0Z4U73AFCI3zPs6L8oE4njKiguMFiE4N4mk63lYc8TntWvF8072/6BeHGYJXgJeo0kMqAdZWdyZLPvQK3m/q3v9F22MP4FMJx8Id7BJ6aUEZNSupw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F6k2WIpRRA9ACZEJXANL/tH/+86o7qQa0yJFOXvUNAk=; b=h8geCZAs22HOogbh25w+oQyAHZL7QaoU/safBtcyrVwF2fswPTITeuk/hSxLyKy2rItlAu3ns4M6qan3QWLjP6UyikGn4AcH4NwVqxTPh3WxbE5Fif6zMz9XdtfvCi6++Z4Mc7S4ajUbWvjCG5950j/vDKbOY10KjDd/NoghJnNrSN/MV1AmmyVpBJfQ9XtCi7VX0TpRUdURzA//s0pFds6LEhXmL+2TFGqhn960sVMlp6BzY7X+ddokN1FirdISmR8Bbd/QFmmvlJNb7Eh/IHNZLO6YpMS3bMUOA8Y/jbjfRWAJgoJsHXwTcUQhZb+P4ik7TOLutg7jMDgcNmFPaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F6k2WIpRRA9ACZEJXANL/tH/+86o7qQa0yJFOXvUNAk=; b=b9KhdHgsRgKmmrZrmh9Hw2quLQpKbQmtinkbXphZBIvnn2OvQg4FIVt6jPiFa23SBU0gytQ/WzFm47pintf3CcNUGUWd76bVCEKPLTqdnByPFL9As6CLMnCeFQcy9SaGxQ2dBf4m/elpapFSkL1lU4URoH4kTlJVhPGeC5byv7c= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB8PR04MB6714.eurprd04.prod.outlook.com (2603:10a6:10:10e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25; Thu, 6 May 2021 00:32:26 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::45b9:c993:87ec:9a64%8]) with mapi id 15.20.4065.039; Thu, 6 May 2021 00:32:25 +0000 From: "Peng Fan (OSS)" To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, p.zabel@pengutronix.de, l.stach@pengutronix.de, krzk@kernel.org, agx@sigxcpu.org, marex@denx.de, andrew.smirnov@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ping.bai@nxp.com, frieder.schrempf@kontron.de, aford173@gmail.com, abel.vesa@nxp.com, Peng Fan Subject: [PATCH V2 00/13] soc: imx: gpcv2: support i.MX8MM Date: Thu, 6 May 2021 09:04:27 +0800 Message-Id: <20210506010440.7016-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SGAP274CA0010.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::22) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SGAP274CA0010.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.24 via Frontend Transport; Thu, 6 May 2021 00:32:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5f75ac8a-520f-4a66-7e17-08d910266bef X-MS-TrafficTypeDiagnostic: DB8PR04MB6714: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UQvp7HUFYT4G5GsgCylr8touFIwmpGhZy17HE/b422C/Vi6FfIUMyhQTejj+uRVnFte6KLKvLXvsH2uKN6uCn8Y0Kch/lAFwGcgXmTpM8/EAn6or6c0vNhcw29+DWcb/lBhe6AI0WpNnqYwlvwSYkwMgD8o1AEUFMoIooP0vQr3SpOBijOg/7qVgi2S1BdWN2jWRdXOQ9kQlQlpjwOlwzKlBbtfCP7eKnPcPOwj8+cqmJ7ib0M0x8oOEuzugyRaVO6HUrKLAiRmSJCsBs3lo9KGSPnYEzHCv+k9gXhd9LsG7eaSIGxi/wCXP9BiXSQz8GZ8u0jmPCLLO6A6JEM+/5dN7uqC4hNjkeUj1XQlqMOqVS7YBI/a82ZhJcwKnn0+P7LuKdkUgCas7Yc4Z2rfeXNltHK9UgEix4cjbDjbtV1fohC5ibJIYghSXNTpP//dx0WVAFGDRVUlvx5dYvOR2hY1V5N/H/7RYTeuteut/hOfGakaCD+SO+mK0WlY5SZs8BfhvFRUGm40gQ2Pg+ZCOpn7a+vhdaW8zwcK1xPhcvV4U1vQ0NI5x0tqHrnVdbS18xAd/wPH+JY2VYLXBMOmH7O80P0z/ld+jwp2OYE/3OHpPhTriFrdGN5n4CubrCLFetzdm6epE67N5oOvPF/H6OA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(376002)(346002)(39860400002)(366004)(52116002)(86362001)(2616005)(16526019)(83380400001)(956004)(6506007)(8936002)(5660300002)(7416002)(6512007)(6486002)(316002)(186003)(4326008)(2906002)(478600001)(26005)(1076003)(38350700002)(38100700002)(8676002)(66946007)(66476007)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 5A7ncEPSaEocApnTiKVihYvGA+LaJ4dhn5UDU++d3FLUe/NzIpUzCfDAIQD32zlvgvXf0og0J1T5S8CFkGHHUUUN4YLbJ5sdhaR/yCYQ2SZytnakXA9WHyAmZOjpw0ph1ghRSHP0o9EtHsnLSbajqEbSG9SWSZpUaFyOyLadqXq45Kh7LtJ34EQJ+Ie0lxlt+XX27+A+cGZILwVg1R42dLdoY6S2JPhOg5/bjgI7sy7KnDjlxqtaLBr0hvtgc0YIcKqPtQxyT5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 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f75ac8a-520f-4a66-7e17-08d910266bef X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2021 00:32:25.7903 (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-CrossTenant-UserPrincipalName: G5G1wIjx19+56EuCibQIyuXEOhsao6KkD6y8xmEWoIet3KnrssIzo5z2uJwIXCIfFoVFv1+TgGzaBJLrDmzv7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6714 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_173234_092505_B6A7D31C X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Peng Fan V2: - Add R-b/A-b tag - Merge V1 patch 13 to V2 patch 6 - Drop V1 patch 15 - Merge V1 patch 16 to V2 patch 5 and add comments in patch 5 to explain details - Add explaination in patch 8 for "why the resets are not defined" This patchset is a pick up Lucas's gpcv2 work for i.MX8MM and several minor changes from me to make it could work with i.MX BLK-CTL driver. Thanks for Lucas's work and suggestion, Frieder Schrempf for collecting all the patches, Jacky Bai on help debug issues. Lucas Stach (12): soc: imx: gpcv2: move to more ideomatic error handling in probe soc: imx: gpcv2: move domain mapping to domain driver probe soc: imx: gpcv2: switch to clk_bulk_* API 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 dt-bindings: imx: gpcv2: add support for optional resets soc: imx: gpcv2: add support for optional resets dt-bindings: power: add defines for i.MX8MM power domains soc: imx: gpcv2: add support for i.MX8MM power domains soc: imx: gpcv2: Add support for missing i.MX8MM VPU/DISPMIX power domains Peng Fan (1): soc: imx: gpcv2: move reset assert after requesting domain power up .../bindings/power/fsl,imx-gpcv2.yaml | 9 + drivers/soc/imx/gpcv2.c | 542 ++++++++++++++---- include/dt-bindings/power/imx8mm-power.h | 22 + 3 files changed, 458 insertions(+), 115 deletions(-) create mode 100644 include/dt-bindings/power/imx8mm-power.h Tested-by: Frieder Schrempf