[U-Boot] [PATCH v1 2/2] dm: pinctrl: Skip gpio-controller node in pinconfig_post_bind()

Simon Glass sjg at chromium.org
Fri Feb 15 17:11:37 UTC 2019


On Fri, 15 Feb 2019 at 15:31, Patrice Chotard <patrice.chotard at st.com> wrote:
>
> From: Patrick Delaunay <patrick.delaunay at st.com>
>
> Some binding define child node gpio-controller without compatible property.
> This patch avoid to bind the pinconfig uclass to these node.

Some bindings define a child node gpio-controller without a compatible property.
Avoid binding the pinconfig uclass to these node since ...(add explanation here)

>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
>
>  drivers/pinctrl/pinctrl-uclass.c | 3 +++
>  1 file changed, 3 insertions(+)

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


>
> diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c
> index abb622cfe79e..9df06a262cd5 100644
> --- a/drivers/pinctrl/pinctrl-uclass.c
> +++ b/drivers/pinctrl/pinctrl-uclass.c
> @@ -149,6 +149,9 @@ static int pinconfig_post_bind(struct udevice *dev)
>                 ofnode_get_property(node, "compatible", &ret);
>                 if (ret >= 0)
>                         continue;
> +               /* If this node has "gpio-controller" property, skip */
> +               if (ofnode_read_bool(node, "gpio-controller"))
> +                       continue;
>
>                 if (ret != -FDT_ERR_NOTFOUND)
>                         return ret;
> --
> 1.9.1
>


More information about the U-Boot mailing list