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
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 +--
.
- 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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
= 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
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
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
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
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
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
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
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
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
.
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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
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
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.
>
- 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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
> > ---
>
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
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
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
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
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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
> >
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
> > ---
> >
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:
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
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
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
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
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
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
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
501 - 600 of 719 matches
Mail list logo