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 C7CF4CD342C for ; Wed, 6 May 2026 17:52:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 256F784897; Wed, 6 May 2026 19:52:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 50A2484897; Wed, 6 May 2026 19:52:24 +0200 (CEST) Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EABC4849CA for ; Wed, 6 May 2026 19:52:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=paulk@sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id A46801F80044 for ; Wed, 6 May 2026 17:52:19 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id 1C3CCB405E3; Wed, 6 May 2026 17:52:19 +0000 (UTC) Received: from collins (unknown [192.168.1.64]) by laika.paulk.fr (Postfix) with ESMTP id E2297B405E6; Wed, 6 May 2026 17:51:10 +0000 (UTC) From: Paul Kocialkowski To: u-boot@lists.denx.de Cc: Tom Rini , Jagan Teki , Andre Przywara , Chen-Yu Tsai , Icenowy Zheng , Paul Kocialkowski , Paul Kocialkowski Subject: [PATCH v3 2/3] power: axp: Add default voltages for V3s/V3/S3 Date: Wed, 6 May 2026 19:50:56 +0200 Message-ID: <20260506175057.3374586-3-paulk@sys-base.io> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260506175057.3374586-1-paulk@sys-base.io> References: <20260506175057.3374586-1-paulk@sys-base.io> 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.8 at phobos.denx.de X-Virus-Status: Clean From: Paul Kocialkowski The default voltages used by V3s boards differs from the usual AXP209 default that are used on older chips. Correct the default voltages based on the Allwinner reference design schematics, which match boards found in the wild such as the Pinecube. Update the affected config. Signed-off-by: Paul Kocialkowski --- configs/pinecube_defconfig | 2 -- drivers/power/Kconfig | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/configs/pinecube_defconfig b/configs/pinecube_defconfig index 767b18b1e42e..5d6c130330b4 100644 --- a/configs/pinecube_defconfig +++ b/configs/pinecube_defconfig @@ -16,7 +16,5 @@ CONFIG_MTD=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_SUN8I_EMAC=y CONFIG_AXP209_POWER=y -CONFIG_AXP_DCDC2_VOLT=1250 -CONFIG_AXP_DCDC3_VOLT=3300 CONFIG_CONS_INDEX=3 CONFIG_SPI=y diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig index 1b06d8a66c7c..770e0a406b1d 100644 --- a/drivers/power/Kconfig +++ b/drivers/power/Kconfig @@ -187,10 +187,11 @@ config AXP_DCDC2_VOLT int "axp pmic dcdc2 voltage" depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP313_POWER || AXP717_POWER || AXP803_POWER default 900 if AXP818_POWER - default 1400 if AXP152_POWER || AXP209_POWER + default 1400 if AXP152_POWER || (AXP209_POWER && !MACH_SUN8I_V3S) default 1000 if AXP313_POWER default 1000 if AXP717_POWER default 1000 if AXP803_POWER + default 1250 if MACH_SUN8I_V3S default 1200 if MACH_SUN6I default 1100 if MACH_SUN8I default 0 if MACH_SUN9I @@ -203,6 +204,7 @@ config AXP_DCDC2_VOLT On A80 boards dcdc2 powers the GPU and can be left off. On A83T boards dcdc2 is used for VDD-CPUA(cluster 0) and should be 0.9V. On R40 boards dcdc2 is VDD-CPU and should be 1.1V + On V3s/V3/S3 boards dcdc2 is VDD-CPU/VDD-SYS and should be 1.25V. On boards using the AXP313 or AXP717 it's often VDD-CPU. config AXP_DCDC3_VOLT @@ -210,9 +212,10 @@ config AXP_DCDC3_VOLT depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP313_POWER || AXP717_POWER default 900 if AXP809_POWER || AXP818_POWER default 1500 if AXP152_POWER - default 1250 if AXP209_POWER + default 1250 if (AXP209_POWER && !MACH_SUN8I_V3S) default 1100 if AXP313_POWER default 1100 if MACH_SUN8I_R40 + default 3300 if MACH_SUN8I_V3S default 1200 if MACH_SUN6I || MACH_SUN8I ---help--- Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to @@ -224,6 +227,7 @@ config AXP_DCDC3_VOLT On A80 boards dcdc3 is used for VDD-CPUA(cluster 0) and should be 0.9V. On A83T boards dcdc3 is used for VDD-CPUB(cluster 1) and should be 0.9V. On R40 boards dcdc3 is VDD-SYS and VDD-GPU and should be 1.1V. + On V3s/V3/S3 boards dcdc3 is VCC-IO and should be 3.3V. On boards using the AXP313 or AXP717 it's often VDD-DRAM and should be 1.1V for LPDDR4. -- 2.54.0