Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: sh7786: Fix port E, G and J GPIOs

The port E, G and J GPIOs don't match the SoC datasheet (they seem to
have been copied from the SH7785). Fix them.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

authored by

Laurent Pinchart and committed by
Simon Horman
cc88ec48 ffacb6a3

+5 -7
+3 -5
arch/sh/include/cpu-sh4/cpu/sh7786.h
··· 32 32 GPIO_PD3, GPIO_PD2, GPIO_PD1, GPIO_PD0, 33 33 34 34 /* PE */ 35 - GPIO_PE5, GPIO_PE4, GPIO_PE3, GPIO_PE2, 36 - GPIO_PE1, GPIO_PE0, 35 + GPIO_PE7, GPIO_PE6, 37 36 38 37 /* PF */ 39 38 GPIO_PF7, GPIO_PF6, GPIO_PF5, GPIO_PF4, 40 39 GPIO_PF3, GPIO_PF2, GPIO_PF1, GPIO_PF0, 41 40 42 41 /* PG */ 43 - GPIO_PG7, GPIO_PG6, GPIO_PG5, GPIO_PG4, 44 - GPIO_PG3, GPIO_PG2, GPIO_PG1, GPIO_PG0, 42 + GPIO_PG7, GPIO_PG6, GPIO_PG5, 45 43 46 44 /* PH */ 47 45 GPIO_PH7, GPIO_PH6, GPIO_PH5, GPIO_PH4, ··· 47 49 48 50 /* PJ */ 49 51 GPIO_PJ7, GPIO_PJ6, GPIO_PJ5, GPIO_PJ4, 50 - GPIO_PJ3, GPIO_PJ2, GPIO_PJ1, GPIO_PJ0, 52 + GPIO_PJ3, GPIO_PJ2, GPIO_PJ1, 51 53 52 54 /* DU */ 53 55 GPIO_FN_DCLKIN, GPIO_FN_DCLKOUT, GPIO_FN_ODDF,
+2 -2
arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c
··· 468 468 PINMUX_GPIO(GPIO_PD0, PD0_DATA), 469 469 470 470 /* PE */ 471 - PINMUX_GPIO(GPIO_PE5, PE7_DATA), 472 - PINMUX_GPIO(GPIO_PE4, PE6_DATA), 471 + PINMUX_GPIO(GPIO_PE7, PE7_DATA), 472 + PINMUX_GPIO(GPIO_PE6, PE6_DATA), 473 473 474 474 /* PF */ 475 475 PINMUX_GPIO(GPIO_PF7, PF7_DATA),