From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no 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 4E84FC47078 for ; Fri, 21 May 2021 15:40:09 +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 C4DAB613EA for ; Fri, 21 May 2021 15:40:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C4DAB613EA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=99d/RyVaLTXbtqPATKh5gCaKbgam4kckJRiBa8Rx4Tk=; b=gcYalUs1y0Pw76G/21bqrao9sr H8S1CHF+AQ/Hx/1zlGPKR3ySMaqxNyVTKnZDcMLzGyHm0MywuRMFSYpoIlDEj0egIWB/WkmBWgvTF 2tW2Jj2ILObljunsJs25QnJ4L34KQ4yPKjEdyUzYrfNTsA8N0pQyOB8pwDv3d/bXSvGZZF5hUOkk5 lyoxPR8P7g3/SIef28O/6Z7hxjshMH3wITLKK3XNV+cenWP0sFRhvgE9uJAKc/xJ3nEcdLHvJgIMm sCUcZ4QlnV/hX7gYmcugoVv7MjALQVwug9hIE+g1YGobH4FvEWEDVFDXJY/xXci23/qsfJAJCL9HJ glfggHvA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk7Dq-0006Xr-EO; Fri, 21 May 2021 15:37:58 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk7Dj-0006WW-Nl for linux-arm-kernel@desiato.infradead.org; Fri, 21 May 2021 15:37:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=0qvQXy+PeVvNfCS2NkBgMuUJWTuqlAYAn95f2gqI374=; b=ZXG4KbX+dV8NZv4MP119el1dh8 UqwdS/pudt0ILqmO1JN/INS9GvUZSu72Bam0o8u2e5+K0JVNNIz3MrMEzZenDLcFgEEFhOrQ9ce3G eS7JM6CLIsiA/svPADpYAe9XWli23hF349f+UXRa4C9Zwk0S293jIJHGZrCCCAlZjacmePCzi7GpZ d32h0UZMqukYShtGP+r66fi9Whvo7bhXdmMK0Pkg23lTF6IWM6WZj3KsbjofCBEJIklPyhoI9JVv1 HN4FGLUlYPxkHxs/zng6C4mfGOZOowRXHjPUzas115W7anPbFlp6+hzu5fy8PTGIPgLVatE0bGcIa COXbYNxA==; Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lk7Dg-00HF13-W0 for linux-arm-kernel@lists.infradead.org; Fri, 21 May 2021 15:37:50 +0000 Received: by mail-ed1-x530.google.com with SMTP id o5so14810117edc.5 for ; Fri, 21 May 2021 08:37:47 -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=0qvQXy+PeVvNfCS2NkBgMuUJWTuqlAYAn95f2gqI374=; b=h3B1y2uRw7NaUMbTYgYMcECB4jBNykKhVfhenQEcHy/IQE/KxCCcvjbd899sLAKpLT E4nSyYtFiuKn1Ls8YhZJhNT76/3Ywa/SB6Zb75ccv66WTYpQQfDizG52Wrvp4xqtL4GR 5r7cDy/8s11aOO8qYF3Apamvp5jdmktLSKnEhVGfNJ8aSIlo/yEh5Y9u4ZnlNoPQsZdQ UProjBlSwx8vQEUPEfpMuse1r72ZXWOYNbj4vJjgnsTOK/ozVzr+jNNUF8ll78aZSyKV INCquHi5AHDyk/HgfohAhRMuC6LY9SUMZnNoK21qNkTwGBO9+c6piVDFdvwFk8WrW/qR bWUQ== 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=0qvQXy+PeVvNfCS2NkBgMuUJWTuqlAYAn95f2gqI374=; b=GHJ//6CdjSxiI6zIHE/ClkJc/WA9HyCZU4qGPt//rPdNkJwN2FacurBDHlm7oCr2ct DbrxE5J5IAtgNNYUjgxJ7BqKZCJup57scQokeKyq9DXDTqPa5UtMFnWYYV4G475pCdBA 9HlGXkBG0zrCGKa9J11eW8Jxn2NcYrLyML5mC4K59eGA3VhLmRBq+78xQwSXevxaL2Gd 6QrvMBxr9zGLPm8sJS5oaiO8SJfaf71/QLveTu/4Kcu7hnfML6KjjRyrxUebif67lHpi iR4l2NGg0wry4CtDe/+WwcEhPP4bRRKG5Bwox1RZbkTC62E4I8iNv0ZabdlfXcRwHI6/ hEsQ== X-Gm-Message-State: AOAM531OwjbVh2T4SOysZWUzBUbve9VTCt/7OGqNnIPvC3Tt+08qTecV JlVnCmr/mLrgogPLCZVdStR/RueB05ch8BcQed0= X-Google-Smtp-Source: ABdhPJyfrA5z0wxQVj5MwFYZ3eIPROTNB8l9W0nouQTVih9Y0Wz5EmavgCjywh94xjSA8KUSbBZW/zGQLtUxijrsK3M= X-Received: by 2002:a05:6402:176b:: with SMTP id da11mr10771493edb.234.1621611466156; Fri, 21 May 2021 08:37:46 -0700 (PDT) MIME-Version: 1.0 References: <20210521105919.20167-1-peng.fan@oss.nxp.com> In-Reply-To: <20210521105919.20167-1-peng.fan@oss.nxp.com> From: Adam Ford Date: Fri, 21 May 2021 10:37:35 -0500 Message-ID: Subject: Re: [PATCH V5 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210521_083749_051546_DB8C9B5C X-CRM114-Status: GOOD ( 30.39 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, May 21, 2021 at 5:27 AM Peng Fan (OSS) wrote: > > From: Peng Fan > > 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>; With this change, I get a bunch of errors on boot. The list of power-domains appear correct on the surface, but it also has trouble waking from sleep. [ 0.695947] imx8mm-blk-ctl imx-dispmix-blk-ctl.0: invalid resource [ 0.702849] imx8mm-blk-ctl: probe of imx-dispmix-blk-ctl.0 failed with error -22 [ 0.711259] imx8mm-blk-ctl imx-dispmix-blk-ctl.1: invalid resource [ 0.716451] imx8mm-blk-ctl: probe of imx-dispmix-blk-ctl.1 failed with error -22 [ 0.724856] imx8mm-blk-ctl imx-dispmix-blk-ctl.2: invalid resource [ 0.730097] imx8mm-blk-ctl: probe of imx-dispmix-blk-ctl.2 failed with error -22 [ 0.738398] imx8mm-blk-ctl imx-dispmix-blk-ctl.3: invalid resource [ 0.743747] imx8mm-blk-ctl: probe of imx-dispmix-blk-ctl.3 failed with error -22 If I have a wrong device tree configuration, can you please post an updated device tree? I don't think an official patch for original pgc's were pushed as part of either series. I used this e-mail as the patch to enable the blk-ctl. thanks, adam > }; > > 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 | 311 ++++++++++++++++++ > drivers/soc/imx/blk-ctl.h | 85 +++++ > include/dt-bindings/power/imx8mm-power.h | 13 + > 6 files changed, 615 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 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel