Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3693254pxj; Mon, 24 May 2021 12:31:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWy37lpTQu/+rp+8NTC0i9Zfwdm3FA3xSUwI65svHtoTmT/rROiGYkKAE/a0Hv8J/9S51d X-Received: by 2002:a17:907:961f:: with SMTP id gb31mr9461188ejc.309.1621884705936; Mon, 24 May 2021 12:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621884705; cv=none; d=google.com; s=arc-20160816; b=aOiyIMyEmfLBP9reP/TNl6broM+PVvn2DR6bJFzmuWFrDvpZdah9qgwHPK2gSmWPqo 6UHnTZlus1HlMaSBzzyDCa3fCqnSl6rTMGIlt49lATxftPBRp+FqvkebkYuvrPtzi4v6 pHSqtQuRX7EGe2/P4JIuBTqNmf4cJG8p72z4pVqt5pFW7EjSSAjnhN7D45aOpWHSGY2s FECjx/mORCMzk+PH9Td5te/EyW5E/PS3qByOtkwEt6PODY9F6l8zTBrlorGvNaaPetAq YkmaRIMth+OFAqO3WN0159sO8hINPU8ax2YDOLinwmkcuBxoQH2jtBq0JUGpeiumsO++ u2BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HSduRxv1YyKmkhVz++9WVxoKInEXHFJkaYQSZ8DbQ0M=; b=ZbNQ7FHLwtVu1TLlPvOuTMUUmZKE6oEYaUEV89E0EkzlUeCv85M1r7t8TGQKTcAMHL GfWwObMu1v6hLkX3rxmh0Sb/9XtGqT0LxpJSyY9sr6uW37f6+M/FHu0yKdaS/lUdhrXD d+lf5s8vwP8n1o1a0PXXIKfSVO55OI2UPT5J6VTyObUS2JJqDOqJRgkfyaQqgjoUM4CV lo2MRQoQme220Bg6J8px68FmmWwa1SSqJEu5fkQmaPuZNiNo7kJB0QC65Tt00d3lIiOx b/5UwFH9VBQXMCbH4KzJkqS1FoRBDtWawLvMiSRq+QFBhp4ffxUOOw0vmBBxa7+Vpxwb 12Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u+x5vgHP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y25si13168237eje.117.2021.05.24.12.31.19; Mon, 24 May 2021 12:31:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u+x5vgHP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233473AbhEXTb0 (ORCPT + 99 others); Mon, 24 May 2021 15:31:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233026AbhEXTbY (ORCPT ); Mon, 24 May 2021 15:31:24 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25120C061574; Mon, 24 May 2021 12:29:56 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id df21so33305734edb.3; Mon, 24 May 2021 12:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HSduRxv1YyKmkhVz++9WVxoKInEXHFJkaYQSZ8DbQ0M=; b=u+x5vgHPgLILhmxvDzDSROXxVS+Adqd4HHaVMqXfGliLd9WoRiY4aFnTAVBQs2OE/v 7tiOuMJLHeCz21KP3xqK9Pg4C4Q+SkaFfOKGsaX4GKhvAtmOy5vAzpE9gMucezZJgPar Y+UajtwHW1as+Vko2p0dwo86wwFly515K6TmHwxNVuaoKrWRAqzSVX7cmxiQmbk+KSdd pApSS34e6gDIicPcY+8fHjbwwEKPjgKUXDBIODx3AIg8kPwtoxlUdujLSefaZRemwlKZ whg4I20s9YfuX685WNuDYjCbhiZwCD4GR6uFSjC/bLAZjXnZbqnL4pzc9k4c3Laok6w9 if3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HSduRxv1YyKmkhVz++9WVxoKInEXHFJkaYQSZ8DbQ0M=; b=MYHJO1xQanspN7P/OLB2Pck6c8t3j9jCUX3WeSE7RjGmd0M8SF/XTK1YkqZjKkrw/g ESNSg90blHfwgVQvVwI8CKiX1uUa268ggPEYKN/lAfY9if8gRJrf5vIL7f+FPOmwEmuc JobnCb92i/D+DW1z9ao+h0K964JG2FyHJIfv9lkQWdvxJ6vO1ntn7DatKuXSg8LuenDp ggGPSooCHF3jf1ISPltB7gZDIgKtSQDZDpjXzU54dKhDtfDXOT2Bvix96hwkk2AnLFRh 0S0RI6PTLstMokIgHGcgIceF1PoiC8HT126gXBoo+HJ+urT0rqKBS8TsHM+q5WxyFJo3 1kHg== X-Gm-Message-State: AOAM530PWUztbuye1SanAn9W/s7KIRIHAa8RjzlUR8Dah+tVQCs6w90B eWpBfMwK9t/FV/CZ6trCEFTW73BwuMemnfYzhpE= X-Received: by 2002:a05:6402:34d5:: with SMTP id w21mr27622038edc.38.1621884594435; Mon, 24 May 2021 12:29:54 -0700 (PDT) MIME-Version: 1.0 References: <20210522134249.15322-1-peng.fan@oss.nxp.com> In-Reply-To: <20210522134249.15322-1-peng.fan@oss.nxp.com> From: Adam Ford Date: Mon, 24 May 2021 14:29:43 -0500 Message-ID: Subject: Re: [PATCH V6 0/4] soc: imx: add i.MX BLK-CTL support To: "Peng Fan (OSS)" Cc: Rob Herring , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , NXP Linux Team , Philipp Zabel , Lucas Stach , Krzysztof Kozlowski , =?UTF-8?Q?Guido_G=C3=BCnther?= , Marek Vasut , Andrey Smirnov , devicetree , arm-soc , Linux Kernel Mailing List , Jacky Bai , Schrempf Frieder , Abel Vesa , Peng Fan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 22, 2021 at 8:10 AM Peng Fan (OSS) wrote: > > From: Peng Fan > > V6: > Thanks for Adam's report on V5. > Resolve the error message dump, it is the child device reuse > the parent device node and matches the parent driver. > Filled the remove function for child device. > A diff dts file for upstream: > https://gist.github.com/MrVan/d73888d8273c43ea4a3b28fa668ca1d0 Since Shawn has merged the pgc portion [1], can you post the device tree to the mailing list, so he can pull that in too? Without the DT, the PGC's won't do anything. If you want me to do it, can I do it, but you've done all the work. [1] - https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git/log/?h=for-next thanks adam > > V5: > Rework the blk-ctl driver to let sub-PGC use blk-ctl as parent power > domain to fix the potential handshake issue. > I still keep R-b/A-b tag for Patch 1,2,4, since very minor changes > I only drop R-b tag for Patch 3, since it has big change. > An example, the pgc_mipi not take pgc_dispmix as parent: > > pgc_dispmix: power-domain@10 { > #power-domain-cells = <0>; > reg = ; > clocks = <&clk IMX8MM_CLK_DISP_ROOT>, > <&clk IMX8MM_CLK_DISP_AXI_ROOT>, > <&clk IMX8MM_CLK_DISP_APB_ROOT>; > }; > > pgc_mipi: power-domain@11 { > #power-domain-cells = <0>; > reg = ; > power-domains = <&dispmix_blk_ctl IMX8MM_BLK_CTL_PD_DISPMIX_BUS>; > }; > > dispmix_blk_ctl: clock-controller@32e28000 { > compatible = "fsl,imx8mm-dispmix-blk-ctl", "syscon"; > reg = <0x32e28000 0x100>; > #power-domain-cells = <1>; > power-domains = <&pgc_dispmix>, <&pgc_mipi>; > power-domain-names = "dispmix", "mipi"; > clocks = <&clk IMX8MM_CLK_DISP_ROOT>, <&clk IMX8MM_CLK_DISP_AXI_ROOT>, > <&clk IMX8MM_CLK_DISP_APB_ROOT>; > }; > > V4: > Add R-b tag > Typo fix > Update the power domain macro names Per Abel and Frieder > > V3: > Add explaination for not listing items in patch 2 commit log Per Rob. > Addressed comments from Lucas and Frieder on patch [3,4]. > A few comments from Jacky was ignored, because following gpcv2 > coding style. > > V2: > Fix yaml check failure. > > Previously there is an effort from Abel that take BLK-CTL as clock > provider, but it turns out that there is A/B lock issue and we are > not able resolve that. > > Per discuss with Lucas and Jacky, we made an agreement that take BLK-CTL > as a power domain provider and use GPC's domain as parent, the consumer > node take BLK-CTL as power domain input. > > This patchset has been tested on i.MX8MM EVK board, but one hack > is not included in the patchset is that the DISPMIX BLK-CTL > MIPI_M/S_RESET not implemented. Per Lucas, we will finally have a MIPI > DPHY driver, so fine to leave it. > > Thanks for Lucas's suggestion, Frieder Schrempf for collecting > all the patches, Abel's previous BLK-CTL work, Jacky Bai on help > debug issues. > > > Peng Fan (4): > dt-bindings: power: Add defines for i.MX8MM BLK-CTL power domains > Documentation: bindings: clk: Add bindings for i.MX BLK_CTL > soc: imx: Add generic blk-ctl driver > soc: imx: Add blk-ctl driver for i.MX8MM > > .../bindings/soc/imx/fsl,imx-blk-ctl.yaml | 66 ++++ > drivers/soc/imx/Makefile | 2 +- > drivers/soc/imx/blk-ctl-imx8mm.c | 139 ++++++++ > drivers/soc/imx/blk-ctl.c | 334 ++++++++++++++++++ > drivers/soc/imx/blk-ctl.h | 85 +++++ > include/dt-bindings/power/imx8mm-power.h | 13 + > 6 files changed, 638 insertions(+), 1 deletion(-) > create mode 100644 Documentation/devicetree/bindings/soc/imx/fsl,imx-blk-ctl.yaml > create mode 100644 drivers/soc/imx/blk-ctl-imx8mm.c > create mode 100644 drivers/soc/imx/blk-ctl.c > create mode 100644 drivers/soc/imx/blk-ctl.h > > -- > 2.30.0 >