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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 074E0ECAAD8 for ; Fri, 23 Sep 2022 06:13:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F391F84CF6; Fri, 23 Sep 2022 08:13:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="G/JpSnt/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D0BA884BC4; Fri, 23 Sep 2022 08:13:28 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BE93884BE1 for ; Fri, 23 Sep 2022 08:13:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=526525edb4=patrice.chotard@foss.st.com Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28N57Wu7007399; Fri, 23 Sep 2022 08:13:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=4+EqXiYvBPYDSSWpStH9c0h7BCyEWa3V4QMWjGb3BPw=; b=G/JpSnt/YVbhapuXSckI1sPSyhwyENY6fpjBs8hiiNM4acbfw3XjKN5W0+evv1BLNzsv qc664uBAdmm/Y1139ZnhB8dX0WElM9A6drnlDn3NThCr1oSKBi/0WNRMOXl8sV228aFQ tac5IZXN/R0GLm8MMC2/QhRWwItMXm/a6nukTfWqcN0Z3IyowxxRo0fDcMPF9vOk5A/G SuErC9l+Igj2rRUDWeQChMQfluS95PDS/pSOXKzEc7KN1aRHgUNiKZTq+5dASBSy2cbv zFziHwgj/ln0c7opby0na86sRQXBfb7D8uiKSkKQp3LCNR2R5c0F6WIoHA2mgL6zbcW2 VQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3jrkmx6tcr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Sep 2022 08:13:26 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 124A010002A; Fri, 23 Sep 2022 08:13:25 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 0032F212FB1; Fri, 23 Sep 2022 08:13:24 +0200 (CEST) Received: from [10.201.21.72] (10.75.127.51) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 23 Sep 2022 08:13:24 +0200 Message-ID: <8333e40c-1879-e54b-e7e8-685f520a14a7@foss.st.com> Date: Fri, 23 Sep 2022 08:13:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] ARM: dts: stm32: Remove buck3 regulator-always-on on AV96 Content-Language: en-US To: Marek Vasut , CC: Patrick Delaunay References: <20220923013122.221354-1-marex@denx.de> From: Patrice CHOTARD In-Reply-To: <20220923013122.221354-1-marex@denx.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-23_02,2022-09-22_02,2022-06-22_01 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean HI Marek On 9/23/22 03:31, Marek Vasut wrote: > In case the regulator-always-on is present in regulator DT node, > the regulator is always reconfigured to the voltage set in DT on > probe, even if regulator_set_value() has been called before. Drop > the property from AV96 U-Boot DT and enable the regulator manually > in code, as the board already reconfigures the Buck3 regulator in > code per PMIC NVM content instead. > > Fixes: 0adf10a87b1 ("ARM: dts: stm32: Configure Buck3 voltage per PMIC NVM on Avenger96") > Signed-off-by: Marek Vasut > --- > Cc: Patrice Chotard > Cc: Patrick Delaunay > --- > arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi | 4 ++++ > board/dhelectronics/dh_stm32mp1/board.c | 1 + > 2 files changed, 5 insertions(+) > > diff --git a/arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi b/arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi > index 5bed53e3fdb..b6fceb9ad58 100644 > --- a/arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi > +++ b/arch/arm/dts/stm32mp15xx-dhcor-avenger96-u-boot.dtsi > @@ -102,6 +102,10 @@ > hnp-srp-disable; > }; > > +&vdd { > + /delete-property/ regulator-always-on; > +}; > + > &vdd_io { > u-boot,dm-spl; > }; > diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c > index 9188f5381eb..b0284609183 100644 > --- a/board/dhelectronics/dh_stm32mp1/board.c > +++ b/board/dhelectronics/dh_stm32mp1/board.c > @@ -595,6 +595,7 @@ static void board_init_regulator_av96(void) > > /* Adjust Buck3 per preconfigured PMIC voltage from NVM. */ > regulator_set_value(rdev, uv); > + regulator_set_enable(rdev, true); > } > > static void board_init_regulator(void) Reviewed-by: Patrice Chotard Patrice