Skip to content

Add support for different mediatek pinctrl designs

Sam Shih u-boot 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 3 repliesIn review
  2. v33 patches 1 replySuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches1 replySuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3pinctrl: mediatek: rewrite mtk_pinconf_set and related functionsdrivers/pinctrl/mediatek/pinctrl-mtk-common.c drivers/pinctrl/mediatek/pinctrl-mtk-common.h+114 -301 reply
2/3pinctrl: mediatek: introduce multiple memory bases supportdrivers/pinctrl/mediatek/pinctrl-mtk-common.c drivers/pinctrl/mediatek/pinctrl-mtk-common.h+57 -201 reply
3/3pinctrl: mediatek: add support for different types of IO pinsdrivers/pinctrl/mediatek/pinctrl-mtk-common.c drivers/pinctrl/mediatek/pinctrl-mtk-common.h+81 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] Add support for different mediatek pinctrl designs

MediaTek SoC's pinconf register usage varies by SoC,
So the original code uses V0/V1 to mark different pinconf design. But actually, the real difference is the design of the "pin" itself.

Different SoCs will choose specify "pin design", which we call the "io_type" of the pin.

For a better understanding of mediatek pinctrl design. and make the driver clear and flexible, this patch series changes common parts of mediatek pinctrl driver to support various pinctrl controller designs.

The following mediatek config were tested to ensure the build passed:
- mt7622_rfb_defconfig
- mt7623a_unielec_u7623_02_defconfig
- mt7623n_bpir2_defconfig
- mt7629_rfb_defconfig
- mt8183_pumpkin_defconfig
- mt8512_bm1_emmc_defconfig
- mt8516_pumpkin_defconfig
- mt8518_ap1_emmc_defconfig

---
v4: fix mt8518_ap1_emmc build fail
v3: fix v2 patch series misapplied
v2: fix build fail caused by patch [2/3]

Sam Shih (3):
pinctrl: mediatek: rewrite mtk_pinconf_set and related functions
pinctrl: mediatek: introduce multiple memory bases support
pinctrl: mediatek: add support for different types of IO pins

 drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 221 ++++++++++++++----
 drivers/pinctrl/mediatek/pinctrl-mtk-common.h |  78 ++++++-
 2 files changed, 248 insertions(+), 51 deletions(-)
Signature · 1 line
2.18.0