Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Thomas Abraham <thomas.abraham <at> linaro.org>
Subject: [PATCH 0/3] pinctrl: add support for samsung pinctrl driver
Newsgroups: gmane.linux.kernel
Date: Wednesday 23rd May 2012 23:47:34 UTC (over 4 years ago)
This patch series adds a common pinctrl driver for all Samsung platforms
and
enables the pinctrl driver support for Exynos4210 based device tree enabled
platforms. The scope of this driver is limited to only device tree enabled
platforms.

The intention of this driver is to replace the existing gpiolib driver and
provide pinctrl subsystem interface to configure the pins/mux instead
of existing platform callbacks. At this point, the pinmux and pinconfig
functionality is fully supported. Additional work is required to add gpio
interrupts and wakeup interrupts support but that should not stop device
drivers from switching over to use the pinctrl subsystem to configure
the io-pads.

Note that, the Samsung pinctrl driver is usable only on device tree enabled
Samsung platforms. Legacy platforms would still continue to use the older
gpiolib driver and hence updates to device drivers to use the pinctrl api
should ensure that support for legacy platforms is maintained.

The first patch adds a new pinctrl driver for Samsung. It provides
interfaces
to the pinctrl and gpiolib subsystems. This driver provides a common
framework
for all Samsung SoC's to enable the pinctrl and gpiolib support. The driver
accepts the information about pins, groups and functions from the device
tree
and the information about gpio banks is supplied using driver data.

The second patch adds the driver data required to operate the pinctrl
driver
on Exynos4210 based platforms. The third patch modifies the existing
gpiolib
driver to skip the gpio pin registrations if pinctrl driver support is
found
to be enabled.

Thomas Abraham (3):
  pinctrl: add samsung pinctrl and gpiolib driver
  pinctrl: add exynos4210 specific driver data for samsung pinctrl driver
  gpio: exynos4: skip gpiolib registration if pinctrl driver is used

 .../bindings/pinctrl/samsung-pinctrl.txt           |  111 +++
 drivers/gpio/gpio-samsung.c                        |   21 +
 drivers/pinctrl/Kconfig                            |   11 +
 drivers/pinctrl/Makefile                           |    2 +
 drivers/pinctrl/pinctrl-exynos4.c                  |  211 +++++
 drivers/pinctrl/pinctrl-samsung.c                  |  881
++++++++++++++++++++
 drivers/pinctrl/pinctrl-samsung.h                  |  170 ++++
 7 files changed, 1407 insertions(+), 0 deletions(-)
 create mode 100644
Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt
 create mode 100644 drivers/pinctrl/pinctrl-exynos4.c
 create mode 100644 drivers/pinctrl/pinctrl-samsung.c
 create mode 100644 drivers/pinctrl/pinctrl-samsung.h
 
CD: 3ms