Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2535020rwi; Fri, 28 Oct 2022 08:10:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5rkSMXv3I6JXtvpg6ObcRB1X200+ZcCDKaOhus/QrhuF0vHe2qCw9/qjwnMaW3t7VkGamU X-Received: by 2002:a63:444f:0:b0:464:3985:3c92 with SMTP id t15-20020a63444f000000b0046439853c92mr18132pgk.412.1666969824481; Fri, 28 Oct 2022 08:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666969824; cv=none; d=google.com; s=arc-20160816; b=X2TSgzvMFEdpKPKFIhPD2JCG+7lCfz0U2sE3IoJAtpIjQqFKyTQx29Dfh+xAvtzJJv pNU40H5ypReFe6jVvCYXv1Z8v347RHm13o5rGTQ1HzqMfKIiHfbWYcz7gGf5xQ2VUT3h FDG5NUgWr3pKaEF0IoEmM6pzA3FiGZzbbfBQF/UKVEiY2lFl14ZBpwJL0cC/OIuRScR/ ol9F9hcWfkgDW8BbFNuwfD9bQe2JmvP8dlIIOZiqSNZ1c4wzHrL+p33IMT1rgY6ObjZo CxCGtZkzrC15NWPVjuFaGD+gNvTWzQ/bXN/tw0LafoMvDCiUCQs/jmmdCpsQqtmcpbCA sa6g== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9wH7iZP/sLmT/WIingPv5aDF56+Ha8VifYuZFy9Mh6A=; b=krXRjQHobnAjxKcLG48iWyfM+z24CB9yzSNtCiZQ6recy428aUUQs8+n3WpG7ltM18 k7vSEyo3tbLVpTuxkNF4MVRR905xYVE9lRjQJTk9ZPRgJ7xZJD+ZMY/aq52Hos1SNhFk ule65XrdjVpd7Kf8g8NS78bJahMo+RILlkxNQScoZH7vHCBTAswIdij08f39DSwD9yP2 UzrGgGMp5tLBUcmUJ6Yo/BFhvyUtUHbPFYggo3F8oog73tO9sLrMMowYW6AsRnOkmLl5 ACH4paW1IoDYyVFB4H90zu4X+My3hMoRiI49Meqo0YrN8ZGNJLgI/TUAjHrNazDYTD4q pDPQ== 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 32-20020a630e60000000b004614aa5f31csi6003400pgo.255.2022.10.28.08.10.12; Fri, 28 Oct 2022 08:10:24 -0700 (PDT) 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 S229907AbiJ1OxS (ORCPT + 99 others); Fri, 28 Oct 2022 10:53:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230119AbiJ1OxQ (ORCPT ); Fri, 28 Oct 2022 10:53:16 -0400 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 D019F1F9A33 for ; Fri, 28 Oct 2022 07:53:15 -0700 (PDT) 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 1ooQjM-0003P0-0h; Fri, 28 Oct 2022 16:53:08 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1ooQjK-0000vL-RF; Fri, 28 Oct 2022 16:53:06 +0200 Date: Fri, 28 Oct 2022 16:53:06 +0200 From: Marco Felsch To: "Peng Fan (OSS)" Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, devicetree@vger.kernel.org, Peng Fan , linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH V2 03/15] arm64: dts: imx8mp-evk: fix BUCK/LDO voltage Message-ID: <20221028145306.66lcoycuzmfb5yug@pengutronix.de> References: <20221024031351.4135651-1-peng.fan@oss.nxp.com> <20221024031351.4135651-4-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221024031351.4135651-4-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-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=unavailable 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-10-24, Peng Fan (OSS) wrote: > From: Peng Fan > > Per PCA9450C datasheet, the voltage range as below: > BUCK1 0.6 - 2.1875 > BUCK2 0.6 - 2.1875 > BUCK4 0.6 - 3.4 > BUCK5 0.6 - 3.4 > BUCK6 0.6 - 3.4 > > LDO1 1.6-1.9, 3.0-3.3 > LDO2 0.8 – 1.15 > LDO3 0.8 - 3.3 > LDO4 0.8 - 3.3 > LDO5 1.8 - 3.3 > > Currently we set the board voltage range same as PMIC regulator > range. We did not therefore you aligned it. Also are you sure that this will not damage the boards since you're lowering the min-voltage and raising the max. voltage? According the schematic, BUCK1 is for VDD_SOC which is min. 0.805V and max. 1.0V. After you're change someone could set it to 2.1875V. Same applies to BUCK2 which is for VDD_ARM and should be within min. 0.805V and max. 1.05V. Regards, Marco > Also add LDO[2,4] in this patch > > Fixes: 5497bc2a2bff ("arm64: dts: imx8mp-evk: Add PMIC device") > Signed-off-by: Peng Fan > --- > arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 44 +++++++++++++------- > 1 file changed, 30 insertions(+), 14 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > index b4c1ef2559f2..a4cddc5a8620 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > @@ -248,8 +248,8 @@ pmic@25 { > regulators { > BUCK1 { > regulator-name = "BUCK1"; > - regulator-min-microvolt = <720000>; > - regulator-max-microvolt = <1000000>; > + regulator-min-microvolt = <600000>; > + regulator-max-microvolt = <2187500>; > regulator-boot-on; > regulator-always-on; > regulator-ramp-delay = <3125>; > @@ -257,8 +257,8 @@ BUCK1 { > > reg_arm: BUCK2 { > regulator-name = "BUCK2"; > - regulator-min-microvolt = <720000>; > - regulator-max-microvolt = <1025000>; > + regulator-min-microvolt = <600000>; > + regulator-max-microvolt = <2187500>; > regulator-boot-on; > regulator-always-on; > regulator-ramp-delay = <3125>; > @@ -268,40 +268,56 @@ reg_arm: BUCK2 { > > BUCK4 { > regulator-name = "BUCK4"; > - regulator-min-microvolt = <3000000>; > - regulator-max-microvolt = <3600000>; > + regulator-min-microvolt = <600000>; > + regulator-max-microvolt = <3400000>; > regulator-boot-on; > regulator-always-on; > }; > > BUCK5 { > regulator-name = "BUCK5"; > - regulator-min-microvolt = <1650000>; > - regulator-max-microvolt = <1950000>; > + regulator-min-microvolt = <600000>; > + regulator-max-microvolt = <3400000>; > regulator-boot-on; > regulator-always-on; > }; > > BUCK6 { > regulator-name = "BUCK6"; > - regulator-min-microvolt = <1045000>; > - regulator-max-microvolt = <1155000>; > + regulator-min-microvolt = <600000>; > + regulator-max-microvolt = <3400000>; > regulator-boot-on; > regulator-always-on; > }; > > LDO1 { > regulator-name = "LDO1"; > - regulator-min-microvolt = <1650000>; > - regulator-max-microvolt = <1950000>; > + regulator-min-microvolt = <1600000>; > + regulator-max-microvolt = <3300000>; > + regulator-boot-on; > + regulator-always-on; > + }; > + > + LDO2 { > + regulator-name = "LDO2"; > + regulator-min-microvolt = <800000>; > + regulator-max-microvolt = <1150000>; > regulator-boot-on; > regulator-always-on; > }; > > LDO3 { > regulator-name = "LDO3"; > - regulator-min-microvolt = <1710000>; > - regulator-max-microvolt = <1890000>; > + regulator-min-microvolt = <800000>; > + regulator-max-microvolt = <3300000>; > + regulator-boot-on; > + regulator-always-on; > + }; > + > + ldo4: LDO4 { > + regulator-name = "LDO4"; > + regulator-min-microvolt = <800000>; > + regulator-max-microvolt = <3300000>; > regulator-boot-on; > regulator-always-on; > }; > -- > 2.37.1 > > >