]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl: add ZTE ZX pinctrl driver support
authorShawn Guo <shawn.guo@linaro.org>
Mon, 24 Apr 2017 13:01:13 +0000 (21:01 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 22 May 2017 08:39:23 +0000 (10:39 +0200)
commitcbff0c4d27f4f4b7dc11d137d51ac7b139a94d50
treeeed13ede492b86117e39d0abc0999750fae4f8ea
parent0d79763f3cd2bd9658c11909e5c1d0ab017f6a43
pinctrl: add ZTE ZX pinctrl driver support

The pin controller on ZTE ZX platforms is kinda of hybrid.  It consists
of a main controller and an auxiliary one.  For example, on ZX296718 SoC,
the main controller is TOP_PMM and the auxiliary one is AON_IOCFG.  Both
controllers work together to control pin multiplexing and configuration.

For most of pins, the pinmux function is controlled by main controller
only, and this type of pins are meant by term 'TOP pins'.  For other
pins, the pinmux is controlled by both main and auxiliary controllers,
as the available multiplexing functions for the pin spread in both
controllers.  This type of pins are called 'AON pins'.  Though pinmux
implementation is quite different, pinconf is same for both types of
pins.  Both are controlled by auxiliary controller, i.e. AON_IOCFG on
ZX296718.

The patch adds the ZTE ZX core pinctrl driver to support this hybrid
pin controller as well as ZX296718 SoC specific pin data.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Kconfig
drivers/pinctrl/Makefile
drivers/pinctrl/zte/Kconfig [new file with mode: 0644]
drivers/pinctrl/zte/Makefile [new file with mode: 0644]
drivers/pinctrl/zte/pinctrl-zx.c [new file with mode: 0644]
drivers/pinctrl/zte/pinctrl-zx.h [new file with mode: 0644]
drivers/pinctrl/zte/pinctrl-zx296718.c [new file with mode: 0644]