linux/drivers/pinctrl/renesas
Geert Uytterhoeven 91d1be9fb7 pinctrl: renesas: Fix pin control matching on R-Car H3e-2G
As R-Car H3 ES1.x (R8A77950) and R-Car ES2.0+ (R8A77951) use the same
compatible value, the pin control driver relies on soc_device_match()
with soc_id = "r8a7795" and the (non)matching of revision = "ES1.*" to
match with and distinguish between the two SoC variants.  The
corresponding entries in the normal of_match_table are present only to
make the optional sanity checks work.

The R-Car H3e-2G (R8A779M1) SoC is a different grading of the R-Car H3
ES3.0 (R8A77951) SoC.  It uses the same compatible values for individual
devices, but has an additional compatible value for the root node.
When running on an R-Car H3e-2G SoC, soc_device_match() with soc_id =
"r8a7795" does not return a match.  Hence the pin control driver falls
back to the normal of_match_table, and, as the R8A77950 entry is listed
first, incorrectly uses the sub-driver for R-Car H3 ES1.x.

Fix this by moving the entry for R8A77951 before the entry for R8A77950.
Simplify sh_pfc_quirk_match() to only handle R-Car H3 ES1,x, as R-Car H3
ES2.0+ can now be matched using the normal of_match_table as well.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/6cdc5bfa424461105779b56f455387e03560cf66.1626707688.git.geert+renesas@glider.be
2021-07-27 09:29:02 +02:00
..
core.c pinctrl: renesas: Fix pin control matching on R-Car H3e-2G 2021-07-27 09:29:02 +02:00
core.h pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
gpio.c pinctrl: renesas: Singular/plural grammar fixes 2020-11-13 15:37:41 +01:00
Kconfig pinctrl: renesas: Initial R8A779A0 (V3U) PFC support 2021-01-14 12:06:15 +01:00
Makefile pinctrl: renesas: Initial R8A779A0 (V3U) PFC support 2021-01-14 12:06:15 +01:00
pfc-emev2.c
pfc-r8a73a4.c pinctrl: renesas: Factor out common R-Mobile bias handling 2021-03-24 10:38:29 +01:00
pfc-r8a779a0.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-r8a7740.c pinctrl: renesas: Factor out common R-Mobile bias handling 2021-03-24 10:38:29 +01:00
pfc-r8a7778.c pinctrl: renesas: r8a7778: Remove unused PORT_GP_PUP_1() macro 2021-05-11 10:04:42 +02:00
pfc-r8a7779.c
pfc-r8a7790.c pinctrl: renesas: r8a7790: Add bias pinconf support 2021-05-31 10:50:28 +02:00
pfc-r8a7791.c pinctrl: renesas: r8a7791: Add bias pinconf support 2021-03-24 10:38:29 +01:00
pfc-r8a7792.c pinctrl: renesas: r8a7792: Add bias pinconf support 2021-05-31 10:50:28 +02:00
pfc-r8a7794.c pinctrl: renesas: r8a7794: Add bias pinconf support 2021-05-31 10:50:28 +02:00
pfc-r8a7796.c pinctrl: renesas: r8a779{51,6,65}: Reduce non-functional differences 2021-05-11 10:04:42 +02:00
pfc-r8a77470.c pinctrl: renesas: r8a77470: Add bias pinconf support 2021-05-31 10:50:28 +02:00
pfc-r8a77950.c pinctrl: renesas: Move R-Car bias helpers to sh_pfc.h 2021-03-24 10:38:29 +01:00
pfc-r8a77951.c pinctrl: renesas: r8a779{51,6,65}: Reduce non-functional differences 2021-05-11 10:04:42 +02:00
pfc-r8a77965.c pinctrl: renesas: r8a779{51,6,65}: Reduce non-functional differences 2021-05-11 10:04:42 +02:00
pfc-r8a77970.c pinctrl: renesas: r8a77970: Add bias pinconf support 2021-05-31 10:50:28 +02:00
pfc-r8a77980.c pinctrl: renesas: r8a77980: Add bias pinconf support 2021-05-31 10:50:29 +02:00
pfc-r8a77990.c pinctrl: renesas: r8a77990: Drop bogus PUEN_ prefixes in comments 2021-05-11 10:04:42 +02:00
pfc-r8a77995.c pinctrl: renesas: r8a77995: Add bias pinconf support 2021-07-13 09:43:34 +02:00
pfc-sh73a0.c pinctrl: renesas: Factor out common R-Mobile bias handling 2021-03-24 10:38:29 +01:00
pfc-sh7203.c
pfc-sh7264.c
pfc-sh7269.c
pfc-sh7720.c
pfc-sh7722.c
pfc-sh7723.c
pfc-sh7724.c
pfc-sh7734.c
pfc-sh7757.c
pfc-sh7785.c
pfc-sh7786.c
pfc-shx3.c
pinctrl-rza1.c pinctrl: renesas: Fix fall-through warnings for Clang 2020-11-23 09:47:28 +01:00
pinctrl-rza2.c
pinctrl-rzn1.c
pinctrl.c pinctrl: renesas: r8a77995: Add bias pinconf support 2021-07-13 09:43:34 +02:00
sh_pfc.h pinctrl: renesas: Fix pin control matching on R-Car H3e-2G 2021-07-27 09:29:02 +02:00