From: Shawn Guo <shawnguo@kernel.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>,
linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Baoyou Xie <xie.baoyou@zte.com.cn>,
Xin Zhou <zhou.xin8@zte.com.cn>, Jun Nie <jun.nie@linaro.org>,
Shawn Guo <shawn.guo@linaro.org>
Subject: [PATCH 0/2] Add ZTE ZX pinctrl driver support
Date: Mon, 24 Apr 2017 21:01:11 +0800 [thread overview]
Message-ID: <1493038873-18354-1-git-send-email-shawnguo@kernel.org> (raw)
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
next reply other threads:[~2017-04-24 13:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-24 13:01 Shawn Guo [this message]
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
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=1493038873-18354-1-git-send-email-shawnguo@kernel.org \
--to=shawnguo@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jun.nie@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=shawn.guo@linaro.org \
--cc=xie.baoyou@zte.com.cn \
--cc=zhou.xin8@zte.com.cn \
/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).