Skip to content

mediatek: cumulative trivial fix for OF_UPSTREAM support

Christian Marangi u-boot 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest14 patches 1 replyIn review
  2. v214 patches 0 repliesSuperseded
  3. v111 patches 1 replySuperseded

Changes in v4 from the cover letter

- Fix compilation error catched by Azure CI
- Rework serial with legacy platform

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14phy: phy-mtk-tphy: add support for phy type switchdrivers/phy/Kconfig drivers/phy/phy-mtk-tphy.c+82 -00 replies
2/14pci: mediatek: add PCIe controller support for filogic silicondrivers/pci/Kconfig drivers/pci/Makefile drivers/pci/pcie_mediatek_gen3.c+390 -00 replies
3/14spi: mtk_spim: add support for upstream mediatek, spi-ipm compatibledrivers/spi/mtk_spim.c+43 -20 replies
4/14net: mediatek: handle alternative name for pn_swap propertydrivers/net/mtk_eth.c+3 -10 replies
5/14i2c: mediatek: add support for optional arb and pmic clockdrivers/i2c/mtk_i2c.c+30 -00 replies
6/14serial: mediatek: add support for bus clock and enable itdrivers/serial/serial_mtk.c+8 -00 replies
7/14serial: mediatek: add special handling for highspeed and linux compatdrivers/serial/serial_mtk.c+11 -10 replies
8/14mmc: mediatek: add support for upstream linux clock and propertydrivers/mmc/mtk-sd.c+31 -40 replies
9/14clk: mediatek: mt7981: support alternative compatible for fixed-pllsdrivers/clk/mediatek/clk-mt7981.c+1 -00 replies
10/14pinctrl: mediatek: add support for gpio-controller property in root nodedrivers/pinctrl/mediatek/pinctrl-mtk-common.c+10 -00 replies
11/14pinctrl: mediatek: mt7981: init device before relocationdrivers/pinctrl/mediatek/pinctrl-mt7981.c+1 -00 replies
12/14pci: mediatek: make pcie-phy optional for gen3drivers/pci/pcie_mediatek_gen3.c+12 -100 replies
13/14clk: mediatek: mt7988: support alternative compatible for fixed-pllsdrivers/clk/mediatek/clk-mt7988.c+1 -00 replies
14/14clk: mediatek: mt7986: support alternative compatible for fixed-pllsdrivers/clk/mediatek/clk-mt7986.c+1 -00 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 00/14] mediatek: cumulative trivial fix for OF_UPSTREAM support

This is an initial series that have all the initial trivial fixes required for usage of OF_UPSTREAM for the mediatek SoC

This also contains the pcie-gen3 driver and the required tphy support driver to make it work.

Subsequent series will follow with conversion of the mtk-clk to permit usage of OF_UPSTREAM and upstream clk ID.

MT7981, MT7986 and MT7988 migration to upstream clock ID is complete and working on MT7623.

Series CI tested with PR [0]

[0] https://github.com/u-boot/u-boot/pull/590

Changes v4:
- Fix compilation error catched by Azure CI
- Rework serial with legacy platform
Changes v3:
- Fix copy paste error in gpio-controller (dev instead of parent)
- Rebase on top of next
Changes v2:
- Add mt7986 and mt7988 apmixed trivial PATCH
- Make phy for pcie optional (it is for mt7988)
- Fix broken mmc patch

Christian Marangi (13):
phy: phy-mtk-tphy: add support for phy type switch
spi: mtk_spim: add support for upstream mediatek,spi-ipm compatible
net: mediatek: handle alternative name for pn_swap property
i2c: mediatek: add support for optional arb and pmic clock
serial: mediatek: add support for bus clock and enable it
serial: mediatek: add special handling for highspeed and linux compat
mmc: mediatek: add support for upstream linux clock and property
clk: mediatek: mt7981: support alternative compatible for fixed-plls
pinctrl: mediatek: add support for gpio-controller property in root
node
pinctrl: mediatek: mt7981: init device before relocation
pci: mediatek: make pcie-phy optional for gen3
clk: mediatek: mt7988: support alternative compatible for fixed-plls
clk: mediatek: mt7986: support alternative compatible for fixed-plls

John Crispin (1):
pci: mediatek: add PCIe controller support for filogic silicon

 drivers/clk/mediatek/clk-mt7981.c             |   1 +
 drivers/clk/mediatek/clk-mt7986.c             |   1 +
 drivers/clk/mediatek/clk-mt7988.c             |   1 +
 drivers/i2c/mtk_i2c.c                         |  30 ++
 drivers/mmc/mtk-sd.c                          |  35 +-
 drivers/net/mtk_eth.c                         |   4 +-
 drivers/pci/Kconfig                           |   7 +
 drivers/pci/Makefile                          |   1 +
 drivers/pci/pcie_mediatek_gen3.c              | 384 ++++++++++++++++++
 drivers/phy/Kconfig                           |   2 +
 drivers/phy/phy-mtk-tphy.c                    |  80 ++++
 drivers/pinctrl/mediatek/pinctrl-mt7981.c     |   1 +
 drivers/pinctrl/mediatek/pinctrl-mtk-common.c |  10 +
 drivers/serial/serial_mtk.c                   |  20 +-
 drivers/spi/mtk_spim.c                        |  45 +-
 15 files changed, 614 insertions(+), 8 deletions(-)
 create mode 100644 drivers/pci/pcie_mediatek_gen3.c
Signature · 1 line
2.45.1