[PATCH 00/29] Add support for MediaTek MT7988 SoC

Weijie Gao weijie.gao at mediatek.com
Wed Jul 19 11:15:28 CEST 2023


This patch series add support for MediaTek MT7988 SoC with its reference
boards and related drivers.

This patch series add basic boot support on eMMC/SD/SPI-NOR/SPI-NAND for these
boards. The clock, pinctrl drivers and the SoC initializaton code are also
included.

Product spec for MT7988:
https://www.mediatek.com/products/broadband-wifi/mediatek-filogic-880

Weijie Gao (29):
  arm: mediatek: retrieve ram_base from dts node for armv8 platform
  board: mediatek: update config headers
  spi: mtk_spim: get spi clk rate only once
  spi: mtk_spim: clear IRQ enable bits
  serial: mtk: initial priv data before using
  reset: mediatek: check malloc return valaue before use
  i2c: mediatek: fix I2C usability for MT7981
  arm: dts: enable i2c support for MediaTek MT7981
  pwm: mtk: add support for MediaTek MT7988 SoC
  clk: mediatek: add clock driver support for MediaTek MT7988 SoC
  reset: mediatek: add reset definition for MediaTek MT7988 SoC
  pinctrl: mediatek: convert most definitions to const
  pinctrl: mediatek: fix the return value in driving configuration
    functions
  pinctrl: mediatek: add pinmux_set ops support
  pinctrl: mediatek: add pinctrl driver for MT7988 SoC
  net: mediatek: connect switch to PSE only when starting eth is
    requested
  net: mediatek: optimize the switch reset delay wait time
  net: mediatek: fix direct MDIO clause 45 access via SoC
  net: mediatek: add missing static qualifier
  net: mediatek: add support for SGMII 1Gbps auto-negotiation mode
  arm: dts: medaitek: convert gmac link mode to 2500base-x
  net: mediatek: add support for GMAC/USB3 PHY mux mode for MT7981
  arm: dts: mediatek: add infracfg registers to support GMAC/USB3 Co-PHY
  net: mediatek: add USXGMII support
  net: mediatek: add support for NETSYS v3
  net: mediatek: add support for MediaTek MT7988 SoC
  tools: mtk_image: use uint32_t for ghf header magic and version
  arm: mediatek: add support for MediaTek MT7988 SoC
  board: mediatek: add MT7988 reference boards

 arch/arm/dts/Makefile                         |    2 +
 arch/arm/dts/mt7622-bananapi-bpi-r64.dts      |    4 +-
 arch/arm/dts/mt7622-rfb.dts                   |    4 +-
 arch/arm/dts/mt7629-rfb.dts                   |    4 +-
 arch/arm/dts/mt7981-emmc-rfb.dts              |    9 +-
 arch/arm/dts/mt7981-rfb.dts                   |    9 +-
 arch/arm/dts/mt7981-sd-rfb.dts                |    9 +-
 arch/arm/dts/mt7981.dtsi                      |   21 +
 arch/arm/dts/mt7986a-bpi-r3-sd.dts            |    5 +
 arch/arm/dts/mt7986a-rfb.dts                  |    9 +-
 arch/arm/dts/mt7986a-sd-rfb.dts               |    9 +-
 arch/arm/dts/mt7986b-rfb.dts                  |    9 +-
 arch/arm/dts/mt7986b-sd-rfb.dts               |    9 +-
 arch/arm/dts/mt7988-rfb.dts                   |  182 +++
 arch/arm/dts/mt7988-sd-rfb.dts                |  134 ++
 arch/arm/dts/mt7988-u-boot.dtsi               |   25 +
 arch/arm/dts/mt7988.dtsi                      |  391 +++++
 arch/arm/mach-mediatek/Kconfig                |   13 +-
 arch/arm/mach-mediatek/Makefile               |    1 +
 arch/arm/mach-mediatek/mt7622/init.c          |   13 +-
 arch/arm/mach-mediatek/mt7981/init.c          |   11 +-
 arch/arm/mach-mediatek/mt7986/init.c          |   11 +-
 arch/arm/mach-mediatek/mt7988/Makefile        |    4 +
 arch/arm/mach-mediatek/mt7988/init.c          |   63 +
 arch/arm/mach-mediatek/mt7988/lowlevel_init.S |   30 +
 board/mediatek/mt7622/mt7622_rfb.c            |    1 -
 board/mediatek/mt7988/MAINTAINERS             |    7 +
 board/mediatek/mt7988/Makefile                |    3 +
 board/mediatek/mt7988/mt7988_rfb.c            |   10 +
 configs/mt7988_rfb_defconfig                  |   83 ++
 configs/mt7988_sd_rfb_defconfig               |   71 +
 drivers/clk/mediatek/Makefile                 |    1 +
 drivers/clk/mediatek/clk-mt7988.c             | 1123 +++++++++++++++
 drivers/i2c/mtk_i2c.c                         |   45 +-
 drivers/net/mtk_eth.c                         |  572 +++++++-
 drivers/net/mtk_eth.h                         |   69 +
 drivers/pinctrl/mediatek/Kconfig              |    4 +
 drivers/pinctrl/mediatek/Makefile             |    1 +
 drivers/pinctrl/mediatek/pinctrl-mt7622.c     |  474 +++---
 drivers/pinctrl/mediatek/pinctrl-mt7623.c     |  650 ++++-----
 drivers/pinctrl/mediatek/pinctrl-mt7629.c     |  174 +--
 drivers/pinctrl/mediatek/pinctrl-mt7981.c     |  270 ++--
 drivers/pinctrl/mediatek/pinctrl-mt7986.c     |  145 +-
 drivers/pinctrl/mediatek/pinctrl-mt7988.c     | 1274 +++++++++++++++++
 drivers/pinctrl/mediatek/pinctrl-mt8512.c     |   24 +-
 drivers/pinctrl/mediatek/pinctrl-mt8516.c     |   18 +-
 drivers/pinctrl/mediatek/pinctrl-mt8518.c     |   20 +-
 drivers/pinctrl/mediatek/pinctrl-mtk-common.c |   22 +-
 drivers/pinctrl/mediatek/pinctrl-mtk-common.h |    8 +-
 drivers/pwm/pwm-mtk.c                         |    7 +
 drivers/reset/reset-mediatek.c                |    3 +
 drivers/serial/serial_mtk.c                   |    1 +
 drivers/spi/mtk_spim.c                        |   24 +-
 include/configs/mt7620.h                      |    3 +-
 include/configs/mt7621.h                      |    6 +-
 include/configs/mt7622.h                      |   10 -
 include/configs/mt7623.h                      |    8 -
 include/configs/mt7628.h                      |    5 +-
 include/configs/mt7629.h                      |   13 +-
 include/configs/mt7981.h                      |    9 -
 include/configs/mt7986.h                      |    9 -
 include/configs/mt7988.h                      |   14 +
 include/dt-bindings/clock/mt7988-clk.h        |  349 +++++
 include/dt-bindings/reset/mt7988-reset.h      |   31 +
 tools/mtk_image.c                             |   10 +-
 tools/mtk_image.h                             |    6 +-
 66 files changed, 5533 insertions(+), 1025 deletions(-)
 create mode 100644 arch/arm/dts/mt7988-rfb.dts
 create mode 100644 arch/arm/dts/mt7988-sd-rfb.dts
 create mode 100644 arch/arm/dts/mt7988-u-boot.dtsi
 create mode 100644 arch/arm/dts/mt7988.dtsi
 create mode 100644 arch/arm/mach-mediatek/mt7988/Makefile
 create mode 100644 arch/arm/mach-mediatek/mt7988/init.c
 create mode 100644 arch/arm/mach-mediatek/mt7988/lowlevel_init.S
 create mode 100644 board/mediatek/mt7988/MAINTAINERS
 create mode 100644 board/mediatek/mt7988/Makefile
 create mode 100644 board/mediatek/mt7988/mt7988_rfb.c
 create mode 100644 configs/mt7988_rfb_defconfig
 create mode 100644 configs/mt7988_sd_rfb_defconfig
 create mode 100644 drivers/clk/mediatek/clk-mt7988.c
 create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt7988.c
 create mode 100644 include/configs/mt7988.h
 create mode 100644 include/dt-bindings/clock/mt7988-clk.h
 create mode 100644 include/dt-bindings/reset/mt7988-reset.h

-- 
2.17.1



More information about the U-Boot mailing list