]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: spear: plgpio: Introduce regmap phandle
authorHerve Codina <herve.codina@bootlin.com>
Thu, 2 Dec 2021 09:52:52 +0000 (10:52 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 4 Dec 2021 23:33:11 +0000 (00:33 +0100)
commita8fe063191481a5e2d4a2550f524f7cd18c20d38
treef02f0ac6bf8ff40aa5fa7b67b7d2dbe67a992081
parent3cfc735efc9a78992f94ec591545e1f0a7d591c0
pinctrl: spear: plgpio: Introduce regmap phandle

Resources need to be shared between pinmux and plgpio.

Introduce regmap phandle in order to retrieve the regmap
from the phandle if the property is present.
This allows to retrieve an external regmap (ie the one
used by pinmux if the phandle references the pinmux node)
from plgpio.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20211202095255.165797-4-herve.codina@bootlin.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/spear/pinctrl-plgpio.c