pinctrl: microchip-sgpio: add ability to be used in a non-mmio configuration
authorColin Foster <colin.foster@in-advantage.com>
Mon, 5 Sep 2022 16:21:29 +0000 (09:21 -0700)
committerLee Jones <lee@kernel.org>
Fri, 9 Sep 2022 06:54:39 +0000 (07:54 +0100)
commit68c873363a788b604914c01269f8eac9779d9dd4
tree572163278f72b4efcd7ec70b4cdf4cc4a8a77404
parent2f65923c5032c9de0d898636d4cd25da5d58e9a7
pinctrl: microchip-sgpio: add ability to be used in a non-mmio configuration

There are a few Ocelot chips that can contain SGPIO logic, but can be
controlled externally. Specifically the VSC7511, 7512, 7513, and 7514. In
the externally controlled configurations these registers are not
memory-mapped.

Add support for these non-memory-mapped configurations.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220905162132.2943088-6-colin.foster@in-advantage.com
drivers/pinctrl/pinctrl-microchip-sgpio.c