Skip to content

Add support for MediaTek MT7620 SoC - v4

Weijie Gao u-boot 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest23 patches 0 repliesNew
  2. v323 patches 0 repliesSuperseded
  3. v221 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v10 of 18 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Remove unused code in drivers/serial/serial.c
- Fix plat->cfg.f_max of mtk-sd driver

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23mips: dts: switch to board defines for dtb for mtmipsarch/mips/dts/Makefile+2 -31 reply
1/23mips: dts: switch to board defines for dtb for mtmips+0 -01 reply
1/23mips: dts: switch to board defines for dtb for mtmips+0 -01 reply
1/23mips: dts: switch to board defines for dtb for mtmips+0 -00 replies
2/23mips: mtmips: move mt7628 related Kconfig into mt7628 subdirectoryarch/mips/mach-mtmips/Kconfig arch/mips/mach-mtmips/mt7628/Kconfig+54 -520 replies
3/23mips: mtmips: select SYSRESET for mt7628 onlyarch/mips/Kconfig arch/mips/mach-mtmips/Kconfig+1 -10 replies
4/23mips: mtmips: fix dram size detection in dram_initarch/mips/mach-mtmips/cpu.c+2 -30 replies
5/23mips: enable _machine_restart for splarch/mips/cpu/cpu.c+1 -10 replies
6/23mips: mtmips: add support to initialize SDRAMarch/mips/mach-mtmips/ddr_init.c arch/mips/mach-mtmips/include/mach/ddr.h+63 -00 replies
7/23mips: mtmips: add support for MediaTek MT7620 SoCarch/mips/dts/mt7620-u-boot.dtsi arch/mips/dts/mt7620.dtsi arch/mips/mach-mtmips/Kconfig +11 more+1163 -00 replies
8/23mips: mtmips: add two reference boards for mt7620arch/mips/dts/Makefile arch/mips/dts/mediatek,mt7620-mt7530-rfb.dts arch/mips/dts/mediatek,mt7620-rfb.dts +7 more+380 -00 replies
9/23configs: mtmips: refresh for mt7628 based boardsconfigs/gardena-smart-gateway-mt7688_defconfig configs/linkit-smart-7688_defconfig configs/mt7628_rfb_defconfig +1 more+4 -00 replies
10/23serial: add uart driver for MediaTek MT7620 SoCdrivers/serial/Kconfig drivers/serial/Makefile drivers/serial/serial_mt7620.c+267 -00 replies
11/23clk: add clock driver for MediaTek MT7620 SoCdrivers/clk/mtmips/Makefile drivers/clk/mtmips/clk-mt7620.c include/dt-bindings/clock/mt7620-clk.h+200 -00 replies
12/23reset: mtmips: add reset controller support for MediaTek MT7620 SoCinclude/dt-bindings/reset/mt7620-reset.h+35 -00 replies
13/23pinctrl: mtmips: add support for MediaTek MT7620 SoCdrivers/pinctrl/mtmips/Kconfig drivers/pinctrl/mtmips/Makefile drivers/pinctrl/mtmips/pinctrl-mt7620.c+210 -00 replies
14/23watchdog: add watchdog driver for MediaTek MT7620 SoCdrivers/watchdog/Kconfig drivers/watchdog/Makefile drivers/watchdog/mt7620_wdt.c+150 -00 replies
15/23gpio: add GPIO controller driver for MediaTek MT7620 SoCdrivers/gpio/Kconfig drivers/gpio/Makefile drivers/gpio/mt7620_gpio.c+155 -00 replies
16/23spi: add spi controller support for MediaTek MT7620 SoCdrivers/spi/Kconfig drivers/spi/Makefile drivers/spi/mt7620_spi.c+289 -00 replies
17/23phy: add USB PHY driver for MediaTek MT7620 SoCdrivers/phy/Kconfig drivers/phy/Makefile drivers/phy/mt7620-usb-phy.c+118 -00 replies
18/23net: add ethernet driver for MediaTek MT7620 SoCdrivers/net/Kconfig drivers/net/Makefile drivers/net/mt7620-eth.c+1235 -00 replies
19/23mmc: mtk-sd: fix sclk cycles shift valuedrivers/mmc/mtk-sd.c+4 -90 replies
20/23mmc: mtk-sd: add pad control settings for MediaTek MT7620/MT76x8 SoCsdrivers/mmc/mtk-sd.c+118 -30 replies
21/23mmc: mtk-sd: assign plat->cfg.f_max with a correct valuedrivers/mmc/mtk-sd.c+2 -00 replies
22/23reset: reset-mtmips: add DM_FLAG_PRE_RELOC flagdrivers/reset/reset-mtmips.c+1 -00 replies
23/23MAINTAINERS: add maintainer for MediaTek MIPS platformMAINTAINERS+23 -00 replies

Reviews trailers per patch

All 26 patches have a Reviewed-by or Acked-by.

PatchStefan RoeseSimon GlassJagan Teki
1/23R-b
1/23R-b
1/23R-b
1/23R-b
2/23R-b
3/23R-b
4/23R-b
5/23R-b R-b
6/23R-b
7/23R-b
8/23R-b
9/23R-b
10/23R-b R-b
11/23R-b
12/23R-b
13/23R-b
14/23R-b R-b
15/23R-b R-b
16/23R-b
17/23R-b
18/23R-b
19/23R-b
20/23R-b
21/23R-b
22/23R-b
23/23A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/23] Add support for MediaTek MT7620 SoC - v4

This series will add support for MediaTek MT7620 SoC with two reference boards and related drivers.

The MediaTek MT7620 is a 2x2 802.11n WiSoC integrating a MIPS 24KEc processor running at a maximum frequency of 620MHz. This chip can be found in many wireless routers.

This series add all basic drivers which are useful in u-boot, like usb, sdhc, ethernet, spi and serial. Booting from NAND is currently unsupported.

Thanks,
Weijie

v4 changes:
- Remove unused code in drivers/serial/serial.c
- Fix plat->cfg.f_max of mtk-sd driver

v3 changes:
- Use bool instead of int in for mt7620_spi_set_cs() mt7620_spi.c
- Add detail comments for mt7620_wdt_expire_now() in mt7620_wdt.c
- Remove duplicated dev field in mt7620-usb-phy.c
- Add fixes for mtk-sd (fix sclk cycles shift value, assign plat->cfg.f_max)

v2 changes:
- Remove non-DM code from mt7620-serial driver, and use of-platdata instead
- Fix dev_err related compilation error
- Add expire_now for mt7620-wdt
- Remove use of common.h

Weijie Gao (23):
mips: dts: switch to board defines for dtb for mtmips
mips: mtmips: move mt7628 related Kconfig into mt7628 subdirectory
mips: mtmips: select SYSRESET for mt7628 only
mips: mtmips: fix dram size detection in dram_init
mips: enable _machine_restart for spl
mips: mtmips: add support to initialize SDRAM
mips: mtmips: add support for MediaTek MT7620 SoC
mips: mtmips: add two reference boards for mt7620
configs: mtmips: refresh for mt7628 based boards
serial: add uart driver for MediaTek MT7620 SoC
clk: add clock driver for MediaTek MT7620 SoC
reset: mtmips: add reset controller support for MediaTek MT7620 SoC
pinctrl: mtmips: add support for MediaTek MT7620 SoC
watchdog: add watchdog driver for MediaTek MT7620 SoC
gpio: add GPIO controller driver for MediaTek MT7620 SoC
spi: add spi controller support for MediaTek MT7620 SoC
phy: add USB PHY driver for MediaTek MT7620 SoC
net: add ethernet driver for MediaTek MT7620 SoC
mmc: mtk-sd: fix sclk cycles shift value
mmc: mtk-sd: add pad control settings for MediaTek MT7620/MT76x8 SoCs
mmc: mtk-sd: assign plat->cfg.f_max with a correct value
reset: reset-mtmips: add DM_FLAG_PRE_RELOC flag
MAINTAINERS: add maintainer for MediaTek MIPS platform

 MAINTAINERS                                   |   23 +
 arch/mips/Kconfig                             |    1 -
 arch/mips/cpu/cpu.c                           |    2 +-
 arch/mips/dts/Makefile                        |    7 +-
 arch/mips/dts/mediatek,mt7620-mt7530-rfb.dts  |  100 ++
 arch/mips/dts/mediatek,mt7620-rfb.dts         |   97 ++
 arch/mips/dts/mt7620-u-boot.dtsi              |   14 +
 arch/mips/dts/mt7620.dtsi                     |  296 ++++
 arch/mips/mach-mtmips/Kconfig                 |   72 +-
 arch/mips/mach-mtmips/Makefile                |    1 +
 arch/mips/mach-mtmips/cpu.c                   |    5 +-
 arch/mips/mach-mtmips/ddr_init.c              |   59 +
 arch/mips/mach-mtmips/include/mach/ddr.h      |    4 +
 .../mach-mtmips/include/mach/mt7620-sysc.h    |   54 +
 arch/mips/mach-mtmips/mt7620/Kconfig          |   71 +
 arch/mips/mach-mtmips/mt7620/Makefile         |   10 +
 arch/mips/mach-mtmips/mt7620/dram.c           |  113 ++
 arch/mips/mach-mtmips/mt7620/init.c           |  193 +++
 arch/mips/mach-mtmips/mt7620/lowlevel_init.S  |   53 +
 arch/mips/mach-mtmips/mt7620/mt7620.h         |  103 ++
 arch/mips/mach-mtmips/mt7620/serial.c         |   36 +
 arch/mips/mach-mtmips/mt7620/sysc.c           |  172 +++
 arch/mips/mach-mtmips/mt7628/Kconfig          |   53 +
 board/mediatek/mt7620/Kconfig                 |   12 +
 board/mediatek/mt7620/MAINTAINERS             |    9 +
 board/mediatek/mt7620/Makefile                |    3 +
 board/mediatek/mt7620/board.c                 |    6 +
 .../gardena-smart-gateway-mt7688_defconfig    |    1 +
 configs/linkit-smart-7688_defconfig           |    1 +
 configs/mt7620_mt7530_rfb_defconfig           |   58 +
 configs/mt7620_rfb_defconfig                  |   76 +
 configs/mt7628_rfb_defconfig                  |    1 +
 configs/vocore2_defconfig                     |    1 +
 drivers/clk/mtmips/Makefile                   |    1 +
 drivers/clk/mtmips/clk-mt7620.c               |  159 +++
 drivers/gpio/Kconfig                          |    8 +
 drivers/gpio/Makefile                         |    1 +
 drivers/gpio/mt7620_gpio.c                    |  146 ++
 drivers/mmc/mtk-sd.c                          |  136 +-
 drivers/net/Kconfig                           |   12 +
 drivers/net/Makefile                          |    1 +
 drivers/net/mt7620-eth.c                      | 1222 +++++++++++++++++
 drivers/phy/Kconfig                           |    7 +
 drivers/phy/Makefile                          |    1 +
 drivers/phy/mt7620-usb-phy.c                  |  110 ++
 drivers/pinctrl/mtmips/Kconfig                |    9 +
 drivers/pinctrl/mtmips/Makefile               |    1 +
 drivers/pinctrl/mtmips/pinctrl-mt7620.c       |  200 +++
 drivers/reset/reset-mtmips.c                  |    1 +
 drivers/serial/Kconfig                        |   20 +
 drivers/serial/Makefile                       |    1 +
 drivers/serial/serial_mt7620.c                |  246 ++++
 drivers/spi/Kconfig                           |    7 +
 drivers/spi/Makefile                          |    1 +
 drivers/spi/mt7620_spi.c                      |  281 ++++
 drivers/watchdog/Kconfig                      |    7 +
 drivers/watchdog/Makefile                     |    1 +
 drivers/watchdog/mt7620_wdt.c                 |  142 ++
 include/configs/mt7620.h                      |   46 +
 include/dt-bindings/clock/mt7620-clk.h        |   40 +
 include/dt-bindings/reset/mt7620-reset.h      |   35 +
 61 files changed, 4477 insertions(+), 72 deletions(-)
 create mode 100644 arch/mips/dts/mediatek,mt7620-mt7530-rfb.dts
 create mode 100644 arch/mips/dts/mediatek,mt7620-rfb.dts
 create mode 100644 arch/mips/dts/mt7620-u-boot.dtsi
 create mode 100644 arch/mips/dts/mt7620.dtsi
 create mode 100644 arch/mips/mach-mtmips/include/mach/mt7620-sysc.h
 create mode 100644 arch/mips/mach-mtmips/mt7620/Kconfig
 create mode 100644 arch/mips/mach-mtmips/mt7620/Makefile
 create mode 100644 arch/mips/mach-mtmips/mt7620/dram.c
 create mode 100644 arch/mips/mach-mtmips/mt7620/init.c
 create mode 100644 arch/mips/mach-mtmips/mt7620/lowlevel_init.S
 create mode 100644 arch/mips/mach-mtmips/mt7620/mt7620.h
 create mode 100644 arch/mips/mach-mtmips/mt7620/serial.c
 create mode 100644 arch/mips/mach-mtmips/mt7620/sysc.c
 create mode 100644 arch/mips/mach-mtmips/mt7628/Kconfig
 create mode 100644 board/mediatek/mt7620/Kconfig
 create mode 100644 board/mediatek/mt7620/MAINTAINERS
 create mode 100644 board/mediatek/mt7620/Makefile
 create mode 100644 board/mediatek/mt7620/board.c
 create mode 100644 configs/mt7620_mt7530_rfb_defconfig
 create mode 100644 configs/mt7620_rfb_defconfig
 create mode 100644 drivers/clk/mtmips/clk-mt7620.c
 create mode 100644 drivers/gpio/mt7620_gpio.c
 create mode 100644 drivers/net/mt7620-eth.c
 create mode 100644 drivers/phy/mt7620-usb-phy.c
 create mode 100644 drivers/pinctrl/mtmips/pinctrl-mt7620.c
 create mode 100644 drivers/serial/serial_mt7620.c
 create mode 100644 drivers/spi/mt7620_spi.c
 create mode 100644 drivers/watchdog/mt7620_wdt.c
 create mode 100644 include/configs/mt7620.h
 create mode 100644 include/dt-bindings/clock/mt7620-clk.h
 create mode 100644 include/dt-bindings/reset/mt7620-reset.h
Signature · 1 line
2.17.1