dm: pinctrl: Skip gpio-controller node in pinconfig_post_bind()
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 25 Feb 2019 12:39:56 +0000 (13:39 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 12 Apr 2019 02:10:05 +0000 (20:10 -0600)
commitd39e2bd0b09bc333561b26c1dc6f7d63bab6dbd2
tree90929db3f409d627707bcfb4d5990db463018f8c
parentdce406e0a2d776424efd03aa6a83b817557d2373
dm: pinctrl: Skip gpio-controller node in pinconfig_post_bind()

Some binding define child node gpio-controller without compatible property.
This patch avoid to bind the pinconfig uclass to these node.

For example, the binding for st,stm32-pinctrl
(./device-tree-bindings/pinctrl/st,stm32-pinctrl.txt) defines the GPIO
controller/bank node as sub-node of pincontrol (st,stm32f429-pinctrl)
but without compatible (as it is not mandatory).

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/pinctrl-uclass.c