]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: stm32: bind only the enabled GPIO subnode
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 21 Jan 2021 16:39:08 +0000 (17:39 +0100)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 9 Feb 2021 09:31:04 +0000 (10:31 +0100)
commit4363aac051fcccb8995b9afb5a4c4cd0a6153c10
treea2a388cbcec48ef17ede8d7a8a5ece8889ca6886
parent1da426919dedc2ece25e05f5d8ca131142c7348c
pinctrl: stm32: bind only the enabled GPIO subnode

Bind only the enabled GPIO subnode, to avoid to probe the node
"gpio-controller" present in SOC dtsi (disabled by default) but
not enabled in the included pincontrol dtsi file.

For example, in stm32mp15xxac-pinctrl.dtsi 2 gpio bank are absent:
 gpioj: gpio@5000b000
 gpiok: gpio@5000c000

Then these GPIO are absent in output of command "dm tree" and
"gpio status -a"

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/pinctrl/pinctrl_stm32.c