forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: regulator: pca9420: do not expose registers in DT
Regulator registers were set for each BUCK/LDO in DT, likely because of the way the devices were instantiated. When using a generic iterator, ie, DT_INST_FOREACH_CHILD, there's no way to differentiate the child being _parsed_. Since instantiation happens now based on child node names, we are able to know which registers each devices gets assigned at the driver level. This greatly simplifies Devicetree, and it actually removes information that is not strictly hardware description from it. Signed-off-by: Gerard Marull-Paretas <[email protected]>
- Loading branch information
1 parent
9235ab9
commit 1caedf1
Showing
5 changed files
with
130 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.