gpio: stm32f7: Add gpio bank holes management
authorPatrice Chotard <patrice.chotard@st.com>
Mon, 3 Dec 2018 09:52:51 +0000 (10:52 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 7 Dec 2018 13:13:47 +0000 (08:13 -0500)
commitdbf928dd2634a682e6d549e6dd61e3f2a0e5db90
treeed7c1475dc616518f772d148f3e8bc762f4f7c61
parent043550415b09c6ffd2d9c0af28cc977bfae9f166
gpio: stm32f7: Add gpio bank holes management

In some STM32 SoC packages, GPIO bank has not always 16 gpios.
Several cases can occur, gpio hole can be located at the beginning,
middle or end of the gpio bank or a combination of these 3
configurations.

For that, gpio bindings offer the gpio-ranges DT property which
described the gpio bank mapping.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/include/asm/arch-stm32/gpio.h
arch/arm/mach-stm32mp/include/mach/gpio.h
drivers/gpio/stm32f7_gpio.c