[U-Boot] [PATCH v3] power: extend prefix match to regulator-name property

sjg at google.com sjg at google.com
Fri Dec 8 17:11:48 UTC 2017


On 27 November 2017 at 01:14, Felix Brack <fb at ltec.ch> wrote:
> 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 at 1 and regulator at 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.
>
> Signed-off-by: Felix Brack <fb at ltec.ch>
> ---
>
> Changes in v3:
> - refactoring improving code readability
>
> Changes in v2:
> - add documentation
> - add a regulator to the sandbox for testing
> - extend the test for the new sandbox regulator
>
>  arch/sandbox/dts/sandbox_pmic.dtsi               |  6 ++++++
>  doc/device-tree-bindings/regulator/regulator.txt | 16 ++++++++++++++--
>  drivers/power/pmic/pmic-uclass.c                 | 11 +++++++++--
>  include/power/sandbox_pmic.h                     |  5 ++++-
>  test/dm/regulator.c                              |  2 ++
>  5 files changed, 35 insertions(+), 5 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm thanks!


More information about the U-Boot mailing list