[PATCH v3 1/5] i2c: mediatek: add basic driver support

2020-10-15 Thread mingming lee
From: Mingming Lee Add MediaTek I2C basic driver Reviewed-by: Heiko Schocher Signed-off-by: Mingming Lee --- Changes for v3: - fixed code veriew note in v2 - optimize the dma read/write flow in mtk_i2c_do_transfer() Changes for v2: - using error number defined in include/linux

[PATCH v3 0/5] Add i2c support for MediaTek mt8512

2020-10-15 Thread mingming lee
From: Mingming Lee This patch series adds basic i2c support for MediaTek MT8512 EMMC boards. --- Changes for v3: - fixed code veriew note in v2. - optimize the dma read/write flow in mtk_i2c_do_transfer(). - add Reviewed-by info. Changes for v2: - using error number defined

[PATCH v3 5/5] MAINTAINERS: add i2c driver to ARM MEDIATEK

2020-10-15 Thread mingming lee
From: Mingming Lee add Mediatek i2c controller driver to ARM MEDIATEK. Reviewed-by: Simon Glass Signed-off-by: Mingming Lee --- Changes for v3: - just add Reviewed-by info --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 889a73f

[PATCH v3 2/5] ARM: dts: Mediatek: add i2c node support for mt8512

2020-10-15 Thread mingming lee
From: Mingming Lee add i2c dts node support for mt8512 Reviewed-by: Heiko Schocher Reviewed-by: Simon Glass Signed-off-by: Mingming Lee --- Changes for v3: - just add Reviewed-by info. --- arch/arm/dts/mt8512-bm1-emmc.dts | 12 arch/arm/dts/mt8512.dtsi | 38

[PATCH v3 4/5] dt-binding: i2c: add bindings for mediatek i2c driver

2020-10-15 Thread mingming lee
From: Mingming Lee add bindings for mediatek i2c driver Reviewed-by: Simon Glass Signed-off-by: Mingming Lee --- Changes for v3: - just add Reviewed-by info --- doc/device-tree-bindings/i2c/i2c-mtk.txt | 39 1 file changed, 39 insertions(+) create mode

[PATCH v3 3/5] configs: mt8512: Enable I2C related configs

2020-10-15 Thread mingming lee
From: Mingming Lee Enable MTK I2C Enable I2C basic command Reviewed-by: Heiko Schocher Reviewed-by: Simon Glass Signed-off-by: Mingming Lee --- Changes for v3: - fixed the config order - add Reviewed-by info --- configs/mt8512_bm1_emmc_defconfig | 8 +++- 1 file changed, 7

Re: [PATCH v2 4/5] dt-binding: i2c: add bindings for mediatek i2c driver

2020-10-12 Thread Mingming Lee
hello Simon, On Sun, 2020-10-11 at 21:34 -0600, Simon Glass wrote: > On Wed, 30 Sep 2020 at 02:22, mingming lee wrote: > > > > From: Mingming Lee > > > > add bindings for mediatek i2c driver > > Should indicate which version of linux this file comes from.

Re: [PATCH v2 3/5] configs: mt8512: Enable I2C related configs

2020-10-12 Thread Mingming Lee
hello Simon, thank you for your review I have re-order it and would send it in next version. On Sun, 2020-10-11 at 21:34 -0600, Simon Glass wrote: > On Wed, 30 Sep 2020 at 02:22, mingming lee wrote: > > > > From: Mingming Lee > > > > Enable MTK I2C > > Enable

Re: [PATCH v2 1/5] i2c: mediatek: add basic driver support

2020-10-10 Thread Mingming Lee
hi Simon, Thank you for your carefully reveiw, and I think I would modify all of them in next version. On Mon, 2020-10-05 at 18:02 -0600, Simon Glass wrote: > Hi Mingming, > > On Wed, 30 Sep 2020 at 02:22, mingming lee wrote: > > > > From: Mingming Lee > > > &

[PATCH v2 2/5] ARM: dts: Mediatek: add i2c node support for mt8512

2020-09-30 Thread mingming lee
From: Mingming Lee add i2c dts node support for mt8512 Signed-off-by: Mingming Lee --- arch/arm/dts/mt8512-bm1-emmc.dts | 12 ++ arch/arm/dts/mt8512.dtsi | 38 +++- 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/mt8512

[PATCH v2 0/5] Add i2c support for MediaTek mt8512

2020-09-30 Thread mingming lee
From: Mingming Lee This patch series adds basic i2c support for MediaTek MT8512 EMMC boards. --- Changes for v2: - using error number defined in include/linux/errno.h. - add Mediatek i2c controller driver to ARM MEDIATEK in MAINTAINERS. - add bindings for mediatek i2c driver. Mingming

[PATCH v2 5/5] MAINTAINERS: add i2c driver to ARM MEDIATEK

2020-09-30 Thread mingming lee
From: Mingming Lee add Mediatek i2c controller driver to ARM MEDIATEK. Signed-off-by: Mingming Lee --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 889a73f15f..cc78561818 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -254,10 +254,12 @@ S

[PATCH v2 1/5] i2c: mediatek: add basic driver support

2020-09-30 Thread mingming lee
From: Mingming Lee Add MediaTek I2C basic driver Signed-off-by: Mingming Lee --- Changes for v2: - using error number defined in include/linux/errno.h --- drivers/i2c/Kconfig | 9 + drivers/i2c/Makefile | 1 + drivers/i2c/mt_i2c.c | 617 +++ 3

[PATCH v2 4/5] dt-binding: i2c: add bindings for mediatek i2c driver

2020-09-30 Thread mingming lee
From: Mingming Lee add bindings for mediatek i2c driver Signed-off-by: Mingming Lee --- doc/device-tree-bindings/i2c/i2c-mtk.txt | 39 1 file changed, 39 insertions(+) create mode 100644 doc/device-tree-bindings/i2c/i2c-mtk.txt diff --git a/doc/device-tree-bindings

[PATCH v2 3/5] configs: mt8512: Enable I2C related configs

2020-09-30 Thread mingming lee
From: Mingming Lee Enable MTK I2C Enable I2C basic command Signed-off-by: Mingming Lee --- configs/mt8512_bm1_emmc_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/mt8512_bm1_emmc_defconfig b/configs/mt8512_bm1_emmc_defconfig index 10a2083134..6b3d9a4e9b 100644

Re: [PATCH 1/3] i2c: mediatek: add basic driver support

2020-09-30 Thread Mingming Lee
On Wed, 2020-09-30 at 07:38 +0200, Heiko Schocher wrote: > Hello mingming, > > Am 09.09.2020 um 08:07 schrieb mingming lee: > > From: Mingming Lee > > > > Add MediaTek I2C basic driver > > > > Signed-off-by: Mingming Lee > > --- > > driv

[PATCH 2/3] ARM: dts: Mediatek: add i2c node support for mt8512

2020-09-09 Thread mingming lee
From: Mingming Lee add i2c dts node support for mt8512 Signed-off-by: Mingming Lee --- arch/arm/dts/mt8512-bm1-emmc.dts | 12 arch/arm/dts/mt8512.dtsi | 38 +- 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts

[PATCH 1/3] i2c: mediatek: add basic driver support

2020-09-09 Thread mingming lee
From: Mingming Lee Add MediaTek I2C basic driver Signed-off-by: Mingming Lee --- drivers/i2c/Kconfig | 9 + drivers/i2c/Makefile | 1 + drivers/i2c/mt_i2c.c | 619 +++ 3 files changed, 629 insertions(+) create mode 100644 drivers/i2c

[PATCH 0/3] Add i2c support for MediaTek mt8512

2020-09-09 Thread mingming lee
From: Mingming Lee This patch series adds basic i2c support for MediaTek MT8512 EMMC boards. Mingming Lee (3): i2c: mediatek: add basic driver support ARM: dts: Mediatek: add i2c node support for mt8512 configs: mt8512: Enable I2C related configs arch/arm/dts/mt8512-bm1-emmc.dts | 12

[PATCH 3/3] configs: mt8512: Enable I2C related configs

2020-09-09 Thread mingming lee
From: Mingming Lee Enable MTK I2C Enable I2C basic command Signed-off-by: Mingming Lee --- configs/mt8512_bm1_emmc_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/mt8512_bm1_emmc_defconfig b/configs/mt8512_bm1_emmc_defconfig index 10a2083..6b3d9a4 100644

[PATCH] ARM: MediaTek: amend IC description for MediaTek MT8512

2020-09-03 Thread mingming lee
From: Mingming Lee The description for MT8512 has some mistake, so correct it. Signed-off-by: Mingming Lee --- arch/arm/mach-mediatek/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-mediatek/Kconfig index

Re: [PATCH] pinctrl: mediatek: mt8512: fix the wrong start address of ranges

2020-09-01 Thread Mingming Lee
PIN_FIELD(0, 115, 0x900, 0x10, 0, 1), > }; > > static const struct mtk_pin_field_calc mt8512_pin_ies_range[] = { Reviewed-by: Mingming Lee

[PATCH v2 6/6] fastboot: mt85xx: add command to flash/erase emmc hwpart

2020-01-16 Thread mingming lee
This patch includes the following: 1. Add fastboot command to erase the whole EMMC_USER 2. Add fastboot command to flash image at EMMC_BOOT1 3. Add fastboot command to erase the whole EMMC_BOOT1 4. Enale CONFIG_FASTBOOT_MMC_BOOT1_SUPPORT for mt8518 Signed-off-by: mingming lee --- Changes for v2

[PATCH v2 2/6] ARM: Mediatek: Add board_late_init to init usb gadget driver

2020-01-16 Thread mingming lee
Add board_late_init function to init usb gadget driver for mt8518 Signed-off-by: mingming lee --- board/mediatek/mt8518/mt8518_ap1.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/board/mediatek/mt8518/mt8518_ap1.c b/board/mediatek/mt8518/mt8518_ap1.c index 9710907fe2

[PATCH v2 1/6] usb: musb-new: mt85xx: add musb-new gadget driver.

2020-01-16 Thread mingming lee
Using musb-new structure for mt85xx gadget driver. Add gadget driver dts for mt8518 SoCs. Signed-off-by: mingming lee --- arch/arm/dts/mt8518.dtsi | 13 ++ drivers/usb/musb-new/Kconfig | 11 +- drivers/usb/musb-new/Makefile | 1 + drivers/usb/musb-new/mt85xx.c | 417

[PATCH v2 0/6] Add fastboot support for MediaTek mt8518

2020-01-16 Thread mingming lee
config. - fixed the build error for other defconfig,such as dra7xx_evm_defconfig. mingming lee (6): usb: musb-new: mt85xx: add musb-new gadget driver. ARM: Mediatek: Add board_late_init to init usb gadget driver configs: mt8518: set global variables for fastboot configs: mt8518: enable

[PATCH v2 5/6] configs: mt8518: Enable fastboot related configs

2020-01-16 Thread mingming lee
Enable EFI module. Enable fastboot. Signed-off-by: mingming lee --- configs/mt8518_ap1_emmc_defconfig | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configs/mt8518_ap1_emmc_defconfig b/configs/mt8518_ap1_emmc_defconfig index 9857b7b776..714fd8e087 100644

[PATCH v2 3/6] configs: mt8518: set global variables for fastboot

2020-01-16 Thread mingming lee
set common fastboot variables for mt8518 Signed-off-by: mingming lee --- include/configs/mt8518.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/configs/mt8518.h b/include/configs/mt8518.h index 8906245a62..9bc9c04e66 100644 --- a/include/configs/mt8518.h

[PATCH v2 4/6] configs: mt8518: enable usb gadget driver

2020-01-16 Thread mingming lee
Enable board_late_init and usb gadget for mt8518 Signed-off-by: mingming lee --- configs/mt8518_ap1_emmc_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/configs/mt8518_ap1_emmc_defconfig b/configs/mt8518_ap1_emmc_defconfig index dd42076f4d..9857b7b776 100644

Re: [PATCH 6/6] fastboot: mt85xx: add command to flash/erase emmc hwpart

2020-01-15 Thread Mingming Lee
On Wed, 2020-01-15 at 15:48 -0500, Tom Rini wrote: > On Mon, Jan 06, 2020 at 02:26:49PM +0800, mingming lee wrote: > > > This patch includes the following: > > 1. Add fastboot command to erase the whole EMMC_USER > > 2. Add fastboot command to flash image at EMMC_BOOT1 >

[PATCH 0/6] Add fastboot support for MediaTek mt8518

2020-01-05 Thread mingming lee
This patch series adds basic fastboot support for MediaTek MT8518 EMMC boards, including musb-new structure for gadget driver and fastboot related configs. mingming lee (6): usb: musb-new: mt85xx: add musb-new gadget driver. ARM: Mediatek: Add board_late_init to init usb gadget driver

[PATCH 1/6] usb: musb-new: mt85xx: add musb-new gadget driver.

2020-01-05 Thread mingming lee
Using musb-new structure for mt85xx gadget driver. Add gadget driver dts for mt8518 SoCs. Signed-off-by: mingming lee --- arch/arm/dts/mt8518.dtsi | 13 ++ drivers/usb/musb-new/Kconfig | 11 +- drivers/usb/musb-new/Makefile | 1 + drivers/usb/musb-new/mt85xx.c | 417

[PATCH 3/6] configs: mt8518: set global variables for fastboot

2020-01-05 Thread mingming lee
set common fastboot variables for mt8518 Signed-off-by: mingming lee --- include/configs/mt8518.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/configs/mt8518.h b/include/configs/mt8518.h index 8906245a62..9bc9c04e66 100644 --- a/include/configs/mt8518.h

[PATCH 6/6] fastboot: mt85xx: add command to flash/erase emmc hwpart

2020-01-05 Thread mingming lee
This patch includes the following: 1. Add fastboot command to erase the whole EMMC_USER 2. Add fastboot command to flash image at EMMC_BOOT1 3. Add fastboot command to erase the whole EMMC_BOOT1 4. Enale CONFIG_FASTBOOT_MMC_BOOT1_SUPPORT for mt8518 Signed-off-by: mingming lee --- configs

[PATCH 4/6] configs: mt8518: enable usb gadget driver

2020-01-05 Thread mingming lee
Enable board_late_init and usb gadget for mt8518 Signed-off-by: mingming lee --- configs/mt8518_ap1_emmc_defconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/configs/mt8518_ap1_emmc_defconfig b/configs/mt8518_ap1_emmc_defconfig index dd42076f4d..9857b7b776 100644

[PATCH 5/6] configs: mt8518: Enable fastboot related configs

2020-01-05 Thread mingming lee
Enable EFI module. Enable fastboot. Signed-off-by: mingming lee --- configs/mt8518_ap1_emmc_defconfig | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configs/mt8518_ap1_emmc_defconfig b/configs/mt8518_ap1_emmc_defconfig index 9857b7b776..714fd8e087 100644

[PATCH 2/6] ARM: Mediatek: Add board_late_init to init usb gadget driver

2020-01-05 Thread mingming lee
Add board_late_init function to init usb gadget driver for mt8518 Signed-off-by: mingming lee --- board/mediatek/mt8518/mt8518_ap1.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/board/mediatek/mt8518/mt8518_ap1.c b/board/mediatek/mt8518/mt8518_ap1.c index 9710907fe2

[PATCH v2 3/8] clk: mediatek: add set_clr_upd mux type flow

2019-12-30 Thread mingming lee
Add new set_clr_upd mux type and related operation to mtk common clock driver to support mt8512 --- drivers/clk/mediatek/clk-mtk.c | 43 +- drivers/clk/mediatek/clk-mtk.h | 23 ++ 2 files changed, 55 insertions(+), 11 deletions(-) diff --git

[PATCH v2 8/8] ARM: MediaTek: add basic support for MT8512 boards

2019-12-30 Thread mingming lee
This adds a general board file based on MT8512 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. This commit is adding the basic boot support for the MT8512 eMMC board. Signed-off-by: mingming lee --- arch/arm/dts/Makefile

[PATCH v2 5/8] pinctrl: mediatek: add driver for MT8512

2019-12-30 Thread mingming lee
Add Pinctrl driver for MediaTek MT8512 SoC. Signed-off-by: mingming lee --- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8512.c | 387 ++ 3 files changed, 392 insertions(+) create

[PATCH v2 2/8] clk: mediatek: add driver support for MT8512

2019-12-30 Thread mingming lee
Add clock driver for MediaTek MT8512 SoC, include topckgen, apmixedsys and infracfg support. Signed-off-by: mingming lee --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8512.c | 873 + include/dt-bindings/clock/mt8512-clk.h | 197

[PATCH v2 0/8] Add support for MediaTek MT8512 Soc

2019-12-30 Thread mingming lee
into two patchs. - Delete fix patch for clock-rate overflow in mtk clk since have been included in changelist 1207053 mingming lee (8): ARM: MediaTek: Add support for MediaTek MT8512 SoC clk: mediatek: add driver support for MT8512 clk: mediatek: add set_clr_upd mux type flow clk

[PATCH v2 7/8] mmc: mtk-sd: fix hang when data read quickly

2019-12-30 Thread mingming lee
. Signed-off-by: mingming lee --- drivers/mmc/mtk-sd.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 23413731dc..b0365877d7 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c @@ -14,7 +14,6 @@ #include #include

[PATCH v2 6/8] mmc: mtk-sd: add support for MediaTek MT8512/MT8110 SoCs

2019-12-30 Thread mingming lee
This patch adds mmc support for MediaTek MT8512/MT8110 SoCs. MT8512/MT8110 SoCs puts the tune register at top layer, so need add new code to support it. Signed-off-by: mingming lee --- drivers/mmc/mtk-sd.c | 134 --- 1 file changed, 101 insertions(+), 33

[PATCH v2 1/8] ARM: MediaTek: Add support for MediaTek MT8512 SoC

2019-12-30 Thread mingming lee
Add support for MediaTek MT8512 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: mingming lee --- Changes for v2: -Sort device nodes reg address order and alphabetically. --- arch/arm/dts/mt8512.dtsi | 115

[PATCH v2 4/8] clk: mediatek: add configurable pcw_chg_reg/ibits/fmin to mtk_pll

2019-12-30 Thread mingming lee
Add configurable pcw_chg_reg/ibits/fmin to mtk_pll to support mt8512 --- drivers/clk/mediatek/clk-mtk.c | 25 + drivers/clk/mediatek/clk-mtk.h | 3 +++ 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/clk/mediatek/clk-mtk.c

Re: [PATCH 2/7] clk: mediatek: adjust common driver for mt8512

2019-12-23 Thread Mingming Lee
On Tue, 2019-12-24 at 03:50 +0800, Ryder Lee wrote: > On Mon, 2019-12-23 at 17:28 +0800, mingming lee wrote: > > Update mtk common clock driver to support mt8512 > > 1. add new set_clr_upd mux type and related operation > > 2. add configurable pcw_chg_reg/ibits/fmin

[PATCH 3/7] clk: mediatek: add driver support for MT8512

2019-12-23 Thread mingming lee
Add clock driver for MediaTek MT8512 SoC, include topckgen, apmixedsys and infracfg support. Signed-off-by: mingming lee --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8512.c | 873 + include/dt-bindings/clock/mt8512-clk.h | 197

[PATCH 4/7] pinctrl: mediatek: add driver for MT8512

2019-12-23 Thread mingming lee
Add Pinctrl driver for MediaTek MT8512 SoC. Signed-off-by: mingming lee --- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8512.c | 387 ++ 3 files changed, 392 insertions(+) create

[PATCH 7/7] ARM: MediaTek: add basic support for MT8512 boards

2019-12-23 Thread mingming lee
This adds a general board file based on MT8512 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. This commit is adding the basic boot support for the MT8512 eMMC board. Signed-off-by: mingming lee --- arch/arm/dts/Makefile

[PATCH 1/7] ARM: MediaTek: Add support for MediaTek MT8512 SoC

2019-12-23 Thread mingming lee
Add support for MediaTek MT8512 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: mingming lee --- arch/arm/dts/mt8512.dtsi | 115 ++ arch/arm/mach-mediatek/Kconfig| 15 +++ arch/arm/mach

[PATCH 2/7] clk: mediatek: adjust common driver for mt8512

2019-12-23 Thread mingming lee
Update mtk common clock driver to support mt8512 1. add new set_clr_upd mux type and related operation 2. add configurable pcw_chg_reg/ibits/fmin to mtk_pll 3. fix mtk_clk_find_parent_rate data overflow Signed-off-by: mingming lee --- drivers/clk/mediatek/clk-mtk.c | 72

[PATCH 6/7] mmc: mtk-sd: fix hang when data read quickly

2019-12-23 Thread mingming lee
. Signed-off-by: mingming lee --- drivers/mmc/mtk-sd.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 23413731dc..b0365877d7 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c @@ -14,7 +14,6 @@ #include #include

[PATCH 5/7] mmc: mtk-sd: add support for MediaTek MT8512/MT8110 SoCs

2019-12-23 Thread mingming lee
This patch adds mmc support for MediaTek MT8512/MT8110 SoCs. MT8512/MT8110 SoCs puts the tune register at top layer, so need add new code to support it. Signed-off-by: mingming lee --- drivers/mmc/mtk-sd.c | 134 --- 1 file changed, 101 insertions(+), 33

[PATCH 0/7] Add support for MediaTek MT8512 Soc

2019-12-23 Thread mingming lee
This patch series adds basic boot support on eMMC for the MediaTek MT8512 SoC based boards. This series add the clock, pinctrl drivers and the SoC initializaton code. mingming lee (7): ARM: MediaTek: Add support for MediaTek MT8512 SoC clk: mediatek: adjust common driver for mt8512 clk

[U-Boot] [PATCH v3 2/5] clk: mediatek: add driver for MT8518

2019-11-07 Thread mingming lee
Add clock driver for MediaTek MT8518 SoC. Signed-off-by: mingming lee --- Changes for v3: -fix top clock register definition which cause unused warning. --- drivers/clk/mediatek/Makefile |1 + drivers/clk/mediatek/clk-mt8518.c | 1558 include/dt

[U-Boot] [PATCH v3 5/5] ARM: MediaTek: add basic support for MT8518 boards

2019-11-07 Thread mingming lee
This adds a general board file based on MT8518 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. This commit is adding the basic boot support for the MT8518 eMMC board. Signed-off-by: mingming lee --- Changes for v3

[U-Boot] [PATCH v3 0/5] Add support for MediaTek MT8518 Soc

2019-11-07 Thread mingming lee
is hs200 - Fixed all build warnings using gcc version 740 Changes for v2: - Fixed issues in v1: drop unused 'devices',delete no need code and print debug log using debug() - Delete unnecessary configs in defconfig - Adjust the mmc tuning flow to support HS400 mingming lee (5

[U-Boot] [PATCH v3 1/5] ARM: MediaTek: Add support for MediaTek MT8518 SoC

2019-11-07 Thread mingming lee
Add support for MediaTek MT8518 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: mingming lee --- Changes for v3: -drop unused api to keep it simple Changes for v2: -drop unused 'device' in dtsi to keep it simple --- arch/arm/dts

[U-Boot] [PATCH v3 4/5] pinctrl: add driver for MT8518

2019-11-07 Thread mingming lee
Add Pinctrl driver for MediaTek MT8518 SoC. Signed-off-by: mingming lee --- arch/arm/dts/mt8518.dtsi | 9 +- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8518.c | 411

[U-Boot] [PATCH v3 3/5] mmc: mtk-sd: Adjust the mmc tuning flow

2019-11-07 Thread mingming lee
1.Support cmd response and data tuning together. 2.Support hs400 cmd responese tuning. Signed-off-by: mingming lee --- Changes for v2: - add hs400 support --- drivers/mmc/mtk-sd.c | 209 +++ 1 file changed, 193 insertions(+), 16 deletions(-) diff

Re: [U-Boot] [PATCH v2 1/5] ARM: MediaTek: Add support for MediaTek MT8518 SoC

2019-10-31 Thread Mingming Lee
On Wed, 2019-10-30 at 23:09 -0400, Tom Rini wrote: > On Mon, Oct 21, 2019 at 02:59:04PM +0800, mingming lee wrote: > > > Add support for MediaTek MT8518 SoC. This include the file > > that will initialize the SoC after boot and its device tree. > > > &g

[U-Boot] [PATCH v2 2/5] clk: mediatek: add driver for MT8518

2019-10-21 Thread mingming lee
Add clock driver for MediaTek MT8518 SoC. Signed-off-by: mingming lee --- drivers/clk/mediatek/Makefile |1 + drivers/clk/mediatek/clk-mt8518.c | 1558 include/dt-bindings/clock/mt8518-clk.h | 249 3 files changed, 1808 insertions(+) create mode

[U-Boot] [PATCH v2 5/5] ARM: MediaTek: add basic support for MT8518 boards

2019-10-21 Thread mingming lee
This adds a general board file based on MT8518 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. This commit is adding the basic boot support for the MT8518 eMMC board. Signed-off-by: mingming lee --- Changes for v2

[U-Boot] [PATCH v2 3/5] mmc: mtk-sd: Adjust the mmc tuning flow

2019-10-21 Thread mingming lee
1.Support cmd response and data tuning together. 2.Support hs400 cmd responese tuning. Signed-off-by: mingming lee --- Changes for v2: - add hs400 support --- drivers/mmc/mtk-sd.c | 209 +++ 1 file changed, 193 insertions(+), 16 deletions(-) diff

[U-Boot] [PATCH v2 4/5] pinctrl: add driver for MT8518

2019-10-21 Thread mingming lee
Add Pinctrl driver for MediaTek MT8518 SoC. Signed-off-by: mingming lee --- arch/arm/dts/mt8518.dtsi | 9 +- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8518.c | 411

[U-Boot] [PATCH v2 1/5] ARM: MediaTek: Add support for MediaTek MT8518 SoC

2019-10-21 Thread mingming lee
Add support for MediaTek MT8518 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: mingming lee --- Changes for v2: -drop unused 'device' in dtsi to keep it simple --- arch/arm/dts/mt8518.dtsi | 91 ++ arch

[U-Boot] [PATCH v2 0/5] Add support for MediaTek MT8518 Soc

2019-10-21 Thread mingming lee
() - delete unnecessary configs in defconfig - adjust the mmc tuning flow to support HS400 mingming lee (5): ARM: MediaTek: Add support for MediaTek MT8518 SoC clk: mediatek: add driver for MT8518 mmc: mtk-sd: Adjust the mmc tuning flow pinctrl: add driver for MT8518 ARM: MediaTek: add basic

Re: [U-Boot] [PATCH 5/5] ARM: MediaTek: add basic support for MT8518 boards

2019-10-15 Thread Mingming Lee
On Sat, 2019-10-12 at 01:28 +0800, Tom Rini wrote: > On Wed, Sep 11, 2019 at 07:14:59PM +0800, mingming lee wrote: > > > This adds a general board file based on MT8518 SoCs from MediaTek. > > > > Apart from the generic parts (cpu) we add some low level init codes >

Re: [U-Boot] [PATCH 1/5] ARM: MediaTek: Add support for MediaTek MT8518 SoC

2019-10-15 Thread Mingming Lee
On Sun, 2019-10-13 at 18:55 +0800, Matthias Brugger wrote: > > On 11/09/2019 13:14, mingming lee wrote: > > Add support for MediaTek MT8518 SoC. This include the file > > that will initialize the SoC after boot and its device tree. > > > > Signed-off-by: mingming

Re: [U-Boot] [PATCH 1/5] ARM: MediaTek: Add support for MediaTek MT8518 SoC

2019-10-15 Thread Mingming Lee
On Sun, 2019-10-13 at 18:55 +0800, Matthias Brugger wrote: > > On 11/09/2019 13:14, mingming lee wrote: > > Add support for MediaTek MT8518 SoC. This include the file > > that will initialize the SoC after boot and its device tree. > > > > Signed-off-by: mingming

Re: [U-Boot] [PATCH 1/5] ARM: MediaTek: Add support for MediaTek MT8518 SoC

2019-10-15 Thread Mingming Lee
On Sun, 2019-10-13 at 18:55 +0800, Matthias Brugger wrote: > > On 11/09/2019 13:14, mingming lee wrote: > > Add support for MediaTek MT8518 SoC. This include the file > > that will initialize the SoC after boot and its device tree. > > > > Signed-off-by: mingming

[U-Boot] [PATCH 5/5] ARM: MediaTek: add basic support for MT8518 boards

2019-09-11 Thread mingming lee
This adds a general board file based on MT8518 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. This commit is adding the basic boot support for the MT8518 eMMC board. Signed-off-by: mingming lee --- arch/arm/dts/Makefile

[U-Boot] [PATCH 4/5] pinctrl: add driver for MT8518

2019-09-11 Thread mingming lee
Add Pinctrl driver for MediaTek MT8518 SoC. Signed-off-by: mingming lee --- arch/arm/dts/mt8518.dtsi | 9 + drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt8518.c | 411

[U-Boot] [PATCH 3/5] mmc: mtk-sd: add HS200 support

2019-09-11 Thread mingming lee
add HS200 mode and tune support Signed-off-by: mingming lee --- drivers/mmc/mtk-sd.c | 30 -- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index f555357af2..bede4153b3 100644 --- a/drivers/mmc/mtk-sd.c

[U-Boot] [PATCH 2/5] clk: mediatek: add driver for MT8518

2019-09-11 Thread mingming lee
Add clock driver for MediaTek MT8518 SoC. Signed-off-by: mingming lee --- drivers/clk/mediatek/Makefile |1 + drivers/clk/mediatek/clk-mt8518.c | 1558 include/dt-bindings/clock/mt8518-clk.h | 249 3 files changed, 1808 insertions(+) create mode

[U-Boot] [PATCH 0/5] Add support for MediaTek MT8518 Soc

2019-09-11 Thread mingming lee
This patch series adds basic boot support on eMMC for the MediaTek MT8518 SoC based boards. This series add the clock, pinctrl drivers and the SoC initializaton code. mingming lee (5): ARM: MediaTek: Add support for MediaTek MT8518 SoC clk: mediatek: add driver for MT8518 mmc: mtk-sd: add

[U-Boot] [PATCH 1/5] ARM: MediaTek: Add support for MediaTek MT8518 SoC

2019-09-11 Thread mingming lee
Add support for MediaTek MT8518 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: mingming lee --- arch/arm/dts/mt8518.dtsi | 201 ++ arch/arm/mach-mediatek/Kconfig| 9 + arch/arm/mach

[U-Boot] [PATCH 1/5] ARM: MediaTek: Add support for MediaTek MT8518 SoC

2019-09-11 Thread mingming lee
Add support for MediaTek MT8518 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: mingming lee --- arch/arm/dts/mt8518.dtsi | 201 ++ arch/arm/mach-mediatek/Kconfig| 9 + arch/arm/mach