When trying to use the SD card slot on the Genio 720 EVK, we found that the pin configuration was not working entirely correctly.
It turns out that there are a couple of different ways to set bias depending on the pin. One requires setting an RSEL register, which hasn't been seen before in U-Boot, so we add a new pinctrl-mtk-common function to handle this. Then we can fix the mt8189 driver. Finally, we add some additional debug functionality to print the bias registers when printing out the current pinmux state. This can help with debugging similar issues in the future. Signed-off-by: David Lechner <[email protected]> --- Changes in v2: - Simplified code in "pinctrl: mediatek: print bias info along with pinmux" - Link to v1: https://patch.msgid.link/[email protected] --- David Lechner (4): pinctrl: mediatek: add handling for RSEL register pinctrl: mediatek: mt8189: fix pinconf bias pinctrl: mediatek: print bias info along with pinmux pinctrl: mediatek: mtk8189: set get_pinconf functions drivers/pinctrl/mediatek/pinctrl-mt8189.c | 416 ++++++++++++++------------ drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 105 ++++++- drivers/pinctrl/mediatek/pinctrl-mtk-common.h | 7 + 3 files changed, 342 insertions(+), 186 deletions(-) --- base-commit: d9eee3d17882ec40f8ca5e231046bbf287ab4369 change-id: 20260313-pinctrl-mtk-fix-mt8189-1f7cf61af74a Best regards, -- David Lechner <[email protected]>

