| #
2a7051be |
| 14-Jan-2021 |
Joseph Chen <chenjh@rock-chips.com> |
dm: pmic: add suspend/resume callback
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Iaa3b0b7f7b3a0563370baace876e095deb64c28f
|
| #
50454a09 |
| 23-Jun-2020 |
Joseph Chen <chenjh@rock-chips.com> |
dm: pmic: add "addr" field for binding children
If some child info->prefix are the same, try to distinguish them by parent addr.
Example: pmic@20, pmic@1a...
Signed-off-by: Joseph Chen <chenjh@ro
dm: pmic: add "addr" field for binding children
If some child info->prefix are the same, try to distinguish them by parent addr.
Example: pmic@20, pmic@1a...
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I504cd887e232bb309d8e1790f6d55910172d08b5
show more ...
|
| #
03af66d3 |
| 21-Nov-2018 |
Joseph Chen <chenjh@rock-chips.com> |
dm: pmic: use strstr() to match regulator prefix
this is more flexsible to match regulator type.
Change-Id: I5589b5d1d32d8ac1c6d09d64e680eddd31f2ba90 Signed-off-by: Joseph Chen <chenjh@rock-chips.c
dm: pmic: use strstr() to match regulator prefix
this is more flexsible to match regulator type.
Change-Id: I5589b5d1d32d8ac1c6d09d64e680eddd31f2ba90 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
3929c027 |
| 02-Apr-2018 |
Joseph Chen <chenjh@rock-chips.com> |
dm: pmic: add child node status verify
Ignore disabled child node when bind driver
Change-Id: Ib817bf643efa6c8511d4619993444dddaac7d6bd Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
29b69173 |
| 27-Nov-2017 |
Felix Brack <fb@ltec.ch> |
UPSTREAM: power: extend prefix match to regulator-name property
This patch extends pmic_bind_children prefix matching. In addition to the node name the property regulator-name is used while trying t
UPSTREAM: power: extend prefix match to regulator-name property
This patch extends pmic_bind_children prefix matching. In addition to the node name the property regulator-name is used while trying to match prefixes. This allows assigning different drivers to regulator nodes named regulator@1 and regulator@10 for example. I have discarded the idea of using other properties then regulator-name as I do not see any benefit in using property compatible or even regulator-compatible. Of course I am open to change this if there are good reasons to do so.
Change-Id: Ifedf2c0a51cb725ddb290ee9dfd54a3fea45df70 Signed-off-by: Felix Brack <fb@ltec.ch> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit bf802f5d544f85c03b4097ab23d078be43c61855)
show more ...
|
| #
17c82fdc |
| 05-Aug-2017 |
Simon Glass <sjg@chromium.org> |
UPSTREAM: dm: core: Add ofnode_for_each_subnode()
Add a convenience macro to iterate over subnodes of a node. Make use of this where appropriate in the code.
Change-Id: Iae0fb554472d0b5819d26becbbc
UPSTREAM: dm: core: Add ofnode_for_each_subnode()
Add a convenience macro to iterate over subnodes of a node. Make use of this where appropriate in the code.
Change-Id: Iae0fb554472d0b5819d26becbbcf8909ff891514 Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 3991f42ed2e38aff28ba3c24369bfbd90620bea7)
show more ...
|
| #
c8d15c43 |
| 30-Oct-2017 |
Joseph Chen <chenjh@rock-chips.com> |
dm: pmic: add pmic_shutdown() interface
Change-Id: I9bed8de6d3733ab90175f26f68160ddd8f12e295 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
7a869e6c |
| 19-May-2017 |
Simon Glass <sjg@chromium.org> |
dm: pmic: Convert uclass to livetree
Update the pmic uclass and all pmics to support a live device tree.
Signed-off-by: Simon Glass <sjg@chromium.org>
|
| #
21342d4a |
| 08-Feb-2017 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm
|
| #
e160f7d4 |
| 17-Jan-2017 |
Simon Glass <sjg@chromium.org> |
dm: core: Replace of_offset with accessor
At present devices use a simple integer offset to record the device tree node associated with the device. In preparation for supporting a live device tree,
dm: core: Replace of_offset with accessor
At present devices use a simple integer offset to record the device tree node associated with the device. In preparation for supporting a live device tree, which uses a node pointer instead, refactor existing code to access this field through an inline function.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
7d577999 |
| 22-Jan-2016 |
Simon Glass <sjg@chromium.org> |
dm: power: Tidy up debugging output and return values
The currect PMIC debugging is a little confusing. Adjust it so that it is clear whether the operation succeeded or failed. Also, avoid creating
dm: power: Tidy up debugging output and return values
The currect PMIC debugging is a little confusing. Adjust it so that it is clear whether the operation succeeded or failed. Also, avoid creating a new error return value when a perfectly good one is already available.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
1f2b4b06 |
| 22-Jan-2016 |
Simon Glass <sjg@chromium.org> |
dm: power: Allow regulators to be omitted from SPL
For some boards the pmic interface is useful but the regulator interface (which comes with it) is too large. Allow them to be separated such that S
dm: power: Allow regulators to be omitted from SPL
For some boards the pmic interface is useful but the regulator interface (which comes with it) is too large. Allow them to be separated such that SPL can decide which it needs.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
ae27120c |
| 06-Aug-2015 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm
|
| #
cd367d89 |
| 03-Jul-2015 |
Simon Glass <sjg@chromium.org> |
dm: pmic: Correct the pmic_reg_write() implementation
This should write the register, not read it. Fix this bug.
Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Przemyslaw Marczak <p.marcza
dm: pmic: Correct the pmic_reg_write() implementation
This should write the register, not read it. Fix this bug.
Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| #
e15bb3e6 |
| 23-Jun-2015 |
Simon Glass <sjg@chromium.org> |
power: pmic: Use trailing_strtol() instead of a local function
Use the common function to obtain the number from the end of the string, instead of a local function. Also tweak the position of a debu
power: pmic: Use trailing_strtol() instead of a local function
Use the common function to obtain the number from the end of the string, instead of a local function. Also tweak the position of a debug() statement.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| #
6c69c7fb |
| 23-Jun-2015 |
Simon Glass <sjg@chromium.org> |
dm: pmic: Add functions to adjust PMIC registers
It is a common requirement to update some PMIC registers. Provide some simple convenience functions to do this.
Signed-off-by: Simon Glass <sjg@chro
dm: pmic: Add functions to adjust PMIC registers
It is a common requirement to update some PMIC registers. Provide some simple convenience functions to do this.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| #
23ec2b57 |
| 23-Jun-2015 |
Simon Glass <sjg@chromium.org> |
dm: power: Avoid case-insensitve match for child names
This is not user input (i.e. from the command line). It should be possible to get the case correct and avoid the case-insensitive match. This w
dm: power: Avoid case-insensitve match for child names
This is not user input (i.e. from the command line). It should be possible to get the case correct and avoid the case-insensitive match. This will help avoid sloppy device tree setups.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| #
f415a3ec |
| 13-May-2015 |
Przemyslaw Marczak <p.marczak@samsung.com> |
dm: pmic: code cleanup of PMIC uclass driver
The cleanup includes: - pmic.h - fix mistakes in a few comments - pmic operations: value 'reg_count' - redefine as function call - fix function name: pmi
dm: pmic: code cleanup of PMIC uclass driver
The cleanup includes: - pmic.h - fix mistakes in a few comments - pmic operations: value 'reg_count' - redefine as function call - fix function name: pmic_bind_childs() -> pmic_bind_children() - pmic_bind_children: change the 'while' loop with the 'for' - add implementation of pmic_reg_count() method - pmic_bind_children() - update function call name - Kconfig: add new line at the end of file - Update MAX77686 driver code
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Tested on sandbox: Tested-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
4d9057e8 |
| 20-Apr-2015 |
Przemyslaw Marczak <p.marczak@samsung.com> |
dm: pmic: add implementation of driver model pmic uclass
This commit introduces the PMIC uclass implementation. It allows providing the basic I/O interface for PMIC devices. For the multi-function P
dm: pmic: add implementation of driver model pmic uclass
This commit introduces the PMIC uclass implementation. It allows providing the basic I/O interface for PMIC devices. For the multi-function PMIC devices, this can be used as I/O parent device, for each IC's interface. Then, each PMIC particular function can be provided by the child device's operations, and the child devices will use its parent for read/write by the common API.
Core files: - 'include/power/pmic.h' - 'drivers/power/pmic/pmic-uclass.c'
The old pmic framework is still kept and is independent.
For more detailed informations, please look into the header file.
Changes: - new uclass-id: UCLASS_PMIC - new config: CONFIG_DM_PMIC
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|