Skip to content

Conversation

@kartben
Copy link
Contributor

@kartben kartben commented Jun 13, 2025

Adopt SHELL_HELP macro for Regulators shell

uart:~$ regulator --help
regulator - Regulator playground
Subcommands:
  enable      : Enable the regulator
                Usage: enable <device>
  disable     : Disable the regulator
                Usage: disable <device>
  is_enabled  : Get regulator status
                Usage: is_enabled <device>
  vlist       : List supported voltages
                Usage: vlist <device>
  vset        : Set voltage
                The input requires units, e.g. 200mv, 20.5mv, 10uv, 1v...
                Usage: vset <device> <minimum> [<maximum>]
                       If maximum is not set, exact voltage will be requested
  vget        : Get voltage
                Usage: vget <device>
  clist       : List supported current limits
                Usage: clist <device>
  iset        : Set current limit
                The input requires units, e.g. 200ma, 20.5ma, 10ua, 1a...
                Usage: iset <device> <minimum> [<maximum>]
                       If maximum is not set, exact current will be requested
  iget        : Get current limit
                Usage: iget <device>
  modeset     : Set the mode of the regulator
                Usage: modeset <device> <mode identifier>
  modeget     : Get the mode of the regulator
                Usage: modeget <device>
  adset       : Set active discharge status
                Usage: adset <device> <enable|disable>
  adget       : Get active discharge status
                Usage: adget <device>
  errors      : Get active errors
                Usage: errors <device>
  dvsset      : Set dynamic voltage scaling state
                Usage: dvsset <device> <state identifier>
  shipmode    : Enable ship mode
                Usage: shipmode <device>

Adopt SHELL_HELP macro for Regulators shell

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
@sonarqubecloud
Copy link

@kartben kartben marked this pull request as ready for review June 13, 2025 21:36
@kartben kartben merged commit 754b259 into zephyrproject-rtos:main Jun 18, 2025
31 checks passed
@kartben kartben deleted the regulator_Shell branch June 18, 2025 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants