test: dm: pmbus: test pmbus command and framework

Add dm unit tests that drive every pmbus subcommand handler against
the sandbox PMBus chip emulator:
  dev (select by bus:addr and by regulator-name), list, info,
  telemetry, status, dump, read, write, clear, vout, scan and help.

Tested using:

  ./u-boot -T -c "ut dm pmbus*"

Signed-off-by: Vincent Jardin <vjardin@free.fr>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Vincent Jardin
2026-07-13 11:24:45 +08:00
committed by Peng Fan
parent 995cc3383b
commit 722a822787
3 changed files with 244 additions and 0 deletions
+1
View File
@@ -1545,6 +1545,7 @@ F: drivers/power/regulator/sandbox_pmbus.c
F: drivers/thermal/pmbus_thermal.c
F: include/pmbus.h
F: lib/pmbus.c
F: test/dm/pmbus.c
POWER
M: Jaehoon Chung <jh80.chung@samsung.com>