git: 4c501475359f - main - axp81x: Skip the regulators that have no name in the FDT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Nov 2026 13:43:00 UTC
The branch main has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=4c501475359f162e80ff5eba7a5c53c06e5853a0
commit 4c501475359f162e80ff5eba7a5c53c06e5853a0
Author: Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2026-11-10 08:46:46 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2026-11-10 13:42:45 +0000
axp81x: Skip the regulators that have no name in the FDT
A regulator that is not used is described in the FDT by a node without
regulator-name, and regulator_parse_ofw_stdparam() fails for it, which
printed two errors at every boot. Skip these nodes, and only tell about
it when booting verbose.
---
sys/arm/allwinner/axp81x.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sys/arm/allwinner/axp81x.c b/sys/arm/allwinner/axp81x.c
index ed70d5477e0e..6a48f16fe2b7 100644
--- a/sys/arm/allwinner/axp81x.c
+++ b/sys/arm/allwinner/axp81x.c
@@ -1656,6 +1656,14 @@ axp8xx_attach(device_t dev)
child = ofw_bus_find_child(rnode, regdef->name);
if (child == 0)
continue;
+ /* An unused regulator has no name in the FDT */
+ if (!OF_hasprop(child, "regulator-name")) {
+ if (bootverbose)
+ device_printf(dev,
+ "no regulator-name for %s, "
+ "skipping it\n", regdef->name);
+ continue;
+ }
reg = axp8xx_reg_attach(dev, child,
regdef);
if (reg == NULL) {