Re: [PATCH v2 05/11] ahci: mediatek: add ahci driver

2020-08-19 Thread Sam Shih
line. Copyright (C) 2020 MediaTek Inc. > + * > + * Author: Frank Wunderlich > + * based on > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/ata/ahci_mtk.c Don't place this line between the Author tags > + * Author: Ryder Lee > + */ Thanks, Best Regards, Sam Shih

Re: [PATCH v2 04/11] reset: add basic reset controller for pciesys

2020-08-19 Thread Sam Shih
T_MEDIATEK)) { > +// PCIESYS uses in linux also 0x34 = ETHSYS reset controller No need to add special comments that are not easy to understand, and please uses "/* */" instead of "//". Thanks, Best Regards, Sam Shih

Re: [RFC PATCH 1/4] mt7622: Support to build 32 bits version.

2020-08-10 Thread Sam Shih
F in the old bpir64 image, implemented in aarch64) Using this new ATF 2.1, MT7622 mainline U-boot can detect the FIT description in the liunx image and jump to aarch32/aarch64 mode and boot to Shell. Therefore, I think we should keep the mt7622 upstream uboot code clear and keep no proprietary code to support the old ATF. The new architecture of mt7622 (bpir64) will be: aarch64 prelaoder (BL2), aarch64 bl31 and aarch64 u-boot and optional arch32/aarch64 of the Linux kernel Thanks, Regards, Sam Shih

[PATCH 0/1] arm: mediatek: remove unused binman config

2020-03-04 Thread Sam Shih
This patch fix mt7622 and mt7623 boot problem caused by BINMAN_FDT Sam Shih (1): arm: mediatek: remove unuse binman config arch/arm/Kconfig | 1 - arch/arm/mach-mediatek/Kconfig | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) -- 2.17.1

[PATCH 1/1] arm: mediatek: remove unused binman config

2020-03-04 Thread Sam Shih
eca1 ("arm: MediaTek: add basic support for MT7629 boards") select BINMAN=y in all mediatek SoCs, and others mediatek SoCs not expect to use BINMAN_FDT. This patch remove BINMAN=y option when ARCH_MEDIATEK=y and move this to the specify SoCs part config. Signed-off-by: Sam S

[PATCH 0/3] mediatek: pwm: add pwm driver for MediaTek SoCs

2020-02-21 Thread Sam Shih
Add pwm support for MediaTek SoCs: mt7622, mt7623 and mt7629, also fix mt7622 and mt7623 boot problem caused by BINMAN_FDT Sam Shih (3): mediatek: pwm: add pwm driver for MediaTek SoCs arm: dts: add pwm support for MediaTek SoCs arm: mediatek: remove unuse binman config arch/arm/Kconfig

[PATCH 1/3] mediatek: pwm: add pwm driver for MediaTek SoCs

2020-02-21 Thread Sam Shih
This driver support the standard PWM API for MediaTek MT7623, MT7622 and MT7629 SoCs Signed-off-by: Sam Shih --- drivers/pwm/Kconfig | 7 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-mtk.c | 188 ++ 3 files changed, 196 insertions(+) create mode

[PATCH 2/3] arm: dts: add pwm support for MediaTek SoCs

2020-02-21 Thread Sam Shih
This patch add pwm support for mt7622, mt7623 and mt7629 SoCs Signed-off-by: Sam Shih --- arch/arm/dts/mt7622.dtsi | 19 +++ arch/arm/dts/mt7623.dtsi | 17 + arch/arm/dts/mt7629.dtsi | 16 3 files changed, 52 insertions(+) diff --git a/arch/arm

[PATCH 3/3] arm: mediatek: remove unuse binman config

2020-02-21 Thread Sam Shih
eca1 ("arm: MediaTek: add basic support for MT7629 boards") select BINMAN=y in all mediatek SoCs, and others mediatek SoCs not expect to use BINMAN_FDT. This patch remove BINMAN=y option when ARCH_MEDIATEK=y and move this to the specify SoCs part config. Signed-off-by: Sam Shih -

[RESEND v2 10/10] configs: mediatek: fix mt7623n bpir2 defconfig

2020-01-10 Thread Sam Shih
This patch add CONFIG_TARGET_MT7623 into mt7623n_bpir2_defconfig to fix the mt7623 compile error after building others mediatek target platform Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- configs/mt7623n_bpir2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[RESEND v2 09/10] arm: dts: mediatek: move u-boot properties to -u-boot.dtsi file

2020-01-10 Thread Sam Shih
This patch move u-boot properties to -u-boot.dtsi file. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- arch/arm/dts/mt7623-u-boot.dtsi | 29 +++ arch/arm/dts/mt7623.dtsi | 6 arch/arm/dts/mt7623n-bananapi-bpi-r2.dts | 1 + arch/arm/dts/mt7629

[RESEND v2 07/10] mmc: add mmc and sd support for MT7622

2020-01-10 Thread Sam Shih
This patch add mmc and sd support for Mediatek MT7622 SoCs Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- drivers/mmc/mtk-sd.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index eaa584a4df..a3ede3070a 100644 --- a/drivers/mmc

[RESEND v2 06/10] power: domain: add power domain support for MT7622

2020-01-10 Thread Sam Shih
This patch add power domain support for Mediatek MT7622 SoCs Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- drivers/power/domain/mtk-power-domain.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c

[RESEND v2 03/10] pinctrl: mediatek: add support for different pinctrl

2020-01-10 Thread Sam Shih
Due to the pinctrl hardware of MT7622 is difference from others SoC which using the common part of mediatek pinctrl. So we need to modify the common part of mediatek pinctrl. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- drivers/pinctrl/mediatek/pinctrl-mt7622.c | 2 + drivers

[RESEND v2 05/10] clk: mediatek: fix clock-rate overflow problem

2020-01-10 Thread Sam Shih
This patch fix clock-rate overflow problem in mediatek clock driver common part. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- drivers/clk/mediatek/clk-mtk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk

[RESEND v2 08/10] Add support for MT7622 reference board

2020-01-10 Thread Sam Shih
This adds a general board file based on MT7622 SoCs from MediaTek. This commit is adding the basic boot support for the MT7622 rfb. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee Tested-by: Frank Wunderlich --- arch/arm/dts/Makefile | 1 + arch/arm/dts/mt7622-rfb.dts

[RESEND v2 04/10] clk: mediatek: add driver for MT7622

2020-01-10 Thread Sam Shih
This patch add clock driver for MediaTek MT7622 SoC. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7622.c | 678 + include/dt-bindings/clock/mt7622-clk.h | 271 ++ 3 files

[RESEND v2,00/10] Add support for MediaTek MT7622 SoC

2020-01-10 Thread Sam Shih
- pinctrl: mediatek: add support for different pinctrl: - use gpio_mode to replace gpio_func for easier understanding - fix mt7623n bpir2 defconfig - ARM: MediaTek: Add support for MediaTek MT7622 SoC - fix dram size in mm_region Sam Shih (10): ARM: MediaTek: Add support for MediaTek MT7622

[RESEND v2 02/10] pinctrl: mediatek: add driver for MT7622

2020-01-10 Thread Sam Shih
This patch add Pinctrl driver for MediaTek MT7622 SoC. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt7622.c | 752 ++ 3 files

[RESEND v2 01/10] ARM: MediaTek: Add support for MediaTek MT7622 SoC

2020-01-10 Thread Sam Shih
Add support for MediaTek MT7622 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- arch/arm/dts/mt7622-u-boot.dtsi| 29 arch/arm/dts/mt7622.dtsi | 185

[U-boot,v2,07/10] mmc: add mmc and sd support for MT7622

2019-12-10 Thread Sam Shih
This patch add mmc and sd support for Mediatek MT7622 SoCs Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- drivers/mmc/mtk-sd.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index eaa584a4df..a3ede3070a 100644 --- a/drivers/mmc

[U-boot,v2,01/10] ARM: MediaTek: Add support for MediaTek MT7622 SoC

2019-12-10 Thread Sam Shih
Add support for MediaTek MT7622 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- arch/arm/dts/mt7622-u-boot.dtsi| 29 arch/arm/dts/mt7622.dtsi | 185

[U-boot,v2,10/10] configs: mediatek: fix mt7623n bpir2 defconfig

2019-12-10 Thread Sam Shih
This patch add CONFIG_TARGET_MT7623 into mt7623n_bpir2_defconfig to fix the mt7623 compile error after building others mediatek target platform Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- configs/mt7623n_bpir2_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs

[U-boot,v2,08/10] Add support for MT7622 reference board

2019-12-10 Thread Sam Shih
This adds a general board file based on MT7622 SoCs from MediaTek. This commit is adding the basic boot support for the MT7622 rfb. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- arch/arm/dts/Makefile | 1 + arch/arm/dts/mt7622-rfb.dts| 180

[U-boot, v2, 09/10] arm: dts: mediatek: move u-boot properties to -u-boot.dtsi file

2019-12-10 Thread Sam Shih
This patch move u-boot properties to -u-boot.dtsi file. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- arch/arm/dts/mt7623-u-boot.dtsi | 29 +++ arch/arm/dts/mt7623.dtsi | 6 arch/arm/dts/mt7623n-bananapi-bpi-r2.dts | 1 + arch/arm/dts/mt7629

[U-boot,v2,06/10] power: domain: add power domain support for MT7622

2019-12-10 Thread Sam Shih
This patch add power domain support for Mediatek MT7622 SoCs Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- drivers/power/domain/mtk-power-domain.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c

[U-boot,v2,04/10] clk: mediatek: add driver for MT7622

2019-12-10 Thread Sam Shih
This patch add clock driver for MediaTek MT7622 SoC. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7622.c | 678 + include/dt-bindings/clock/mt7622-clk.h | 271 ++ 3 files

[U-boot,v2,00/10] Add support for MediaTek MT7622 SoC

2019-12-10 Thread Sam Shih
for different pinctrl: - use gpio_mode to replace gpio_func for easier understanding - fix mt7623n bpir2 defconfig - ARM: MediaTek: Add support for MediaTek MT7622 SoC - fix dram size in mm_region Sam Shih (10): ARM: MediaTek: Add support for MediaTek MT7622 SoC pinctrl: mediatek: add driver

[U-boot,v2,02/10] pinctrl: mediatek: add driver for MT7622

2019-12-10 Thread Sam Shih
This patch add Pinctrl driver for MediaTek MT7622 SoC. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt7622.c | 752 ++ 3 files

[U-boot, v2, 03/10] pinctrl: mediatek: add support for different pinctrl

2019-12-10 Thread Sam Shih
Due to the pinctrl hardware of MT7622 is difference from others SoC which using the common part of mediatek pinctrl. So we need to modify the common part of mediatek pinctrl. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- drivers/pinctrl/mediatek/pinctrl-mt7622.c | 2 + drivers

[U-boot,v2,05/10] clk: mediatek: fix clock-rate overflow problem

2019-12-10 Thread Sam Shih
This patch fix clock-rate overflow problem in mediatek clock driver common part. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- drivers/clk/mediatek/clk-mtk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk

[U-Boot,8/8] Add support for MT7622 reference board

2019-12-06 Thread Sam Shih
This adds a general board file based on MT7622 SoCs from MediaTek. This commit is adding the basic boot support for the MT7622 rfb. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- arch/arm/dts/Makefile | 1 + arch/arm/dts/mt7622-rfb.dts| 179

[U-Boot,6/8] power: domain: add power domain support for MT7622

2019-12-06 Thread Sam Shih
This patch add power domain support for Mediatek MT7622 SoCs Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- drivers/power/domain/mtk-power-domain.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c

[U-Boot,2/8] pinctrl: mediatek: add driver for MT7622

2019-12-06 Thread Sam Shih
This patch add Pinctrl driver for MediaTek MT7622 SoC. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- drivers/pinctrl/mediatek/Kconfig | 4 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt7622.c | 752 ++ 3 files

[U-Boot,4/8] clk: mediatek: add driver for MT7622

2019-12-06 Thread Sam Shih
This patch add clock driver for MediaTek MT7622 SoC. Signed-off-by: Ryder Lee Signed-off-by: Sam Shih --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7622.c | 678 + include/dt-bindings/clock/mt7622-clk.h | 271 ++ 3 files

[U-Boot,7/8] mmc: add mmc and sd support for MT7622

2019-12-06 Thread Sam Shih
This patch add mmc and sd support for Mediatek MT7622 SoCs Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- drivers/mmc/mtk-sd.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index eaa584a4df..a3ede3070a 100644 --- a/drivers/mmc

[U-Boot,5/8] clk: mediatek: fix clock-rate overflow problem

2019-12-06 Thread Sam Shih
This patch fix clock-rate overflow problem in mediatek clock driver common part. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- drivers/clk/mediatek/clk-mtk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk

[U-Boot,3/8] pinctrl: mediatek: add support for different pinctrl

2019-12-06 Thread Sam Shih
Due to the pinctrl hardware of MT7622 is difference from others SoC which using the commom part of mediatek pinctrl. So we need to modify the common part of mediatek pinctrl. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- drivers/pinctrl/mediatek/pinctrl-mt7622.c | 2 + drivers

[U-Boot,0/8] Add support for MediaTek MT7622 SoC

2019-12-06 Thread Sam Shih
This patch series adds basic boot support on eMMC/SD/spi-nor for the MediaTek MT7622 SoC based boards. This series add the clock, pinctrl drivers and the SoC initializaton code. Sam Shih (8): ARM: MediaTek: Add support for MediaTek MT7622 SoC pinctrl: mediatek: add driver for MT7622 pinctrl

[U-Boot,1/8] ARM: MediaTek: Add support for MediaTek MT7622 SoC

2019-12-06 Thread Sam Shih
Add support for MediaTek MT7622 SoC. This include the file that will initialize the SoC after boot and its device tree. Signed-off-by: Sam Shih Reviewed-by: Ryder Lee --- arch/arm/dts/mt7622.dtsi | 191 + arch/arm/mach-mediatek/Kconfig | 9