ARM: dts: stm32: change pinctrl bindings definition
authorAlexandre Torgue <alexandre.torgue@st.com>
Mon, 16 Oct 2017 11:45:58 +0000 (13:45 +0200)
committerAlexandre Torgue <alexandre.torgue@st.com>
Mon, 16 Oct 2017 12:01:25 +0000 (14:01 +0200)
commit162d58c26d65e1486d18436eb151148a7f9886e5
tree4f581ff9db37769ff68f627a3367c94220907f87
parent6d3b3745c5f3b4db3ab34b94a81ca47c4a9833a8
ARM: dts: stm32: change pinctrl bindings definition

Initially each pin was declared in "include/dt-bindings/stm32<SOC>-pinfunc.h"
and each definition contained SOC names (ex: STM32F429_PA9_FUNC_USART1_TX).
Since this approach was approved, the number of supported MCU has
increased (STM32F429/STM32F469/STM32f746/STM32H743). To avoid to add a new
file in "include/dt-bindings" each time a new STM32 SOC arrives I propose
a new approach which consist to use a macro to define pin muxing in device
tree. All STM32 will use the common macro to define pinmux. Furthermore, it
will make STM32 maintenance and integration of new SOC easier .

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
Reviewed-by: Vikas MANOCHA <vikas.manocha@st.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.txt
arch/arm/boot/dts/stm32f4-pinctrl.dtsi
arch/arm/boot/dts/stm32f746.dtsi
arch/arm/boot/dts/stm32h743-pinctrl.dtsi
include/dt-bindings/pinctrl/stm32-pinfunc.h [new file with mode: 0644]
include/dt-bindings/pinctrl/stm32f429-pinfunc.h [deleted file]
include/dt-bindings/pinctrl/stm32f746-pinfunc.h [deleted file]
include/dt-bindings/pinctrl/stm32h7-pinfunc.h [deleted file]