pinctrl: aspeed-g6: Add support for the AST2600 USB pinmux
authorJohnny Huang <johnny_huang@aspeedtech.com>
Mon, 2 Dec 2019 06:14:28 +0000 (16:44 +1030)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 13 Dec 2019 08:39:27 +0000 (09:39 +0100)
commit22d6919039838226d2041cc22e279985b4230f64
treeb7466364006c173354d14f8d7a284a19aad6d32e
parent8b99fb9feb0149fd1dc80552b50993137d75611a
pinctrl: aspeed-g6: Add support for the AST2600 USB pinmux

AST2600 has two USB ports, A, B:

Port A supports 4 distinct modes:
1. PCIe EHCI to Hub
2. Hub to PHY
3. BMC EHCI to PHY
4. PCIe EHCI to PHY

Port B support 3 modes:
1. USB1.1 HID controller
2. USB2.0 Device controller
3. BMC EHCI port2

Implement pinmux support by mapping each ports' functions onto a single
pin group for each port.

Signed-off-by: Johnny Huang <johnny_huang@aspeedtech.com>
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20191202061432.3996-4-andrew@aj.id.au
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c
drivers/pinctrl/aspeed/pinmux-aspeed.h