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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C000C6FA82 for ; Tue, 13 Sep 2022 10:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fUZLtlm1kpsvNTeO6aUCwuk/YsLeDP0GRs4zNM2AhsY=; b=FL48AK4dJEtU8M StIrAIqHxEwC7IiB9aYDTfkxWcRDDLlETnEG+ehxH04pwbxtnKfAD4j8fLy1fhfth9JvA6DQtB1vz 4FsVCC3Giu++AU9J+z+GckC+0kCrZ04qtKycEzg4c9KLJoTPQDfuGA3dKjPf2UzWGJ6I723Ye/mwo vtoMT4/utVg3Q9Iw2bbxlsBD0qO/RvROd9+XO9B7YFi8xS9QmvOm5/H00O7AtRpTDD8gp8LyImxdO ydxjPMXHBKi3hNzC5zJm62ee9Q/XSQVmvqNGPAfdLgG4GmwiSFCOhkUWQ99PgcdRFDGsbkEleFfvG uMJYIsSvPgYdQzXeas9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oY3GX-006eSV-TG; Tue, 13 Sep 2022 10:35:42 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oY3BA-006aTh-K0 for linux-arm-kernel@lists.infradead.org; Tue, 13 Sep 2022 10:30:17 +0000 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oY3B0-0004De-Db; Tue, 13 Sep 2022 12:29:58 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1oY3Az-0001xh-BK; Tue, 13 Sep 2022 12:29:57 +0200 Date: Tue, 13 Sep 2022 12:29:57 +0200 From: Marco Felsch To: "Peng Fan (OSS)" Cc: krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-kernel@vger.kernel.org, Peng Fan , linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: Re: [PATCH V3 0/2] clk: imx: introduce fsl,always-on-clocks Message-ID: <20220913102957.sir37bsdr5sayxal@pengutronix.de> References: <20220913092136.1706263-1-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220913092136.1706263-1-peng.fan@oss.nxp.com> User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false 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-20220913_033016_378736_8720EED7 X-CRM114-Status: GOOD ( 21.48 ) 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 Hi Peng, On 22-09-13, Peng Fan (OSS) wrote: > From: Peng Fan > > V3: > Rename to fsl,always-on-clocks > > V2: > Use protected-clocks > https://lore.kernel.org/all/20220816130327.2987710-1-peng.fan@oss.nxp.com/ > > V1: > Use fsl,protected-clocks > https://lore.kernel.org/all/20220815033632.1687854-1-peng.fan@oss.nxp.com/ > > There are two cases that I wanna this property could serve: > Virtualization: root cell linux run in parallel with inmate cell > AMP: M7/4 runs in parallel with A53 > > The major case is: > Jailhouse hypervisor only support partition, so devices are partitioned. > But there is only CCM module that provides clock, the CCM is handled by > root cell linux, need make sure the root cell linux not shutdown the > clocks using by inmate cell. > > I was thinking whether need to provide a rate entry to ask root cell > configure the clk rate for inmate cell. But NXP downstream not have it, > see https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/clk/imx/clk-imx8mp.c?h=lf-5.15.y#n690 > So just leave the property as uint32-array. Can you please check my recent proposal? I recently stumbled over such an issue on the mx8mm-evk as well but with the 32k clock provided by the pmic. Unfortunately I forgot to add you to the to list, I will change that. If that proposal will fix your problem, I would like to go the generic way. https://patchwork.kernel.org/project/linux-clk/list/?series=676522 Regards, Marco > > This patchset could also benifit AMP case, check the two commits > commit 19565ea12d61 ("clk: imx: add mcore_booted module paratemter") > commit d097cc045b64 ("clk: imx8mp: remove SYS PLL 1/2 clock gates") > Although I not plan to drop the upper two patches, this patchset > exposes opportunity for better power consumption. > > Peng Fan (2): > dt-bindings: clock: imx8m/imx93: introduce fsl,always-on-clocks > property > clk: imx: support fsl,always-on-clocks > > .../bindings/clock/imx8m-clock.yaml | 4 ++++ > .../bindings/clock/imx93-clock.yaml | 4 ++++ > drivers/clk/imx/clk-imx8mm.c | 2 ++ > drivers/clk/imx/clk-imx8mn.c | 2 ++ > drivers/clk/imx/clk-imx8mp.c | 2 ++ > drivers/clk/imx/clk-imx8mq.c | 2 ++ > drivers/clk/imx/clk.c | 21 +++++++++++++++++++ > drivers/clk/imx/clk.h | 2 ++ > 8 files changed, 39 insertions(+) > > -- > 2.37.1 > > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel