[PATCH v2 0/4] pinctrl: mediatek: fix mt8189 MSDC and I2C pins

David Lechner dlechner at baylibre.com
Mon Mar 30 18:00:32 CEST 2026


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 <dlechner at baylibre.com>
---
Changes in v2:
- Simplified code in "pinctrl: mediatek: print bias info along with pinmux"
- Link to v1: https://patch.msgid.link/20260313-pinctrl-mtk-fix-mt8189-v1-0-607dd37fde37@baylibre.com

---
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 <dlechner at baylibre.com>



More information about the U-Boot mailing list