From nobody Fri Nov 13 07:29:47 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jQpmq6Js1z7077d for ; Fri, 13 Nov 2026 07:29:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jQpmq4ndtz4ZyR for ; Fri, 13 Nov 2026 07:29:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794554987; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2boDS6GwZ11l72dW0ynQyU/Em4K/jTy7XBPFYyI1zkw=; b=FKa5LCRXlEfP/96t/JNh51/K8giPhdlzk8Ftars038htxgr92EyEWOzTrt4LgxD4ca3FKP 5j91oi7zt/STxy5eq3P6b6hAVm+aFdScbXwt4gcl9Dd3qePJAkim8/1r8BGeKU/vb3/cd0 gxCrhdfsRbFx650qm5D08e6IarbPOlHXNy8pAWhIc0gjUYdnYGSNb4i2Ng5QibjDjPLD+A FP7lSZX17KMo/2+gLdMXC1/S/VH2l7feMbUCWYEnvR0rzoG6jbmbRZwFyRat7MK9uQnFOM azgcqoNKKUQq8tYdz20zss12t65ATuwVZXBTDaP293UDLdNqcyk5ExWJUZSAoA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794554987; b=cFSPDOGrRGXcDS6lsLDu5d8aXcywvQ2W8/hl77gGHkEJlYIfXsFRG7Liv/mvwotWe1CVTh C+6+CU6eSx0cvDJFuL+GW9E1nSB136vY5IKDcgLwT3ZjCuKa1mVsyd5+0YZS0wibmIsVFz cAJ2ioymcV/pnYnJNsdveWSNa+ZDC7kojJEME6pXEU3ZmijV4vHghm2cLo3e50vCNNExmi VRE8IvaXLN12tQqQFRBqLGdpFzOUZodwIyCCeunKvdtEciPHnfo83ZmhJTXCdq4We/tpue adOfVQxAL1e8Vth/uacZtXjBy078P/AhAhP8JQF7vDq9Jmq2vZsC1H6GUGZqbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794554987; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2boDS6GwZ11l72dW0ynQyU/Em4K/jTy7XBPFYyI1zkw=; b=pxoAP0MtLiH+IhTTmPLnN0fLe+ibK4cpD4FqFJ1zEJdyRmrOC89c7ppGA4nDeilS/Gu8tP ATRSVdcq+sf3kLNqtxQjBcBpmYrMVM60SCHnn2lyPsiyhr6ytUTbz+PQVBwzu83WX0W58K 8iNo9vb6riTUkTU0JFUsTQcsbcAAvb9j13I9D69tJQ/nJQa1Fyg8GPCuB5Y3ZFhWb6DoDR eICscuKapkSbOmWvrwlDVDoaq1p9O+9gRBw5SLMaucmogv/ttd3Am1mbBhQXLd4cfkJOUs AA0vWG6eOR/PwQUnWZWd8ktFfNF5lcjoQ83qvz3y0iJ+PrOifRvtURx3o2ZFMw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jQpmq4QqhzNjD for ; Fri, 13 Nov 2026 07:29:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 187a5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 13 Nov 2026 07:29:47 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 486633127e37 - main - axp81x: Fix the number of steps of the first range of DCDC5 List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 486633127e37389dc83449bbc13dfa670ea78ba5 Auto-Submitted: auto-generated Date: Fri, 13 Nov 2026 07:29:47 +0000 Message-Id: <6af6bc6b.187a5.22f21ff6@gitrepo.freebsd.org> The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=486633127e37389dc83449bbc13dfa670ea78ba5 commit 486633127e37389dc83449bbc13dfa670ea78ba5 Author: Emmanuel Vadot AuthorDate: 2026-11-13 06:35:25 +0000 Commit: Emmanuel Vadot CommitDate: 2026-11-13 07:29:30 +0000 axp81x: Fix the number of steps of the first range of DCDC5 The voltage of DCDC5 goes from 800mV to 1120mV in 10mV steps with the codes 0x00 to 0x20, then from 1140mV to 1840mV in 20mV steps with the codes 0x21 to 0x44. The first range has 32 steps and not 42, so every code above 32 was decoded and encoded wrongly: the driver read 1160mV for the 1.2V that the firmware sets for the DRAM, did not see it in the range of the FDT and wrote a code that is really 1280mV. The same happens for the other voltages, 1.36V is set to 1.46V and 1.5V to 1.6V. It also made the voltage reported for the regulator wrong. Reported by: llm-postcr Fixes: c175fd0fe8a3 ("axp81x: Add support for AXP803") Tested on: A64 --- sys/arm/allwinner/axp81x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/allwinner/axp81x.c b/sys/arm/allwinner/axp81x.c index 7db28242a3db..279113bb5294 100644 --- a/sys/arm/allwinner/axp81x.c +++ b/sys/arm/allwinner/axp81x.c @@ -466,7 +466,7 @@ static struct axp8xx_regdef axp8xx_common_regdefs[] = { .voltage_min = 800, .voltage_max = 1840, .voltage_step1 = 10, - .voltage_nstep1 = 42, + .voltage_nstep1 = 32, .voltage_step2 = 20, .voltage_nstep2 = 36, },