]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
pinctrl: sunxi: add support for the Allwinner H6 main pin controller
authorIcenowy Zheng <icenowy@aosc.io>
Fri, 16 Mar 2018 14:02:10 +0000 (22:02 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 27 Mar 2018 13:09:42 +0000 (15:09 +0200)
commitc8a830904991931106c96ff1ee0588d1ca9ea5f0
treec4d21baafedfcb8726cbf7df1ee34338d0f18b5e
parent35817d34bd07b4e1cd597e054fa2bd9c9c111aab
pinctrl: sunxi: add support for the Allwinner H6 main pin controller

The Allwinner H6 SoC has two pin controllers, one main controller
(called CPUX-PORT in user manual) and one controller in CPUs power
domain (called CPUS-PORT in user manual).

This commit introduces support for the main pin controller on H6.

The pin bank A and B are not wired out and hidden from the SoC's
documents, however it's shown that the "ATE" (an AC200 chip
co-packaged with the H6 die) is connected to the main SoC die via these
pin banks. The information about these banks is just copied from the BSP
pinctrl driver, but re-formatted to fit the mainline pinctrl driver
format. The GPIO functions are dropped, as they're impossible to use --
except a GPIO&IRQ only pin (PB20) which might be the IRQ of ATE.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt
drivers/pinctrl/sunxi/Kconfig
drivers/pinctrl/sunxi/Makefile
drivers/pinctrl/sunxi/pinctrl-sun50i-h6.c [new file with mode: 0644]