[U-Boot] [PATCH v2 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629

2018-10-12 Thread Ryder Lee
Add Tested-by tags from Matthias. - Drop MT7629 qspi driver in the series, and we will implement another one based on the spi-mem framework. Guochun Mao (1): spi: mtk_qspi: add qspi driver for MT7629 SoC Ryder Lee (15): tools: MediaTek: add MTK boot header generation to mkimage arm: dts: M

[U-Boot] [PATCH v2 11/18] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-10-12 Thread Ryder Lee
This patch adds pinctrl support for MT7623 SoC. And most of the structures are used to hold the hardware configuration for each pin. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/pinctrl/mediatek/Kconfig |4 + drivers/pinctrl/mediatek/Makefile

[U-Boot] [PATCH v2 15/18] ram: MediaTek: add DDR3 driver for MT7629 SoC

2018-10-12 Thread Ryder Lee
This patch adds a DDR3 driver for MT7629 SoC. Signed-off-by: Wu Zou Signed-off-by: Ryder Lee --- drivers/ram/Makefile | 1 + drivers/ram/mediatek/Makefile | 7 + drivers/ram/mediatek/ddr3-mt7629.c | 766 + 3 files changed, 774

[U-Boot] [PATCH v2 02/18] arm: dts: MediaTek: add device tree for MT7629

2018-10-12 Thread Ryder Lee
This patch adds MT7629 device tree and the includes it needs. Signed-off-by: Ryder Lee --- arch/arm/dts/Makefile| 3 + arch/arm/dts/mt7629-rfb.dts | 71 + arch/arm/dts/mt7629.dtsi | 244 +++ include/dt

[U-Boot] [PATCH v2 04/18] arm: MediaTek: add basic support for MT7629 boards

2018-10-12 Thread Ryder Lee
This adds a general board file based on MT7629 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. Signed-off-by: Ryder Lee Signed-off-by: Weijie Gao --- arch/arm/Kconfig | 14 +++ arch/arm

[U-Boot] [PATCH v2 05/18] arm: MediaTek: add basic support for MT7623 boards

2018-10-12 Thread Ryder Lee
From: Weijie Gao This adds a general board file based on MT7623 SoCs from MediaTek. As this u-boot is loaded by preloader, there is no low level initializtion codes. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- arch/arm/mach-mediatek/Kconfig

[U-Boot] [PATCH v2 03/18] arm: dts: MediaTek: add device tree for MT7623

2018-10-12 Thread Ryder Lee
This adds device tree for MT7623 development board - Bananapi R2 Detailed hardware information for BPI-R2 which could be found on http://wiki.banana-pi.org/Banana_Pi_BPI-R2. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- arch/arm/dts/Makefile| 1 + arch/arm/dts

[U-Boot] [PATCH v2 10/18] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

2018-10-12 Thread Ryder Lee
chips that use the same binding and driver, then being a little more abstract could help in the long run. Signed-off-by: Ryder Lee --- arch/arm/include/asm/arch-mediatek/gpio.h | 9 + drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile | 1

[U-Boot] [PATCH v2 06/18] clk: MediaTek: add clock driver for MT7629 SoC.

2018-10-12 Thread Ryder Lee
MT7629 as an example to demonstrate how to implement driver if any other MediaTek chips would like to use it. Signed-off-by: Ryder Lee --- drivers/clk/Makefile | 1 + drivers/clk/mediatek/Makefile | 6 + drivers/clk/mediatek/clk-mt7629.c | 709

[U-Boot] [PATCH v2 12/18] power domain: MediaTek: add power domain driver for MT7629 SoC

2018-10-12 Thread Ryder Lee
. The System Power Manager (SPM) inside the SCPSYS is for the MTCMOS power domain control. For now this driver only adds power domain support. Signed-off-by: Ryder Lee --- drivers/power/domain/Kconfig| 7 + drivers/power/domain/Makefile | 1 + drivers/power/domain/mtk-power

[U-Boot] [PATCH v2 07/18] clk: MediaTek: add clock driver for MT7623 SoC.

2018-10-12 Thread Ryder Lee
This patch adds a driver for MT7623 clock blocks. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7623.c | 870 ++ 2 files changed, 871 insertions(+) create mode 100644 drivers

[U-Boot] [PATCH v2 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-10-12 Thread Ryder Lee
This patch adds support for MTK boot image generation. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee --- Makefile | 22 ++ common/image.c | 1 + include/image.h | 1 + scripts/Makefile.spl | 11 + tools/Makefile | 1 + tools/mtkimage.c | 749

[U-Boot] [PATCH v2 13/18] power domain: MediaTek: add power domain driver for MT7623 SoC

2018-10-12 Thread Ryder Lee
This adds power domain (scpsys) support for MT7623 SoC. Signed-off-by: Ryder Lee --- drivers/power/domain/mtk-power-domain.c | 80 + 1 file changed, 80 insertions(+) diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c

[U-Boot] [PATCH v2 08/18] timer: MediaTek: add timer driver for MediaTek SoCs

2018-10-12 Thread Ryder Lee
This patch adds clock source and clock event for the timer found on the Mediatek SoCs. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/timer/Kconfig | 7 drivers/timer/Makefile| 1 + drivers/timer/mtk_timer.c | 85

Re: [U-Boot] [PATCH v1 04/19] arm: MediaTek: add basic support for MT7629 boards

2018-10-12 Thread Ryder Lee
On Thu, 2018-10-11 at 10:10 -0400, Tom Rini wrote: > On Tue, Oct 09, 2018 at 11:54:04AM +0800, Ryder Lee wrote: > > > This adds a general board file based on MT7629 SoCs from MediaTek. > > > > Apart from the generic parts (cpu) we add some low level init codes > > a

[U-Boot] [PATCH v2 17/18] spi: mtk_qspi: add qspi driver for MT7629 SoC

2018-10-12 Thread Ryder Lee
From: Guochun Mao This patch adds MT7629 qspi driver for accessing SPI NOR flash. Cc: Jagan Teki Signed-off-by: Guochun Mao --- change since v2: - Drop flash commands in the driver. --- drivers/spi/Kconfig| 7 + drivers/spi/Makefile | 1 + drivers/spi/mtk_qspi.c | 359

Re: [U-Boot] [PATCH v1 06/19] configs: MediaTek: add MT7629 reference board support

2018-10-12 Thread Ryder Lee
On Thu, 2018-10-11 at 10:10 -0400, Tom Rini wrote: > On Tue, Oct 09, 2018 at 11:54:06AM +0800, Ryder Lee wrote: > > > This patch adds defconfig for the MT7629 reference board. > > > > Signed-off-by: Ryder Lee > > --- > >

[U-Boot] [PATCH v2 09/18] watchdog: MediaTek: add watchdog driver for MediaTek SoCs

2018-10-12 Thread Ryder Lee
This patch adds a common driver for the Mediatek SoC integrated watchdog. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/watchdog/Kconfig | 8 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/mtk_wdt.c | 135 + 3 files

[U-Boot] [PATCH v2 16/18] mmc: mtk-sd: add SD/MMC host controller driver for MT7623 SoC

2018-10-12 Thread Ryder Lee
From: Weijie Gao This patch adds MT7623 host controller driver for accessing SD/MMC. Cc: Jaehoon Chung Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/mmc/Kconfig |9 + drivers/mmc/Makefile |1 + drivers/mmc/mtk-sd.c | 1331

[U-Boot] [PATCH v2 18/18] MAINTAINERS: add an entry for MediaTek

2018-10-12 Thread Ryder Lee
This patch adds an entry for MediaTek. Signed-off-by: Ryder Lee --- MAINTAINERS | 18 ++ 1 file changed, 18 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ace7d9a..c8b7ecb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -157,6 +157,24 @@ T: git git://git.denx.de/u

[U-Boot] [PATCH v2 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-10-12 Thread Ryder Lee
This patch adds an extra operation in ns16550.c to suuport MediaTek SoCs as we have a highspeed register which influences the calcualtion of the divisor. Note that we don't support the baudrate greater than 115200 currently. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers

Re: [U-Boot] [PATCH v2 10/18] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

2018-10-25 Thread Ryder Lee
Hi Simon, On Wed, 2018-10-24 at 21:29 -0600, Simon Glass wrote: > Hi Ryder, > > On 12 October 2018 at 01:00, Ryder Lee wrote: > > This patch adds pinctrl support for MT7629 SoC. The IO core found on > > the SoC has the registers for pinctrl, pinconf and gpio mixed up in

Re: [U-Boot] [PATCH v2 05/18] arm: MediaTek: add basic support for MT7623 boards

2018-10-25 Thread Ryder Lee
On Wed, 2018-10-24 at 21:29 -0600, Simon Glass wrote: > Hi, > > On 12 October 2018 at 01:00, Ryder Lee wrote: > > From: Weijie Gao > > > > This adds a general board file based on MT7623 SoCs from MediaTek. > > > > As this u-boot is loaded by preloader,

Re: [U-Boot] [PATCH v2 11/18] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-10-25 Thread Ryder Lee
On Wed, 2018-10-24 at 21:29 -0600, Simon Glass wrote: > Hi Ryder, > > On 12 October 2018 at 01:01, Ryder Lee wrote: > > This patch adds pinctrl support for MT7623 SoC. And most of the > > structures are used to hold the hardware configuration for each > > pin. >

Re: [U-Boot] [PATCH v2 06/18] clk: MediaTek: add clock driver for MT7629 SoC.

2018-10-25 Thread Ryder Lee
On Wed, 2018-10-24 at 21:29 -0600, Simon Glass wrote: > Hi Ryder, > > On 12 October 2018 at 01:00, Ryder Lee wrote: > > This patch adds clock modules for MediaTek SoCs: > > - Shared part: a common driver which contains the general operations > > for plls, muxes, divide

Re: [U-Boot] [PATCH v2 04/18] arm: MediaTek: add basic support for MT7629 boards

2018-10-25 Thread Ryder Lee
On Wed, 2018-10-24 at 21:29 -0600, Simon Glass wrote: > Hi Ryder, > > On 12 October 2018 at 01:00, Ryder Lee wrote: > > This adds a general board file based on MT7629 SoCs from MediaTek. > > > > Apart from the generic parts (cpu) we add some low level init codes &

Re: [U-Boot] [PATCH v2 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-10-25 Thread Ryder Lee
On Wed, 2018-10-24 at 21:29 -0600, Simon Glass wrote: > Hi Ryder, > > On 12 October 2018 at 01:00, Ryder Lee wrote: > > This patch adds support for MTK boot image generation. > > > > Signed-off-by: Weijie Gao > > Signed-off-by: Ryder Lee > > --- > &g

Re: [U-Boot] [PATCH v3 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-11-05 Thread Ryder Lee
On Sat, 2018-11-03 at 00:08 -0600, Simon Glass wrote: > On 2 November 2018 at 09:15, Ryder Lee wrote: > > This patch adds support for MTK boot image generation. > > > > Signed-off-by: Weijie Gao > > Signed-off-by: Ryder Lee > > --- > > Makefile

Re: [U-Boot] [PATCH v3 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-05 Thread Ryder Lee
On Mon, 2018-11-05 at 10:20 +0800, Ryder Lee wrote: > On Sat, 2018-11-03 at 00:09 -0600, Simon Glass wrote: > > Hi Ryder, > > > > On 2 November 2018 at 09:15, Ryder Lee wrote: > > > This patch adds an extra operation in ns16550.c to suuport MediaTek > > &g

Re: [U-Boot] [PATCH v3 06/18] clk: MediaTek: add clock driver for MT7629 SoC.

2018-11-05 Thread Ryder Lee
On Sat, 2018-11-03 at 00:08 -0600, Simon Glass wrote: > Hi Ryder, > > On 2 November 2018 at 09:15, Ryder Lee wrote: > > This patch adds clock modules for MediaTek SoCs: > > - Shared part: a common driver which contains the general operations > > for plls, muxes, divide

[U-Boot] [PATCH v3 10/18] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

2018-11-02 Thread Ryder Lee
chips that use the same binding and driver, then being a little more abstract could help in the long run. Signed-off-by: Ryder Lee --- arch/arm/include/asm/arch-mediatek/gpio.h | 9 + drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile | 1

[U-Boot] [PATCH v3 09/18] watchdog: MediaTek: add watchdog driver for MediaTek SoCs

2018-11-02 Thread Ryder Lee
This patch adds a common driver for the Mediatek SoC integrated watchdog. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- drivers/watchdog/Kconfig | 8 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/mtk_wdt.c | 135

[U-Boot] [PATCH v3 04/18] arm: MediaTek: add basic support for MT7629 boards

2018-11-02 Thread Ryder Lee
This adds a general board file based on MT7629 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. Signed-off-by: Ryder Lee Signed-off-by: Weijie Gao --- arch/arm/Kconfig | 16 arch/arm

[U-Boot] [PATCH v3 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-11-02 Thread Ryder Lee
This patch adds support for MTK boot image generation. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee --- Makefile | 20 ++ common/image.c | 1 + include/image.h | 1 + scripts/Makefile.spl | 11 + tools/Makefile | 1 + tools/mtk_image.c| 749

[U-Boot] [PATCH v3 02/18] arm: dts: MediaTek: add device tree for MT7629

2018-11-02 Thread Ryder Lee
This patch adds MT7629 device tree and the includes it needs. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- arch/arm/dts/Makefile| 3 + arch/arm/dts/mt7629-rfb-u-boot.dtsi | 24 +++ arch/arm/dts/mt7629-rfb.dts | 70 + arch/arm/dts

[U-Boot] [PATCH v3 06/18] clk: MediaTek: add clock driver for MT7629 SoC.

2018-11-02 Thread Ryder Lee
MT7629 as an example to demonstrate how to implement driver if any other MediaTek chips would like to use it. Signed-off-by: Ryder Lee --- drivers/clk/Makefile | 1 + drivers/clk/mediatek/Makefile | 6 + drivers/clk/mediatek/clk-mt7629.c | 709

[U-Boot] [PATCH v3 03/18] arm: dts: MediaTek: add device tree for MT7623

2018-11-02 Thread Ryder Lee
This adds device tree for MT7623 development board - Bananapi R2 Detailed hardware information for BPI-R2 which could be found on http://wiki.banana-pi.org/Banana_Pi_BPI-R2. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- arch/arm/dts/Makefile

[U-Boot] [PATCH v3 05/18] arm: MediaTek: add basic support for MT7623 boards

2018-11-02 Thread Ryder Lee
From: Weijie Gao This adds a general board file based on MT7623 SoCs from MediaTek. As this u-boot is loaded by MTK proprietary preloader, there is no low level initializtion codes. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- arch/arm/mach-mediatek

[U-Boot] [PATCH v3 07/18] clk: MediaTek: add clock driver for MT7623 SoC.

2018-11-02 Thread Ryder Lee
This patch adds a driver for MT7623 clock blocks. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7623.c | 870 ++ 2 files changed, 871 insertions

[U-Boot] [PATCH v3 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629

2018-11-02 Thread Ryder Lee
yder Ryder Lee (16): tools: MediaTek: add MTK boot header generation to mkimage arm: dts: MediaTek: add device tree for MT7629 arm: dts: MediaTek: add device tree for MT7623 arm: MediaTek: add basic support for MT7629 boards clk: MediaTek: add clock driver for MT7629 SoC. clk: MediaTek:

[U-Boot] [PATCH v3 12/18] power domain: MediaTek: add power domain driver for MT7629 SoC

2018-11-02 Thread Ryder Lee
. The System Power Manager (SPM) inside the SCPSYS is for the MTCMOS power domain control. For now this driver only adds power domain support. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- drivers/power/domain/Kconfig| 7 + drivers/power/domain/Makefile | 1 + drivers

[U-Boot] [PATCH v3 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-02 Thread Ryder Lee
This patch adds an extra operation in ns16550.c to suuport MediaTek SoCs as we have a highspeed register which influences the calcualtion of the divisor. Note that we don't support the baudrate greater than 115200 currently. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed

[U-Boot] [PATCH v3 11/18] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-11-02 Thread Ryder Lee
This patch adds pinctrl support for MT7623 SoC. And most of the structures are used to hold the hardware configuration for each pin. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/pinctrl/mediatek/Kconfig |4 + drivers/pinctrl/mediatek/Makefile

[U-Boot] [PATCH v3 08/18] timer: MediaTek: add timer driver for MediaTek SoCs

2018-11-02 Thread Ryder Lee
This patch adds clock source and clock event for the timer found on the Mediatek SoCs. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- drivers/timer/Kconfig | 7 drivers/timer/Makefile| 1 + drivers/timer/mtk_timer.c | 85

[U-Boot] [PATCH v3 18/18] MAINTAINERS: add an entry for MediaTek

2018-11-02 Thread Ryder Lee
This patch adds an entry for MediaTek. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- MAINTAINERS | 20 1 file changed, 20 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index cf8f73f..9940200 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -157,6 +157,26 @@ T

[U-Boot] [PATCH v3 13/18] power domain: MediaTek: add power domain driver for MT7623 SoC

2018-11-02 Thread Ryder Lee
This adds power domain (scpsys) support for MT7623 SoC. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- drivers/power/domain/mtk-power-domain.c | 80 + 1 file changed, 80 insertions(+) diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power

[U-Boot] [PATCH v3 16/18] mmc: mtk-sd: add SD/MMC host controller driver for MT7623 SoC

2018-11-02 Thread Ryder Lee
From: Weijie Gao This patch adds MT7623 host controller driver for accessing SD/MMC. Cc: Jaehoon Chung Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- drivers/mmc/Kconfig | 11 + drivers/mmc/Makefile |1 + drivers/mmc/mtk

[U-Boot] [PATCH v3 17/18] doc: README.mediatek: Add a simple README for MediaTek

2018-11-02 Thread Ryder Lee
Add a few notes on how to try out the MediaTek support so far. Signed-off-by: Ryder Lee --- doc/README.mediatek | 54 + 1 file changed, 54 insertions(+) create mode 100644 doc/README.mediatek diff --git a/doc/README.mediatek b/doc

[U-Boot] [PATCH v3 15/18] ram: MediaTek: add DDR3 driver for MT7629 SoC

2018-11-02 Thread Ryder Lee
This patch adds a DDR3 driver for MT7629 SoC. Signed-off-by: Wu Zou Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- drivers/ram/Makefile | 1 + drivers/ram/mediatek/Makefile | 7 + drivers/ram/mediatek/ddr3-mt7629.c | 766 + 3

Re: [U-Boot] [PATCH v2 15/18] ram: MediaTek: add DDR3 driver for MT7629 SoC

2018-10-25 Thread Ryder Lee
On Wed, 2018-10-24 at 21:30 -0600, Simon Glass wrote: > On 12 October 2018 at 01:01, Ryder Lee wrote: > > This patch adds a DDR3 driver for MT7629 SoC. > > > > Signed-off-by: Wu Zou > > Signed-off-by: Ryder Lee > > --- > > drivers/ram/Makefile

Re: [U-Boot] [PATCH v4 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-13 Thread Ryder Lee
On Tue, 2018-11-13 at 11:53 -0800, Simon Glass wrote: > Hi Ryder, > > On 6 November 2018 at 01:47, Ryder Lee wrote: > > This patch adds an extra operation in ns16550.c to suuport MediaTek > > SoCs as we have a highspeed register which influences the calcualtion > > o

[U-Boot] [PATCH v4 16/18] mmc: mtk-sd: add SD/MMC host controller driver for MT7623 SoC

2018-11-06 Thread Ryder Lee
From: Weijie Gao This patch adds MT7623 host controller driver for accessing SD/MMC. Cc: Jaehoon Chung Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- Changes since v4: None --- drivers/mmc/Kconfig | 11 + drivers/mmc/Makefile

[U-Boot] [PATCH v4 09/18] watchdog: MediaTek: add watchdog driver for MediaTek SoCs

2018-11-06 Thread Ryder Lee
This patch adds a common driver for the Mediatek SoC integrated watchdog. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- Changes since v4: None --- drivers/watchdog/Kconfig | 8 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/mtk_wdt.c | 135

[U-Boot] [PATCH v4 12/18] power domain: MediaTek: add power domain driver for MT7629 SoC

2018-11-06 Thread Ryder Lee
. The System Power Manager (SPM) inside the SCPSYS is for the MTCMOS power domain control. For now this driver only adds power domain support. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v4: None --- drivers/power/domain/Kconfig| 7 + drivers/power/domain/Makefile

[U-Boot] [PATCH v4 08/18] timer: MediaTek: add timer driver for MediaTek SoCs

2018-11-06 Thread Ryder Lee
This patch adds clock source and clock event for the timer found on the Mediatek SoCs. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- Changes since v4: None --- drivers/timer/Kconfig | 7 drivers/timer/Makefile| 1 + drivers/timer/mtk_timer.c

[U-Boot] [PATCH v4 07/18] clk: MediaTek: add clock driver for MT7623 SoC.

2018-11-06 Thread Ryder Lee
This patch adds a driver for MT7623 clock blocks. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- Changes since v4: None --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7623.c | 870 ++ 2 files

[U-Boot] [PATCH v4 04/18] arm: MediaTek: add basic support for MT7629 boards

2018-11-06 Thread Ryder Lee
This adds a general board file based on MT7629 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. Signed-off-by: Ryder Lee Signed-off-by: Weijie Gao Reviewed-by: Simon Glass --- Changes since v4: -Add gd->bd->bi_boot_

[U-Boot] [PATCH v4 15/18] ram: MediaTek: add DDR3 driver for MT7629 SoC

2018-11-06 Thread Ryder Lee
This patch adds a DDR3 driver for MT7629 SoC. Signed-off-by: Wu Zou Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v4: None --- drivers/ram/Makefile | 1 + drivers/ram/mediatek/Makefile | 7 + drivers/ram/mediatek/ddr3-mt7629.c | 766

[U-Boot] [PATCH v4 03/18] arm: dts: MediaTek: add device tree for MT7623

2018-11-06 Thread Ryder Lee
This adds device tree for MT7623 development board - Bananapi R2 Detailed hardware information for BPI-R2 which could be found on http://wiki.banana-pi.org/Banana_Pi_BPI-R2. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- Changes since v4: None --- arch/arm

[U-Boot] [PATCH v4 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-06 Thread Ryder Lee
This patch adds an extra operation in ns16550.c to suuport MediaTek SoCs as we have a highspeed register which influences the calcualtion of the divisor. Note that we don't support the baudrate greater than 115200 currently. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed

[U-Boot] [PATCH v4 13/18] power domain: MediaTek: add power domain driver for MT7623 SoC

2018-11-06 Thread Ryder Lee
This adds power domain (scpsys) support for MT7623 SoC. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v4: None --- drivers/power/domain/mtk-power-domain.c | 80 + 1 file changed, 80 insertions(+) diff --git a/drivers/power/domain/mtk-power

[U-Boot] [PATCH v4 06/18] clk: MediaTek: add clock driver for MT7629 SoC.

2018-11-06 Thread Ryder Lee
MT7629 as an example to demonstrate how to implement driver if any other MediaTek chips would like to use it. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v4: None -Add a __common_ infix on the shared funcitons to make them clear. (i.e., mtk_clk_init

[U-Boot] [PATCH v4 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629

2018-11-06 Thread Ryder Lee
Hello, This is the new round to add U-Boot support for MediaTek SoCs - MT7623n & MT7629, and the most of the drivers are based on mainline Linux, such as clock, timer, mmc, pinctrl, watchdog, power domain and device tree. Thanks, Ryder Ryder Lee (16): tools: MediaTek: add MTK boot he

[U-Boot] [PATCH v4 05/18] arm: MediaTek: add basic support for MT7623 boards

2018-11-06 Thread Ryder Lee
From: Weijie Gao This adds a general board file based on MT7623 SoCs from MediaTek. As this u-boot is loaded by MTK proprietary preloader, there is no low level initializtion codes. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- Changes since v4: -Add gd

[U-Boot] [PATCH v4 18/18] MAINTAINERS: add an entry for MediaTek

2018-11-06 Thread Ryder Lee
This patch adds an entry for MediaTek. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v4: None --- MAINTAINERS | 20 1 file changed, 20 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index cf8f73f..9940200 100644 --- a/MAINTAINERS +++ b

[U-Boot] [PATCH v4 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-11-06 Thread Ryder Lee
This patch adds support for MTK boot image generation. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v4: None --- Makefile | 20 ++ common/image.c | 1 + include/image.h | 1 + scripts/Makefile.spl | 11 + tools

[U-Boot] [PATCH v4 02/18] arm: dts: MediaTek: add device tree for MT7629

2018-11-06 Thread Ryder Lee
This patch adds MT7629 device tree and the includes it needs. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v4: None --- arch/arm/dts/Makefile| 3 + arch/arm/dts/mt7629-rfb-u-boot.dtsi | 24 +++ arch/arm/dts/mt7629-rfb.dts | 70

[U-Boot] [PATCH v4 10/18] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

2018-11-06 Thread Ryder Lee
chips that use the same binding and driver, then being a little more abstract could help in the long run. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v4: -mtk_pinctrl_probe() is a common function called by all probe functions, so rename it to mtk_pinctrl_common_probe

[U-Boot] [PATCH v4 17/18] doc: README.mediatek: Add a simple README for MediaTek

2018-11-06 Thread Ryder Lee
Add a few notes on how to try out the MediaTek support so far. Signed-off-by: Ryder Lee --- Changes since v4: -Add instructions on how to prepare SD card and write to SNOR flash. -Fix typo. --- doc/README.mediatek | 221 1 file changed, 221

[U-Boot] [PATCH v4 11/18] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-11-06 Thread Ryder Lee
This patch adds pinctrl support for MT7623 SoC. And most of the structures are used to hold the hardware configuration for each pin. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- Changes since v4: -Add a comment to the exported function - mtk_rmw

[U-Boot] [PATCH v5 06/18] clk: MediaTek: add clock driver for MT7629 SoC.

2018-11-14 Thread Ryder Lee
MT7629 as an example to demonstrate how to implement driver if any other MediaTek chips would like to use it. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v5: None Changes since v4 -Add a __common_ infix on the shared funcitons to make them clear. (i.e., mtk_clk_init

[U-Boot] [PATCH v5 03/18] arm: dts: MediaTek: add device tree for MT7623

2018-11-14 Thread Ryder Lee
This adds device tree for MT7623 development board - Bananapi R2 Detailed hardware information for BPI-R2 which could be found on http://wiki.banana-pi.org/Banana_Pi_BPI-R2. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- Changes since v5: Use new compatible

[U-Boot] [PATCH v5 01/18] tools: MediaTek: add MTK boot header generation to mkimage

2018-11-14 Thread Ryder Lee
This patch adds support for MTK boot image generation. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v5: Fix typo Changes since v4: None --- Makefile | 20 ++ common/image.c | 1 + include/image.h | 1 + scripts

[U-Boot] [PATCH v5 02/18] arm: dts: MediaTek: add device tree for MT7629

2018-11-14 Thread Ryder Lee
This patch adds MT7629 device tree and the includes it needs. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v5: Use new compatible 'mediatek,hsuart' for MTK UART Changes since v4: None --- arch/arm/dts/Makefile| 3 + arch/arm/dts/mt7629-rfb-u

[U-Boot] [PATCH v5 05/18] arm: MediaTek: add basic support for MT7623 boards

2018-11-14 Thread Ryder Lee
From: Weijie Gao This adds a general board file based on MT7623 SoCs from MediaTek. As this u-boot is loaded by MTK proprietary preloader, there is no low level initializtion codes. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- Changes since v5: None

[U-Boot] [PATCH v5 16/18] mmc: mtk-sd: add SD/MMC host controller driver for MT7623 SoC

2018-11-14 Thread Ryder Lee
From: Weijie Gao This patch adds MT7623 host controller driver for accessing SD/MMC. Cc: Jaehoon Chung Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- Changes since v5: None Changes since v4: None --- drivers/mmc/Kconfig | 11

[U-Boot] [PATCH v5 13/18] power domain: MediaTek: add power domain driver for MT7623 SoC

2018-11-14 Thread Ryder Lee
This adds power domain (scpsys) support for MT7623 SoC. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v5: None Changes since v4: None --- drivers/power/domain/mtk-power-domain.c | 80 + 1 file changed, 80 insertions(+) diff --git a/drivers

[U-Boot] [PATCH v5 10/18] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

2018-11-14 Thread Ryder Lee
chips that use the same binding and driver, then being a little more abstract could help in the long run. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v5: - remove unused pin macros Changes since v4: -mtk_pinctrl_probe() is a common function called by all probe functions

[U-Boot] [PATCH v5 14/18] serial: MediaTek: add high-speed uart driver for MediaTek SoCs

2018-11-14 Thread Ryder Lee
SoCs will change the UART into high-speed mode and the U-Boot must use this driver to initialize the UART. Signed-off-by: Weijie Gao Tested-by: Ryder Lee --- Changes since v5: Add a specific driver for MTK UART Changes since v4: None --- drivers/serial/Kconfig | 20 drivers/serial

[U-Boot] [PATCH v5 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629

2018-11-14 Thread Ryder Lee
Hello, This is the new round to add U-Boot support for MediaTek SoCs - MT7623n & MT7629, and the most of the drivers are based on mainline Linux, such as clock, timer, mmc, pinctrl, UART, watchdog, power domain and device tree. Ryder Ryder Lee (16): tools: MediaTek: add MTK boot he

[U-Boot] [PATCH v5 08/18] timer: MediaTek: add timer driver for MediaTek SoCs

2018-11-14 Thread Ryder Lee
This patch adds clock source and clock event for the timer found on the Mediatek SoCs. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- Changes since v5: None Changes since v4: None --- drivers/timer/Kconfig | 7 drivers/timer/Makefile| 1

[U-Boot] [PATCH v5 04/18] arm: MediaTek: add basic support for MT7629 boards

2018-11-14 Thread Ryder Lee
This adds a general board file based on MT7629 SoCs from MediaTek. Apart from the generic parts (cpu) we add some low level init codes and initialize the early clocks. Signed-off-by: Ryder Lee Signed-off-by: Weijie Gao Reviewed-by: Simon Glass --- Changes since v5: None Changes since v4: -Add

[U-Boot] [PATCH v5 17/18] doc: README.mediatek: Add a simple README for MediaTek

2018-11-14 Thread Ryder Lee
Add a few notes on how to try out the MediaTek support so far. Signed-off-by: Ryder Lee Tested-by: Frank Wunderlich --- Changes since v5: -Fix Whitespace-Error. Changes since v4: -Add instructions on how to prepare SD card and write to SNOR flash. -Fix typo. --- doc/README.mediatek | 221

[U-Boot] [PATCH v5 07/18] clk: MediaTek: add clock driver for MT7623 SoC.

2018-11-14 Thread Ryder Lee
This patch adds a driver for MT7623 clock blocks. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- Changes since v5: None Changes since v4: None --- drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt7623.c | 870

[U-Boot] [PATCH v5 15/18] ram: MediaTek: add DDR3 driver for MT7629 SoC

2018-11-14 Thread Ryder Lee
This patch adds a DDR3 driver for MT7629 SoC. Signed-off-by: Wu Zou Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v5: None Changes since v4: None --- drivers/ram/Makefile | 1 + drivers/ram/mediatek/Makefile | 7 + drivers/ram/mediatek/ddr3-mt7629

[U-Boot] [PATCH v5 09/18] watchdog: MediaTek: add watchdog driver for MediaTek SoCs

2018-11-14 Thread Ryder Lee
This patch adds a common driver for the Mediatek SoC integrated watchdog. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- Changes since v5: None Changes since v4: None --- drivers/watchdog/Kconfig | 8 +++ drivers/watchdog/Makefile | 1 + drivers

[U-Boot] [PATCH v5 11/18] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-11-14 Thread Ryder Lee
This patch adds pinctrl support for MT7623 SoC. And most of the structures are used to hold the hardware configuration for each pin. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger Reviewed-by: Simon Glass --- Changes since v5: None Changes since v4: -Add a comment to the exported

[U-Boot] [PATCH v5 18/18] MAINTAINERS: add an entry for MediaTek

2018-11-14 Thread Ryder Lee
This patch adds an entry for MediaTek. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v5: None Changes since v4: None --- MAINTAINERS | 20 1 file changed, 20 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index abdb6dc..214629e 100644

[U-Boot] [PATCH v5 12/18] power domain: MediaTek: add power domain driver for MT7629 SoC

2018-11-14 Thread Ryder Lee
. The System Power Manager (SPM) inside the SCPSYS is for the MTCMOS power domain control. For now this driver only adds power domain support. Signed-off-by: Ryder Lee Reviewed-by: Simon Glass --- Changes since v5: None Changes since v4: None --- drivers/power/domain/Kconfig| 7 + drivers

Re: [U-Boot] mt7623 bootup example

2018-11-04 Thread Ryder Lee
to kernel (rc1=bpi-r2_v3_old and rc3 = bpi-r2_v3) That's because I remove 'gd->bd->bi_boot_params' in v3, but it seems you use legacy method (ATAGs) to pass parameters. I will add it back. > > Gesendet: Samstag, 03. November 2018 um 09:46 Uhr > > Von: "Frank Wunderlich&q

Re: [U-Boot] [PATCH v3 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-04 Thread Ryder Lee
On Sat, 2018-11-03 at 00:09 -0600, Simon Glass wrote: > Hi Ryder, > > On 2 November 2018 at 09:15, Ryder Lee wrote: > > This patch adds an extra operation in ns16550.c to suuport MediaTek > > SoCs as we have a highspeed register which influences the calcualtion > > o

[U-Boot] [PATCH v1 14/19] power domain: MediaTek: add power domain driver for MT7629 SoC

2018-10-08 Thread Ryder Lee
. The System Power Manager (SPM) inside the SCPSYS is for the MTCMOS power domain control. For now this driver only adds power domain support. Signed-off-by: Ryder Lee --- drivers/power/domain/Kconfig| 7 + drivers/power/domain/Makefile | 1 + drivers/power/domain/mtk-power

[U-Boot] [PATCH v1 01/19] tools: MediaTek: add MTK boot header generation to mkimage

2018-10-08 Thread Ryder Lee
This patch adds support for MTK boot image generation. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee --- Makefile | 20 ++ common/image.c | 1 + include/image.h | 1 + scripts/Makefile.spl | 11 + tools/Makefile | 1 + tools/mtkimage.c | 749

[U-Boot] [PATCH v1 05/19] arm: MediaTek: add basic support for MT7623 boards

2018-10-08 Thread Ryder Lee
From: Weijie Gao This adds a general board file based on MT7623 SoCs from MediaTek. As this u-boot is loaded by preloader, there is no low level initializtion codes. Signed-off-by: Weijie Gao Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- arch/arm/mach-mediatek/Kconfig

[U-Boot] [PATCH v1 11/19] watchdog: MediaTek: add watchdog driver for MediaTek SoCs

2018-10-08 Thread Ryder Lee
This patch adds a common driver for the Mediatek SoC integrated watchdog. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/watchdog/Kconfig | 8 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/mtk_wdt.c | 135 + 3 files

[U-Boot] [PATCH v1 12/19] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC

2018-10-08 Thread Ryder Lee
chips that use the same binding and driver, then being a little more abstract could help in the long run. Signed-off-by: Ryder Lee --- arch/arm/include/asm/arch-mediatek/gpio.h | 9 + drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile | 1

[U-Boot] [PATCH v1 13/19] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC

2018-10-08 Thread Ryder Lee
This patch adds pinctrl support for MT7623 SoC. And most of the structures are used to hold the hardware configuration for each pin. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/pinctrl/mediatek/Kconfig |4 + drivers/pinctrl/mediatek/Makefile

[U-Boot] [PATCH v1 08/19] clk: MediaTek: add clock driver for MT7629 SoC.

2018-10-08 Thread Ryder Lee
MT7629 as an example to demonstrate how to implement driver if any other MediaTek chips would like to use it. Signed-off-by: Ryder Lee --- drivers/clk/Makefile | 1 + drivers/clk/mediatek/Makefile | 6 + drivers/clk/mediatek/clk-mt7629.c | 706

[U-Boot] [PATCH v1 10/19] timer: MediaTek: add timer driver for MediaTek SoCs

2018-10-08 Thread Ryder Lee
This patch adds clock source and clock event for the timer found on the Mediatek SoCs. Signed-off-by: Ryder Lee Tested-by: Matthias Brugger --- drivers/timer/Kconfig | 7 drivers/timer/Makefile| 1 + drivers/timer/mtk_timer.c | 85

[U-Boot] [PATCH v1 17/19] ram: MediaTek: add DDR3 driver for MT7629 SoC

2018-10-08 Thread Ryder Lee
This patch adds a DDR3 driver for MT7629 SoC. Signed-off-by: Wu Zou Signed-off-by: Ryder Lee --- drivers/ram/Makefile | 1 + drivers/ram/mediatek/Makefile | 7 + drivers/ram/mediatek/ddr3-mt7629.c | 766 + 3 files changed, 774

  1   2   >