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 BD806C54EE9 for ; Fri, 23 Sep 2022 01:31:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9461A84CFB; Fri, 23 Sep 2022 03:31:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1663896701; bh=Nme+iY2f01ejgr34qtbd16OOjBpj3xocuKAOmC7rKzQ=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=P3G+O1A332XdbKkxHXIRfK2nCeDEgmYCsn5ad5mDeFU09+uuwkhhXYME/eVLIvrEt 1/bfQ33Irz0NNmaZVrdlOYAvfwiNa4x/yjPZQPOYEYycS/I3XogGunmz8tuuQFzDCj HtsIrZ/x/rAThMle1Iiia1GzNCTfrW9CPn7kjHQh0YF+Ur/fca5P7m3UmirnyIbvRi wXwFF58xxva4ehx5tCoYZl2hlRM1Vcpf0/W2TmKe54NZHh/g9/QhajrY1mcESlBEQb 3CToFOg3qnzCDlSs44pLVp/h8E38WyYiB/3di0/eGjzxWvYvIPJY14tV2rZDWlpxhN n4MDSeSqRREUQ== Received: from tr.lan (ip-86-49-12-201.bb.vodafone.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id BC9DD84BDE; Fri, 23 Sep 2022 03:31:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1663896700; bh=Nme+iY2f01ejgr34qtbd16OOjBpj3xocuKAOmC7rKzQ=; h=From:To:Cc:Subject:Date:From; b=LmN6baGwkOtRg903tpOr5+sHEA/OxEVNK3iAbBzM1zJgW6tK1iXIqTux3XCFruVQX BgNXJkUn7dmgX+JAULxCr76eN5b18b5jOqD6MjxxaAG5+fo1XGhNwsBr8EX1DySU1z AqKiEcbf8DjOpDn+NkU0HpRTob7Y8wv7u7+W2HhG73iWRLSl9rRezpyoKvPuOHZaAS uslyZR+8Z4Dmhioq7Oz8U9hVSVskO+bbd3SyZrA2+EuDdbpRWEbpErWXFVR3vEpq9C ZkkGx3JECAfjdacpS4jRtrGoSd81omHQ8SUoy9vEDiQWxv7ntfTy2MDbRPaU6gZ+NV nKwlZ2LGjeCUQ== From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Patrice Chotard , Patrick Delaunay Subject: [PATCH] ARM: dts: stm32: Remove buck3 regulator-always-on on AV96 Date: Fri, 23 Sep 2022 03:31:22 +0200 Message-Id: <20220923013122.221354-1-marex@denx.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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) -- 2.35.1