From patchwork Thu Apr 29 07:30:34 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: 12230527 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.0 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 6BE52C43470 for ; Thu, 29 Apr 2021 07:01:15 +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 D240B6144B for ; Thu, 29 Apr 2021 07:01:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D240B6144B 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=AW3uM0M7JwbrzU2vnwZ+jkryHUoiiaCdiWR1X8Q2Tpk=; b=XHCIuGmR+gGd5lh/ov3S6uPWfD eCVSHkCLNhQ66R3sIdc7x2PL1/hod9GoMccnOx/ziMTXIi00uGijDvKjAALzF37RLJ27I7RE9WqHD HYW6PguLBic3XTd47HhoMD+IFMtQ809f/jbv5piHjco9MdQKaST4iD/WykWvH9YPioHoBdmGwi0Ka EcOUQaGp8Uix2SJgFnm+flhejA65bWlNROP36MuCaCwuNkUEVvwepjP+0DVe/MwfYE+Pl7VreTiHK 2q6s4iaTdWCRveLyKldrt/rJjFIkeP7uouYQAFGCbHz/modH43qQ2SI8/qfJDjxckIm7r7a2iV4v1 vIsgcBvQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lc0dp-0057Q6-At; Thu, 29 Apr 2021 06:59:17 +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 1lc0dn-0057Pw-K7 for linux-arm-kernel@desiato.infradead.org; Thu, 29 Apr 2021 06:59:15 +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=WETTiMf1yIrU2ct3rg+lXqrZ1J3WRabXeyFgXWBpiGM=; b=akSuuRSQouSX8ISvLaG6rj58pQ intqW7HmJuPS+OcMjsT563pIWRccEAh4hlL/KmIbJOhU3klVAaVZb9CyuqULeLJGM5tn4C44FLwZm mjNpQVDUoO2U0Y3Y8zlSwHM87ma234zDYKuAe4VxnCI2fHHfWkptyDO3cxbYDFRNpsqKV4YCzkm3+ lX0fFwIDzjN6mAG9Log09lSVoh+bUBbSl4c/euoe1lakPivomE6EsLq9Cw6H3APHzLrv51MLUblIW CVtqW89f5nXW4fuM9HSO7xhLbaSNmKlHSBF3yF1Bx3339G3fD/1rGcqunXYHNqQIzFYoJ6ptIyTHd 6ZE5B6Lg==; Received: from mail-vi1eur05on2065.outbound.protection.outlook.com ([40.107.21.65] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lc0dl-000QGJ-1g for linux-arm-kernel@lists.infradead.org; Thu, 29 Apr 2021 06:59:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EEOvUthZlEWcgCsbKYTg3M7TU1ggQtjeYNSZR2RsBDHms0he1kUeLrHMFQWIAuYMw809t0eiUlWdwV3elOomQuaeFXU9rfnr8E3MeI+lG7uYDetHrqozSta5nM+QzakaNZNL4n79kMpViiX/MaqKDOlsnJARu18L3YaohwLGudGW2Ktsy8g8XN66Z/8cdOvDhLS8W6f6saCeSoKM9nccGQJ93OrN1djXPEF91gXbaF3gOy7vd439nepC0JxQi5SfcViLxBNiMd3KDpI6Sqhqlfbfucrw4Awu5EkEJEYAqvywjRfxT4CgYvfnug3TWOTdE8dunKHPOZ7UHVr2bCWj8w== 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=WETTiMf1yIrU2ct3rg+lXqrZ1J3WRabXeyFgXWBpiGM=; b=SGnZwZVKvXVwrLnhYc38B2hym0SHMwvOz/5y5dBH2lMmORR3+A7UCvUwFOgv65fn50FlfFelP6gRYK74XwIqhGGBtWF2EwlvPE+cKreiigqGq3kM/8Cd5vMnCbzaTVhzNcng3ggkIZeEZ3IsgRXudaoU7lFZkVSHhL5IxsQKSZ5Xdz6JjF9fNZjYO+xRNeXpeSFYEv4520HPmQTE43fPSluERlpxhq3iFy9jAojAyCvzJlBlR0k7956o2Twrs0hrBdsn3D7AVB42JCRog3rCXg9OfxkAOz1MREyrAR1LI9LmGubvnw8mTcXgbO6SUu8qJVssGNO/PKwMpct3EXceZg== 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=WETTiMf1yIrU2ct3rg+lXqrZ1J3WRabXeyFgXWBpiGM=; b=LsWJPif2EZlY3vGUi87YhU2c5puZHD8kAeWZXuy6YPR2Z6G8rVvUrAy9c/RGWMgXdHZk6NsANzUYdtaSs4i4TgmhFZNBjv3CTnWmiUPCnsnVwSPVExNPzsJibaMyTj2XELfsUEtGGKHvWugyHTTZXJR3tFJKBgdUPqZVQSNf8ts= 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 DB7PR04MB5468.eurprd04.prod.outlook.com (2603:10a6:10:86::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.25; Thu, 29 Apr 2021 06:59:03 +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.023; Thu, 29 Apr 2021 06:59:02 +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 00/16] soc: imx: gpcv2: support i.MX8MM Date: Thu, 29 Apr 2021 15:30:34 +0800 Message-Id: <20210429073050.21039-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: HK2PR02CA0208.apcprd02.prod.outlook.com (2603:1096:201:20::20) 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 HK2PR02CA0208.apcprd02.prod.outlook.com (2603:1096:201:20::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.29 via Frontend Transport; Thu, 29 Apr 2021 06:58:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6b157e9b-714d-4aac-69df-08d90adc4578 X-MS-TrafficTypeDiagnostic: DB7PR04MB5468: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hLZjQ85hKOFt+SX9KaAM8LCtm4Erh+XOpJr1Eljc5c8ucRZxB7g4TcOXdgQx9hOS2wZF60cmPdV+MsCGFkX3MclGx1PiBMsvdPNeuNDdNBFokZ/iqWUkAv7dI8RlWceuuBNbpYAv5s8lyuovjTOBCyOJIe3YIHO11rgxkh+mQTqz9JhCrGWRSPjtVPNoiC4tlde1U/uRE+MtICYeptPeCRiNwSY6GYVUd72qErLQG6Lmk923JuPHBzO5XbcEcEonDlGEC9Ra4qIc3zeC5qPXCOMM+Rgo7QhffeqhNKd/zFPDmQeD3EbSQ6qIeqRDRJOwSkGOZbspNEfQN5DR0uNqwjqkK83QglHT5sXEtwAEpIw5W+pRHMXH5A3Jah+mcsmOckGgCwKBugH+ygFrFAmB0j4DAPviab4aJZ1GLKIlJv9DbZvHAe2YfUILnOAoY7jQurLF3tV7tTDw6sDlogEjc5w+Rd03GR6ovJ5CpVZwwPDxZ3b9lRYATKWDU8YSQdvZbzF+A8OaQ0K+dSmO9EQmWi/Sq1rsoXyFMi1st5iKRhBiWmqh+o/uCOc6Fxv4uc8YxuOBmdVVwdMeYAtRbzL2pahHF5EoTL5pk1iki8QgKXBtsD7Q4hqEi1fxIIHezpK9ZvtdxJOyAhhGrCla8YJ/azwYB6sMA+MaQS9BSTZV2XY= 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)(366004)(396003)(376002)(39860400002)(346002)(136003)(2906002)(8936002)(4326008)(52116002)(38100700002)(38350700002)(6666004)(956004)(6512007)(83380400001)(8676002)(66946007)(66476007)(16526019)(2616005)(1076003)(6506007)(186003)(6486002)(66556008)(7416002)(478600001)(5660300002)(26005)(316002)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: raiO7qP2bGirOf+nSITUfZiFi1AUENdSzQvahh/ZLa/HSdEzQfM9gU5YaNfkJ1TVyi7z1xgsP98lY3FSvvYLbrjxyByackEZemutRCUcwim3cIGfSM3AAMm7NQt2jYOaTan8IsDtieZ51KduXtEdMow2WEOENxoqCnvvbec1UkTEM1TLbQvQiQJNaHKOliQXALnju2cs2yutNRdqadl/0N2NAA43k23au4MBhSVqenBHMBOpXun5Q0MPHDjfrfMAdzTfWXnY1P81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QfPQR0z X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b157e9b-714d-4aac-69df-08d90adc4578 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2021 06:59:02.7836 (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: 2b1lHMZ3r6AuQ9R5xbX9J+sUnJ+FYDHEBeBo2QWLNEu//ZyXNSAPKEPLiRW5PdcT3WhX0vz+Xnb9RX35uaUvyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5468 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210428_235913_118889_3C179126 X-CRM114-Status: UNSURE ( 7.96 ) 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 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 (4): soc: imx: gpcv2: correct pm_runtime_get_sync usage soc: imx: gpcv2: move reset assert after requesting domain power up soc: imx: gpcv2: support reset defer probe soc: imx: gpcv2: remove waiting handshake in power up .../bindings/power/fsl,imx-gpcv2.yaml | 9 + drivers/soc/imx/gpcv2.c | 534 ++++++++++++++---- include/dt-bindings/power/imx8mm-power.h | 22 + 3 files changed, 450 insertions(+), 115 deletions(-) create mode 100644 include/dt-bindings/power/imx8mm-power.h