21 Apr, 2016
1 commit
-
Use devm_pinctrl_register() for pin control registration.
Signed-off-by: Laxman Dewangan
Acked-by: John Crispin
Signed-off-by: Linus Walleij
10 Jun, 2015
1 commit
-
Currently, pinctrl_register() just returns NULL on error, so the
callers can not know the exact reason of the failure.Some of the pinctrl drivers return -EINVAL, some -ENODEV, and some
-ENOMEM on error of pinctrl_register(), although the error code
might be different from the real cause of the error.This commit reworks pinctrl_register() to return the appropriate
error code and modifies all of the pinctrl drivers to use IS_ERR()
for the error checking and PTR_ERR() for getting the error code.Signed-off-by: Masahiro Yamada
Acked-by: Patrice Chotard
Acked-by: Thierry Reding
Acked-by: Heiko Stuebner
Tested-by: Mika Westerberg
Acked-by: Mika Westerberg
Acked-by: Lee Jones
Acked-by: Sören Brinkmann
Acked-by: Laurent Pinchart
Acked-by: Ray Jui
Acked-by: Antoine Tenart
Acked-by: Hongzhou Yang
Acked-by: Wei Chen
Signed-off-by: Linus Walleij
04 Sep, 2014
1 commit
-
commit 2243a87d90b42eb38bc281957df3e57c712b5e56
"pinctrl: avoid duplicated calling enable_pinmux_setting for a pin"
removed the .disable callback from the struct pinmux_ops,
making the .enable() callback the only remaining callback.However .enable() is a bad name as it seems to imply that a
muxing can also be disabled. Rename the callback to .set_mux()
and also take this opportunity to clean out any remaining
mentions of .disable() from the documentation.Acked-by: Stephen Warren
Acked-by: Bjorn Andersson
Acked-by: Fan Wu
Signed-off-by: Linus Walleij
15 May, 2013
1 commit
-
When creating mappings from DT both pin config and group config mappings
are allocated. Free them both when destroying the mappings.Signed-off-by: Laurent Pinchart
Acked-by: John Crispin
Signed-off-by: Linus Walleij
07 Mar, 2013
1 commit
-
The pinconf, pinctrl and pinmux operation structures hold function
pointers that are never modified. Declare them as const.Signed-off-by: Laurent Pinchart
Signed-off-by: Linus Walleij
05 Feb, 2013
2 commits
-
The mapping logic inside ltq_pmx_gpio_request_enable() was
broken. This only effected Falcon SoC.Signed-off-by: Thomas Langer
Signed-off-by: John Crispin
Signed-off-by: Linus Walleij -
While converting all the boards supported by OpenWrt to OF
I noticed that this feature is missing. Adding it makes the
devicetrees more readable.Signed-off-by: John Crispin
Signed-off-by: Linus Walleij
12 Nov, 2012
2 commits
-
Both ltq_pinctrl_dt_node_to_map() and ltq_pinctrl_dt_free_map() are not
referenced outside of this file. Make them static.Signed-off-by: Axel Lin
Acked-by: John Crispin
Signed-off-by: Linus Walleij -
Current code adds empty ltq_pmx_disable() because pinmux_check_ops() requires
this callback to be defined.This is not required since commit 02b50ce4cb1
"pinctrl: make pinmux disable function optional".Thus remove ltq_pmx_disable() function.
Signed-off-by: Axel Lin
Acked-by: John Crispin
Signed-off-by: Linus Walleij
13 Sep, 2012
1 commit
-
Implement support for pinctrl on lantiq/xway socs. The IO core found on these
socs has the registers for pinctrl, pinconf and gpio mixed up in the same
register range. As the gpio_chip handling is only a few lines, the driver also
implements the gpio functionality. This obseletes the old gpio driver that was
located in the arch/ folder.Signed-off-by: John Crispin
Acked-by: Linus Walleij
Cc: devicetree-discuss@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org