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

Simon Glass sjg at chromium.org
Sun Oct 22 14:37:08 UTC 2017


On 18 October 2017 at 11:39, 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 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                 | 15 +++++++++++++--
>  include/power/sandbox_pmic.h                     |  5 ++++-
>  test/dm/regulator.c                              |  2 ++
>  5 files changed, 39 insertions(+), 5 deletions(-)

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


More information about the U-Boot mailing list