-
Notifications
You must be signed in to change notification settings - Fork 8.2k
driver: regulator: Add support for AXP2101 PMIC #78098
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
Conversation
|
Sorry, the previous one has been closed by a mistake. #77804 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please align the name to the datasheet notation.
Here, ldoa1-> aldo1.
The others so on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for review. Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is also needed to fix dts and commit messages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create a header file in include/zephyr/drivers/mfd/
and move these definitions in the same as done in AXP192.
|
@ranranff Please use |
11f3ee0 to
eedb7a4
Compare
Add initial driver for the AXP2101 PMIC Support: - DCDC1-5 - LDOA1-A4, LDOB1-B2, LDOC1, LDOD1-D2 Signed-off-by: Deng Baoan <[email protected]>
11f3ee0 to
7aebc00
Compare
| LOG_INSTANCE_PTR_DECLARE(log); | ||
| }; | ||
|
|
||
| /*! ----------------------------------------------------------------------------------------*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment style should be follow https://docs.zephyrproject.org/latest/contribute/guidelines.html#coding-style
| reg: | ||
| required: true | ||
|
|
||
| vbus-enable: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it currently used? If no, remove it.
| compatible: "x-powers,axp2101" | ||
|
|
||
| include: i2c-device.yaml | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please define bus. Such like,
bus: axp2101
| LOG_INST_DBG(config->log, "[0x%02x]=0x%02x mask=0x%02x", config->desc->enable_reg, | ||
| config->desc->enable_val, config->desc->enable_mask); | ||
|
|
||
| /* special case for LDOIO0, which is multiplexed with GPIO0 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment correct?
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
Add initial driver for the AXP2101 PMIC
Support:
Change-Id: I3f93900423ec592a44d7e80a4353672c63cfa3a4