]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit41226e0dd9549be41f2dd1849859867f99772a59
treeed7c1475dc616518f772d148f3e8bc762f4f7c61
parent4f1b7ddd759f69b12892fac03d55944f5143340b
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