linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] gpio/pinctrl: imx: let IOMUX controller know about on-SoC GPIOs
@ 2016-09-08  1:48 Vladimir Zapolskiy
  2016-09-08  1:48 ` [PATCH v2 1/3] pinctrl: imx: accept gpio request/free from pinctrl Vladimir Zapolskiy
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Vladimir Zapolskiy @ 2016-09-08  1:48 UTC (permalink / raw)
  To: Linus Walleij, Shawn Guo, Sascha Hauer, Fabio Estevam,
	Philipp Zabel
  Cc: Deepak Das, linux-gpio, linux-arm-kernel

The change establishes a connection between on-SoC IOMUX controller(s)
and GPIO controllers found on some SoC from Freescale/NXP iMX series,
if a GPIO controller device node contains common gpio-ranges information.

The change is backward compatible with respect to potentially not updated
outdated DTB data without gpio-ranges propery, for such boards the only
functional change is lowered initcall priority of GPIO controller driver,
which in general anyway is exected to be used only after pinctrl/pinmux
controller.

If this change is applied the next interesting applications may be done
as a follow-up work, for example switching pad function to GPIO on gpiod
request, converting iomux controller driver to strict type and so on.

For actual values of gpio-ranges properties please reference series
"ARM: dts: imx: add gpio-ranges properties to some iMX GPIO controllers"
http://www.spinics.net/lists/arm-kernel/msg525258.html

Changes from v1 to v2:
* replaced 2/3 by an own change providing a better commit description
  and which moves gpio_mxc_init() call to subsys_initcall() instead of
  apparently too late device_initcall(), this mitigates Shawn's
  expressed concern about the change.

Vladimir Zapolskiy (3):
  pinctrl: imx: accept gpio request/free from pinctrl
  gpio: mxc: shift gpio_mxc_init() to subsys_initcall level
  gpio: mxc: add generic gpio request/free callbacks to pinctrl

 drivers/gpio/gpio-mxc.c                 | 7 ++++++-
 drivers/pinctrl/freescale/pinctrl-imx.c | 4 ++--
 2 files changed, 8 insertions(+), 3 deletions(-)

-- 
2.8.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-09-12 12:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-08  1:48 [PATCH v2 0/3] gpio/pinctrl: imx: let IOMUX controller know about on-SoC GPIOs Vladimir Zapolskiy
2016-09-08  1:48 ` [PATCH v2 1/3] pinctrl: imx: accept gpio request/free from pinctrl Vladimir Zapolskiy
2016-09-12 12:26   ` Linus Walleij
2016-09-08  1:48 ` [PATCH v2 2/3] gpio: mxc: shift gpio_mxc_init() to subsys_initcall level Vladimir Zapolskiy
2016-09-12 12:28   ` Linus Walleij
2016-09-08  1:48 ` [PATCH v2 3/3] gpio: mxc: add generic gpio request/free callbacks to pinctrl Vladimir Zapolskiy
2016-09-12 12:29   ` Linus Walleij
2016-09-08  2:28 ` [PATCH v2 0/3] gpio/pinctrl: imx: let IOMUX controller know about on-SoC GPIOs Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).