* [PATCH] pinctrl: sunxi: Remove gpio_out function from sun5i-a13 PG0/1/2 pins
@ 2014-07-01 15:25 Chen-Yu Tsai
2014-07-04 7:08 ` Maxime Ripard
2014-07-07 12:42 ` Linus Walleij
0 siblings, 2 replies; 3+ messages in thread
From: Chen-Yu Tsai @ 2014-07-01 15:25 UTC (permalink / raw)
To: linux-arm-kernel
The A13 user manual states pins PG0/1/2 only have GPIO input and
interrupt functions. Remove the gpio_out functions for these pins.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
Hi,
The A13 manual [1] and reference design [2] explicitly warn that pins
PG0/1/2 can not be used as gpio outputs. This patch removes the output
functions from the pin definitions.
ChenYu
[1] http://dl.linux-sunxi.org/A13/A13%20User%20Manual%20-%20v1.2%20%282013-01-08%29.pdf
Page 384.
[2] https://github.com/OLIMEX/OLINUXINO/raw/master/HARDWARE/A13-PDFs/a13-sch.pdf
Page 1, reminder in the red box (in Chinese)
---
drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c b/drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c
index 29c734a..e47c33d 100644
--- a/drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c
@@ -330,15 +330,12 @@ static const struct sunxi_desc_pin sun5i_a13_pins[] = {
/* Hole */
SUNXI_PIN(SUNXI_PINCTRL_PIN(G, 0),
SUNXI_FUNCTION(0x0, "gpio_in"),
- SUNXI_FUNCTION(0x1, "gpio_out"),
SUNXI_FUNCTION_IRQ(0x6, 0)), /* EINT0 */
SUNXI_PIN(SUNXI_PINCTRL_PIN(G, 1),
SUNXI_FUNCTION(0x0, "gpio_in"),
- SUNXI_FUNCTION(0x1, "gpio_out"),
SUNXI_FUNCTION_IRQ(0x6, 1)), /* EINT1 */
SUNXI_PIN(SUNXI_PINCTRL_PIN(G, 2),
SUNXI_FUNCTION(0x0, "gpio_in"),
- SUNXI_FUNCTION(0x1, "gpio_out"),
SUNXI_FUNCTION_IRQ(0x6, 2)), /* EINT2 */
SUNXI_PIN(SUNXI_PINCTRL_PIN(G, 3),
SUNXI_FUNCTION(0x0, "gpio_in"),
--
2.0.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH] pinctrl: sunxi: Remove gpio_out function from sun5i-a13 PG0/1/2 pins
2014-07-01 15:25 [PATCH] pinctrl: sunxi: Remove gpio_out function from sun5i-a13 PG0/1/2 pins Chen-Yu Tsai
@ 2014-07-04 7:08 ` Maxime Ripard
2014-07-07 12:42 ` Linus Walleij
1 sibling, 0 replies; 3+ messages in thread
From: Maxime Ripard @ 2014-07-04 7:08 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
On Tue, Jul 01, 2014 at 11:25:08PM +0800, Chen-Yu Tsai wrote:
> The A13 user manual states pins PG0/1/2 only have GPIO input and
> interrupt functions. Remove the gpio_out functions for these pins.
>
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Good catch!
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Thanks,
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140704/8008aa6f/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] pinctrl: sunxi: Remove gpio_out function from sun5i-a13 PG0/1/2 pins
2014-07-01 15:25 [PATCH] pinctrl: sunxi: Remove gpio_out function from sun5i-a13 PG0/1/2 pins Chen-Yu Tsai
2014-07-04 7:08 ` Maxime Ripard
@ 2014-07-07 12:42 ` Linus Walleij
1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2014-07-07 12:42 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jul 1, 2014 at 5:25 PM, Chen-Yu Tsai <wens@csie.org> wrote:
> The A13 user manual states pins PG0/1/2 only have GPIO input and
> interrupt functions. Remove the gpio_out functions for these pins.
>
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Patch applied with Maxime's ACK.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-07 12:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-01 15:25 [PATCH] pinctrl: sunxi: Remove gpio_out function from sun5i-a13 PG0/1/2 pins Chen-Yu Tsai
2014-07-04 7:08 ` Maxime Ripard
2014-07-07 12:42 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox