[PATCH 0/6] arm: vt8500: Add support for pinctrl/gpio module

Tony Prisk linux at prisktech.co.nz
Sat Mar 9 00:39:32 EST 2013


This patch series removes the existing GPIO driver and replaces it with
a combined pinctrl+gpio driver.

Patch 1 - Increase the available GPIO space for the newly added gpios.
  Because there is no hardware documentation from Wondermedia we don't know
  how many GPIO's there actually are. New gpio pins have been located since
  the original GPIO driver was written, hence the increase.

Patch 2 - The main pinctrl/gpio driver and the data for the 5 supported SoCs.
  Each SoC is different, and therefore has its own data. This design was
  borrowed from the Tegra pinctrl driver. The pin numbering is based on a
  bank+pin encoding so that when other pin functions are found later on we can
  add them without having to renumber existing pins.

Patch 3 - Update the SoC dts(i) files to support the new pinctrl driver.

Patch 4 - Remove the existing GPIO driver nodes from the dtsi's.

Patch 5 - Remove the existing GPIO driver.

Patch 6 - Remove the pinmux configuration code from mach-vt8500/vt8500.c that
  was used to configure the graphics hardware at boot time. This is now done
  in the pinctrl node of the dtsi.


I suspect this series may need to be broken up since there are two arm-soc
patches, and 4 pinctrl/gpio patches.

Patch 1 is fairly independant, but is required for the new driver to function
properly.
Patches 2-5 are pinctrl/gpio patches.
Patch 6 relies on all the previous patches being available or the graphics
hardware will be non-functional.

Let me know how you want to handle this and I'll break it up if necessary.

Regards
Tony Prisk


Tony Prisk (6):
  arm: vt8500: Increase available GPIOs on arch-vt8500
  pinctrl: gpio: vt8500: Add pincontrol driver for arch-vt8500
  arm: dts: vt8500: Update Wondermedia SoC dtsi files for pinctrl
    driver
  arm: vt8500: Remove gpio devicetree nodes
  gpio: vt8500: Remove arch-vt8500 gpio driver
  arm: vt8500: Remove pinmux configuration from mach-vt8500/vt8500.c

 .../devicetree/bindings/pinctrl/pinctrl-vt8500.txt |   56 ++
 arch/arm/Kconfig                                   |    3 +-
 arch/arm/boot/dts/vt8500.dtsi                      |    7 +-
 arch/arm/boot/dts/wm8505.dtsi                      |    7 +-
 arch/arm/boot/dts/wm8650.dtsi                      |    7 +-
 arch/arm/boot/dts/wm8850.dtsi                      |    7 +-
 arch/arm/mach-vt8500/Kconfig                       |    1 +
 arch/arm/mach-vt8500/vt8500.c                      |   70 +--
 drivers/gpio/Kconfig                               |    6 -
 drivers/gpio/Makefile                              |    1 -
 drivers/gpio/gpio-vt8500.c                         |  355 -----------
 drivers/pinctrl/Kconfig                            |   37 ++
 drivers/pinctrl/Makefile                           |    5 +
 drivers/pinctrl/pinctrl-vt8500.c                   |  509 ++++++++++++++++
 drivers/pinctrl/pinctrl-wm8505.c                   |  540 +++++++++++++++++
 drivers/pinctrl/pinctrl-wm8650.c                   |  378 ++++++++++++
 drivers/pinctrl/pinctrl-wm8750.c                   |  417 +++++++++++++
 drivers/pinctrl/pinctrl-wm8850.c                   |  396 +++++++++++++
 drivers/pinctrl/pinctrl-wmt.c                      |  625 ++++++++++++++++++++
 drivers/pinctrl/pinctrl-wmt.h                      |   79 +++
 20 files changed, 3062 insertions(+), 444 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-vt8500.txt
 delete mode 100644 drivers/gpio/gpio-vt8500.c
 create mode 100644 drivers/pinctrl/pinctrl-vt8500.c
 create mode 100644 drivers/pinctrl/pinctrl-wm8505.c
 create mode 100644 drivers/pinctrl/pinctrl-wm8650.c
 create mode 100644 drivers/pinctrl/pinctrl-wm8750.c
 create mode 100644 drivers/pinctrl/pinctrl-wm8850.c
 create mode 100644 drivers/pinctrl/pinctrl-wmt.c
 create mode 100644 drivers/pinctrl/pinctrl-wmt.h

-- 
1.7.9.5




More information about the linux-arm-kernel mailing list