://www.mediatek.com/products/broadband-wifi/mediatek-filogic-880
Weijie Gao (29):
arm: mediatek: retrieve ram_base from dts node for armv8 platform
board: mediatek: update config headers
spi: mtk_spim: get spi clk rate only once
spi: mtk_spim: clear IRQ enable bits
serial: mtk: initial
Remove unused information from include/configs/mt.h
Signed-off-by: Weijie Gao
---
include/configs/mt7620.h | 3 +--
include/configs/mt7621.h | 6 ++
include/configs/mt7623.h | 8
include/configs/mt7628.h | 5 ++---
include/configs/mt7629.h | 13 +
5 files
We don't really need to switch clk rate during operating SPIM controller.
Get clk rate only once at driver probing.
Signed-off-by: SkyLake.Huang
Signed-off-by: Weijie Gao
---
drivers/spi/mtk_spim.c | 21 +
1 file changed, 13 insertions(+), 8 deletions(-)
diff --
Now we use fdtdec_setup_mem_size_base() to get DRAM base from fdt ram node
and update gd->ram_base. CFG_SYS_SDRAM_BASE is unused and will be removed.
Also, since mt7622 always passes fdt to linux kernel, there's no need to
assign value to gd->bd->bi_boot_params.
Signed-off-
izing the spim driver due to IRQ event happens before IRQ handler
is properly setup.
This patch clear IRQ bits to prevent this from happening.
Signed-off-by: SkyLake.Huang
Signed-off-by: Weijie Gao
---
drivers/spi/mtk_spim.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/spi/mtk_s
This patch ensures driver private data being fully initialized in
_debug_uart_init which is not covered by .priv_auto ops.
Signed-off-by: Sam Shih
Signed-off-by: Weijie Gao
---
drivers/serial/serial_mtk.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/serial/serial_mtk.c b/drivers
This patch add missing return value check for allocating the driver's
private data. -ENOMEM will be returned if malloc() fails.
Signed-off-by: Sam Shih
Signed-off-by: Weijie Gao
---
drivers/reset/reset-mediatek.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/reset/
MT7981 actually uses MediaTek I2C controller v3 instead of v1.
This patch adds support for I2C controller v3 fix fixes the I2C usability
for MT7981.
Signed-off-by: Sam Shih
Signed-off-by: Weijie Gao
---
drivers/i2c/mtk_i2c.c | 45 +--
1 file changed, 43
This patch enables i2c support for MediaTek MT7981
Signed-off-by: Sam Shih
Signed-off-by: Weijie Gao
---
arch/arm/dts/mt7981.dtsi | 14 ++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/dts/mt7981.dtsi b/arch/arm/dts/mt7981.dtsi
index 2c8ef14f98..2053e2ca00 100644
--- a
This patch adds PWM support for MediaTek MT7988 SoC.
Signed-off-by: Weijie Gao
---
drivers/pwm/pwm-mtk.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/pwm/pwm-mtk.c b/drivers/pwm/pwm-mtk.c
index 605142eab0..11e7444019 100644
--- a/drivers/pwm/pwm-mtk.c
+++ b/drivers/pwm/pwm
This patch adds reset bits for MediaTek MT7988
Signed-off-by: Sam Shih
Signed-off-by: Weijie Gao
---
include/dt-bindings/reset/mt7988-reset.h | 31
1 file changed, 31 insertions(+)
create mode 100644 include/dt-bindings/reset/mt7988-reset.h
diff --git a/include/dt
This patch adds clock driver support for MediaTek MT7988 SoC
Signed-off-by: Weijie Gao
---
drivers/clk/mediatek/Makefile |1 +
drivers/clk/mediatek/clk-mt7988.c | 1123
include/dt-bindings/clock/mt7988-clk.h | 349
3 files changed, 1473
The original mediatek pinctrl functions for driving configuration
'mtk_pinconf_drive_set_*' do not return -ENOSUPP even if input
parameters are not supported.
This patch fixes the return value in those functions.
Signed-off-by: Sam Shih
Signed-off-by: Weijie Gao
---
drivers/pinctr
This patch adds pinmux_set ops for mediatek pinctrl framework
Signed-off-by: Sam Shih
Signed-off-by: Weijie Gao
---
drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 14 ++
1 file changed, 14 insertions(+)
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
b/drivers/pinctrl
This patch adds pinctrl and gpio support for MT7988 SoC
Signed-off-by: Weijie Gao
---
drivers/pinctrl/mediatek/Kconfig |4 +
drivers/pinctrl/mediatek/Makefile |1 +
drivers/pinctrl/mediatek/pinctrl-mt7988.c | 1274 +
3 files changed, 1279 insertions
Not all switches requires 1 second delay after deasserting reset.
MT7531 requires only maximum 200ms.
This patch defines dedicated reset wait time for each switch chip, and will
significantly improve the boot time for boards using MT7531.
Signed-off-by: Weijie Gao
---
drivers/net/mtk_eth.c | 7
disconnect it with PSE
- Connect switch with PSE on eth start
- Disconnect on eth stop
Signed-off-by: Weijie Gao
---
drivers/net/mtk_eth.c | 44 ---
1 file changed, 41 insertions(+), 3 deletions(-)
diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c
index
The original direct MDIO clause 45 access via SoC is missing the
data output. This patch adds it back to ensure MDIO clause 45 can
work properly for external PHYs.
Signed-off-by: Weijie Gao
---
drivers/net/mtk_eth.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers
mt7531_mmd_ind_read and mt753x_switch_init are defined without static.
Since they're not used outside this file, we should add them back.
Signed-off-by: Weijie Gao
fixup to add static qualifier
---
drivers/net/mtk_eth.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --
Existing SGMII support of mtk-eth is actually a MediaTek-specific
2.5Gbps high-speed SGMII (HSGMII) which does not support
auto-negotiation mode.
This patch adds SGMII 1Gbps auto-negotiation mode and rename the
existing HSGMII to 2500basex.
Signed-off-by: Weijie Gao
---
drivers/net/mtk_eth.c
Now that individual 2.5Gbps SGMII support has been added to
mtk-eth, all boards that use 2.5Gbps link with mt7531 must be
converted to use "2500base-x" instead of "sgmii".
Signed-off-by: Weijie Gao
---
arch/arm/dts/mt7622-bananapi-bpi-r64.dts | 4 ++--
arch/ar
MT7981 has its GMAC2 PHY shared with USB3. To enable GMAC2, mux
register must be set to connect the SGMII phy to GMAC2.
Signed-off-by: Weijie Gao
---
drivers/net/mtk_eth.c | 33 -
drivers/net/mtk_eth.h | 16
2 files changed, 48 insertions(+), 1
This patch adds infracfg to eth node to support enabling GMAC2.
Signed-off-by: Weijie Gao
---
arch/arm/dts/mt7981.dtsi | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/dts/mt7981.dtsi b/arch/arm/dts/mt7981.dtsi
index 2053e2ca00..7aaa7770f8 100644
--- a/arch/arm/dts/mt7981
This patch adds support for USXGMII of SoC.
Signed-off-by: Weijie Gao
---
drivers/net/mtk_eth.c | 230 +-
drivers/net/mtk_eth.h | 24 +
2 files changed, 251 insertions(+), 3 deletions(-)
diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c
This patch adds support for NETSYS v3 hardware.
Comparing to NETSYS v2, NETSYS v3 has three GMACs.
Signed-off-by: Weijie Gao
---
drivers/net/mtk_eth.c | 49 ---
drivers/net/mtk_eth.h | 7 +++
2 files changed, 44 insertions(+), 12 deletions(-)
diff
This patch adds support for MediaTek MT7988.
MT7988 features MediaTek NETSYS v3, including three GMACs, and two
of them supports 10Gbps USXGMII.
MT7988 embeds a MT7531 switch (not MCM) which supports accessing
internal registers through MMIO instead of MDIO.
Signed-off-by: Weijie Gao
This patch converts magic and version fields of ghf common header
to one field with the type of uint32_t to make this header flexible
for futher updates.
Signed-off-by: Weijie Gao
---
tools/mtk_image.c | 10 ++
tools/mtk_image.h | 6 +++---
2 files changed, 9 insertions(+), 7 deletions
This patch adds basic support for MediaTek MT7988 SoC.
This includes files that will initialize the SoC after boot and
its device tree.
Signed-off-by: Weijie Gao
---
arch/arm/dts/mt7988-u-boot.dtsi | 25 ++
arch/arm/dts/mt7988.dtsi | 391
, SPI-NAND and eMMC
2. mt7988_sd_rfb_defconfig - SPI-NAND and SD
Signed-off-by: Weijie Gao
---
arch/arm/dts/Makefile | 2 +
arch/arm/dts/mt7988-rfb.dts| 182 +
arch/arm/dts/mt7988-sd-rfb.dts | 134 +
board/mediatek/mt7988
This will force all pinctrl data being put
into .rodata section. Since .rodata has "a" attribute, even the all-zero
data will be allocated and filled with correct value in to u-boot binary.
Signed-off-by: Weijie Gao
---
drivers/pinctrl/mediatek/pinctrl-mt7622.c | 474 ++
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
This patch adds basic support for MediaTek MT7986 SoC.
This include the file that will initialize the SoC after boot and its
device tree.
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes:
Add syscon to hwver node
Add reference of hwver to cpu nodes
This patch adds basic support for MediaTek MT7981 SoC.
This include the file that will initialize the SoC after boot and its
device tree.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v3 changes:
Add syscon to hwver node
Add reference of hwver to cpu nodes
v2 changes:
Sort
. mt7986a_bpir3_emmc_defconfig - eMMC for MT7986A only
3. mt7986a_bpir3_sd_defconfig - SD for MT7986A only
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes:
Rename mt7986a_emmc_rfb_defconfig to mt7986a_bpir3_emmc_defconfig
Rename mt7986a_sd_rfb_defconfig to mt7986a_bpir3_sd_defconfig
. mt7981_emmc_rfb_defconfig - eMMC only
3. mt7981_sd_rfb_defconfig - SD only
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes:
Remove mt7981_spim_nand_rfb_defconfig and mt7981_spim_nor_rfb_defconfig
---
arch/arm/dts/Makefile | 3 +
arch/arm/dts/mt7981
Add eMMC and SDXC support for MediaTek MT7981/MT7986 SoCs
Both chips support SDXC and eMMC 4.5. MT7986A supports eMMC 5.1.
Reviewed-by: Jaehoon Chung
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes: none
---
drivers/mmc/mtk-sd.c | 68
: Weijie Gao
---
v3 changes: none
v2 changes:
Fix typo in commit message
---
drivers/net/mtk_eth.c | 144 ++
drivers/net/mtk_eth.h | 32 ++
2 files changed, 80 insertions(+), 96 deletions(-)
diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes:
Add description for new struct
---
drivers/net/mtk_eth.c | 56 ++-
drivers/net/mtk_eth.h | 25 ++-
2 files changed, 64 insertions(+), 17 deletions
This patch adds support for PDMA v2 hardware. The PDMA v2 has extended the
DMA descriptor to 8-words, and some of its fields have changed comparing
to the v1 hardware.
Reviewed-by: Ramon Fried
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2
the baud clk struct to the
driver's priv, and changes the driver's flow to get the clock rate before
calling _mtk_serial_setbrg().
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes:
Add description for priv struct
Fix t
This patch adds support for MediaTek MT7981 and MT7986. Both chips uses
PDMA v2.
Reviewed-by: Ramon Fried
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes: none
---
drivers/net/mtk_eth.c | 27 +++
drivers/net/mtk_eth.h | 5 +
2
This patch adds PWM support for MediaTek MT7986 SoC.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes: none
---
drivers/pwm/pwm-mtk.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/pwm/pwm-mtk.c b/drivers/pwm/pwm-mtk.c
index aee1d825a0
The input clock for uart is too slow (25MHz) which introduces frequent data
error on both receiving and transmitting even if the baudrate is 115200.
Using high-speed can significantly solve this issue.
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes
This patch adds PWM support for MediaTek MT7981 SoC.
MT7981 uses a different register offset so we have to add a version field
to indicate the IP core version.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes: none
---
drivers/pwm/pwm-mtk.c | 34
This patch add general-purpose timer support for MediaTek MT7981/MT7986.
These two SoCs uses a newer version of timer with its register definition
slightly changed.
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes: none
---
drivers
Add watchdog support for MediaTek MT7986 SoC
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes: none
---
drivers/watchdog/mtk_wdt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog
This patch adds support for MediaTek I2C interface
Reviewed-by: Heiko Schocher
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes:
Reorganize code to reduce duplicated code
Rename mtk_i2c_ofdata_to_platdata to mtk_i2c_of_to_plat
---
drivers/i2c/Kconfig
Add both hardware and software i2c support for mt7622.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes: none
---
arch/arm/dts/mt7622-rfb.dts | 18 ++
arch/arm/dts/mt7622.dtsi| 24
2 files changed, 42 insertions
This patch adds support for spi-mem controller found on newer MediaTek SoCs
This controller supports Single/Dual/Quad SPI mode.
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: SkyLake.Huang
---
v3 changes: none
v2 changes:
Remove unused code
Fix coding style
Add descriptio
This patch adds a pinctrl header for common pinconf parameters such as
pull-up/pull-down resistors and drive strengths.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes: none
---
include/dt-bindings/pinctrl/mt65xx.h | 41
1 file
driver needs clocks
with ID=0 to call mtk_topckgen_get_mux_rate.
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes:
Add comment for flags
Fix the if condition of CLK_BYPASS_XTAL
---
drivers/clk/mediatek/clk-mtk.c | 4 +++-
drivers/clk
This patch adds pinctrl and gpio support for MT7986 SoC
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes: none
---
drivers/pinctrl/mediatek/Kconfig | 4 +
drivers/pinctrl/mediatek/Makefile | 1 +
drivers/pinctrl
This patch adds support for a clock node to configure its parent clock
where possible.
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes: none
---
drivers/clk/mediatek/clk-mtk.c | 79 --
drivers/clk
This adds the CLK_XTAL macro/flag to allow modeling clocks which are
directly connected to the xtal clock.
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes:
Fix incorrect fallback in mtk_infrasys_get_factor_rate
Fix commit
This patch adds infrasys clock mux support for mediatek clock drivers.
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes:
Fix the if condition of CLK_BYPASS_XTAL
---
drivers/clk/mediatek/clk-mtk.c | 71
This patch adds pinctrl and gpio support for MT7981 SoC
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes: none
---
drivers/pinctrl/mediatek/Kconfig |4 +
drivers/pinctrl/mediatek/Makefile |1 +
drivers/pinctrl/mediatek/pinctrl-mt7981.c
This patch adds clock driver support for MediaTek MT7986 SoC
Reviewed-by: Sean Anderson
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes:
Fix coding style
---
drivers/clk/mediatek/Makefile | 1 +
drivers/clk/mediatek/clk
Add basic CPU driver used to retrieve CPU model information.
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes:
Use regmap to read hwver registers
v2 changes: new
---
drivers/cpu/Makefile | 1 +
drivers/cpu/mtk_cpu.c | 86 +++
2 files
The verification code of gfh header for NAND and non-NAND are identical.
It's better to define a individual function to reduce redundancy.
Reviewed-by: Simon Glass
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes: none
---
tools/mtk_image.c
Add new files for MediaTek ARM platform
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v3 changes:
v2 changes:
Add cpu driver file
---
MAINTAINERS | 6 ++
1 file changed, 6 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 36a2b69fcb..d47674c476 100644
--- a/MAINTAINERS
This patch adds clock driver support for MediaTek MT7981 SoC
Reviewed-by: Sean Anderson
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes:
Fix coding style
---
drivers/clk/mediatek/Makefile | 1 +
drivers/clk/mediatek/clk-mt7981.c | 683
This patch adds more nand headers in two new types:
1. HSM header, used for spi-nand thru SNFI interface
2. SPIM header, used for spi-nand thru spi-mem interface
The original nand header is renamed to AP header.
Tested-by: Daniel Golle
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes
Signed-off-by: Weijie Gao
---
v3 changes: none
v2 changes:
Add comments
Call mtk_nand_header_size only for NAND/SNAND to avoid NULL pointer access
---
tools/Makefile | 1 +
tools/mtk_image.c| 305 ++-
tools/mtk_image.h| 25
On Wed, 2022-08-10 at 13:24 +0200, Michael Nazzareno Trimarchi wrote:
> Hi
>
> On Thu, Aug 4, 2022 at 5:38 AM Weijie Gao
> wrote:
> >
> > This patch adds support for MediaTek I2C interface
> >
> > Signed-off-by: Weijie Gao
> > ---
> > drivers
On Tue, 2022-08-09 at 11:10 +0200, Daniel Golle wrote:
> Hi Weijie,
>
> On Thu, Aug 04, 2022 at 11:35:03AM +0800, Weijie Gao wrote:
> > This patch adds general board files based on MT7986 SoCs.
> >
> > The SD/eMMC controller on MT7986A and MT7986B have different pin
On Sat, 2022-08-13 at 00:21 -0400, Sean Anderson wrote:
> On 8/3/22 11:36 PM, Weijie Gao wrote:
> > This patch adds infrasys clock mux support for mediatek clock
> > drivers.
> >
> > Signed-off-by: Weijie Gao
> > ---
> >
On Sat, 2022-08-13 at 00:25 -0400, Sean Anderson wrote:
> On 8/3/22 11:36 PM, Weijie Gao wrote:
> > This add CLK_XTAL macro and flag to mediatek clock driver common
> > part,
> > to make thi SoC that has clock directlly connect to XTAL working.
>
> nit: this.. directly
On Sat, 2022-08-13 at 00:31 -0400, Sean Anderson wrote:
> On 8/3/22 11:36 PM, Weijie Gao wrote:
> > This patch adds clock driver support for MediaTek MT7981 SoC
> >
> > Signed-off-by: Weijie Gao
> > ---
> > drivers/clk/mediatek/Makefile | 1 +
> &
On Sat, 2022-08-13 at 00:18 -0400, Sean Anderson wrote:
> On 8/3/22 11:36 PM, Weijie Gao wrote:
> > This patch adds support for a clock node to configure its parent
> > clock
> > where possible.
> >
> > Signed-off-by: Weijie Gao
> > ---
&g
This patch adds basic support for MediaTek MT7981 SoC.
This include the file that will initialize the SoC after boot and its
device tree.
Signed-off-by: Weijie Gao
---
v2 changes:
Sort include lines
Add reference link for armv8_el2_to_aarch32 in lowlevel_init.S
Remove print_cpuinfo and use
MT7986:
https://www.mediatek.com/products/home-networking/mediatek-filogic-830
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
. mt7986a_bpir3_emmc_defconfig - eMMC for MT7986A only
3. mt7986a_bpir3_sd_defconfig - SD for MT7986A only
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes:
Rename mt7986a_emmc_rfb_defconfig to mt7986a_bpir3_emmc_defconfig
Rename mt7986a_sd_rfb_defconfig to mt7986a_bpir3_sd_defconfig
Remove mt7986b
. mt7981_emmc_rfb_defconfig - eMMC only
3. mt7981_sd_rfb_defconfig - SD only
Signed-off-by: Weijie Gao
---
v2 changes:
Remove mt7981_spim_nand_rfb_defconfig and mt7981_spim_nor_rfb_defconfig
---
arch/arm/dts/Makefile | 3 +
arch/arm/dts/mt7981-emmc-rfb.dts | 139
This patch adds basic support for MediaTek MT7986 SoC.
This include the file that will initialize the SoC after boot and its
device tree.
Signed-off-by: Weijie Gao
---
v2 changes:
Sort include lines
Add reference link for armv8_el2_to_aarch32 in lowlevel_init.S
Remove print_cpuinfo and use
Add eMMC and SDXC support for MediaTek MT7981/MT7986 SoCs
Both chips support SDXC and eMMC 4.5. MT7986A supports eMMC 5.1.
Reviewed-by: Jaehoon Chung
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes: none
---
drivers/mmc/mtk-sd.c | 68
Signed-off-by: Weijie Gao
---
v2c changes:
Add description for new struct
---
drivers/net/mtk_eth.c | 56 ++-
drivers/net/mtk_eth.h | 25 ++-
2 files changed, 64 insertions(+), 17 deletions(-)
diff --git a/drivers/net/mtk_eth.c b/drivers
This patch adds support for PDMA v2 hardware. The PDMA v2 has extended the
DMA descriptor to 8-words, and some of its fields have changed comparing
to the v1 hardware.
Reviewed-by: Ramon Fried
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes:
Add description for new fields
This patch is a preparation for adding a new version of PDMA of which the
DMA descriptor fields has changed. Using bitfields will result in a complex
modification. Convert bitfields to u32 units can solve this problem easily.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes
This patch adds support for MediaTek MT7981 and MT7986. Both chips uses
PDMA v2.
Reviewed-by: Ramon Fried
Signed-off-by: Weijie Gao
---
v2 changes: none
---
drivers/net/mtk_eth.c | 27 +++
drivers/net/mtk_eth.h | 5 +
2 files changed, 32 insertions(+)
diff --git a
the baud clk struct to the
driver's priv, and changes the driver's flow to get the clock rate before
calling _mtk_serial_setbrg().
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes:
Add description for priv struct
Fix the type of clk_rate
---
drivers/serial/serial_
The input clock for uart is too slow (25MHz) which introduces frequent data
error on both receiving and transmitting even if the baudrate is 115200.
Using high-speed can significantly solve this issue.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes: none
---
arch/arm/dts
This patch adds PWM support for MediaTek MT7986 SoC.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes: none
---
drivers/pwm/pwm-mtk.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/pwm/pwm-mtk.c b/drivers/pwm/pwm-mtk.c
index aee1d825a0..3100b5caaf 100644
Add watchdog support for MediaTek MT7986 SoC
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes: none
---
drivers/watchdog/mtk_wdt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c
index b098b2e3cf..368b36849c 100644
This patch adds PWM support for MediaTek MT7981 SoC.
MT7981 uses a different register offset so we have to add a version field
to indicate the IP core version.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes: none
---
drivers/pwm/pwm-mtk.c | 34
This patch add general-purpose timer support for MediaTek MT7981/MT7986.
These two SoCs uses a newer version of timer with its register definition
slightly changed.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes: none
---
drivers/timer/mtk_timer.c | 59
This patch adds support for spi-mem controller found on newer MediaTek SoCs
This controller supports Single/Dual/Quad SPI mode.
Reviewed-by: Simon Glass
Signed-off-by: SkyLake.Huang
---
v2 changes:
Remove unused code
Fix coding style
Add description for struct fields
---
drivers/spi/Kconf
Add both hardware and software i2c support for mt7622.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes: none
---
arch/arm/dts/mt7622-rfb.dts | 18 ++
arch/arm/dts/mt7622.dtsi| 24
2 files changed, 42 insertions(+)
diff --git a
This patch adds a pinctrl header for common pinconf parameters such as
pull-up/pull-down resistors and drive strengths.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes: none
---
include/dt-bindings/pinctrl/mt65xx.h | 41
1 file changed, 41
This patch adds support for MediaTek I2C interface
Reviewed-by: Heiko Schocher
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes:
Reorganize code to reduce duplicated code
Rename mtk_i2c_ofdata_to_platdata to mtk_i2c_of_to_plat
---
drivers/i2c/Kconfig | 9 +
drivers
This patch adds pinctrl and gpio support for MT7986 SoC
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes: none
---
drivers/pinctrl/mediatek/Kconfig | 4 +
drivers/pinctrl/mediatek/Makefile | 1 +
drivers/pinctrl/mediatek/pinctrl-mt7986.c | 775
driver needs clocks
with ID=0 to call mtk_topckgen_get_mux_rate.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes:
Add comment for flags
Fix the if condition of CLK_BYPASS_XTAL
---
drivers/clk/mediatek/clk-mtk.c | 4 +++-
drivers/clk/mediatek/clk-mtk.h | 6 ++
2 files changed
This patch adds pinctrl and gpio support for MT7981 SoC
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes: none
---
drivers/pinctrl/mediatek/Kconfig |4 +
drivers/pinctrl/mediatek/Makefile |1 +
drivers/pinctrl/mediatek/pinctrl-mt7981.c | 1049
This patch adds infrasys clock mux support for mediatek clock drivers.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes:
Fix the if condition of CLK_BYPASS_XTAL
---
drivers/clk/mediatek/clk-mtk.c | 71 ++
drivers/clk/mediatek/clk-mtk.h | 4
This patch adds support for a clock node to configure its parent clock
where possible.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes: none
---
drivers/clk/mediatek/clk-mtk.c | 79 --
drivers/clk/mediatek/clk-mtk.h | 2 +
2 files changed, 48
This adds the CLK_XTAL macro/flag to allow modeling clocks which are
directly connected to the xtal clock.
Signed-off-by: Weijie Gao
---
v2 changes:
Fix incorrect fallback in mtk_infrasys_get_factor_rate
Fix commit description
---
drivers/clk/mediatek/clk-mtk.c | 4
drivers/clk
Add basic CPU driver used to retrieve CPU model information.
Signed-off-by: Weijie Gao
---
v2 changes: new
---
drivers/cpu/Makefile | 1 +
drivers/cpu/mtk_cpu.c | 106 ++
2 files changed, 107 insertions(+)
create mode 100644 drivers/cpu/mtk_cpu.c
This patch adds clock driver support for MediaTek MT7986 SoC
Reviewed-by: Sean Anderson
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes:
Fix coding style
---
drivers/clk/mediatek/Makefile | 1 +
drivers/clk/mediatek/clk-mt7986.c | 672
The verification code of gfh header for NAND and non-NAND are identical.
It's better to define a individual function to reduce redundancy.
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes: none
---
tools/mtk_image.c | 51 +++
1
This patch adds clock driver support for MediaTek MT7981 SoC
Reviewed-by: Sean Anderson
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes:
Fix coding style
---
drivers/clk/mediatek/Makefile | 1 +
drivers/clk/mediatek/clk-mt7981.c | 683
Add new files for MediaTek ARM platform
Reviewed-by: Simon Glass
Signed-off-by: Weijie Gao
---
v2 changes:
Add cpu driver file
---
MAINTAINERS | 6 ++
1 file changed, 6 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 36a2b69fcb..d47674c476 100644
--- a/MAINTAINERS
+++ b
1 - 100 of 719 matches
Mail list logo