Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp393221rwb; Wed, 16 Nov 2022 02:07:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dXU8z94UomljmKrx+mwa+8RZUbTnO1XeUqZbfznfZjQmaHotd/+yD594nBJ+r2FUdnto0 X-Received: by 2002:a62:e710:0:b0:563:9203:cc53 with SMTP id s16-20020a62e710000000b005639203cc53mr22254172pfh.20.1668593234339; Wed, 16 Nov 2022 02:07:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668593234; cv=none; d=google.com; s=arc-20160816; b=QwmbOSPnzCwImh3wbZbWbFyhgx8BV2kdMiuVwYhCfOtgJ5T1GB78zGS+AFl5+IsKzs Ng1crF2v1dT7/mcqRPrqtnzZqfnWnktB6j5G2yPR5wdcEUE7fEtH+/Ir4EpImoCp3JQX 2mYTfWRxvngV3kar0jv/9dFRAizb0SGOIOGGEXLTXxKQlnH/ktcP0TtJF9C9WegxxQpT e2EG97OKjb/gtMPVOs1L58oFwawJuBi3hx4O4ikuIY8VQDVg/PyZ46plR/64eWzNa3jg 9IMR0sASyV9VwNtCEeThepkErwjunOhU0gJwJqUGDVunjA3cxZQcCb7ZCTcra1cZKNWy 6urQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=sAK1u/wAryrBBUmS8S2+4axVKqSvrsPIEMMRDgrmxzY=; b=t30uVtTUn96yZNyeLDU2aH0GOJCAwKQS5KbIIk683vkL5ccRz/86YF+OFEVp9rzIZ/ ViGJ+zVldHbR4RTU6Pa+O2xIQvZ3dNrTgkyhRt/yAyZ7MI1UYZtn5aBwo9DsCDGe003m Ptx9RensDXjwaF2FqQBUju1NEyT4xr5uYwW8LJevD9yTIwkXcnKbcsHXP0G9nmyvR5gR iy3HfpSqrdBNelVJ3ff0dHd1bPna31Snzh+O79ibjfEZZ6OmzFcDuHx1TIJY/ltdFAes K37V3exB+bcteLWwllibfgRxG1uqHY+ShDA5AeLLpw7Hvk4+DCH4i0oH6xScSml/Hnc2 H3lA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j24-20020a63cf18000000b0045957e1dc05si14489042pgg.876.2022.11.16.02.07.01; Wed, 16 Nov 2022 02:07:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233729AbiKPJtL (ORCPT + 91 others); Wed, 16 Nov 2022 04:49:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233751AbiKPJtH (ORCPT ); Wed, 16 Nov 2022 04:49:07 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C06256442 for ; Wed, 16 Nov 2022 01:49:04 -0800 (PST) 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 1ovF2T-0007if-2Y; Wed, 16 Nov 2022 10:49:01 +0100 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1ovF2S-0000GF-6p; Wed, 16 Nov 2022 10:49:00 +0100 Date: Wed, 16 Nov 2022 10:49:00 +0100 From: Marco Felsch To: Peng Fan Cc: "Peng Fan (OSS)" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "linux-kernel@vger.kernel.org" , dl-linux-imx , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH V5 07/12] arm64: dts: imx8mn-evk: update vdd_soc dvs voltage Message-ID: <20221116094900.52tbr2o3z4hvaw4z@pengutronix.de> References: <20221115091709.2865997-1-peng.fan@oss.nxp.com> <20221115091709.2865997-8-peng.fan@oss.nxp.com> <20221115100251.7hwpnodgxzirgpw6@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22-11-16, Peng Fan wrote: > > Subject: Re: [PATCH V5 07/12] arm64: dts: imx8mn-evk: update vdd_soc dvs > > voltage > > > > Hi Peng, > > > > On 22-11-15, Peng Fan (OSS) wrote: > > > From: Peng Fan > > > > > > Per schematic, BUCK1 is for VDD_SOC&DRAM&PU_0V9. The > > > nxp,dvs-run-voltage and nxp,dvs-standby-voltage need set for BUCK1, not > > BUCK2. > > > BUCK2 is for A53, which is handled by DVFS, so no need dvs property. > > > > > > Signed-off-by: Peng Fan > > > --- > > > arch/arm64/boot/dts/freescale/imx8mn-evk.dts | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk.dts > > > b/arch/arm64/boot/dts/freescale/imx8mn-evk.dts > > > index 4eb467df5ba7..a5a7d74ec1d5 100644 > > > --- a/arch/arm64/boot/dts/freescale/imx8mn-evk.dts > > > +++ b/arch/arm64/boot/dts/freescale/imx8mn-evk.dts > > > @@ -47,6 +47,8 @@ buck1: BUCK1{ > > > regulator-boot-on; > > > regulator-always-on; > > > regulator-ramp-delay = <3125>; > > > + nxp,dvs-run-voltage = <950000>; > > > > One last question on this. According the schematic the max should be > > 0.88/0.945V and you are going to set it to 0.950V. > > No, my schematic shows the TYP voltage is 0.85/0.95V. I have the Rev.A2 i.MX8MNano DDR4 SoM schematic and TYP is listed as 0.8/0.9V. Is this different for different ram configurations? Sorry for asking but the i.MX8MNano LPDDR4 schematic is not available. > > According the driver the nxp,dvs-run-voltage is just the same as the normal > > regulator voltage. So I would suggest to just use the nxp,dvs-standby- > > voltage property to enable the DVS feature since the run voltage is already > > handled by the regulator-min-microvolt/regulator-max-microvolt. So it > > would be just: > It should be fine to not set nxp,dvs-run-voltage, because bootloader already > set that. Okay, so leave the voltage as it is right now and just add the nxp,dvs-standby-voltage seems fine :) Regards, Marco > > Thanks, > Peng. > > > > > + nxp,dvs-standby-voltage = <750000>; > > > > Regards, > > Marco > > > > > }; > > > > > > buck2: BUCK2 { > > > @@ -56,8 +58,6 @@ buck2: BUCK2 { > > > regulator-boot-on; > > > regulator-always-on; > > > regulator-ramp-delay = <3125>; > > > - nxp,dvs-run-voltage = <950000>; > > > - nxp,dvs-standby-voltage = <850000>; > > > }; > > > > > > buck4: BUCK4{ > > > -- > > > 2.37.1 > > > > > > > > > >