| Message ID | 20260111073339.1297089-1-michael@amarulasolutions.com |
|---|---|
| Headers | show
Return-Path:
<linux-amarula+bncBCXK73FY3AFRBWVERXFQMGQERVVG3BA@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com
[209.85.208.72])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 057C13F332
for <linux-amarula@patchwork.amarulasolutions.com>;
Sun, 11 Jan 2026 08:33:47 +0100 (CET)
Received: by mail-ed1-f72.google.com with SMTP id
4fb4d7f45d1cf-64db7bc9921sf9455626a12.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Sat, 10 Jan 2026 23:33:47 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1768116827; cv=pass;
d=google.com; s=arc-20240605;
b=dQb+glTxyI1xRl7quE7Oi1lHJnlI/DvpYcAvAbZxm/W1neJxWJVgRS8Yz57DGJBlar
pgRpMkzd0O/Pt4rYBohqBGdb9q0IaEXCXnlQq5lXtbAmwWBlGIYkR4QN+rxHOzWEGbFt
PQJL6q/FmfvivO1kR2KvlhtiFJzq/Pk237M1ynFzd6lWVOWyfEkkyaImd+028tHEXVqA
Js/Q4+Zz3dWI0HbWgl8ygwlr6TyZwScskc1Fc/4Pu8IDBp1VZWky54k9F1W739G0CzL/
5Fc6IIRqpD95mp6vxMn5xLiC5ch/oSmkPc+yRaG4zvwEbrv+uGESmiBNcqp+W6meCn9y
9nRA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:message-id:date:subject:cc:to
:from:dkim-signature;
bh=kbGmRsihaAPJRDrnwjZSb1VZuSBhk7sF5mvY3MpmAyY=;
fh=dJ2+lQ2YMKJ9UuobzG1gs9/t0pblZYX8Gmb8oZ6R4BI=;
b=e9tzyd/7H+RQY1bNyWvRvHj4icTKpxq2ZNWutfSVnzr+cRW3H2vpRorXamG5KI++4c
k9W7jhgwaQcLY9le7lUzvRHgoPRRmI78V/zhYt/dl+6BhwFvDPJTvKGoS6GTXt3IPTaI
m70tnoIVDf1OnF3DuvyBqETGZ6x8ujB9r9Tze0dCOvnaygIUKJjnfE8Bou/ZeQU6qdlB
nU6MtMr9Pi2Y7tFVUJaejZPDD/Pwx4XJwCCRMD7dN6v4OYUOw7CBhsMlKU508JxAUXTQ
QxDg79Q4ldTg3z0eUKQV1XAABJVAsKO4xargEBzL/O+KTQRXuiQbW1xFJpbSMHy+j7t4
ja+w==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=R36pdZLg;
spf=pass (google.com: domain of michael@amarulasolutions.com designates
209.85.220.41 as permitted sender)
smtp.mailfrom=michael@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1768116827; x=1768721627;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:cc:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=kbGmRsihaAPJRDrnwjZSb1VZuSBhk7sF5mvY3MpmAyY=;
b=Y6MEW+z2bFiPeDUPfJ4SQ653WXdq7/PAsMWJTdFFwKVOkF6YusM1kPs5tFD/lDb0zc
CoQTH7kCqkhYmIGQ3jVofg1txfE3puHTkhqHU45KuLqYjGjuwaB1qShCeMc2ccLkv44M
O/9sIk2EcMskZ2vKtS5p+Ne3y03KdpudOEwjQ=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1768116827; x=1768721627;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:message-id:date:subject:cc:to:from:x-gm-gg:x-beenthere
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=kbGmRsihaAPJRDrnwjZSb1VZuSBhk7sF5mvY3MpmAyY=;
b=iA3FrgwpGY08m6v+b89Te+RX3YpYL72lgORd7/g7x7SuNRzuoNak6ZNRmW5WDI1pND
2I0OaHSZXr95ZsjL6CZKf28fcwbEddprogHmNlT9yZaqfEgN7WBInUo81XwwyooySyYD
NfUkHKzLDZ86Euxhf3S9LSl4agOQZaXZ8aDwl9SWwEN7Me5GiYbAl6XBGADKoDhIa9V0
WCfmkzegxMNqH/vU+VTBvMvv/6EHy5iT+KQqjPEYQXtyhDV6O9BrIBVhkuP+1nDINVjn
0UNepKB/NSdBTyxXVGdEYFBeolBmqD1s02vA6s20aEUYs1v2ev+fIGqEKuIRPXuM1b9X
sAQA==
X-Forwarded-Encrypted: i=2;
AJvYcCXw02dcU+UFgfOiFPbivZy4F+xDPpCijBDt2Wadux9aO/AzCx5Ws/asUxyq4OHHlEP10IlZCABfo/6yauat@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YxWNopQpAorZvf2/Lnu1tABfPmThVaXoWi5hMH+H8oHaGCbCWJE
viUsw414slIC6P64mVwJoqenmatur6tMor9dcI0RmASPdguo4XeEeYuWsSeyCHTWijF5xQ==
X-Google-Smtp-Source:
AGHT+IHyMrmkrViZl9YXC34/5E6QswcDfnuPj4mOTBjGiWLLmdDCoPLdCrK9Kd2/jCOm6BWxBnxEnQ==
X-Received: by 2002:a17:907:6d01:b0:b84:1fc7:9457 with SMTP id
a640c23a62f3a-b844519023cmr1292149966b.8.1768116827384;
Sat, 10 Jan 2026 23:33:47 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="AV1CL+GzT+VXzJ4S/qUo0HDfDv3Dmq8eiuQSYxw7BbKHh5QtkQ=="
Received: by 2002:aa7:d915:0:b0:649:7861:d7d7 with SMTP id
4fb4d7f45d1cf-650748d8957ls6251778a12.2.-pod-prod-04-eu;
Sat, 10 Jan 2026 23:33:45 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AJvYcCWh/gzYRX6BEQ0Lf9rTA4Rao2J/dLzI8S7cORM0s+SSwfc97lYajywejBMdDqSQ5uBFqPcdJfpC2fME5K9N@amarulasolutions.com
X-Received: by 2002:a05:6402:234d:b0:64d:1a1:9de4 with SMTP id
4fb4d7f45d1cf-65097e4d774mr13284584a12.16.1768116824879;
Sat, 10 Jan 2026 23:33:44 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1768116824; cv=none;
d=google.com; s=arc-20240605;
b=XuIuiz1vLOChb6XzpgEgg9uP4gcfWs8sdhZl5W7gp4IAkWk8M42Y4ytk0UqNs0v3em
ypbU0uuRMn4lumzTQwudXpxTIpi+ClgMbVgmwT0XPsPMbQOqQBf1kfrBJkIFNimGhvRt
BfpBYYqAltfNUR88c7zyOlwRqno6afUsYYqPZg2lSFh0wil8RxnWqSop8vLNhONCQjZH
yaiq2z62AU+7/RGtH99zhtNIrp8x2STGsJ5tgk+qV6h1Pk/dYQfCqKTAvg8dRpab1psg
oppRXHp9KXxp8+siaXnG0cbjvwwDVAog+ny2ISlFJms0Cm1HCO3kf2oQodwUEJ2XZ3lq
kaew==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=1DWtB0NMZERFgO7txKyF3IFmC6378Zhy2ofmBH5qUjA=;
fh=YWaLn6RS+NvyB27DMutI6P6CNK/+yZm/y8Uq8GA53fA=;
b=CUPgfWtJYYip8LqeU39kqTD8R3l/JZOrAMxmJR6mfIFSqa9bylIW7ax6K05YlMk4jl
/osEuT1RiB67cvVGs4hsxak3I4vlfazYt7O99ziPF3vy6ZGEO5iZXhgXqwDZuKG9N3Z8
qmxM1zkohoQiIa7ayEXwX9JGZExvW1x3VC/mRlNrYRQLFI3FdAPF3FivyPPSQPoBab7O
HWkE86CXo/hFmC8hp7JyExaMk+NfQANSOX8EcHR5DE8BaLqUB1OAvFmmwJOx6YM9YET9
wZkKv6LcQA8SFHK/rO6j06CrrWurK0ZfYB7NiFgwfJFLTBli4BF4PBqG3rx2TZ8DkV+1
Z0tg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=R36pdZLg;
spf=pass (google.com: domain of michael@amarulasolutions.com designates
209.85.220.41 as permitted sender)
smtp.mailfrom=michael@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
4fb4d7f45d1cf-6507bc2d8a3sor4570008a12.5.2026.01.10.23.33.44
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Sat, 10 Jan 2026 23:33:44 -0800 (PST)
Received-SPF: pass (google.com: domain of michael@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Forwarded-Encrypted: i=1;
AJvYcCWwNmz3iZ3WY2ibwst13+gPtJQTm2fREHZDKjzBG3qch6coakY7Vq9oPh0+KIBXGK1NogaxB10Q+MBTkkRC@amarulasolutions.com
X-Gm-Gg: AY/fxX5Bb0B9YrgFnx11dsVgw2wOjPC3/19HrDuvSl03Ch2TKCEwzydEvw4SiJf+Bnd
ZR8Kj7ZmeG3ABOmaHf6SIRDsfwO7gSXsZ5EqYkmSOfvVmRb/zWree2vOuYw7qC9/k9w/rMNv4WG
VYkjaRuPZI6g06jY3hdjy7cP700Uk6I02THgZRO/MZfj5qyaRSsfWS6Ng7MCSHhkSSzy00RVXJD
TXJmScE6iddSVn0WRHEFgq+Axy+egV3JS6vVBAeLrnTe6WU/1h7gKxTaQy6wxsdr8vHr6/mC0yw
Uen2FgH+nmY79A8sZ85YOS7vy9wksBY+4vkAExayBw0Y5g8JVlDKCJRU88vax9K1Bc1PWXEDRaV
lsCxVtsrN8CTRNisH5z5t2T85AU6uevRrimddTWgXuo/NFoXaQQnANNeMSNFQlkkmfFSUHtzGFV
37Yi4MV57dA85Qo3xmGuSo3I/8Sx/ikN8VuSIH9vKbSp2vni14ivBod5oetUG1alPFrzpEw0Cfi
LVdjjh5Ka2it09QbJFSRfR5fg6oIJpWoLCWwb+sxz+DC1oi3gvcdfDERQ==
X-Received: by 2002:a05:6402:1801:b0:64b:82da:abb7 with SMTP id
4fb4d7f45d1cf-65097e4daa8mr10159068a12.18.1768116824024;
Sat, 10 Jan 2026 23:33:44 -0800 (PST)
Received: from panicking.homenet.telecomitalia.it
(host-87-5-117-220.retail.telecomitalia.it. [87.5.117.220])
by smtp.gmail.com with ESMTPSA id
4fb4d7f45d1cf-6507bf6d683sm14548782a12.34.2026.01.10.23.33.41
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 10 Jan 2026 23:33:43 -0800 (PST)
From: Michael Trimarchi <michael@amarulasolutions.com>
To: Peng Fan <peng.fan@nxp.com>,
Jaehoon Chung <jh80.chung@samsung.com>
Cc: Tom Rini <trini@konsulko.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
u-boot@lists.denx.de,
linux-amarula@amarulasolutions.com,
Michael Trimarchi <michael@amarulasolutions.com>
Subject: [PATCH 0/2] power: regulator: pfuze100: Fix voltage calculation and
support high-range
Date: Sun, 11 Jan 2026 08:33:37 +0100
Message-ID: <20260111073339.1297089-1-michael@amarulasolutions.com>
X-Mailer: git-send-email 2.51.0
MIME-Version: 1.0
X-Original-Sender: michael@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=R36pdZLg;
spf=pass (google.com: domain of michael@amarulasolutions.com designates
209.85.220.41 as permitted sender)
smtp.mailfrom=michael@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
|
| Related |
show
|
This series addresses two significant issues in the pfuze100 regulator driver regarding voltage calculation accuracy. The first patch fixes the handling of the "high range" bit. PFUZE chips support two voltage ranges (controlled by a register bit) with different step sizes and base voltages. Previously, the driver assumed the low range, leading to incorrect voltage settings on boards configured for the high range. The second patch corrects the interpretation of min_uV. The driver was incorrectly using the device tree's regulator-min-microvolt constraint as the mathematical base (zero-index) for voltage calculations. This caused offset errors whenever the DTS constraint differed from the hardware's absolute minimum. The patch introduces physical minimums in the driver descriptors to ensure calculations are based on the datasheet specifications, treating the DTS value strictly as a safety constraint. Together, these changes align the U-Boot driver logic with the Linux kernel implementation and ensure correct voltage output. Michael Trimarchi (2): power: regulator: pfuze100: support high voltage range bit power: regulator: pfuze100: Decouple hardware base voltage from DTS constraints drivers/power/regulator/pfuze100.c | 138 ++++++++++++++++++----------- 1 file changed, 88 insertions(+), 50 deletions(-)