Add ZTE ZX pinctrl driver support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dt-bindings: add bindings doc for ZTE pinctrlDocumentation/ | +85 | 2 replies | |
| 2/2 | pinctrl: add ZTE ZX pinctrl driver supportdrivers/ drivers/ drivers/ +4 more | +1594 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Rob Herring |
|---|---|
| 1/2 | A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] Add ZTE ZX pinctrl driver support
From: Shawn Guo <[email protected]>
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
Signature · 1 line
1.9.1