You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/12/06 06:50:09 UTC
[GitHub] [incubator-nuttx] zhuyanlinzyl opened a new pull request #4943: nuttx/driver:add regulator framework
zhuyanlinzyl opened a new pull request #4943:
URL: https://github.com/apache/incubator-nuttx/pull/4943
## Summary
The regulator framework support base regulator drivers and regulator management.
# basic regulators now:
regulator-gpio: use gpio pin to control the regulator enable & disable
regulator-rpmsg: gerenate a fake regulator in for "regulator_get" and IPC for really regulator operation.
# API
Hardware regulator generator use API in include/nuttx/power/regulator.h to register regulator to framework
regulator_register
regulator_gpio_init
the API in include/nuttx/power/consumer.h is clock consumer API that used by consumers to operates regulators.
struct regulator *regulator_get(const char *id);
void regulator_put(struct regulator *regulator);
int regulator_is_enabled(struct regulator *regulator);
int regulator_enable(struct regulator *regulator);
int regulator_enable_delay(struct regulator *regulator, int ms);
int regulator_disable(struct regulator *regulator);
int regulator_disable_deferred(struct regulator *regulator, int ms);
int regulator_set_voltage(struct regulator *regulator, int min_uv,
int max_uv);
int regulator_get_voltage(struct regulator *regulator);
## Impact
No. add new framework.
## Testing
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #4943: nuttx/driver:add regulator framework
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #4943:
URL: https://github.com/apache/incubator-nuttx/pull/4943
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org