Horatiu Vultur dc62db7138 pinctrl: ocelot: Fix pincfg for lan966x
The blamed commit introduce support for lan966x which use the same
pinconf_ops as sparx5. The problem is that pinconf_ops is specific to
sparx5. More precisely the offset of the bits in the pincfg register are
different and also lan966x doesn't have support for
PIN_CONFIG_INPUT_SCHMITT_ENABLE.

Fix this by making pinconf_ops more generic such that it can be also
used by lan966x. This is done by introducing 'ocelot_pincfg_data' which
contains the offset and what is supported for each SOC.

Fixes: 531d6ab36571 ("pinctrl: ocelot: Extend support for lan966x")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220713193750.4079621-2-horatiu.vultur@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2022-07-18 11:22:43 +02:00
..
2022-05-04 23:15:21 +02:00
2022-05-04 23:15:21 +02:00
2022-05-26 14:51:38 -07:00
2022-01-30 02:55:41 +01:00
2021-09-17 00:48:45 +02:00
2021-10-14 01:22:58 +02:00
2022-02-11 02:19:47 +01:00
2020-04-28 13:26:49 +02:00
2022-05-01 23:25:10 +02:00
2020-12-15 12:13:37 -08:00