U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/7] pmbus: PMBus 1.x framework, CLI, regulator and thermal support
@ 2026-07-02 17:15 Vincent Jardin
  2026-07-02 17:15 ` [PATCH v1 1/7] pmbus: add PMBus 1.x framework, CLI, and binding Vincent Jardin
                   ` (7 more replies)
  0 siblings, 8 replies; 24+ messages in thread
From: Vincent Jardin @ 2026-07-02 17:15 UTC (permalink / raw)
  To: u-boot
  Cc: Vincent Jardin, Alexey Charkov, Alice Guo, Andrew Goodbody,
	Anshul Dalal, Bo-Chen Chen, Brian Sune, David Lechner,
	Dinesh Maniyam, Fabio Estevam, Heiko Schocher, Heiko Stuebner,
	Heinrich Schuchardt, Ilias Apalodimas, Jaehoon Chung,
	Jerome Forissier, Julien Masson, Julien Stephan, Kory Maincent,
	Kuan-Wei Chiu, Lucien.Jheng, Macpaul Lin, Marek Vasut,
	Marek Vasut, Martin Schwan, Mateusz Furdyna, Mattijs Korpershoek,
	Michael Trimarchi, Michal Simek, Mikhail Kshevetskiy,
	NXP i.MX U-Boot Team, Neil Armstrong, Nobuhiro Iwamatsu, Peng Fan,
	Peter Robinson, Philip Molloy, Pieter Van Trappen, Quentin Schulz,
	Rasmus Villemoes, Raymond Mao, Simon Glass, Stefan Roese,
	Stefano Babic, Svyatoslav Ryhel, Tom Rini


This series adds U-Boot's PMBus 1.x support as a small boot-time
layer (not a hwmon clone):

  - a decoder + transport library and the pmbus CLI command
  - a shared UCLASS_REGULATOR adapter plus a catch-all driver for
    compliant chips, add the MPS MPQ8785 per-chip driver
  - a generic PMBus die-temperature UCLASS_THERMAL bridge
  - migration of the shared NXP VID rail-trim code to this framework
  - a sandbox PMBus chip emulator and "ut dm pmbus" unit tests that
    exercise most subcommand of the CLI.

The goal is to identify PMBus regulators at boot, print telemetry and
decode chip alerts before the kernel takes over - no polling, no
sysfs, no fan loops. Linux owns the runtime side.


Vincent Jardin (7):
  pmbus: add PMBus 1.x framework, CLI, and binding
  power: regulator: add generic PMBus UCLASS_REGULATOR adapter
  power: regulator: add MPS MPQ8785 PMBus regulator driver
  board: nxp: vid: introduce PMBus framework support
  thermal: pmbus: add PMBus die-temp driver
  test: dm: pmbus: add a sandbox PMBus chip emulator
  test: dm: pmbus: test pmbus command and framework

 MAINTAINERS                                   |  19 +
 arch/Kconfig.nxp                              |   4 +
 arch/sandbox/dts/test.dts                     |  10 +
 board/nxp/common/vid.c                        | 104 ++-
 board/nxp/common/vid.h                        |  15 +-
 cmd/Kconfig                                   |  14 +
 cmd/Makefile                                  |   1 +
 cmd/pmbus.c                                   | 816 ++++++++++++++++
 configs/sandbox_defconfig                     |   6 +
 doc/develop/index.rst                         |   1 +
 doc/develop/pmbus.rst                         | 636 +++++++++++++
 .../regulator/lltc,ltc3882.yaml               |  91 ++
 .../regulator/mps,mpq8785.yaml                | 105 +++
 doc/device-tree-bindings/regulator/pmbus.yaml |  65 ++
 .../regulator/renesas,isl68233.yaml           | 105 +++
 drivers/power/regulator/Kconfig               |  43 +
 drivers/power/regulator/Makefile              |   4 +
 drivers/power/regulator/mpq8785.c             | 494 ++++++++++
 drivers/power/regulator/pmbus_generic.c       |  90 ++
 drivers/power/regulator/pmbus_helper.c        | 315 +++++++
 drivers/power/regulator/pmbus_helper.h        |  90 ++
 drivers/power/regulator/sandbox_pmbus.c       | 160 ++++
 drivers/thermal/Kconfig                       |   8 +
 drivers/thermal/Makefile                      |   1 +
 drivers/thermal/pmbus_thermal.c               |  33 +
 include/pmbus.h                               | 666 +++++++++++++
 lib/Kconfig                                   |  16 +
 lib/Makefile                                  |   1 +
 lib/pmbus.c                                   | 876 ++++++++++++++++++
 test/dm/Makefile                              |   1 +
 test/dm/pmbus.c                               | 247 +++++
 31 files changed, 4982 insertions(+), 55 deletions(-)
 create mode 100644 cmd/pmbus.c
 create mode 100644 doc/develop/pmbus.rst
 create mode 100644 doc/device-tree-bindings/regulator/lltc,ltc3882.yaml
 create mode 100644 doc/device-tree-bindings/regulator/mps,mpq8785.yaml
 create mode 100644 doc/device-tree-bindings/regulator/pmbus.yaml
 create mode 100644 doc/device-tree-bindings/regulator/renesas,isl68233.yaml
 create mode 100644 drivers/power/regulator/mpq8785.c
 create mode 100644 drivers/power/regulator/pmbus_generic.c
 create mode 100644 drivers/power/regulator/pmbus_helper.c
 create mode 100644 drivers/power/regulator/pmbus_helper.h
 create mode 100644 drivers/power/regulator/sandbox_pmbus.c
 create mode 100644 drivers/thermal/pmbus_thermal.c
 create mode 100644 include/pmbus.h
 create mode 100644 lib/pmbus.c
 create mode 100644 test/dm/pmbus.c

-- 
2.43.0

base-commit: f605dcee103c897b6f1a8873549a36949bd4e2a1
branch: for-upstream/pmbus-v4

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2026-07-06 10:32 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <"<20260702171618.1773206-1-vjardin@free.fr>
2026-07-02 19:56 ` [PATCH v2 0/7] pmbus: PMBus 1.x framework, CLI, regulator and thermal support Vincent Jardin
2026-07-02 19:56   ` [PATCH v2 1/7] pmbus: add PMBus 1.x framework, CLI, and binding Vincent Jardin
2026-07-06  3:37     ` Peng Fan
2026-07-06 10:27       ` Vincent Jardin
2026-07-02 20:07   ` [PATCH v2 2/7] power: regulator: add generic PMBus UCLASS_REGULATOR adapter Vincent Jardin
2026-07-02 20:14   ` [PATCH v2 3/7] power: regulator: add MPS MPQ8785 PMBus regulator driver Vincent Jardin
2026-07-06  3:43     ` Peng Fan
2026-07-06 10:24       ` Vincent Jardin
2026-07-02 20:15   ` [PATCH v2 4/7] board: nxp: vid: introduce PMBus framework support Vincent Jardin
2026-07-06  3:41     ` Peng Fan
2026-07-06 10:32       ` Vincent Jardin
2026-07-02 22:26   ` [PATCH v2 5/7] thermal: pmbus: add PMBus die-temp driver Vincent Jardin
2026-07-02 22:56   ` [PATCH v2 6/7] test: dm: pmbus: add a sandbox PMBus chip emulator Vincent Jardin
2026-07-02 22:57   ` [PATCH v2 7/7] test: dm: pmbus: test pmbus command and framework Vincent Jardin
2026-07-02 17:15 [PATCH v1 0/7] pmbus: PMBus 1.x framework, CLI, regulator and thermal support Vincent Jardin
2026-07-02 17:15 ` [PATCH v1 1/7] pmbus: add PMBus 1.x framework, CLI, and binding Vincent Jardin
2026-07-02 17:15 ` [PATCH v1 2/7] power: regulator: add generic PMBus UCLASS_REGULATOR adapter Vincent Jardin
2026-07-02 17:15 ` [PATCH v1 3/7] power: regulator: add MPS MPQ8785 PMBus regulator driver Vincent Jardin
2026-07-02 17:15 ` [PATCH v1 4/7] board: nxp: vid: introduce PMBus framework support Vincent Jardin
2026-07-02 17:15 ` [PATCH v1 5/7] thermal: pmbus: add PMBus die-temp driver Vincent Jardin
2026-07-02 17:15 ` [PATCH v1 6/7] test: dm: pmbus: add a sandbox PMBus chip emulator Vincent Jardin
2026-07-02 17:26 ` [PATCH v1 0/7] pmbus: PMBus 1.x framework, CLI, regulator and thermal support Tom Rini
2026-07-02 23:06   ` Vincent Jardin
2026-07-02 17:46 ` [PATCH v1 7/7] test: dm: pmbus: test pmbus command and framework Vincent Jardin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox