OSDN Git Service

pinctrl: ocelot: add ability to be used in a non-mmio configuration
authorColin Foster <colin.foster@in-advantage.com>
Mon, 5 Sep 2022 16:21:27 +0000 (09:21 -0700)
committerLee Jones <lee@kernel.org>
Fri, 9 Sep 2022 06:54:34 +0000 (07:54 +0100)
commit181f604b33cd8fce06b2497178c71548db1e1934
treeda07ca77d0237c6f7d4142724359b61db28ac2f7
parent43a108c6492232cd2e85fbd4874c0500158b8c8b
pinctrl: ocelot: add ability to be used in a non-mmio configuration

There are a few Ocelot chips that contain pinctrl 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>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220905162132.2943088-4-colin.foster@in-advantage.com
drivers/pinctrl/pinctrl-ocelot.c