linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add ZTE ZX pinctrl driver support
@ 2017-04-24 13:01 Shawn Guo
  2017-04-24 13:01 ` [PATCH 1/2] dt-bindings: add bindings doc for ZTE pinctrl Shawn Guo
       [not found] ` <1493038873-18354-1-git-send-email-shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Shawn Guo @ 2017-04-24 13:01 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Rob Herring, linux-gpio, devicetree, linux-arm-kernel, Baoyou Xie,
	Xin Zhou, Jun Nie, Shawn Guo

From: Shawn Guo <shawn.guo@linaro.org>

This is basically a rewrite of Jun's ZTE ZX pinctrl driver.  It
has quite a few significant changes from Jun's version.

 - It handles the relation between main and auxiliary controllers
   internally, and then we do not need to export core function
   pin_request().
 - Update bindings document with a ASCII figure to illustrate how this
   'hybrid' pin controller hardware works.
 - Rather than making up pin name with the fake port name and pin
   number, name the pins in the exactly same way how hardware manual
   name them.
 - Instead of encoding AON register data, calculate the offset and bit
   position from pin id.
 - Utilize the generic groups and functions support from core to save
   quite some code in our driver.
 - Simplify the data structures and add documents for important ones.
 - Clean up some unnecessary function calls.

Shawn

[1] https://www.spinics.net/lists/linux-gpio/msg16147.html

Shawn Guo (2):
  dt-bindings: add bindings doc for ZTE pinctrl
  pinctrl: add ZTE ZX pinctrl driver support

 .../devicetree/bindings/pinctrl/pinctrl-zx.txt     |   85 ++
 drivers/pinctrl/Kconfig                            |    1 +
 drivers/pinctrl/Makefile                           |    1 +
 drivers/pinctrl/zte/Kconfig                        |   13 +
 drivers/pinctrl/zte/Makefile                       |    2 +
 drivers/pinctrl/zte/pinctrl-zx.c                   |  445 +++++++++
 drivers/pinctrl/zte/pinctrl-zx.h                   |  105 ++
 drivers/pinctrl/zte/pinctrl-zx296718.c             | 1027 ++++++++++++++++++++
 8 files changed, 1679 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-zx.txt
 create mode 100644 drivers/pinctrl/zte/Kconfig
 create mode 100644 drivers/pinctrl/zte/Makefile
 create mode 100644 drivers/pinctrl/zte/pinctrl-zx.c
 create mode 100644 drivers/pinctrl/zte/pinctrl-zx.h
 create mode 100644 drivers/pinctrl/zte/pinctrl-zx296718.c

-- 
1.9.1


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

end of thread, other threads:[~2017-05-11  7:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-24 13:01 [PATCH 0/2] Add ZTE ZX pinctrl driver support Shawn Guo
2017-04-24 13:01 ` [PATCH 1/2] dt-bindings: add bindings doc for ZTE pinctrl Shawn Guo
2017-04-28 17:58   ` Rob Herring
2017-05-11  7:27   ` Linus Walleij
     [not found] ` <1493038873-18354-1-git-send-email-shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-04-24 13:01   ` [PATCH 2/2] pinctrl: add ZTE ZX pinctrl driver support Shawn Guo
     [not found]     ` <1493038873-18354-3-git-send-email-shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-05-11  7:29       ` Linus Walleij

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).