Skip to content

Add support for MediaTek MT7621 SoC - v6

Weijie Gao u-boot 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest25 patches 5 repliesIn review
  2. v525 patches 15 repliesSuperseded
  3. v425 patches 8 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v315 patches13 repliesSuperseded
v214 patches8 repliesSuperseded
v114 patches5 repliesSuperseded

Changes in v6 from the cover letter

- Use FIELD_GET/FIELD_PREP for register fields instead of shift opertations
- Rename fixed clock node name in mt7621.dtsi
- Panic if dram binary blob is wrong in spl
- Remove redundant nop's if noreorder is not used
- Use execution_hazard_barrier() in tpl

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25mips: add asm/mipsmtregs.h for MIPS multi-threadingarch/mips/include/asm/mipsmtregs.h+142 -00 replies
2/25mips: add more definitions for asm/cm.harch/mips/include/asm/cm.h+67 -00 replies
3/25mips: add __image_copy_len for SPL linker scriptarch/mips/cpu/u-boot-spl.lds+3 -00 replies
4/25mips: add support for noncached_alloc()arch/mips/include/asm/system.h arch/mips/lib/cache.c+63 -00 replies
5/25mips: mtmips: add support for MediaTek MT7621 SoCarch/mips/dts/mt7621-u-boot.dtsi arch/mips/dts/mt7621.dtsi arch/mips/mach-mtmips/Kconfig +22 more+2704 -60 replies
6/25mips: mtmips: add two reference boards for mt7621arch/mips/dts/Makefile arch/mips/dts/mediatek,mt7621-nand-rfb.dts arch/mips/dts/mediatek,mt7621-rfb.dts +6 more+353 -00 replies
7/25doc: mediatek: add documentation for mt7621 reference boardsdoc/board/mediatek/mt7621.rst+48 -00 replies
8/25clk: mtmips: add clock driver for MediaTek MT7621 SoCdrivers/clk/mtmips/Makefile drivers/clk/mtmips/clk-mt7621.c include/dt-bindings/clock/mt7621-clk.h+335 -00 replies
9/25reset: mtmips: add reset controller support for MediaTek MT7621 SoCinclude/dt-bindings/reset/mt7621-reset.h+38 -00 replies
10/25pinctrl: mtmips: add support for MediaTek MT7621 SoCdrivers/pinctrl/mtmips/Kconfig drivers/pinctrl/mtmips/Makefile drivers/pinctrl/mtmips/pinctrl-mt7621.c +2 more+330 -20 replies
11/25usb: xhci-mtk: add support for MediaTek MT7621 SoCdrivers/usb/host/Kconfig+1 -10 replies
12/25phy: mtk-tphy: add support for MediaTek MT7621 SoCdrivers/phy/Kconfig+1 -10 replies
13/25spi: add support for MediaTek MT7621 SoCdrivers/spi/Kconfig+1 -10 replies
14/25gpio: add support for MediaTek MT7621 SoCdrivers/gpio/Kconfig+1 -10 replies
15/25watchdog: add support for MediaTek MT7621 SoCdrivers/watchdog/Kconfig+1 -10 replies
16/25mmc: mediatek: add support for MediaTek MT7621 SoCdrivers/mmc/mtk-sd.c+13 -00 replies
17/25net: mediatek: remap iobase addressdrivers/net/mtk_eth.c+1 -10 replies
18/25net: mediatek: use regmap api to modify ethsys registersdrivers/net/mtk_eth.c+11 -110 replies
19/25net: mediatek: add support for MediaTek MT7621 SoCdrivers/net/mtk_eth.c+15 -60 replies
20/25nand: raw: add support for MediaTek MT7621 SoCdrivers/mtd/nand/raw/Kconfig drivers/mtd/nand/raw/Makefile drivers/mtd/nand/raw/mt7621_nand.c +2 more+1488 -20 replies
21/25spl: allow using nand base without standard nand drivercommon/spl/Kconfig+1 -10 replies
22/25spl: spl_legacy: fix the use of SPL_COPY_PAYLOAD_ONLYcommon/spl/spl_legacy.c+19 -20 replies
23/25spl: nand: support loading legacy image with payload compressedcommon/spl/spl_nand.c+27 -00 replies
24/25tools: mtk_image: add support for MT7621 NAND imagestools/mtk_image.c tools/mtk_image.h+206 -00 replies
25/25MAINTAINERS: update maintainer for MediaTek MIPS platformMAINTAINERS+8 -00 replies

Reviews trailers per patch

18 of 25 patches have a Reviewed-by or Acked-by.

PatchDaniel SchwierzeckSean AndersonStefan RoeseJaehoon ChungRamon Fried
1/25R-b
2/25R-b
3/25R-b
4/25R-b
5/25R-b
6/25R-b R-b
7/25R-b
8/25R-b
9/25
10/25R-b
11/25
12/25
13/25
14/25R-b
15/25R-b
16/25R-b
17/25R-b
18/25R-b
19/25R-b
20/25
21/25
22/25R-b
23/25R-b
24/25R-b
25/25

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

Read the v6 thread

Cover letter [PATCH v6 00/25] Add support for MediaTek MT7621 SoC - v6

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

The MediaTek MT7621 is a network processor integrating a dual-core dual-threaded MIPS 1004Kc processor running at a normal frequency of 880MHz. This chip can be found in many wireless routers.

This series add all basic drivers which are useful in u-boot, like usb, sdxc, ethernet, spi, nand and serial.

Building the u-boot requires external binary blob which is described in doc/board/mediatek/mt7621.rst

Thanks,
Weijie

v6 changes:
- Use FIELD_GET/FIELD_PREP for register fields instead of shift opertations
- Rename fixed clock node name in mt7621.dtsi
- Panic if dram binary blob is wrong in spl
- Remove redundant nop's if noreorder is not used
- Use execution_hazard_barrier() in tpl

v5 changes:
- Adjust mt7621.dtsi, clkctrl node moved to sysc, pinctrl default states moved to board dts files
- Modify clk driver due to its node changed in mt7621.dtsi
- Minor fixes

v4 changes:
- Add full support for booting from flash

v3 changes:
- Rewrite clk driver to follow definitions from upstream kernel
- Implement noncached_alloc() for MIPS platform
- Update register remap for mtk-eth driver needed by mt7621

v2 changes:
- Add a kconfig for max supported ram size
- Remove network configs from default config file
- Add config file for mt7621-rfb boards

Weijie Gao (25):
mips: add asm/mipsmtregs.h for MIPS multi-threading
mips: add more definitions for asm/cm.h
mips: add __image_copy_len for SPL linker script
mips: add support for noncached_alloc()
mips: mtmips: add support for MediaTek MT7621 SoC
mips: mtmips: add two reference boards for mt7621
doc: mediatek: add documentation for mt7621 reference boards
clk: mtmips: add clock driver for MediaTek MT7621 SoC
reset: mtmips: add reset controller support for MediaTek MT7621 SoC
pinctrl: mtmips: add support for MediaTek MT7621 SoC
usb: xhci-mtk: add support for MediaTek MT7621 SoC
phy: mtk-tphy: add support for MediaTek MT7621 SoC
spi: add support for MediaTek MT7621 SoC
gpio: add support for MediaTek MT7621 SoC
watchdog: add support for MediaTek MT7621 SoC
mmc: mediatek: add support for MediaTek MT7621 SoC
net: mediatek: remap iobase address
net: mediatek: use regmap api to modify ethsys registers
net: mediatek: add support for MediaTek MT7621 SoC
nand: raw: add support for MediaTek MT7621 SoC
spl: allow using nand base without standard nand driver
spl: spl_legacy: fix the use of SPL_COPY_PAYLOAD_ONLY
spl: nand: support loading legacy image with payload compressed
tools: mtk_image: add support for MT7621 NAND images
MAINTAINERS: update maintainer for MediaTek MIPS platform

 MAINTAINERS                                   |    8 +
 arch/mips/cpu/u-boot-spl.lds                  |    3 +
 arch/mips/dts/Makefile                        |    2 +
 arch/mips/dts/mediatek,mt7621-nand-rfb.dts    |   67 +
 arch/mips/dts/mediatek,mt7621-rfb.dts         |   82 ++
 arch/mips/dts/mt7621-u-boot.dtsi              |  111 ++
 arch/mips/dts/mt7621.dtsi                     |  349 +++++
 arch/mips/include/asm/cm.h                    |   67 +
 arch/mips/include/asm/mipsmtregs.h            |  142 ++
 arch/mips/include/asm/system.h                |   20 +
 arch/mips/lib/cache.c                         |   43 +
 arch/mips/mach-mtmips/Kconfig                 |   49 +-
 arch/mips/mach-mtmips/Makefile                |    4 +
 arch/mips/mach-mtmips/cpu.c                   |    2 +-
 arch/mips/mach-mtmips/mt7621/Kconfig          |  115 ++
 arch/mips/mach-mtmips/mt7621/Makefile         |   14 +
 arch/mips/mach-mtmips/mt7621/init.c           |  246 ++++
 arch/mips/mach-mtmips/mt7621/mt7621.h         |  229 ++++
 arch/mips/mach-mtmips/mt7621/serial.c         |   23 +
 arch/mips/mach-mtmips/mt7621/spl/Makefile     |    9 +
 arch/mips/mach-mtmips/mt7621/spl/cps.c        |  153 +++
 arch/mips/mach-mtmips/mt7621/spl/dram.c       |  153 +++
 arch/mips/mach-mtmips/mt7621/spl/dram.h       |   39 +
 arch/mips/mach-mtmips/mt7621/spl/launch.c     |  100 ++
 arch/mips/mach-mtmips/mt7621/spl/launch.h     |   52 +
 arch/mips/mach-mtmips/mt7621/spl/launch_ll.S  |  339 +++++
 arch/mips/mach-mtmips/mt7621/spl/serial.c     |   24 +
 arch/mips/mach-mtmips/mt7621/spl/spl.c        |   95 ++
 arch/mips/mach-mtmips/mt7621/spl/start.S      |  226 ++++
 arch/mips/mach-mtmips/mt7621/sram_init.S      |   22 +
 arch/mips/mach-mtmips/mt7621/tpl/Makefile     |    4 +
 arch/mips/mach-mtmips/mt7621/tpl/start.S      |  161 +++
 arch/mips/mach-mtmips/mt7621/tpl/tpl.c        |  144 ++
 board/mediatek/mt7621/MAINTAINERS             |    8 +
 board/mediatek/mt7621/Makefile                |    3 +
 board/mediatek/mt7621/board.c                 |    6 +
 common/spl/Kconfig                            |    2 +-
 common/spl/spl_legacy.c                       |   21 +-
 common/spl/spl_nand.c                         |   27 +
 configs/mt7621_nand_rfb_defconfig             |   83 ++
 configs/mt7621_rfb_defconfig                  |   82 ++
 doc/board/mediatek/mt7621.rst                 |   48 +
 drivers/clk/mtmips/Makefile                   |    1 +
 drivers/clk/mtmips/clk-mt7621.c               |  288 ++++
 drivers/gpio/Kconfig                          |    2 +-
 drivers/mmc/mtk-sd.c                          |   13 +
 drivers/mtd/nand/raw/Kconfig                  |   17 +-
 drivers/mtd/nand/raw/Makefile                 |    2 +
 drivers/mtd/nand/raw/mt7621_nand.c            | 1205 +++++++++++++++++
 drivers/mtd/nand/raw/mt7621_nand.h            |   29 +
 drivers/mtd/nand/raw/mt7621_nand_spl.c        |  237 ++++
 drivers/net/mtk_eth.c                         |   45 +-
 drivers/phy/Kconfig                           |    2 +-
 drivers/pinctrl/mtmips/Kconfig                |    9 +
 drivers/pinctrl/mtmips/Makefile               |    1 +
 drivers/pinctrl/mtmips/pinctrl-mt7621.c       |  306 +++++
 .../pinctrl/mtmips/pinctrl-mtmips-common.c    |    4 +-
 .../pinctrl/mtmips/pinctrl-mtmips-common.h    |   12 +
 drivers/spi/Kconfig                           |    2 +-
 drivers/usb/host/Kconfig                      |    2 +-
 drivers/watchdog/Kconfig                      |    2 +-
 include/configs/mt7621.h                      |   67 +
 include/dt-bindings/clock/mt7621-clk.h        |   46 +
 include/dt-bindings/reset/mt7621-reset.h      |   38 +
 tools/mtk_image.c                             |  182 +++
 tools/mtk_image.h                             |   24 +
 66 files changed, 5877 insertions(+), 36 deletions(-)
 create mode 100644 arch/mips/dts/mediatek,mt7621-nand-rfb.dts
 create mode 100644 arch/mips/dts/mediatek,mt7621-rfb.dts
 create mode 100644 arch/mips/dts/mt7621-u-boot.dtsi
 create mode 100644 arch/mips/dts/mt7621.dtsi
 create mode 100644 arch/mips/include/asm/mipsmtregs.h
 create mode 100644 arch/mips/mach-mtmips/mt7621/Kconfig
 create mode 100644 arch/mips/mach-mtmips/mt7621/Makefile
 create mode 100644 arch/mips/mach-mtmips/mt7621/init.c
 create mode 100644 arch/mips/mach-mtmips/mt7621/mt7621.h
 create mode 100644 arch/mips/mach-mtmips/mt7621/serial.c
 create mode 100644 arch/mips/mach-mtmips/mt7621/spl/Makefile
 create mode 100644 arch/mips/mach-mtmips/mt7621/spl/cps.c
 create mode 100644 arch/mips/mach-mtmips/mt7621/spl/dram.c
 create mode 100644 arch/mips/mach-mtmips/mt7621/spl/dram.h
 create mode 100644 arch/mips/mach-mtmips/mt7621/spl/launch.c
 create mode 100644 arch/mips/mach-mtmips/mt7621/spl/launch.h
 create mode 100644 arch/mips/mach-mtmips/mt7621/spl/launch_ll.S
 create mode 100644 arch/mips/mach-mtmips/mt7621/spl/serial.c
 create mode 100644 arch/mips/mach-mtmips/mt7621/spl/spl.c
 create mode 100644 arch/mips/mach-mtmips/mt7621/spl/start.S
 create mode 100644 arch/mips/mach-mtmips/mt7621/sram_init.S
 create mode 100644 arch/mips/mach-mtmips/mt7621/tpl/Makefile
 create mode 100644 arch/mips/mach-mtmips/mt7621/tpl/start.S
 create mode 100644 arch/mips/mach-mtmips/mt7621/tpl/tpl.c
 create mode 100644 board/mediatek/mt7621/MAINTAINERS
 create mode 100644 board/mediatek/mt7621/Makefile
 create mode 100644 board/mediatek/mt7621/board.c
 create mode 100644 configs/mt7621_nand_rfb_defconfig
 create mode 100644 configs/mt7621_rfb_defconfig
 create mode 100644 doc/board/mediatek/mt7621.rst
 create mode 100644 drivers/clk/mtmips/clk-mt7621.c
 create mode 100644 drivers/mtd/nand/raw/mt7621_nand.c
 create mode 100644 drivers/mtd/nand/raw/mt7621_nand.h
 create mode 100644 drivers/mtd/nand/raw/mt7621_nand_spl.c
 create mode 100644 drivers/pinctrl/mtmips/pinctrl-mt7621.c
 create mode 100644 include/configs/mt7621.h
 create mode 100644 include/dt-bindings/clock/mt7621-clk.h
 create mode 100644 include/dt-bindings/reset/mt7621-reset.h
Signature · 1 line
2.17.1