[PATCH v3 7/7] test: dm: pmbus: test pmbus command and framework

Simon Glass sjg at chromium.org
Thu Jul 9 20:57:31 CEST 2026


Hi Vincent,

On 2026-07-06T10:50:51, Vincent Jardin <vjardin at free.fr> wrote:
> 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 at free.fr>
>
> MAINTAINERS      |   1 +
>  test/dm/Makefile |   1 +
>  test/dm/pmbus.c  | 247 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 249 insertions(+)

I'll leave the biggest pmbus question to others, but this looks good.
BTW you should not need the console_record_reset() calls at the end of
functions, nor the 0x before what should be already-hex values in the
commands.

Reviewed-by: Simon Glass <sjg at chromium.org>

Regards,
Simon


More information about the U-Boot mailing list