Add support for MediaTek MT7981/MT7986 SoCs - v3
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest32 patches 4 repliesIn review
- v232 patches 27 repliesSuperseded
- v131 patches 68 repliesSuperseded
Changes in v3 from the cover letter
- Use regmap for cpu driver to access hwver registers
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/32 | arm: mediatek: add support for MediaTek MT7986 SoCarch/ arch/ arch/ +4 more | +477 | 0 replies | |
| 2/32 | arm: mediatek: add support for MediaTek MT7981 SoCarch/ arch/ arch/ +3 more | +389 | 0 replies | |
| 3/32 | board: mediatek: add MT7986 reference boardsarch/ arch/ arch/ +11 more | +1053 | 0 replies | |
| 4/32 | board: mediatek: add MT7981 reference boardsarch/ arch/ arch/ +8 more | +700 | 0 replies | |
| 5/32 | mmc: mediatek: add support for MediaTek MT7891/MT7986 SoCsdrivers/ | +53 | 0 replies | |
| 6/32 | net: mediatek: use a struct to cover variations of all SoCsdrivers/ drivers/ | +64 | 1 reply | |
| 7/32 | net: mediatek: stop using bitfileds for DMA descriptorsdrivers/ drivers/ | +80 | 1 reply | |
| 8/32 | net: mediatek: add support for PDMA v2drivers/ drivers/ | +86 | 0 replies | |
| 9/32 | net: mediatek: add support for MediaTek MT7981/MT7986drivers/ drivers/ | +32 | 0 replies | |
| 10/32 | serial: mtk: add support for using dynamic baud clock soucedrivers/ | +47 | 0 replies | |
| 11/32 | arm: dts: mt7622: force high-speed mode for uartarch/ | +1 | 0 replies | |
| 12/32 | pwm: mtk: add support for MediaTek MT7986 SoCdrivers/ | +6 | 0 replies | |
| 13/32 | pwm: mtk: add support for MediaTek MT7981 SoCdrivers/ | +32 | 0 replies | |
| 14/32 | timer: mtk: add support for MediaTek MT7981/MT7986 SoCsdrivers/ | +37 | 0 replies | |
| 15/32 | watchdog: mediatek: add support for MediaTek MT7986 SoCdrivers/ | +1 | 0 replies | |
| 16/32 | spi: add support for MediaTek spi-mem controllerdrivers/ drivers/ drivers/ | +710 | 0 replies | |
| 17/32 | i2c: add support for MediaTek I2C interfacedrivers/ drivers/ drivers/ | +832 | 0 replies | |
| 18/32 | arm: dts: mt7622: add i2c supportarch/ arch/ | +42 | 0 replies | |
| 19/32 | dt-bindings: pinctrl: mediatek: add a header for common pinconf parametersinclude/ | +41 | 0 replies | |
| 20/32 | pinctrl: mediatek: add pinctrl driver for MT7981 SoCdrivers/ drivers/ drivers/ | +1054 | 0 replies | |
| 21/32 | pinctrl: mediatek: add pinctrl driver for MT7986 SoCdrivers/ drivers/ drivers/ | +780 | 0 replies | |
| 22/32 | clk: mediatek: add CLK_BYPASS_XTAL flag to allow bypassing searching clock parent of xtal clockdrivers/ drivers/ | +9 | 0 replies | |
| 23/32 | clk: mediatek: add support to configure clock driver parentdrivers/ drivers/ | +48 | 0 replies | |
| 24/32 | clk: mediatek: add infrasys clock mux supportdrivers/ drivers/ | +74 | 0 replies | |
| 25/32 | clk: mediatek: add CLK_XTAL support for clock driverdrivers/ drivers/ | +6 | 0 replies | |
| 26/32 | clk: mediatek: add clock driver support for MediaTek MT7986 SoCdrivers/ drivers/ include/ | +922 | 0 replies | |
| 27/32 | clk: mediatek: add clock driver support for MediaTek MT7981 SoCdrivers/ drivers/ include/ | +951 | 0 replies | |
| 28/32 | cpu: add basic cpu driver for MediaTek ARM chipsdrivers/ drivers/ | +87 | 1 reply | |
| 29/32 | tools: mtk_image: split gfh header verification into a new functiontools/ | +21 | 0 replies | |
| 30/32 | tools: mtk_image: split the code of generating NAND header into a new filetools/ tools/ tools/ +2 more | +389 | 0 replies | |
| 31/32 | tools: mtk_image: add support for nand headers used by newer chipstools/ tools/ tools/ | +525 | 0 replies | |
| 32/32 | MAINTAINERS: update maintainer for MediaTek ARM platformMAINTAINERS | +6 | 0 replies |
Reviews trailers per patch
31 of 32 patches have a Reviewed-by or Acked-by.
| Patch | Simon Glass | Daniel Golle | Jaehoon Chung | Ramon Fried | Heiko Schocher | Sean Anderson |
|---|---|---|---|---|---|---|
| 1/32 | R-b | T-b | ||||
| 2/32 | R-b | |||||
| 3/32 | R-b | |||||
| 4/32 | R-b | |||||
| 5/32 | R-b | T-b | R-b | |||
| 6/32 | R-b | T-b | R-b | |||
| 7/32 | R-b | T-b | R-b | |||
| 8/32 | R-b | T-b | R-b | |||
| 9/32 | T-b | R-b | ||||
| 10/32 | R-b | T-b | ||||
| 11/32 | R-b | T-b | ||||
| 12/32 | R-b | |||||
| 13/32 | R-b | |||||
| 14/32 | R-b | T-b | ||||
| 15/32 | R-b | T-b | ||||
| 16/32 | R-b | T-b | ||||
| 17/32 | R-b | R-b | ||||
| 18/32 | R-b | |||||
| 19/32 | R-b | |||||
| 20/32 | R-b | |||||
| 21/32 | R-b | T-b | ||||
| 22/32 | R-b | T-b | ||||
| 23/32 | R-b | T-b | ||||
| 24/32 | R-b | T-b | ||||
| 25/32 | R-b | T-b | ||||
| 26/32 | R-b | T-b | R-b | |||
| 27/32 | R-b | R-b | ||||
| 28/32 | R-b | T-b | ||||
| 29/32 | R-b | T-b | ||||
| 30/32 | R-b | T-b | ||||
| 31/32 | T-b | |||||
| 32/32 | 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 6 reviewers.
Cover letter [PATCH v3 00/32] Add support for MediaTek MT7981/MT7986 SoCs - v3
This patch series add support for MediaTek MT7981/MT7986 SoCs with their 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 MT7986:
https://www.mediatek.com/products/home-networking/mediatek-filogic-830
Changes of v3:
- Use regmap for cpu driver to access hwver registers
Changes of v2:
- Add cpu driver for print_cpuinfo()
- Fix NULL pointer dereference in mtk_image
- Fix coding style
- Minor changes
Weijie Gao (32):
arm: mediatek: add support for MediaTek MT7986 SoC
arm: mediatek: add support for MediaTek MT7981 SoC
board: mediatek: add MT7986 reference boards
board: mediatek: add MT7981 reference boards
mmc: mediatek: add support for MediaTek MT7891/MT7986 SoCs
net: mediatek: use a struct to cover variations of all SoCs
net: mediatek: stop using bitfileds for DMA descriptors
net: mediatek: add support for PDMA v2
net: mediatek: add support for MediaTek MT7981/MT7986
serial: mtk: add support for using dynamic baud clock souce
arm: dts: mt7622: force high-speed mode for uart
pwm: mtk: add support for MediaTek MT7986 SoC
pwm: mtk: add support for MediaTek MT7981 SoC
timer: mtk: add support for MediaTek MT7981/MT7986 SoCs
watchdog: mediatek: add support for MediaTek MT7986 SoC
spi: add support for MediaTek spi-mem controller
i2c: add support for MediaTek I2C interface
arm: dts: mt7622: add i2c support
dt-bindings: pinctrl: mediatek: add a header for common pinconf
parameters
pinctrl: mediatek: add pinctrl driver for MT7981 SoC
pinctrl: mediatek: add pinctrl driver for MT7986 SoC
clk: mediatek: add CLK_BYPASS_XTAL flag to allow bypassing searching
clock parent of xtal clock
clk: mediatek: add support to configure clock driver parent
clk: mediatek: add infrasys clock mux support
clk: mediatek: add CLK_XTAL support for clock driver
clk: mediatek: add clock driver support for MediaTek MT7986 SoC
clk: mediatek: add clock driver support for MediaTek MT7981 SoC
cpu: add basic cpu driver for MediaTek ARM chips
tools: mtk_image: split gfh header verification into a new function
tools: mtk_image: split the code of generating NAND header into a new
file
tools: mtk_image: add support for nand headers used by newer chips
MAINTAINERS: update maintainer for MediaTek ARM platform
MAINTAINERS | 6 + arch/arm/dts/Makefile | 9 + arch/arm/dts/mt7622-rfb.dts | 18 + arch/arm/dts/mt7622.dtsi | 25 + arch/arm/dts/mt7981-emmc-rfb.dts | 139 +++ arch/arm/dts/mt7981-rfb.dts | 173 +++ arch/arm/dts/mt7981-sd-rfb.dts | 139 +++ arch/arm/dts/mt7981.dtsi | 295 +++++ arch/arm/dts/mt7986-u-boot.dtsi | 33 + arch/arm/dts/mt7986.dtsi | 350 ++++++ arch/arm/dts/mt7986a-emmc-rfb.dts | 16 + arch/arm/dts/mt7986a-rfb.dts | 218 ++++ arch/arm/dts/mt7986a-sd-rfb.dts | 177 +++ arch/arm/dts/mt7986b-emmc-rfb.dts | 16 + arch/arm/dts/mt7986b-rfb.dts | 204 ++++ arch/arm/dts/mt7986b-sd-rfb.dts | 173 +++ arch/arm/mach-mediatek/Kconfig | 23 + arch/arm/mach-mediatek/Makefile | 2 + arch/arm/mach-mediatek/mt7981/Makefile | 4 + arch/arm/mach-mediatek/mt7981/init.c | 45 + arch/arm/mach-mediatek/mt7981/lowlevel_init.S | 32 + arch/arm/mach-mediatek/mt7986/Makefile | 4 + arch/arm/mach-mediatek/mt7986/init.c | 45 + arch/arm/mach-mediatek/mt7986/lowlevel_init.S | 32 + board/mediatek/mt7981/MAINTAINERS | 10 + board/mediatek/mt7981/Makefile | 3 + board/mediatek/mt7981/mt7981_rfb.c | 10 + board/mediatek/mt7986/MAINTAINERS | 10 + board/mediatek/mt7986/Makefile | 3 + board/mediatek/mt7986/mt7986_rfb.c | 10 + configs/mt7981_emmc_rfb_defconfig | 64 + configs/mt7981_rfb_defconfig | 69 ++ configs/mt7981_sd_rfb_defconfig | 64 + configs/mt7986_rfb_defconfig | 66 ++ configs/mt7986a_bpir3_emmc_defconfig | 64 + configs/mt7986a_bpir3_sd_defconfig | 64 + drivers/clk/mediatek/Makefile | 2 + drivers/clk/mediatek/clk-mt7981.c | 683 +++++++++++ drivers/clk/mediatek/clk-mt7986.c | 672 +++++++++++ drivers/clk/mediatek/clk-mtk.c | 156 ++- drivers/clk/mediatek/clk-mtk.h | 13 +- drivers/cpu/Makefile | 1 + drivers/cpu/mtk_cpu.c | 86 ++ drivers/i2c/Kconfig | 9 + drivers/i2c/Makefile | 1 + drivers/i2c/mtk_i2c.c | 822 +++++++++++++ drivers/mmc/mtk-sd.c | 68 +- drivers/net/mtk_eth.c | 261 ++-- drivers/net/mtk_eth.h | 101 +- drivers/pinctrl/mediatek/Kconfig | 8 + drivers/pinctrl/mediatek/Makefile | 2 + drivers/pinctrl/mediatek/pinctrl-mt7981.c | 1049 +++++++++++++++++ drivers/pinctrl/mediatek/pinctrl-mt7986.c | 775 ++++++++++++ drivers/pwm/pwm-mtk.c | 40 +- drivers/serial/serial_mtk.c | 80 +- drivers/spi/Kconfig | 8 + drivers/spi/Makefile | 1 + drivers/spi/mtk_spim.c | 701 +++++++++++ drivers/timer/mtk_timer.c | 59 +- drivers/watchdog/mtk_wdt.c | 1 + include/configs/mt7981.h | 26 + include/configs/mt7986.h | 26 + include/dt-bindings/clock/mt7981-clk.h | 267 +++++ include/dt-bindings/clock/mt7986-clk.h | 249 ++++ include/dt-bindings/pinctrl/mt65xx.h | 41 + tools/Makefile | 1 + tools/mtk_image.c | 377 ++---- tools/mtk_image.h | 25 - tools/mtk_nand_headers.c | 668 +++++++++++ tools/mtk_nand_headers.h | 165 +++ 70 files changed, 9511 insertions(+), 548 deletions(-) create mode 100644 arch/arm/dts/mt7981-emmc-rfb.dts create mode 100644 arch/arm/dts/mt7981-rfb.dts create mode 100644 arch/arm/dts/mt7981-sd-rfb.dts create mode 100644 arch/arm/dts/mt7981.dtsi create mode 100644 arch/arm/dts/mt7986-u-boot.dtsi create mode 100644 arch/arm/dts/mt7986.dtsi create mode 100644 arch/arm/dts/mt7986a-emmc-rfb.dts create mode 100644 arch/arm/dts/mt7986a-rfb.dts create mode 100644 arch/arm/dts/mt7986a-sd-rfb.dts create mode 100644 arch/arm/dts/mt7986b-emmc-rfb.dts create mode 100644 arch/arm/dts/mt7986b-rfb.dts create mode 100644 arch/arm/dts/mt7986b-sd-rfb.dts create mode 100644 arch/arm/mach-mediatek/mt7981/Makefile create mode 100644 arch/arm/mach-mediatek/mt7981/init.c create mode 100644 arch/arm/mach-mediatek/mt7981/lowlevel_init.S create mode 100644 arch/arm/mach-mediatek/mt7986/Makefile create mode 100644 arch/arm/mach-mediatek/mt7986/init.c create mode 100644 arch/arm/mach-mediatek/mt7986/lowlevel_init.S create mode 100644 board/mediatek/mt7981/MAINTAINERS create mode 100644 board/mediatek/mt7981/Makefile create mode 100644 board/mediatek/mt7981/mt7981_rfb.c create mode 100644 board/mediatek/mt7986/MAINTAINERS create mode 100644 board/mediatek/mt7986/Makefile create mode 100644 board/mediatek/mt7986/mt7986_rfb.c create mode 100644 configs/mt7981_emmc_rfb_defconfig create mode 100644 configs/mt7981_rfb_defconfig create mode 100644 configs/mt7981_sd_rfb_defconfig create mode 100644 configs/mt7986_rfb_defconfig create mode 100644 configs/mt7986a_bpir3_emmc_defconfig create mode 100644 configs/mt7986a_bpir3_sd_defconfig create mode 100644 drivers/clk/mediatek/clk-mt7981.c create mode 100644 drivers/clk/mediatek/clk-mt7986.c create mode 100644 drivers/cpu/mtk_cpu.c create mode 100644 drivers/i2c/mtk_i2c.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt7981.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt7986.c create mode 100644 drivers/spi/mtk_spim.c create mode 100644 include/configs/mt7981.h create mode 100644 include/configs/mt7986.h create mode 100644 include/dt-bindings/clock/mt7981-clk.h create mode 100644 include/dt-bindings/clock/mt7986-clk.h create mode 100644 include/dt-bindings/pinctrl/mt65xx.h create mode 100644 tools/mtk_nand_headers.c create mode 100644 tools/mtk_nand_headers.h
Signature · 1 line
2.17.1