mirror-linux/drivers/pinctrl/mediatek
Christian Marangi a061e739d3 pinctrl: airoha: fix wrong MDIO function bitmaks
With further testing with an attached Aeonsemi it was discovered that
the pinctrl MDIO function applied the wrong bitmask. The error was
probably caused by the confusing documentation related to these bits.

Inspecting what the bootloader actually configure, the SGMII_MDIO_MODE
is never actually set but instead it's set force enable to the 2 GPIO
(gpio 1-2) for MDC and MDIO pin.

The usage of GPIO might be confusing but this is just to instruct the
SoC to not mess with those 2 PIN and as Benjamin reported it's also an
Errata of 7581. The FORCE_GPIO_EN doesn't set them as GPIO function
(that is configured by a different register) but it's really to actually
""enable"" those lines.

Normally the SoC should autodetect this by HW but it seems AN7581 have
problem with this and require this workaround to force enable the 2 pin.

Applying this configuration permits correct functionality of any
externally attached PHY.

Cc: stable@vger.kernel.org
Fixes: 1c8ace2d07 ("pinctrl: airoha: Add support for EN7581 SoC")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Acked-by: Benjamin Larsson <benjamin.larsson@genexis.eu>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2025-09-08 23:01:19 +02:00
..
Kconfig pinctrl: mediatek: Add pinctrl driver for mt8189 2025-07-23 13:35:40 +02:00
Makefile pinctrl: mediatek: Add pinctrl driver for mt8189 2025-07-23 13:35:40 +02:00
mtk-eint.c pinctrl: Use dev_fwnode() 2025-06-18 13:32:11 +02:00
mtk-eint.h pinctrl: mediatek: eint: Fix invalid pointer dereference for v1 platforms 2025-05-21 00:39:30 +02:00
pinctrl-airoha.c pinctrl: airoha: fix wrong MDIO function bitmaks 2025-09-08 23:01:19 +02:00
pinctrl-moore.c treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
pinctrl-moore.h pinctrl: mediatek: moore: Convert to use func member 2024-06-17 09:24:57 +02:00
pinctrl-mt76x8.c pinctrl: ralink: mt76x8: fix pinmux function 2024-06-17 09:23:02 +02:00
pinctrl-mt2701.c pinctrl: mediatek: Switch to use no-IRQ PM helpers 2023-12-04 15:32:42 +01:00
pinctrl-mt2712.c pinctrl: mediatek: Switch to use no-IRQ PM helpers 2023-12-04 15:32:42 +01:00
pinctrl-mt6397.c
pinctrl-mt6765.c pinctrl: mediatek: fix module autoloading 2024-04-17 10:43:50 +02:00
pinctrl-mt6779.c pinctrl: mediatek: fix module autoloading 2024-04-17 10:43:50 +02:00
pinctrl-mt6795.c pinctrl: mediatek: Switch to use no-IRQ PM helpers 2023-12-04 15:32:42 +01:00
pinctrl-mt6797.c
pinctrl-mt6893.c pinctrl: mediatek: Add pinctrl driver for MT6893 Dimensity 1200 2025-04-17 09:39:15 +02:00
pinctrl-mt7620.c
pinctrl-mt7621.c
pinctrl-mt7622.c pinctrl: mediatek: moore: Provide a helper macro PINCTRL_PIN_FUNCTION() 2024-06-17 09:24:05 +02:00
pinctrl-mt7623.c pinctrl: mediatek: moore: Provide a helper macro PINCTRL_PIN_FUNCTION() 2024-06-17 09:24:05 +02:00
pinctrl-mt7629.c pinctrl: mediatek: moore: Provide a helper macro PINCTRL_PIN_FUNCTION() 2024-06-17 09:24:05 +02:00
pinctrl-mt7981.c pinctrl: mediatek: moore: Provide a helper macro PINCTRL_PIN_FUNCTION() 2024-06-17 09:24:05 +02:00
pinctrl-mt7986.c pinctrl: mediatek: moore: Provide a helper macro PINCTRL_PIN_FUNCTION() 2024-06-17 09:24:05 +02:00
pinctrl-mt7988.c pinctrl: mediatek: add MT7988 pinctrl driver 2024-12-27 09:21:58 +01:00
pinctrl-mt8127.c
pinctrl-mt8135.c
pinctrl-mt8167.c pinctrl: mediatek: Switch to use no-IRQ PM helpers 2023-12-04 15:32:42 +01:00
pinctrl-mt8173.c pinctrl: mediatek: Switch to use no-IRQ PM helpers 2023-12-04 15:32:42 +01:00
pinctrl-mt8183.c pinctrl: mediatek: Switch to use no-IRQ PM helpers 2023-12-04 15:32:42 +01:00
pinctrl-mt8186.c pinctrl: mediatek: Drop bogus slew rate register range for MT8186 2024-02-07 11:47:49 +01:00
pinctrl-mt8188.c pinctrl: mediatek: Switch to use no-IRQ PM helpers 2023-12-04 15:32:42 +01:00
pinctrl-mt8189.c pinctrl: mediatek: Add pinctrl driver for mt8189 2025-07-23 13:35:40 +02:00
pinctrl-mt8192.c pinctrl: mediatek: Drop bogus slew rate register range for MT8192 2024-02-07 11:47:49 +01:00
pinctrl-mt8195.c pinctrl: mediatek: Switch to use no-IRQ PM helpers 2023-12-04 15:32:42 +01:00
pinctrl-mt8196.c pinctrl: mediatek: pinctrl: mediatek: add mt8196 eint pin 2025-04-23 10:40:50 +02:00
pinctrl-mt8365.c pinctrl: mediatek: Switch to use no-IRQ PM helpers 2023-12-04 15:32:42 +01:00
pinctrl-mt8516.c pinctrl: mediatek: Switch to use no-IRQ PM helpers 2023-12-04 15:32:42 +01:00
pinctrl-mtk-common-v2.c pinctrl: mediatek: eint: Fix invalid pointer dereference for v1 platforms 2025-05-21 00:39:30 +02:00
pinctrl-mtk-common-v2.h pinctrl: mediatek: Add EINT support for multiple addresses 2025-03-24 08:51:09 +01:00
pinctrl-mtk-common.c treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
pinctrl-mtk-common.h
pinctrl-mtk-mt2701.h
pinctrl-mtk-mt2712.h
pinctrl-mtk-mt6397.h
pinctrl-mtk-mt6765.h
pinctrl-mtk-mt6779.h
pinctrl-mtk-mt6795.h
pinctrl-mtk-mt6797.h
pinctrl-mtk-mt6893.h pinctrl: mediatek: Add pinctrl driver for MT6893 Dimensity 1200 2025-04-17 09:39:15 +02:00
pinctrl-mtk-mt8127.h
pinctrl-mtk-mt8135.h
pinctrl-mtk-mt8167.h
pinctrl-mtk-mt8173.h
pinctrl-mtk-mt8183.h
pinctrl-mtk-mt8186.h
pinctrl-mtk-mt8188.h
pinctrl-mtk-mt8189.h pinctrl: mediatek: Add pinctrl driver for mt8189 2025-07-23 13:35:40 +02:00
pinctrl-mtk-mt8192.h
pinctrl-mtk-mt8195.h
pinctrl-mtk-mt8196.h pinctrl: mediatek: pinctrl: mediatek: add mt8196 eint pin 2025-04-23 10:40:50 +02:00
pinctrl-mtk-mt8365.h
pinctrl-mtk-mt8516.h
pinctrl-mtmips.c
pinctrl-mtmips.h
pinctrl-paris.c treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
pinctrl-paris.h pinctrl: mediatek: Add EINT support for multiple addresses 2025-03-24 08:51:09 +01:00
pinctrl-rt305x.c
pinctrl-rt2880.c
pinctrl-rt3883.c