Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend regulator API about current limits #64516

Conversation

bbilas
Copy link
Collaborator

@bbilas bbilas commented Oct 27, 2023

Extend the regulator API about the support of count_current_limits and list_current_limit functions for the current limits.

The following example shows how it looks using the newly introduced clist subcomand.

uart:~$ regulator clist BUCK1
50.000 mA
75.000 mA
100.000 mA
0.125 A
0.150 A
0.175 A
0.200 A
0.225 A
0.250 A
0.275 A
0.300 A
0.325 A
0.350 A
0.375 A

Extend the regulator API about support of `count_current_limits`
and `list_current_limit` functions for the current limits.

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
@bbilas bbilas force-pushed the extend-regulator-api-about-current-limits branch from 29a862b to e1060c9 Compare October 27, 2023 18:06
…upport

Add a new `clist` regulator shell subcommand that prints
the list of supported current limits for specified regulator device.

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
@bbilas bbilas force-pushed the extend-regulator-api-about-current-limits branch from e1060c9 to dc0dcdb Compare October 27, 2023 18:14
@bbilas
Copy link
Collaborator Author

bbilas commented Oct 30, 2023

@aasinclair would you mind taking a look at this, please? I need it for the MR with the new MFD regulator driver :)

@fabiobaltieri fabiobaltieri merged commit e2b01a3 into zephyrproject-rtos:main Nov 1, 2023
18 checks passed
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.

None yet

7 participants