From: linux@prisktech.co.nz (Tony Prisk)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2 0/7] arm: vt8500: Add support for pinctrl/gpio module
Date: Sat, 23 Mar 2013 18:13:46 +1300 [thread overview]
Message-ID: <1364015633-18580-1-git-send-email-linux@prisktech.co.nz> (raw)
v2 changes:
Rebased onto v3.9-rc2
Changes made as requested by Linus Walleij:
Moved the files into drivers/pinctrl/vt8500/ to keep them tidy.
Changed readl/writel to *_relaxed variants.
Comment indentation corrected and remove additional whitespace.
Changed wmt_pctl_find_group_by_pin() error code from -1 to -EINVAL.
Removed OF read indexed-u32 function to OF subsystem.
General code tidy up as requested.
Changes made as requested by Stephen Warren:
Add binding information for interrupt generation.
Move optional properties to correct location in document.
This patch series removes the existing GPIO driver and replaces it with
a combined pinctrl+gpio driver.
Patch 1 - Add an OF function to read the nth u32 value from a property
listing multiple values.
Patch 2 - 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 3 - 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 4 - Update the SoC dts(i) files to support the new pinctrl driver.
Patch 5 - Remove the existing GPIO driver nodes from the dtsi's.
Patch 6 - Remove the existing GPIO driver.
Patch 7 - 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 (7):
of: Add support for reading a u32 from a multi-value property.
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/of/base.c | 33 +
drivers/pinctrl/Kconfig | 1 +
drivers/pinctrl/Makefile | 1 +
drivers/pinctrl/vt8500/Kconfig | 52 ++
drivers/pinctrl/vt8500/Makefile | 8 +
drivers/pinctrl/vt8500/pinctrl-vt8500.c | 509 ++++++++++++++++
drivers/pinctrl/vt8500/pinctrl-wm8505.c | 540 +++++++++++++++++
drivers/pinctrl/vt8500/pinctrl-wm8650.c | 378 ++++++++++++
drivers/pinctrl/vt8500/pinctrl-wm8750.c | 417 +++++++++++++
drivers/pinctrl/vt8500/pinctrl-wm8850.c | 396 ++++++++++++
drivers/pinctrl/vt8500/pinctrl-wmt.c | 635 ++++++++++++++++++++
drivers/pinctrl/vt8500/pinctrl-wmt.h | 79 +++
include/linux/of.h | 9 +
24 files changed, 3134 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/vt8500/Kconfig
create mode 100644 drivers/pinctrl/vt8500/Makefile
create mode 100644 drivers/pinctrl/vt8500/pinctrl-vt8500.c
create mode 100644 drivers/pinctrl/vt8500/pinctrl-wm8505.c
create mode 100644 drivers/pinctrl/vt8500/pinctrl-wm8650.c
create mode 100644 drivers/pinctrl/vt8500/pinctrl-wm8750.c
create mode 100644 drivers/pinctrl/vt8500/pinctrl-wm8850.c
create mode 100644 drivers/pinctrl/vt8500/pinctrl-wmt.c
create mode 100644 drivers/pinctrl/vt8500/pinctrl-wmt.h
--
1.7.9.5
next reply other threads:[~2013-03-23 5:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-23 5:13 Tony Prisk [this message]
2013-03-23 5:13 ` [PATCHv2 1/7] of: Add support for reading a u32 from a multi-value property Tony Prisk
2013-04-15 10:12 ` Grant Likely
2013-03-23 5:13 ` [PATCHv2 2/7] arm: vt8500: Increase available GPIOs on arch-vt8500 Tony Prisk
2013-03-23 10:44 ` Russell King - ARM Linux
2013-03-23 18:04 ` Tony Prisk
2013-03-23 5:13 ` [PATCHv2 3/7] pinctrl: gpio: vt8500: Add pincontrol driver for arch-vt8500 Tony Prisk
2013-03-25 17:05 ` Stephen Warren
2013-03-25 18:51 ` Tony Prisk
2013-03-26 20:28 ` Stephen Warren
2013-03-27 4:59 ` Tony Prisk
2013-03-27 16:47 ` Stephen Warren
2013-03-27 9:23 ` Tony Prisk
2013-03-27 15:53 ` Stephen Warren
2013-03-28 5:03 ` Tony Prisk
2013-03-23 5:13 ` [PATCHv2 4/7] arm: dts: vt8500: Update Wondermedia SoC dtsi files for pinctrl driver Tony Prisk
2013-03-23 5:13 ` [PATCHv2 5/7] arm: vt8500: Remove gpio devicetree nodes Tony Prisk
2013-03-23 5:13 ` [PATCHv2 6/7] gpio: vt8500: Remove arch-vt8500 gpio driver Tony Prisk
2013-03-23 5:13 ` [PATCHv2 7/7] arm: vt8500: Remove pinmux configuration from mach-vt8500/vt8500.c Tony Prisk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1364015633-18580-1-git-send-email-linux@prisktech.co.nz \
--to=linux@prisktech.co.nz \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).