[U-Boot] [PATCH v3 01/28] serial: serial_mtk: enable FIFO and disable flow control

2019-09-25 Thread Weijie Gao
This patch adds codes to enable FIFO and disable flow control taken from ns16550 driver. Signed-off-by: Weijie Gao --- drivers/serial/serial_mtk.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/serial/serial_mtk.c b/drivers/serial/serial_mtk.c index

[U-Boot] [PATCH v3 06/28] dts: mtmips: add clock node for mt7628

2019-09-25 Thread Weijie Gao
This patch adds clkctrl node for mt7628 and adds clocks property for some node. Signed-off-by: Weijie Gao --- v2: Changed clkgate node to clkctrl node. Replaced clock-frequency with <&clkctrl CLK_UARTx> for uarts and spi. --- arch/mips/dts/mt7628a.dtsi | 21 +--

[U-Boot] [PATCH v3 00/28] Add and update drivers for MediaTek MT76x8 SoCs

2019-09-25 Thread Weijie Gao
. - Make mt76x8-usb-phy depends on SOC_MT7628. - Simplify logic of card-detection in mtk-sd.c. Weijie Gao (28): serial: serial_mtk: enable FIFO and disable flow control serial: serial_mtk: add non-DM version for SPL dts: mtmips: move uart property clock-frequency into mt7628an.dtsi dts:

[U-Boot] [PATCH v3 03/28] dts: mtmips: move uart property clock-frequency into mt7628an.dtsi

2019-09-25 Thread Weijie Gao
The UART of MT7628 has fixed 40MHz input clock so there is no need to put clock-frequency in every dts files. Just put it into the common dtsi file. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- arch/mips/dts/gardena-smart-gateway-mt7688.dts | 1 - arch/mips/dts/linkit-smart-7688.dts

[U-Boot] [PATCH v3 07/28] spi: mt7621-spi: use clock frequency from clk driver

2019-09-25 Thread Weijie Gao
This patch lets the spi driver to use clock provided by the clk driver since the new clk-mt7628 driver provides accurate sys clock frequency. Signed-off-by: Weijie Gao --- v2: newly added --- drivers/spi/mt7621_spi.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions

[U-Boot] [PATCH v3 05/28] clk: add clock driver for MediaTek MT76x8 platform

2019-09-25 Thread Weijie Gao
This patch adds a clock driver for MediaTek MT7628/7688 SoC. It provides clock gate control as well as getting clock frequency for CPU/SYS/XTAL and some peripherals. Signed-off-by: Weijie Gao --- v2: Changed to a more generic clock driver rather than a gateing only driver. Now supports

[U-Boot] [PATCH v3 08/28] spi: mt7621-spi: remove data cache and rewrite its xfer function

2019-09-25 Thread Weijie Gao
and DIDO registers is OPADDR has a reversed byte order. With this patch, any amount of data can be read/written in a single xfer function call. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- drivers/spi/mt7621_spi.c | 197 ++- 1 file changed, 91

[U-Boot] [PATCH v3 02/28] serial: serial_mtk: add non-DM version for SPL

2019-09-25 Thread Weijie Gao
This patch adds non-DM version for mtk hsuart driver and makes it compatible with ns16550a driver in configuration. This is needed in SPL with CONFIG_SPL_DM disabled for reducing size. Signed-off-by: Weijie Gao --- drivers/serial/serial.c | 2 + drivers/serial/serial_mtk.c | 202

[U-Boot] [PATCH v3 12/28] dts: mtmips: add default pinctrl for uart nodes

2019-09-25 Thread Weijie Gao
This patch adds default pinctrl for uart nodes Signed-off-by: Weijie Gao --- arch/mips/dts/mt7628a.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index 8afea1865d..44fbbd5b25 100644 --- a/arch/mips/dts/mt7628a.dtsi +++ b

[U-Boot] [PATCH v3 10/28] pinctrl: add support for MediaTek MT7628

2019-09-25 Thread Weijie Gao
This patch adds pinctrl support for mt7628, with a file for common pinmux functions and a file for mt7628 which has additional support for pinconf. Signed-off-by: Weijie Gao --- v3: Add const qualifier for variables with type struct mtmips_pmx_func. --- drivers/pinctrl/Kconfig

[U-Boot] [PATCH v3 14/28] dts: mtmips: update reset controller node for mt7628

2019-09-25 Thread Weijie Gao
This patch updates reset controller node for mt7628 Signed-off-by: Weijie Gao --- arch/mips/dts/mt7628a.dtsi | 36 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index 44fbbd5b25

[U-Boot] [PATCH v3 19/28] net: mt7628-eth: add support to isolate LAN/WAN ports

2019-09-25 Thread Weijie Gao
This patch add support for mt7628-eth to isolate LAN/WAN ports mainly to prevent LAN devices from getting IP address from WAN. Signed-off-by: Weijie Gao --- drivers/net/mt7628-eth.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/net/mt7628-eth.c b

[U-Boot] [PATCH v3 11/28] dts: mtmips: add pinctrl node for mt7628

2019-09-25 Thread Weijie Gao
This patch adds pinctrl node with default pin state for mt7628an.dtsi. Signed-off-by: Weijie Gao --- arch/mips/dts/mt7628a.dtsi | 150 + 1 file changed, 150 insertions(+) diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index 6d2142f429

[U-Boot] [PATCH v3 18/28] net: mt7628-eth: free rx descriptor on receiving failure

2019-09-25 Thread Weijie Gao
mt7628_eth_free_pkt() after received an invalid packet length. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- drivers/net/mt7628-eth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/mt7628-eth.c b/drivers/net/mt7628-eth.c index abfdc75ad8..d77da26d50 100644 --- a/drivers/net

[U-Boot] [PATCH v3 13/28] reset: add reset controller driver for MediaTek MIPS platform

2019-09-25 Thread Weijie Gao
This patch adds reset controller driver for MediaTek MIPS platform and header file for mt7628. Signed-off-by: Weijie Gao --- drivers/reset/Kconfig| 7 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-mtmips.c | 82

[U-Boot] [PATCH v3 16/28] net: mt7628-eth: remove hardcoded gpio settings and regmap-based phy reset

2019-09-25 Thread Weijie Gao
This patch removes hardcoded gpio settings as they have been replaced by pinctrl in dts, and also replaces regmap-based phy reset with a more generic reset controller. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- drivers/net/mt7628-eth.c | 45

[U-Boot] [PATCH v3 26/28] mips: mtmips: change baudrate table for all boards

2019-09-25 Thread Weijie Gao
This patch changes baudrate table for all boards preparing for using mtk highspeed uart driver. Signed-off-by: Weijie Gao --- v2: Removed configs in defconfig files. --- include/configs/gardena-smart-gateway-mt7688.h | 2 +- include/configs/linkit-smart-7688.h| 2 +- 2 files changed

[U-Boot] [PATCH v3 25/28] dts: mtmips: add default pinctrl to eth nodes for all boards

2019-09-25 Thread Weijie Gao
This patch adds default eth pinctrl for all boards. There are two pinctrl nodes used for two scenarios: ephy_iot_mode- for IOT boards which have only one port (PHY0) ephy_router_mode - For routers which have more than one ports Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- arch

[U-Boot] [PATCH v3 22/28] mmc: mtk-sd: add a dts property cd-active-high for builtin-cd mode

2019-09-25 Thread Weijie Gao
This patch adds a dts property cd-active-high for builtin-cd mode to make it configurable instead of using hardcoded active-low. Signed-off-by: Weijie Gao --- v3: Simplify logic of card-detection. --- drivers/mmc/mtk-sd.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a

[U-Boot] [PATCH v3 09/28] spi: mt7621-spi: restore default register value after each xfer

2019-09-25 Thread Weijie Gao
e the original register fields after cs deactivated. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- drivers/spi/mt7621_spi.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/drivers/spi/mt7621_spi.c b/drivers/spi/mt7621_spi.c index 71625

[U-Boot] [PATCH v3 17/28] net: mt7628-eth: make phy link up detection optional via DT

2019-09-25 Thread Weijie Gao
= explicitly into the eth node. By default the driver is switch mode with all 5 phy ports working without link detection. Signed-off-by: Weijie Gao --- v2: Make link detection optional rather than removing directly. --- drivers/net/Kconfig | 1 + drivers/net/mt7628-eth.c | 59

[U-Boot] [PATCH v3 15/28] phy: mt76x8-usb-phy: add slew rate calibration and remove non-mt7628 part

2019-09-25 Thread Weijie Gao
This patch adds slew rate calibration for mt76x8-usb-phy, removes code which belongs to mt7620, and gets rid of using syscon and regmap by using clock driver and reset controller. Signed-off-by: Weijie Gao --- v3: depends on SOC_MT7628. --- drivers/phy/Kconfig | 1 + drivers/phy

[U-Boot] [PATCH v3 24/28] dts: mtmips: add default pinctrl for gardena-smart-gateway-mt7688

2019-09-25 Thread Weijie Gao
This adds default pinctrl (dual SPI chip select) for gardena smart gateway Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- arch/mips/dts/gardena-smart-gateway-mt7688.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/dts/gardena-smart-gateway-mt7688.dts b/arch/mips

[U-Boot] [PATCH v3 20/28] dts: mtmips: enable eth port0 led and link poll functions for all boards

2019-09-25 Thread Weijie Gao
This patch adds default p0led status and phy0 link polling for all boards. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- v2: Add phy link detection for all boards. --- arch/mips/dts/gardena-smart-gateway-mt7688.dts | 13 + arch/mips/dts/linkit-smart-7688.dts

[U-Boot] [PATCH v3 23/28] dts: mtmips: add mmc related nodes for mt7628an.dtsi

2019-09-25 Thread Weijie Gao
This patch adds mmc related nodes for mt7628an.dtsi Signed-off-by: Weijie Gao --- arch/mips/dts/mt7628a.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/mips/dts/mt7628a.dtsi b/arch/mips/dts/mt7628a.dtsi index 5fd83c1623..76a80c8952 100644 --- a/arch/mips

[U-Boot] [PATCH v3 21/28] mmc: mtk-sd: add support for MediaTek MT7620/MT7628 SoCs

2019-09-25 Thread Weijie Gao
This patch adds mmc support for MediaTek MT7620/MT7628 SoCs. Signed-off-by: Weijie Gao --- v2: Removed unnecessary braces in Kconfig --- drivers/mmc/Kconfig | 2 +- drivers/mmc/mtk-sd.c | 23 --- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/drivers/mmc

[U-Boot] [PATCH v3 27/28] mips: mtmips: select essential drivers in Kconfig

2019-09-25 Thread Weijie Gao
Some drivers (clk, pinctrl, reset, ...) are necessary for reset of the system, they should be always selected. Signed-off-by: Weijie Gao --- v2: newly added --- arch/mips/Kconfig | 6 ++ arch/mips/mach-mtmips/Kconfig | 2 ++ 2 files changed, 8 insertions(+) diff --git a/arch

[U-Boot] [PATCH v3 28/28] configs: mtmips: remove configs which are selected in Kconfig or useless

2019-09-25 Thread Weijie Gao
Some configs are selected in Kconfig and is no longer needed in the defconfig files. Some configs (power domain, ram) are never used. Signed-off-by: Weijie Gao --- v2: newly added --- configs/gardena-smart-gateway-mt7688-ram_defconfig | 7 --- configs/gardena-smart-gateway-mt7688_defconfig

[PATCH] mtd: nand: raw: mt7621-nand: allow writing ecc region in raw mode

2024-03-12 Thread Weijie Gao
Allow writing ecc parity region in raw mode. This makes sure the nand write.raw command can write the flash data as-is. Change-Id: Ibed3bdf13c9cf81e54041c5ac7a78192b97dcedc Signed-off-by: Weijie Gao CR-Id: WCNCR00180092 --- drivers/mtd/nand/raw/mt7621_nand.c | 6 +++--- 1 file changed, 3

[PATCH 00/14] Add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
. This series add all basic drivers which are useful in u-boot, like usb, sdxc, ethernet, spi, nand and serial. Currently this patch series only supports building the ram-bootable image as it needs the preloader from MediaTek SDK. Thanks, Weijie Weijie Gao (14): mips: mtmips: add support for

[PATCH 01/14] mips: mtmips: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
chip: https://www.mediatek.com/products/homenetworking/mt7621 Signed-off-by: Weijie Gao --- arch/mips/dts/mt7621.dtsi | 372 ++ arch/mips/mach-mtmips/Kconfig | 29 +- arch/mips/mach-mtmips/Makefile| 5 + arch/mips/mach-mtmips/cpu.c

[PATCH 02/14] mips: mtmips: add two reference boards for mt7621

2021-11-04 Thread Weijie Gao
: Weijie Gao --- arch/mips/dts/Makefile | 2 + arch/mips/dts/mediatek,mt7621-nand-rfb.dts | 52 +++ arch/mips/dts/mediatek,mt7621-rfb.dts | 68 arch/mips/mach-mtmips/mt7621/Kconfig | 20 ++ board/mediatek/mt7621/MAINTAINERS

[PATCH 03/14] clk: mtmips: add clock driver for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds a clock driver for MediaTek MT7621 SoC. This driver provides clock gate control as well as getting clock frequency for CPU/SYS/XTAL and some peripherals. Signed-off-by: Weijie Gao --- drivers/clk/mtmips/Makefile| 1 + drivers/clk/mtmips/clk-mt7621.c| 260

[PATCH 04/14] reset: mtmips: add reset controller support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds reset controller bits definition header file for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- include/dt-bindings/reset/mt7621-reset.h | 38 1 file changed, 38 insertions(+) create mode 100644 include/dt-bindings/reset/mt7621-reset.h diff --git a

[PATCH 05/14] pinctrl: mtmips: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds pinctrl support for MediaTek MT7621 SoC. The MT7621 SoC supports pinconf, but it is not the same as mt7628. Signed-off-by: Weijie Gao --- drivers/pinctrl/mtmips/Kconfig| 9 + drivers/pinctrl/mtmips/Makefile | 1 + drivers/pinctrl/mtmips/pinctrl

[PATCH 06/14] nand: raw: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds NAND flash controller driver for MediaTek MT7621 SoC. The NAND flash controller of MT7621 supports only SLC NAND flashes. It supports 4~12 bits correction with maximum 4KB page size. Signed-off-by: Weijie Gao --- drivers/mtd/nand/raw/Kconfig | 11 + drivers/mtd/nand/raw

[PATCH 07/14] usb: xhci-mtk: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch makes xhci-mtk driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- drivers/usb/host/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index ccecb5a3b0..f2c060e692 100644 --- a/drivers/usb

[PATCH 08/14] phy: mtk-tphy: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch makes mtk-tphy driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- drivers/phy/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 4767d215f3..6ab99d2643 100644 --- a/drivers/phy/Kconfig +++ b

[PATCH 09/14] spi: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch makes mt7621_spi driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index d07e9a28af..a43e652231 100644 --- a/drivers/spi/Kconfig

[PATCH 10/14] gpio: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch makes mt7621_gpio driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 40abc33772..8c49ca3f50 100644 --- a/drivers/gpio/Kconfig

[PATCH 11/14] watchdog: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch makes mt7621_wdt driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index d306054a8c..cf383de973 100644 --- a/drivers

[PATCH 12/14] mmc: mediatek: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds SDXC support for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- drivers/mmc/mtk-sd.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 8599f095bc..1199052a89 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc

[PATCH 13/14] net: mediatek: add support for MediaTek MT7621 SoC

2021-11-04 Thread Weijie Gao
This patch adds GMAC support for MediaTek MT7621 SoC. MT7621 has the same GMAC/Switch configuration as MT7623. Signed-off-by: Weijie Gao --- drivers/net/mtk_eth.c | 27 +-- drivers/net/mtk_eth.h | 8 2 files changed, 29 insertions(+), 6 deletions(-) diff --git

[PATCH 14/14] MAINTAINERS: update maintainer for MediaTek MIPS platform

2021-11-04 Thread Weijie Gao
Update maintainer for MediaTek MIPS platform Signed-off-by: Weijie Gao --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5069f18806..7d65856743 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -855,15 +855,20 @@ R

Re: [PATCH 01/14] mips: mtmips: add support for MediaTek MT7621 SoC

2021-11-08 Thread Weijie Gao
On Mon, 2021-11-08 at 22:39 +0100, Daniel Schwierzeck wrote: > Am Donnerstag, dem 04.11.2021 um 17:48 +0800 schrieb Weijie Gao: > > This patch adds support for MediaTek MT7621 SoC. > > All files are dedicated for u-boot. > > > > Currently only ramboot is supported. >

[PATCH v2 00/14] Add support for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
- Remove network configs from default config file - Add config file for mt7621-rfb boards Weijie Gao (14): mips: mtmips: add support for MediaTek MT7621 SoC mips: mtmips: add two reference boards for mt7621 clk: mtmips: add clock driver for MediaTek MT7621 SoC reset: mtmips: add reset

[PATCH v2 01/14] mips: mtmips: add support for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
chip: https://www.mediatek.com/products/homenetworking/mt7621 Signed-off-by: Weijie Gao --- v2 changes: Add a kconfig for max supported ram size Remove network configs from default config file --- arch/mips/dts/mt7621.dtsi | 372 ++ arch/mips/mach-mtmips

[PATCH v2 02/14] mips: mtmips: add two reference boards for mt7621

2021-11-18 Thread Weijie Gao
: Daniel Schwierzeck Signed-off-by: Weijie Gao --- v2 changes: Add config file for mt7621-rfb boards --- arch/mips/dts/Makefile | 2 + arch/mips/dts/mediatek,mt7621-nand-rfb.dts | 52 +++ arch/mips/dts/mediatek,mt7621-rfb.dts | 68 arch/mips

[PATCH v2 04/14] reset: mtmips: add reset controller support for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
This patch adds reset controller bits definition header file for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- v2 changes: none --- include/dt-bindings/reset/mt7621-reset.h | 38 1 file changed, 38 insertions(+) create mode 100644 include/dt-bindings/reset/mt7621

[PATCH v2 03/14] clk: mtmips: add clock driver for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
This patch adds a clock driver for MediaTek MT7621 SoC. This driver provides clock gate control as well as getting clock frequency for CPU/SYS/XTAL and some peripherals. Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/clk/mtmips/Makefile| 1 + drivers/clk/mtmips/clk

[PATCH v2 05/14] pinctrl: mtmips: add support for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
This patch adds pinctrl support for MediaTek MT7621 SoC. The MT7621 SoC supports pinconf, but it is not the same as mt7628. Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/pinctrl/mtmips/Kconfig| 9 + drivers/pinctrl/mtmips/Makefile | 1 + drivers

[PATCH v2 07/14] usb: xhci-mtk: add support for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
This patch makes xhci-mtk driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/usb/host/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index ccecb5a3b0..f2c060e692

[PATCH v2 08/14] phy: mtk-tphy: add support for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
This patch makes mtk-tphy driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/phy/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 4767d215f3..6ab99d2643 100644 --- a

[PATCH v2 09/14] spi: add support for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
This patch makes mt7621_spi driver available for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index d07e9a28af..a43e652231 100644 --- a

[PATCH v2 06/14] nand: raw: add support for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
This patch adds NAND flash controller driver for MediaTek MT7621 SoC. The NAND flash controller of MT7621 supports only SLC NAND flashes. It supports 4~12 bits correction with maximum 4KB page size. Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/mtd/nand/raw/Kconfig | 11

[PATCH v2 10/14] gpio: add support for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
This patch makes mt7621_gpio driver available for MediaTek MT7621 SoC Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index

[PATCH v2 11/14] watchdog: add support for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
This patch makes mt7621_wdt driver available for MediaTek MT7621 SoC Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig

[PATCH v2 12/14] mmc: mediatek: add support for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
This patch adds SDXC support for MediaTek MT7621 SoC Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/mmc/mtk-sd.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 8599f095bc..1199052a89 100644 --- a/drivers/mmc/mtk

[PATCH v2 13/14] net: mediatek: add support for MediaTek MT7621 SoC

2021-11-18 Thread Weijie Gao
This patch adds GMAC support for MediaTek MT7621 SoC. MT7621 has the same GMAC/Switch configuration as MT7623. Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/net/mtk_eth.c | 27 +-- drivers/net/mtk_eth.h | 8 2 files changed, 29 insertions(+), 6

[PATCH v2 14/14] MAINTAINERS: update maintainer for MediaTek MIPS platform

2021-11-18 Thread Weijie Gao
Update maintainer for MediaTek MIPS platform Signed-off-by: Weijie Gao --- v2 changes: none --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5069f18806..7d65856743 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -855,15 +855,20 @@ R

Re: [PATCH v2 03/14] clk: mtmips: add clock driver for MediaTek MT7621 SoC

2021-12-27 Thread Weijie Gao
On Wed, 2021-12-15 at 11:11 -0500, Sean Anderson wrote: > Hi Weijie, > > (sorry for the delayed response) > > On 12/3/21 5:06 AM, Weijie Gao wrote: > > On Fri, 2021-11-26 at 12:44 -0500, Sean Anderson wrote: > > > On 11/18/21 8:35 PM, Weijie Gao wrote: > > &g

Re: [PATCH 00/18] Add support for MediaTek MT7620 SoC

2020-10-18 Thread Weijie Gao
On Fri, 2020-10-16 at 10:50 +0200, Michal Suchánek wrote: > Hello, > > I would suggest to use --thread with format-patch when sending patches. ok. I'll use it for v2 series. > > Thanks > > Michal > > On Fri, Oct 16, 2020 at 03:35:01PM +0800, Weijie Gao wrote:

RE: [PATCH 12/18] watchdog: add watchdog driver for MediaTek MT7620 SoC

2020-10-18 Thread Weijie Gao
On Fri, 2020-10-16 at 08:13 +, Qiang Zhao wrote: > On 2020/10/16 Fri 15:36, Weijie Gao wrote > > > > -Original Message- > > From: Weijie Gao > > Sent: 2020年10月16日 15:36 > > To: u-boot@lists.denx.de > > Cc: GSS_MTK_Uboot_upstream ; > > D

Re: [PATCH 05/18] mips: mtmips: add support for MediaTek MT7620 SoC

2020-10-26 Thread Weijie Gao
On Mon, 2020-10-26 at 13:51 +0100, Daniel Schwierzeck wrote: > Am Freitag, den 16.10.2020, 15:35 +0800 schrieb Weijie Gao: > > This patch adds support for MediaTek MT7620 SoC. > > All files are dedicated for u-boot. > > > > Signed-off-by: Weijie Gao > > --- >

Re: [PATCH 06/18] mips: mtmips: add two reference boards for mt7620

2020-10-26 Thread Weijie Gao
On Mon, 2020-10-26 at 14:06 +0100, Daniel Schwierzeck wrote: > Am Freitag, den 16.10.2020, 15:35 +0800 schrieb Weijie Gao: > > The mt7620_rfb board supports integrated 10/100M PHYs plus two external > > giga PHYs. It also has 8MB SPI-NOR, mini PCI-e x1 slot, SDHC and US

Re: [PATCH 08/18] serial: add uart driver for MediaTek MT7620 SoC

2020-10-29 Thread Weijie Gao
On Mon, 2020-10-26 at 22:51 -0600, Simon Glass wrote: > Hi Weijie, > > On Fri, 16 Oct 2020 at 01:36, Weijie Gao wrote: > > > > This patch adds uart support for MediaTek MT7620 and earlier SoCs. > > > > The UART used by MT7620 is incompatible with the ns16550a

Re: [PATCH 08/18] serial: add uart driver for MediaTek MT7620 SoC

2020-10-29 Thread Weijie Gao
On Thu, 2020-10-29 at 08:30 -0600, Simon Glass wrote: > Hi Weijie, > > On Thu, 29 Oct 2020 at 03:47, Weijie Gao wrote: > > > > On Mon, 2020-10-26 at 22:51 -0600, Simon Glass wrote: > > > Hi Weijie, > > > > > > On Fri, 16 Oct 2020 at 01:36, Weijie

[PATCH v2 01/21] mips: dts: switch to board defines for dtb for mtmips

2020-10-30 Thread Weijie Gao
ected. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- v2 changes: none --- arch/mips/dts/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/mips/dts/Makefile b/arch/mips/dts/Makefile index dc85901dca..e82f96d4e4 100644 --- a/arch/mips/dts/Makefile +++ b/arch

[PATCH v2 03/21] mips: mtmips: select SYSRESET for mt7628 only

2020-10-30 Thread Weijie Gao
Currently only mt7628 needs the sysreset driver, do not select it for mt7620. Signed-off-by: Weijie Gao --- v2 changes: new --- arch/mips/Kconfig | 1 - arch/mips/mach-mtmips/Kconfig | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips

[PATCH v2 00/21] Add support for MediaTek MT7620 SoC

2020-10-30 Thread Weijie Gao
- Remove use of common.h Weijie Gao (21): 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

[PATCH v2 04/21] mips: mtmips: fix dram size detection in dram_init

2020-10-30 Thread Weijie Gao
CONFIG_SYS_SDRAM_BASE points to cached memory, i.e. KSEG0, which is not suitable for detecting memory size. Replace CONFIG_SYS_SDRAM_BASE with KSEG1, and make dram_init() always do memory size detection in any stage. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- v2 changes: none

[PATCH v2 06/21] mips: mtmips: add support to initialize SDRAM

2020-10-30 Thread Weijie Gao
This patch adds support for mtmips SoCs to initialize the SDRAM. Signed-off-by: Weijie Gao --- v2 changes: none --- arch/mips/mach-mtmips/ddr_init.c | 59 arch/mips/mach-mtmips/include/mach/ddr.h | 4 ++ 2 files changed, 63 insertions(+) diff --git a/arch/mips

[PATCH v2 05/21] mips: enable _machine_restart for spl

2020-10-30 Thread Weijie Gao
The sysreset driver has a config CONFIG_SPL_SYSRESET for the spl stage. Change CONFIG_SYSRESET to CONFIG_IS_ENABLED(SYSRESET) will give spl a chance to use _machine_restart instead of the sysreset driver. Signed-off-by: Weijie Gao --- v2 changes: new --- arch/mips/cpu/cpu.c | 2 +- 1 file

[PATCH v2 02/21] mips: mtmips: move mt7628 related Kconfig into mt7628 subdirectory

2020-10-30 Thread Weijie Gao
This patch is a preparation for add a new soc fot mtmips. Move all mt7628 related Kconfig (boards and UART selection) into mt7628 subdirectory and make sure the top directory of mtmips contains only selection for SoCs. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- v2 changes: none

[PATCH v2 07/21] mips: mtmips: add support for MediaTek MT7620 SoC

2020-10-30 Thread Weijie Gao
This patch adds support for MediaTek MT7620 SoC. All files are dedicated for u-boot. Signed-off-by: Weijie Gao --- v2 changes: remove use of common.h --- arch/mips/dts/mt7620-u-boot.dtsi | 14 + arch/mips/dts/mt7620.dtsi | 296 ++ arch/mips/mach

[PATCH v2 08/21] mips: mtmips: add two reference boards for mt7620

2020-10-30 Thread Weijie Gao
The mt7620_rfb board supports integrated 10/100M PHYs plus two external giga PHYs. It also has 8MB SPI-NOR, mini PCI-e x1 slot, SDHC and USB. The mt7620_mt7530_rfb boards supports an external MT7530 giga switch and a 16MB SPI-NOR flash. Signed-off-by: Weijie Gao --- v2 changes: remove use of

[PATCH v2 09/21] configs: mtmips: refresh for mt7628 based boards

2020-10-30 Thread Weijie Gao
Since mt7620 is added into Kconfig, the CONFIG_SOC_MT7628=y which is omitted by default must be added back, otherwise make xxx_defconfig for these boards will be configured for mt7620 platform. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- v2 changes: none --- configs/gardena-smart

[PATCH v2 10/21] serial: add uart driver for MediaTek MT7620 SoC

2020-10-30 Thread Weijie Gao
registers (DLL and DLM). The driver supports of-platdata which is useful for tiny SPL. Signed-off-by: Weijie Gao --- v2 changes: replace non-DM code with of-platdata --- drivers/serial/Kconfig | 20 +++ drivers/serial/Makefile| 1 + drivers/serial/serial.c| 2 + drivers

[PATCH v2 11/21] clk: add clock driver for MediaTek MT7620 SoC

2020-10-30 Thread Weijie Gao
This patch adds a clock driver for MediaTek MT7620 SoC. This driver provides clock gate control as well as getting clock frequency for CPU/SYS/XTAL and some peripherals. Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/clk/mtmips/Makefile| 1 + drivers/clk/mtmips/clk

[PATCH v2 13/21] pinctrl: mtmips: add support for MediaTek MT7620 SoC

2020-10-30 Thread Weijie Gao
This patch adds pinctrl support for MediaTek MT7620 SoC. The MT7620 SoC supports only pinmux. Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/pinctrl/mtmips/Kconfig | 9 ++ drivers/pinctrl/mtmips/Makefile | 1 + drivers/pinctrl/mtmips/pinctrl-mt7620.c | 200

[PATCH v2 14/21] watchdog: add watchdog driver for MediaTek MT7620 SoC

2020-10-30 Thread Weijie Gao
This patch adds watchdog support for the Mediatek MT7620 SoC Signed-off-by: Weijie Gao --- v2 changes: add expire_now --- drivers/watchdog/Kconfig | 7 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/mt7620_wdt.c | 132 ++ 3 files changed, 140

[PATCH v2 12/21] reset: mtmips: add reset controller support for MediaTek MT7620 SoC

2020-10-30 Thread Weijie Gao
This patch adds reset controller bits definition header file for MediaTek MT7620 SoC Signed-off-by: Weijie Gao --- v2 changes: none --- include/dt-bindings/reset/mt7620-reset.h | 35 1 file changed, 35 insertions(+) create mode 100644 include/dt-bindings/reset/mt7620

[PATCH v2 15/21] gpio: add GPIO controller driver for MediaTek MT7620 SoC

2020-10-30 Thread Weijie Gao
This patch adds GPIO controller driver for MediaTek MT7620 SoC Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/gpio/Kconfig | 8 ++ drivers/gpio/Makefile | 1 + drivers/gpio/mt7620_gpio.c | 146 + 3 files

[PATCH v2 18/21] net: add ethernet driver for MediaTek MT7620 SoC

2020-10-30 Thread Weijie Gao
the intergrited FE PHY, or the xMII. Port 5 always connects to the xMII. Port 6 is the CPU port. This driver supports MT7530 giga switch connects to port 5. Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/net/Kconfig | 12 + drivers/net/Makefile |1 + drivers/net/mt7620

[PATCH v2 17/21] phy: add USB PHY driver for MediaTek MT7620 SoC

2020-10-30 Thread Weijie Gao
This patch adds USB PHY driver for MediaTek MT7620 SoC Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/phy/Kconfig | 7 +++ drivers/phy/Makefile | 1 + drivers/phy/mt7620-usb-phy.c | 113 +++ 3 files changed, 121 insertions

[PATCH v2 19/21] mmc: mtk-sd: add pad control settings for MediaTek MT7620/MT76x8 SoCs

2020-10-30 Thread Weijie Gao
mt7622 is added. Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/mmc/mtk-sd.c | 122 +-- 1 file changed, 119 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 4f9fa7d0ec..e30b16d56b 100644 --- a/drivers/mmc

[PATCH v2 16/21] spi: add spi controller support for MediaTek MT7620 SoC

2020-10-30 Thread Weijie Gao
register groups cannot operates simulataneously so they are implemented as one controller. Signed-off-by: Weijie Gao --- v2 changes: none --- drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/mt7620_spi.c | 277 +++ 3 files changed

[PATCH v2 21/21] MAINTAINERS: add maintainer for MediaTek MIPS platform

2020-10-30 Thread Weijie Gao
Update maintainer for MediaTek MIPS platform Acked-by: Stefan Roese Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- v2 changes: none --- MAINTAINERS | 23 +++ 1 file changed, 23 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 857e236aa4..bcdc23c2e8

[PATCH v2 20/21] reset: reset-mtmips: add DM_FLAG_PRE_RELOC flag

2020-10-30 Thread Weijie Gao
Add DM_FLAG_PRE_RELOC flag for reset-mtmips to make sure this driver can be probed before relocation even if u-boot,dm-pre-reloc is not present in the dts. Signed-off-by: Weijie Gao --- v2 changes: new --- drivers/reset/reset-mtmips.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers

Re: [PATCH v2 16/21] spi: add spi controller support for MediaTek MT7620 SoC

2020-11-08 Thread Weijie Gao
On Mon, 2020-11-02 at 11:30 +0530, Jagan Teki wrote: > On Fri, Oct 30, 2020 at 3:05 PM Weijie Gao wrote: > > > > This patch adds spi controller support for MediaTek MT7620 SoC. > > > > The SPI controller supports two chip selects. These two chip selects are >

Re: [PATCH v2 14/21] watchdog: add watchdog driver for MediaTek MT7620 SoC

2020-11-08 Thread Weijie Gao
On Mon, 2020-11-02 at 11:32 +0530, Jagan Teki wrote: > On Fri, Oct 30, 2020 at 3:04 PM Weijie Gao wrote: > > > > This patch adds watchdog support for the Mediatek MT7620 SoC > > > > Signed-off-by: Weijie Gao > > --- > > v2 changes: add expire_now > >

Re: [PATCH v2 17/21] phy: add USB PHY driver for MediaTek MT7620 SoC

2020-11-08 Thread Weijie Gao
On Mon, 2020-11-02 at 11:41 +0530, Jagan Teki wrote: > On Fri, Oct 30, 2020 at 3:05 PM Weijie Gao wrote: > > > > This patch adds USB PHY driver for MediaTek MT7620 SoC > > > > Signed-off-by: Weijie Gao > > --- > > v2 changes: none > > --- > >

[PATCH v3 00/23] Add support for MediaTek MT7620 SoC

2020-11-09 Thread Weijie Gao
n.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:

[PATCH v3 01/23] mips: dts: switch to board defines for dtb for mtmips

2020-11-09 Thread Weijie Gao
ected. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- v3 changes: none v2 changes: none --- arch/mips/dts/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/mips/dts/Makefile b/arch/mips/dts/Makefile index dc85901dca..e82f96d4e4 100644 --- a/arch/mips/dts/Mak

[PATCH v3 03/23] mips: mtmips: select SYSRESET for mt7628 only

2020-11-09 Thread Weijie Gao
Currently only mt7628 needs the sysreset driver, do not select it for mt7620. Signed-off-by: Weijie Gao --- v3 changes: none v2 changes: new --- arch/mips/Kconfig | 1 - arch/mips/mach-mtmips/Kconfig | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips

[PATCH v3 02/23] mips: mtmips: move mt7628 related Kconfig into mt7628 subdirectory

2020-11-09 Thread Weijie Gao
This patch is a preparation for add a new soc fot mtmips. Move all mt7628 related Kconfig (boards and UART selection) into mt7628 subdirectory and make sure the top directory of mtmips contains only selection for SoCs. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- v3 changes: none v2

[PATCH v3 06/23] mips: mtmips: add support to initialize SDRAM

2020-11-09 Thread Weijie Gao
This patch adds support for mtmips SoCs to initialize the SDRAM. Signed-off-by: Weijie Gao --- v3 changes: none v2 changes: none --- arch/mips/mach-mtmips/ddr_init.c | 59 arch/mips/mach-mtmips/include/mach/ddr.h | 4 ++ 2 files changed, 63 insertions(+) diff

[PATCH v3 05/23] mips: enable _machine_restart for spl

2020-11-09 Thread Weijie Gao
The sysreset driver has a config CONFIG_SPL_SYSRESET for the spl stage. Change CONFIG_SYSRESET to CONFIG_IS_ENABLED(SYSRESET) will give spl a chance to use _machine_restart instead of the sysreset driver. Reviewed-by: Simon Glass Signed-off-by: Weijie Gao --- v3 changes: none v2 changes: new

[PATCH v3 04/23] mips: mtmips: fix dram size detection in dram_init

2020-11-09 Thread Weijie Gao
CONFIG_SYS_SDRAM_BASE points to cached memory, i.e. KSEG0, which is not suitable for detecting memory size. Replace CONFIG_SYS_SDRAM_BASE with KSEG1, and make dram_init() always do memory size detection in any stage. Reviewed-by: Stefan Roese Signed-off-by: Weijie Gao --- v3 changes: none v2

[PATCH v3 07/23] mips: mtmips: add support for MediaTek MT7620 SoC

2020-11-09 Thread Weijie Gao
This patch adds support for MediaTek MT7620 SoC. All files are dedicated for u-boot. Signed-off-by: Weijie Gao --- v3 changes: none v2 changes: remove use of common.h --- arch/mips/dts/mt7620-u-boot.dtsi | 14 + arch/mips/dts/mt7620.dtsi | 296

<    1   2   3   4   5   6   7   8   >