lkml.org 
[lkml]   [2011]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/8] Third pinconfig patches, with example
Date
From: Linus Walleij <linus.walleij@linaro.org>

This is a third iteration of the pinconfig patchset, including a
practical example of how I convert the U300 COH 901XXX GPIO driver
to use it alongside the existing pinmux-u300 driver. In this case
the pinmux driver can move things around but only the GPIO driver
can alter bias and drive mode, so they are working closely on the
same hardware and are thusly set to live in the same subsystem.

Linus Walleij (8):
pinctrl: add a generic pin config interface
ARM: u300: localize GPIO assignments
pinctrl: move the U300 GPIO driver to pinctrl
pinctrl: u300-pinmux: register proper GPIO ranges
pinctrl: COH901XXX: driver to request its pins
pinctrl: COH901XXX: probe the driver from pinmux
pinctrl: COH901XXX: use pinconf enums and parameters
pinctrl: support pinconfig on the U300

Documentation/pinctrl.txt | 105 ++++++-
arch/arm/mach-u300/Kconfig | 2 +-
arch/arm/mach-u300/core.c | 8 +
arch/arm/mach-u300/include/mach/gpio-u300.h | 115 ------
arch/arm/mach-u300/include/mach/irqs.h | 2 +-
arch/arm/mach-u300/mmc.c | 2 +-
arch/arm/mach-u300/u300-gpio.h | 114 ++++++
drivers/gpio/Kconfig | 9 -
drivers/gpio/Makefile | 1 -
drivers/pinctrl/Kconfig | 15 +-
drivers/pinctrl/Makefile | 2 +
drivers/pinctrl/core.c | 19 +
drivers/pinctrl/core.h | 10 +
drivers/pinctrl/pinconf.c | 366 ++++++++++++++++++++
drivers/pinctrl/pinconf.h | 41 +++
.../gpio-u300.c => pinctrl/pinctrl-coh901xxx.c} | 136 ++++----
drivers/pinctrl/pinctrl-coh901xxx.h | 8 +
drivers/pinctrl/pinmux-u300.c | 123 ++++++-
include/linux/pinctrl/pinconf.h | 209 +++++++++++
include/linux/pinctrl/pinctrl.h | 10 +-
20 files changed, 1080 insertions(+), 217 deletions(-)
create mode 100644 arch/arm/mach-u300/u300-gpio.h
create mode 100644 drivers/pinctrl/pinconf.c
create mode 100644 drivers/pinctrl/pinconf.h
rename drivers/{gpio/gpio-u300.c => pinctrl/pinctrl-coh901xxx.c} (90%)
create mode 100644 drivers/pinctrl/pinctrl-coh901xxx.h
create mode 100644 include/linux/pinctrl/pinconf.h

--
1.7.3.2



\
 
 \ /
  Last update: 2011-11-21 20:51    [W:0.031 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site