Skip to content

Add ZTE ZX pinctrl driver support

Shawn Guo linux-arm-kernel linux-devicetree linux-gpio 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: add bindings doc for ZTE pinctrlDocumentation/devicetree/bindings/pinctrl/pinctrl-zx.txt+85 -02 replies
2/2pinctrl: add ZTE ZX pinctrl driver supportdrivers/pinctrl/Kconfig drivers/pinctrl/Makefile drivers/pinctrl/zte/Kconfig +4 more+1594 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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