[U-Boot] [PATCH V3 01/16] clk: introduce clk_dev_binded

2019-07-31 Thread Peng Fan
When support Clock Common Framework, U-Boot use dev for clk tree information, there is no clk->parent. When support composite clk, it contains mux/gate/divider, but the mux/gate/divider is not binded with device. So we could not use dev_get_uclass_priv to get the correct clk_mux/gate/divider. So ad

[U-Boot] [PATCH V3 02/16] clk: use clk_dev_binded

2019-07-31 Thread Peng Fan
Preparing to support composite clk. Signed-off-by: Peng Fan --- V3: None V2: Rebase drivers/clk/clk-divider.c | 4 ++-- drivers/clk/clk-mux.c | 6 -- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 6921c76a48.

[U-Boot] [PATCH V3 03/16] clk: mux: add set parent support

2019-07-31 Thread Peng Fan
Add set parent support for clk mux Signed-off-by: Peng Fan --- V3: None V2: Rebase drivers/clk/clk-mux.c| 70 ++-- include/linux/clk-provider.h | 2 ++ 2 files changed, 70 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-mux.c b/dri

[U-Boot] [PATCH V3 09/16] clk: imx: gate2 add set rate

2019-07-31 Thread Peng Fan
Add set rate for imx clk-gate2 Signed-off-by: Peng Fan --- V3: None V2: Rebase drivers/clk/imx/clk-gate2.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index 571be32088..1b9db6e791 100644 --- a/drivers/clk/imx/clk-

[U-Boot] [PATCH V3 12/16] clk: add composite clk support

2019-07-31 Thread Peng Fan
Import clk composite clk support from Linux Kernel 5.1-rc5 Signed-off-by: Peng Fan --- V3: None V2: Rebase drivers/clk/Kconfig | 14 drivers/clk/Makefile | 1 + drivers/clk/clk-composite.c | 160 +++ include/linux/clk-provider

[U-Boot] [PATCH V3 04/16] clk: export mux/divider ops

2019-07-31 Thread Peng Fan
Export mux/divider ops and divider_recalc_rate for composite usage Signed-off-by: Peng Fan --- V3: None V2: Rebase Export divider_recalc_rate include/linux/clk-provider.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h ind

[U-Boot] [PATCH V3 07/16] clk: fixed_rate: export clk_fixed_rate

2019-07-31 Thread Peng Fan
Export the structure for others to use. Signed-off-by: Peng Fan --- V3: None V2: Rebase drivers/clk/clk_fixed_rate.c | 8 +--- include/linux/clk-provider.h | 7 +++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rat

[U-Boot] [PATCH V3 05/16] clk: add clk-gate support

2019-07-31 Thread Peng Fan
Import clk-gate support from Linux Kernel 5.1-rc5 Signed-off-by: Peng Fan --- V2: None V3: Rebase drivers/clk/Makefile | 2 +- drivers/clk/clk-gate.c | 148 +++ include/linux/clk-provider.h | 18 ++ 3 files changed, 167 insertions(

[U-Boot] [PATCH V3 13/16] clk: gate: support sandbox

2019-07-31 Thread Peng Fan
Introduce io_gate_val for sandbox clk gate test usage Signed-off-by: Peng Fan --- V3: None V2: Rebase drivers/clk/clk-gate.c | 11 +++ include/linux/clk-provider.h | 3 +++ 2 files changed, 14 insertions(+) diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index a3

[U-Boot] [PATCH V3 06/16] clk: divider set rate supporrt

2019-07-31 Thread Peng Fan
Signed-off-by: Peng Fan --- V3: None V2: Rebase drivers/clk/clk-divider.c | 88 +++ 1 file changed, 88 insertions(+) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 2ed9ed6ab8..822e09b084 100644 --- a/drivers/clk/clk-divide

[U-Boot] [PATCH V3 11/16] clk-provider: include clk-uclass.h

2019-07-31 Thread Peng Fan
Because clk-provider use clk_ops, so let's include clk-uclass.h Signed-off-by: Peng Fan --- V3: patch moved to before adding composite clock V2: Rebase include/linux/clk-provider.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h

[U-Boot] [PATCH V3 10/16] dm: clk: ignore default settings when node not valid

2019-07-31 Thread Peng Fan
When the device not binded with a node, we need ignore the parents and rate settings. Cc: Simon Glass Cc: Jagan Teki Cc: Philipp Tomsich Cc: Neil Armstrong Cc: Andreas Dannenberg Signed-off-by: Peng Fan --- V3: None V2: Rebase drivers/clk/clk-uclass.c | 3 +++ 1 file changed, 3 insertio

[U-Boot] [PATCH V3 16/16] test: dm: clk_ccf: test composite clk

2019-07-31 Thread Peng Fan
Test composite clk with dm ccf Signed-off-by: Peng Fan --- V3: None V2: Rebase test/dm/clk_ccf.c | 8 1 file changed, 8 insertions(+) diff --git a/test/dm/clk_ccf.c b/test/dm/clk_ccf.c index 8d397593a3..bbc4b500e8 100644 --- a/test/dm/clk_ccf.c +++ b/test/dm/clk_ccf.c @@ -56,6 +56,

[U-Boot] [PATCH V3 14/16] configs: sandbox: Enable composite clk

2019-07-31 Thread Peng Fan
Enable composite clk for sandbox test Signed-off-by: Peng Fan --- V3: Moved patch order earlier V2: Rebase configs/sandbox_defconfig | 1 + configs/sandbox_flattree_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig

[U-Boot] [PATCH V3 08/16] clk: imx: import clk heplers

2019-07-31 Thread Peng Fan
Import some clk helpers from Linux Kernel for i.MX8MM usage Signed-off-by: Peng Fan --- V3: None V2: Rebase drivers/clk/imx/clk.h | 81 +++ 1 file changed, 81 insertions(+) diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index e6d51

[U-Boot] [PATCH V3 15/16] clk: sandbox: add composite clk

2019-07-31 Thread Peng Fan
Add composite clk to sandbox driver Signed-off-by: Peng Fan --- V3: None V2: Rebase drivers/clk/clk_sandbox_ccf.c | 80 +++ include/sandbox-clk.h | 1 + 2 files changed, 81 insertions(+) diff --git a/drivers/clk/clk_sandbox_ccf.c b/drivers/cl

Re: [U-Boot] [PATCH] rpi: increase SYS_BOOTM_LEN to 64M

2019-07-31 Thread Matthias Brugger
Hi Laurent, On 07/06/2019 17:04, Bonnans, Laurent wrote: > On AArch64, kernel images are not self-decompressing and easily exceed > the 8MB limit. > > Signed-off-by: Laurent Bonnans > --- > include/configs/rpi.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/configs/rpi.h b/i

Re: [U-Boot] (Offlist) Re: U-Boot/EBBR plugfest at ELC-EU?

2019-07-31 Thread Matthias Brugger
On 30/07/2019 17:33, Grant Likely wrote: > > >>> On 24 Jul 2019, at 14:39, Daniel Kiper wrote: >>> On Mon, Jul 08, 2019 at 01:27:11PM +, Steve McIntyre wrote: On Mon, Jul 08, 2019 at 11:18:56AM +0100, Leif Lindholm wrote: On Mon, Jul 08, 2019 at 12:13:07PM +0200, Daniel Kipe

Re: [U-Boot] [PATCH 1/1] clk: meson: remove duplicate logic

2019-07-31 Thread Neil Armstrong
On 30/07/2019 23:03, Heinrich Schuchardt wrote: > First thing we check in meson_clk_set_rate_by_id() is current_rate == rate. > There is not need to check it again. > > Signed-off-by: Heinrich Schuchardt > --- > drivers/clk/meson/gxbb.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-)

Re: [U-Boot] [PATCH 0/3] amlogic: Add support for Odroid-N2

2019-07-31 Thread Neil Armstrong
On 29/07/2019 15:45, Neil Armstrong wrote: > ODROID-N2 is a single board computer manufactured by Hardkernel Co. Ltd > with the following specifications: > > - Amlogic S922X ARM Cortex-A53 dual-core + Cortex-A73 quad-core SoC > - 4GB DDR4 SDRAM > - Gigabit Ethernet > - HDMI 2.1 4K/60Hz display

Re: [U-Boot] [PATCH] board_r: re-order the board_early_init_r()

2019-07-31 Thread Matthias Brugger
On 24/07/2019 14:22, Kever Yang wrote: > > On 2019/7/24 下午6:22, Simon Goldschmidt wrote: >> On Wed, Jul 24, 2019 at 12:01 PM Kever Yang >> wrote: >>> The board_early_init_r() suppose to be called before board_init(), >>> then the board callback functions in board_r will be: >>> - board_early_i

Re: [U-Boot] [PATCH] ARM: dts: Sync Amlogic G12A with Linux 5.3-rc1

2019-07-31 Thread Neil Armstrong
On 22/07/2019 10:16, Neil Armstrong wrote: > Sync the Amlogic Meson G12A DT and Bindings file with the Linux 5.3-rc1 > from the commit 5f9e832c1370 ("Linus 5.3-rc1"). > > Also remove the meson-g12a-u-boot.dtsi and meson-g12a-u200-u-boot.dtsi, > now conflicting with the main DT content. > > Signed

[U-Boot] [PATCH] pci_ep: Fix Coverity warning

2019-07-31 Thread Ramon Fried
Fix the following Coverity warning: CID 244086: Incorrect expression (BAD_COMPARE) Comparing pointer "ep_bar" against NULL using anything besides == or is likely to be incorrect. Fixes: 914026d25848 ("drivers: pci_ep: Introduce UCLASS_PCI_EP uclass") Signed-off-by: Ramon Fried --- drivers/pci

Re: [U-Boot] [PATCH] rpi3: Enable verified boot from FIT image

2019-07-31 Thread Jun Nie
Matthias Brugger 于2019年7月31日周三 下午4:05写道: > > > > On 11/07/2019 05:55, Jun Nie wrote: > > Enable verified boot from FIT image with select configs > > and specify boot script image node in FIT image, the FIT > > image is verified before it is run. > > > > Code that reusing dtb in firmware is disable

Re: [U-Boot] [PATCH] sifive: riscv: update Hifive Unleashed configuration infrastructure

2019-07-31 Thread Anup Patel
On Tue, Jul 30, 2019 at 11:01 PM Sagar Kadam wrote: > > Hello Anup, > > On Tue, Jul 30, 2019 at 9:12 AM Anup Patel wrote: > > > > On Mon, Jul 29, 2019 at 6:13 PM Sagar Shrikant Kadam > > wrote: > > > > > > This patch aligns the current implementation of HiFive Unleashed > > > board configuration

[U-Boot] [PATCH] imx: mx6slevk: enable DM_SPI and DM_SPI_FLASH

2019-07-31 Thread Peng Fan
With DM_SPI and DM_SPI_FLASH enabled, we could get: spi 0 [ ] mxc_spi | | | `-- ecspi@02008000 spi_flash0 [ ] spi_flash_std | | | `-- m25p80@0 Signed-off-by: Peng Fan --- board/freescale/mx6slevk/mx6slevk.c | 28 --

Re: [U-Boot] [PATCH] sifive: riscv: update Hifive Unleashed configuration infrastructure

2019-07-31 Thread Andreas Schwab
On Jul 30 2019, Sagar Kadam wrote: > I do remember using "git mv" here. git mv is identical to git rm + git add. A git repository has no concept of file renames. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "An

Re: [U-Boot] [PATCH] board_r: re-order the board_early_init_r()

2019-07-31 Thread Kever Yang
On 2019/7/31 下午3:23, Matthias Brugger wrote: On 24/07/2019 14:22, Kever Yang wrote: On 2019/7/24 下午6:22, Simon Goldschmidt wrote: On Wed, Jul 24, 2019 at 12:01 PM Kever Yang wrote: The board_early_init_r() suppose to be called before board_init(), then the board callback functions in board_

Re: [U-Boot] [PATCH 0/3] amlogic: Add support for Odroid-N2

2019-07-31 Thread Mark Kettenis
> From: Neil Armstrong > Date: Wed, 31 Jul 2019 09:18:10 +0200 > > On 29/07/2019 15:45, Neil Armstrong wrote: > > ODROID-N2 is a single board computer manufactured by Hardkernel Co. Ltd > > with the following specifications: > > > > - Amlogic S922X ARM Cortex-A53 dual-core + Cortex-A73 quad-cor

Re: [U-Boot] [PATCH 0/3] amlogic: Add support for Odroid-N2

2019-07-31 Thread Neil Armstrong
Hi, On 31/07/2019 11:30, Mark Kettenis wrote: >> From: Neil Armstrong >> Date: Wed, 31 Jul 2019 09:18:10 +0200 >> >> On 29/07/2019 15:45, Neil Armstrong wrote: >>> ODROID-N2 is a single board computer manufactured by Hardkernel Co. Ltd >>> with the following specifications: >>> >>> - Amlogic S92

[U-Boot] [PATCH 4/4] arm: dts: Add PCI-E controller for mt7623

2019-07-31 Thread Frank Wunderlich
this Patch adds pcie-controller node for mt7623 Signed-off-by: Frank Wunderlich --- arch/arm/dts/mt7623.dtsi | 108 +++ 1 file changed, 108 insertions(+) diff --git a/arch/arm/dts/mt7623.dtsi b/arch/arm/dts/mt7623.dtsi index 64079c61bf..5d7c62bb8d 100644 ---

[U-Boot] [PATCH 1/4] ahci-pci: ASM1061 report wrong class, but support AHCI.

2019-07-31 Thread Frank Wunderlich
From: Oleksandr Rybalko Tested-by: Frank Wunderlich Signed-off-by: Frank Wunderlich Signed-off-by: Oleksandr Rybalko --- drivers/ata/ahci-pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ata/ahci-pci.c b/drivers/ata/ahci-pci.c index 1ca439d3fa..11ec98b56f 100644 --- a/drivers

[U-Boot] [PATCH 0/4] add pcie/ahci for mt7623/bpi-r2

2019-07-31 Thread Frank Wunderlich
with this Patchseries i want to add ahci-support (sata) for bananapi-r2 pci-driver may support other devices too using mt2701 for pcie, but in first step pcie is only activated for mt7623 (dts) Patches depend on hifsys-patches from ryder.lee: https://patchwork.ozlabs.org/project/uboot/list/?seri

[U-Boot] [PATCH 2/4] ata: ahci: Don't forget to clear upper address regs.

2019-07-31 Thread Frank Wunderlich
From: Oleksandr Rybalko In 32bits mode upper bits need to be set to 0, otherwise controller will try to DMA into not existing memory and stops with error. Tested-by: Frank Wunderlich Signed-off-by: Frank Wunderlich Signed-off-by: Oleksandr Rybalko --- drivers/ata/ahci.c | 9 +++-- 1 file

[U-Boot] [PATCH 3/4] pci: mediatek: Add pci-driver for mt2701

2019-07-31 Thread Frank Wunderlich
From: Oleksandr Rybalko this chip is used in MT7623 and some other Mediatek SoCs for pcie Tested-by: Frank Wunderlich Signed-off-by: Frank Wunderlich Signed-off-by: Oleksandr Rybalko --- drivers/pci/Kconfig | 6 + drivers/pci/Makefile | 1 + drivers/pci/pci-mt2701.c | 490 ++

[U-Boot] [PATCH v1 0/9] apalis-tk1: fixes/updates for v2019.10

2019-07-31 Thread Igor Opaniuk
Misc. fixes related to pinmux configuration (fan), default bootargs, reset reason output and power rail configuration. Dominik Sliwa (2): apalis-tk1/t30: colibri_t30: display reset reason apalis-tk1: remove non-esential power rails on boot Igor Opaniuk (5): apalis-tk1: set apalis gpio 8 aka

[U-Boot] [PATCH v1 1/9] apalis-tk1: do not explicitly release reset_moci#

2019-07-31 Thread Igor Opaniuk
From: Marcel Ziswiler By keeping RESET_MOCI_CTRL low we avoid explicitly releasing RESET_MOCI#. Please note that module hardware versions up to V1.1A will already release RESET_MOCI# in hardware coming out of reset. Please further note that with this change the USB hub on the Apalis Evaluation

[U-Boot] [PATCH v1 2/9] apalis-tk1: set apalis gpio 8 aka fan_en

2019-07-31 Thread Igor Opaniuk
From: Igor Opaniuk Make sure the Apalis GPIO 8 aka FAN_EN is on when using Apalis TK1 modules. Signed-off-by: Igor Opaniuk Signed-off-by: Dominik Sliwa --- board/toradex/apalis-tk1/apalis-tk1.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/board/toradex/apalis-tk1/apalis-tk

[U-Boot] [PATCH v1 9/9] apalis-tk1: remove non-esential power rails on boot

2019-07-31 Thread Igor Opaniuk
From: Dominik Sliwa When mainline kernels reboot TK1 they use SW_RESET, that reset mode does not reset PMIC. Some rails need to be off for RAM Re-repair to work correctly. Signed-off-by: Dominik Sliwa Signed-off-by: Igor Opaniuk --- arch/arm/mach-tegra/tegra124/cpu.c | 45 +++

[U-Boot] [PATCH v1 8/9] apalis-tk1: remove default vesa vga mode from vidargs

2019-07-31 Thread Igor Opaniuk
From: Marcel Ziswiler Remove video=tegrafb0:640x480-16@60 aka VESA VGA mode from vidargs in order for the panel specification in the device tree to be used. This causes the default to be the 10.1" LVDS display which will be available in the Toradex webshop shortly. Signed-off-by: Marcel Ziswiler

[U-Boot] [PATCH v1 7/9] apalis-tk1/t30: colibri_t30: display reset reason

2019-07-31 Thread Igor Opaniuk
From: Dominik Sliwa Display proper reset reason after the SoC info. Signed-off-by: Dominik Sliwa Signed-off-by: Igor Opaniuk --- arch/arm/mach-tegra/sys_info.c | 32 ++-- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-tegra/sys_info.

[U-Boot] [PATCH v1 5/9] apalis-tk1: add pcie_aspm=off to defargs

2019-07-31 Thread Igor Opaniuk
From: Igor Opaniuk Disabling ASPM fixes incompatibilities with some PCIe cards Signed-off-by: Dominik Sliwa Signed-off-by: Igor Opaniuk --- include/configs/apalis-tk1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/apalis-tk1.h b/include/configs/apalis-t

[U-Boot] [PATCH v1 4/9] apalis-tk1: enable user debug by default

2019-07-31 Thread Igor Opaniuk
From: Igor Opaniuk Let the kernel print some debug messages when a user program crashes due to an exception. Signed-off-by: Stefan Agner Signed-off-by: Igor Opaniuk --- include/configs/apalis-tk1.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/apalis-t

[U-Boot] [PATCH v1 6/9] apalis-tk1: switch to zImage

2019-07-31 Thread Igor Opaniuk
From: Igor Opaniuk Switch to the generic compressed Kernel image type (zImage) instead of the U-Boot specific uImage format. Signed-off-by: Bhuvanchandra DV Signed-off-by: Igor Opaniuk --- include/configs/apalis-tk1.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff -

[U-Boot] [PATCH v1 3/9] apalis-tk1: provide proper USB vendor id

2019-07-31 Thread Igor Opaniuk
From: Igor Opaniuk Use unified values for USB Product/Vendor numbers when the config block is missing Signed-off-by: Max Krummenacher Signed-off-by: Igor Opaniuk --- configs/apalis-tk1_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/apalis-tk1_defconfig

Re: [U-Boot] [PATCH] rpi: increase SYS_BOOTM_LEN to 64M

2019-07-31 Thread Bonnans, Laurent
On 7/31/19 9:12 AM, Matthias Brugger wrote: > Hi Laurent, > > On 07/06/2019 17:04, Bonnans, Laurent wrote: >> On AArch64, kernel images are not self-decompressing and easily exceed >> the 8MB limit. >> >> Signed-off-by: Laurent Bonnans >> --- >> include/configs/rpi.h | 1 + >> 1 file changed,

[U-Boot] [PATCH v2] rpi: increase SYS_BOOTM_LEN to 64M on ARM64

2019-07-31 Thread Bonnans, Laurent
On AArch64, kernel images are not self-decompressing and easily exceed the 8MB limit. Signed-off-by: Laurent Bonnans --- Changes for v2: - only override SYS_BOOTM_LEN in ARM64 case include/configs/rpi.h | 4 1 file changed, 4 insertions(+) diff --git a/include/configs/rpi.h b/include/co

[U-Boot] Please pull u-boot-mmc

2019-07-31 Thread Peng Fan
Hi Tom, Please pull u-boot-mmc CI build: https://travis-ci.org/MrVan/u-boot/builds/565839867 --- A new mmc/sd block test case Bug fixes for sdhci and mv_sdhci --

[U-Boot] [GIT] Pull request: u-boot-clk (31.07.2019)

2019-07-31 Thread Lukasz Majewski
Dear Tom, Please find a PR for u-boot-clk branch: Change log: - Port more CCF code to work with i.MX8 devices. The following changes since commit 75551c8bfc9545e31ec2ce238cac3857904007b8: Merge branch '2019-07-26-ti-imports' (2019-07-27 19:50:52 -0400) are available in the git repository

Re: [U-Boot] [PULL] u-boot-sh/master

2019-07-31 Thread Tom Rini
On Tue, Jul 30, 2019 at 02:07:23PM +0200, Marek Vasut wrote: > The following changes since commit 0de815356474912ef5bef9a69f0327a5a93bb2c2: > > Merge branch '2019-07-17-master-imports' (2019-07-18 11:31:37 -0400) > > are available in the Git repository at: > > git://git.denx.de/u-boot-sh.gi

Re: [U-Boot] [GIT PULL] Xilinx/FPGA patches for v2019.10

2019-07-31 Thread Tom Rini
On Tue, Jul 30, 2019 at 05:23:20PM +0200, Michal Simek wrote: > Hi Tom, > > I just came from vacation and didn't catch rc1 merge window. Here are > patches I have collected in connection to Xilinx and FPGA. > > Thanks, > Michal > > > The following changes since commit d0d07ba86afc8074d79e436b1

Re: [U-Boot] Please pull u-boot-video

2019-07-31 Thread Tom Rini
On Tue, Jul 30, 2019 at 08:07:54PM +0200, Anatolij Gustschin wrote: > Hi Tom, > > here some more video patches I missed to include in the recent pull request. > Travis CI: https://travis-ci.org/vdsao/u-boot-video/builds/565440648 > > Thanks, > Anatolij > > The following changes since commit 970

Re: [U-Boot] [PATCH 3/4] pci: mediatek: Add pci-driver for mt2701

2019-07-31 Thread Ryder Lee
+ GSS_MTK_Uboot_upstream On Wed, 2019-07-31 at 13:51 +0200, Frank Wunderlich wrote: > From: Oleksandr Rybalko > > this chip is used in MT7623 and some other Mediatek SoCs for pcie > > Tested-by: Frank Wunderlich > Signed-off-by: Frank Wunderlich > Signed-off-by: Oleksandr Rybalko > --- > d

Re: [U-Boot] [PATCH v1 1/9] apalis-tk1: do not explicitly release reset_moci#

2019-07-31 Thread Oleksandr Suvorov
On Wed, Jul 31, 2019 at 3:05 PM Igor Opaniuk wrote: > > From: Marcel Ziswiler > > By keeping RESET_MOCI_CTRL low we avoid explicitly releasing > RESET_MOCI#. > > Please note that module hardware versions up to V1.1A will already > release RESET_MOCI# in hardware coming out of reset. > > Please fu

Re: [U-Boot] [PATCH v1 2/9] apalis-tk1: set apalis gpio 8 aka fan_en

2019-07-31 Thread Oleksandr Suvorov
On Wed, Jul 31, 2019 at 3:07 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Make sure the Apalis GPIO 8 aka FAN_EN is on when using Apalis TK1 > modules. > > Signed-off-by: Igor Opaniuk > Signed-off-by: Dominik Sliwa Reviewed-by: Oleksandr Suvorov > --- > > board/toradex/apalis-tk1/apali

Re: [U-Boot] [PATCH v1 3/9] apalis-tk1: provide proper USB vendor id

2019-07-31 Thread Oleksandr Suvorov
On Wed, Jul 31, 2019 at 3:09 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Use unified values for USB Product/Vendor numbers > when the config block is missing > > Signed-off-by: Max Krummenacher > Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov > --- > > configs/apalis-tk1_d

Re: [U-Boot] [PATCH v1 5/9] apalis-tk1: add pcie_aspm=off to defargs

2019-07-31 Thread Oleksandr Suvorov
On Wed, Jul 31, 2019 at 3:09 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Disabling ASPM fixes incompatibilities with some PCIe cards > > Signed-off-by: Dominik Sliwa > Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov > --- > > include/configs/apalis-tk1.h | 2 +- > 1 file ch

Re: [U-Boot] [PATCH v1 6/9] apalis-tk1: switch to zImage

2019-07-31 Thread Oleksandr Suvorov
On Wed, Jul 31, 2019 at 3:09 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Switch to the generic compressed Kernel image type (zImage) instead of > the U-Boot specific uImage format. > > Signed-off-by: Bhuvanchandra DV > Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov > --- >

Re: [U-Boot] [PATCH v1 8/9] apalis-tk1: remove default vesa vga mode from vidargs

2019-07-31 Thread Oleksandr Suvorov
On Wed, Jul 31, 2019 at 3:08 PM Igor Opaniuk wrote: > > From: Marcel Ziswiler > > Remove video=tegrafb0:640x480-16@60 aka VESA VGA mode from vidargs in > order for the panel specification in the device tree to be used. This > causes the default to be the 10.1" LVDS display which will be available

Re: [U-Boot] [PATCH v2 2/2] serial: lpuart: request dm device removal when booting OS

2019-07-31 Thread Anatolij Gustschin
Hi Peng, On Mon, 15 Jul 2019 03:02:46 + Peng Fan peng@nxp.com wrote: ... > > +static int lpuart_serial_remove(struct udevice *dev) { > > + if (dev == gd->cur_serial_dev) > > + dev->flags |= DM_FLAG_REMOVE_WITH_PD_ON; > > How about introduce a device tree property for DM? Th

Re: [U-Boot] [PATCH v1 9/9] apalis-tk1: remove non-esential power rails on boot

2019-07-31 Thread Oleksandr Suvorov
On Wed, Jul 31, 2019 at 3:07 PM Igor Opaniuk wrote: > > From: Dominik Sliwa > > When mainline kernels reboot TK1 they use SW_RESET, > that reset mode does not reset PMIC. Some rails > need to be off for RAM Re-repair to work correctly. > > Signed-off-by: Dominik Sliwa > Signed-off-by: Igor Opani

Re: [U-Boot] [PATCH v2 1/2] dm: core: device: switch off power domain after device removal

2019-07-31 Thread Anatolij Gustschin
Hi Lokesh, On Tue, 23 Jul 2019 19:35:43 +0530 Lokesh Vutla lokeshvu...@ti.com wrote: ... > > + if (CONFIG_IS_ENABLED(POWER_DOMAIN) && dev->parent && > > + device_get_uclass_id(dev) != UCLASS_POWER_DOMAIN && > > + !(dev->flags & DM_FLAG_REMOVE_WITH_PD_ON)) { > > This is going to

[U-Boot] [PATCH 1/1] sunxi: Fix pll1 clock calculation

2019-07-31 Thread Stefan Mavrodiev
clock_sun6i.c is used for sun6i, sun8i and sun50i SoC families. PLL1 clock sets the default system clock, defined as: sun6i: 100800 sun8i: 100800 sun50i: 81600 With the current calculation, m = 2 and k = 3. Solving for n, this results 28. Solving back: (24MHz * 28 * 3) / 2 = 10

Re: [U-Boot] imx7d: CPU core issue in secure mode

2019-07-31 Thread Fabio Estevam
[Adding Bryan and Breno] Hi Bryan, I think you worked on allowing the CAAM driver in Linux to work on i.MX7D running in non-secure when you created: commit 22191ac35344 ("drivers/crypto/fsl: assign job-rings to non-TrustZone") It was reverted later by Breno as it broke secure boot. If I underst

[U-Boot] [PATCH] Revert "ARM: davinci: da850: Manual pinmux only when PINCTRL not available"

2019-07-31 Thread Adam Ford
This reverts commit 877ab2423bc257045a06bc23d4b9440b82bda6fb. The above patch was designed to shrink code by only pin-muxing items needed for SPL in SPL and relying on driver model or SPL to mux other items. Unfortunately, da850evm_direct_nor doesn't use SPL so items that were only muxed during S

[U-Boot] question about spi flash driver for large ST micro

2019-07-31 Thread Valero, Miguel
Hi there. I was wondering whether you have plans to add support for the BP3 and Top/Bottom bits of the Status Register, making it possible to lock flash regions with full flexibility, within the device constrains of course. That would be the current stm_lock() and friends. Further, do you have p

Re: [U-Boot] [PATCH 3/4] pci: mediatek: Add pci-driver for mt2701

2019-07-31 Thread Aleksandr Rybalko
Hello Ryder. ср, 31 лип. 2019 о 15:45 Ryder Lee пише: > + GSS_MTK_Uboot_upstream > > On Wed, 2019-07-31 at 13:51 +0200, Frank Wunderlich wrote: > > From: Oleksandr Rybalko > > > > this chip is used in MT7623 and some other Mediatek SoCs for pcie > > > > Tested-by: Frank Wunderlich > > Signed-

Re: [U-Boot] [PATCH 3/4] pci: mediatek: Add pci-driver for mt2701

2019-07-31 Thread Ryder Lee
On Wed, 2019-07-31 at 17:13 +0300, Aleksandr Rybalko wrote: > Hello Ryder. > > > ср, 31 лип. 2019 о 15:45 Ryder Lee пише: > > + GSS_MTK_Uboot_upstream > > On Wed, 2019-07-31 at 13:51 +0200, Frank Wunderlich wrote: > > From: Oleksandr Rybalko > > >

Re: [U-Boot] [PATCH 3/4] pci: mediatek: Add pci-driver for mt2701

2019-07-31 Thread Ryder Lee
On Wed, 2019-07-31 at 22:35 +0800, Ryder Lee wrote: > On Wed, 2019-07-31 at 17:13 +0300, Aleksandr Rybalko wrote: > > Hello Ryder. > > > > > > ср, 31 лип. 2019 о 15:45 Ryder Lee пише: > > > > + GSS_MTK_Uboot_upstream > > > > On Wed, 2019-07-31 at 13:51 +0200, Frank Wun

[U-Boot] [PATCH 1/7] net: sh_eth: Add R8A77980 V3H gether support

2019-07-31 Thread Marek Vasut
The R8A77980 V3H gether needs a few minor adjustments to the sh_eth driver, add them to support ethernet on R8A77980. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Nobuhiro Iwamatsu --- drivers/net/sh_eth.c | 15 +++ drivers/net/sh_eth.h | 6 +- 2 files changed, 16 insert

[U-Boot] [PATCH 2/7] net: sh_eth: Fix 64bit build warnings

2019-07-31 Thread Marek Vasut
Fix various type warnings when building this driver for 64bit machine. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Nobuhiro Iwamatsu --- drivers/net/sh_eth.c | 24 drivers/net/sh_eth.h | 8 2 files changed, 16 insertions(+), 16 deletions(-) diff --git

[U-Boot] [PATCH 3/7] pinctrl: renesas: Add R8A77980 V3H PFC tables

2019-07-31 Thread Marek Vasut
Import R8A77980 V3H PFC tables from Linux 5.1.21 , commit 4a9b1eb8bc3b. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/pinctrl/renesas/Kconfig| 10 + drivers/pinctrl/renesas/Makefile |1 + drivers/pinctrl/renesas/pfc-r8a77980.c | 2895

[U-Boot] [PATCH 5/7] ARM: dts: renesas: Add R8A77980 V3H DTs and headers

2019-07-31 Thread Marek Vasut
Import R8A77980 V3H DTs and headers from Linux 5.1.21 , commit 4a9b1eb8bc3b. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/dts/r8a77980-u-boot.dtsi | 24 + arch/arm/dts/r8a77980.dtsi| 1589 + include/dt-bindings/clock/r8a77980-cp

[U-Boot] [PATCH 6/7] ARM: renesas: Add R8A77980 V3H platform code

2019-07-31 Thread Marek Vasut
Add a few bits of platform code to support R8A77980 V3H SoC. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/mach-rmobile/Kconfig.64 | 5 + arch/arm/mach-rmobile/cpu_info.c | 1 + arch/arm/mach-rmobile/include/mach/rmobile.h | 1 + 3 files changed, 7 in

[U-Boot] [PATCH 7/7] ARM: renesas: Add R8A77980 V3H Condor board code

2019-07-31 Thread Marek Vasut
Add board code for the R8A77980 V3H Condor board. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- arch/arm/dts/Makefile | 1 + arch/arm/dts/r8a77980-condor-u-boot.dts | 34 +++ arch/arm/dts/r8a77980-condor.dts| 292 arch/arm/mach-rmobil

[U-Boot] [PATCH 4/7] clk: renesas: Add R8A77980 V3H clock tables

2019-07-31 Thread Marek Vasut
Import R8A77980 V3H clock tables from Linux 5.1.21 , commit 4a9b1eb8bc3b. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/clk/renesas/Kconfig | 6 + drivers/clk/renesas/Makefile| 1 + drivers/clk/renesas/r8a77980-cpg-mssr.c | 255

Re: [U-Boot] [PATCH v2 1/2] dm: core: device: switch off power domain after device removal

2019-07-31 Thread Anatolij Gustschin
Hi Simon, On Thu, 18 Jul 2019 09:22:20 -0600 Simon Glass s...@chromium.org wrote: ... > > > drivers/core/device-remove.c | 9 + > > > include/dm/device.h | 6 ++ > > > 2 files changed, 15 insertions(+) > > Unfortunately this causes a test failure (make qcheck). Can you ple

Re: [U-Boot] [PATCH 3/4] pci: mediatek: Add pci-driver for mt2701

2019-07-31 Thread Frank Wunderlich
Hi Ryder, you know that we cannot write a full, multi-device driver here :) > Gesendet: Mittwoch, 31. Juli 2019 um 17:23 Uhr > Von: "Ryder Lee" > > imho we can use single driver for different IP generation and that is > > what we did in linux now. > > > > MT7623/MT2701 - mtk_pcie_soc_v1 > > MT76

[U-Boot] [PATCH 0/7] Add TPL support for Pine64 Rock64 board.

2019-07-31 Thread Matwey V. Kornilov
This series adds initial TPL support for Pine64 Rock64 board. The ROCK64 is a credit card size SBC based on Rockchip RK3328 Quad-Core ARM Cortex A53. The series has been tested with ATF v2.1. Some patches in the series are taken from https://github.com/rockchip-linux/u-boot Credits are given i

[U-Boot] [PATCH 5/7] rockchip: evb-rk3328: enable defconfig options for TPL/SPL

2019-07-31 Thread Matwey V. Kornilov
From: Kever Yang Enable driver options for TPL/SPL in evb-rk3328_defconfig. Signed-off-by: Kever Yang [cherry picked from commit https://github.com/rockchip-linux/u-boot/commit/df4f40acb449815384e397dcaf5b618bbc6cd855 with minor modifications] Signed-off-by: Matwey V. Kornilov --- configs/e

[U-Boot] [PATCH 3/7] rockchip: dts: rk3328: enable the drivers need by TPL/SPL

2019-07-31 Thread Matwey V. Kornilov
From: Kever Yang Enable the drivers need by TPL/SPL with 'u-boot,dm-pre-reloc'. Signed-off-by: Kever Yang [cherry picked from commit https://github.com/rockchip-linux/u-boot/commit/664225d1610d77ef64ed9a4f42d36474362592cc] Signed-off-by: Matwey V. Kornilov --- arch/arm/dts/rk3328-evb.dts | 2

[U-Boot] [PATCH 2/7] rockchip: dts: rk3328: update dmc node for driver

2019-07-31 Thread Matwey V. Kornilov
From: Kever Yang Update dmc node for full feature driver. Signed-off-by: Kever Yang [cherry picked from commit https://github.com/rockchip-linux/u-boot/commit/1e1495636574c78ea9d3af3e0aae95d5204612d6 with minor modifications] Signed-off-by: Matwey V. Kornilov --- arch/arm/dts/rk3328-evb.dts

[U-Boot] [PATCH 1/7] rockchip: ram: add full feature rk3328 DRAM driver

2019-07-31 Thread Matwey V. Kornilov
From: Kever Yang This driver supports DDR3/LPDDR3/DDR4 SDRAM initialization. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang [cherry picked from commit https://github.com/rockchip-linux/u-boot/commit/9fb0777ec3cc6a89af9d2e0969c3bfe58306a88d with minor modifications] Signed-off-by: Matwe

[U-Boot] [PATCH 6/7] configs: rk3328: enable TPL for rock64-rk3328_defconfig

2019-07-31 Thread Matwey V. Kornilov
Signed-off-by: Matwey V. Kornilov --- configs/rock64-rk3328_defconfig | 14 ++ 1 file changed, 14 insertions(+) diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig index ef453e72c1..6484845fb6 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock6

[U-Boot] [PATCH 7/7] doc: rockchip: Adapt Pine64 Rock64 board instructions

2019-07-31 Thread Matwey V. Kornilov
Now we have our own TPL implementation. Remove obsolete notes. Signed-off-by: Matwey V. Kornilov --- doc/README.rockchip | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index 8ccbb87264..7d4dc1b33b 100644 --- a/doc/README.r

[U-Boot] [PATCH 4/7] rockchip: Kconfig: enable TPL support for rk3328

2019-07-31 Thread Matwey V. Kornilov
From: Kever Yang Enable TPL support and some related option in Kconfig. Signed-off-by: Kever Yang [cherry picked from commit https://github.com/rockchip-linux/u-boot/commit/430b01462bf3f24aaf7920ae2587a6943c39ab5d with minor modifications] Signed-off-by: Matwey V. Kornilov --- arch/arm/mach

[U-Boot] [PATCH v2 1/2] watchdog: omap_wdt: Convert watchdog driver to use DT and DM

2019-07-31 Thread sunil . m
From: Suniel Mahesh This patch adds device tree and driver model watchdog support, converts the legacy omap watchdog driver to driver model for TI AM335x chipsets. The following compile warning is removed: = WARNING == This board does not use CONFIG_WDT (D

[U-Boot] [PATCH v2 2/2] watchdog: omap_wdt: Disable DM watchdog support in SPL

2019-07-31 Thread sunil . m
From: Suniel Mahesh This patch disables DM watchdog support for SPL builds and uses the legacy omap watchdog driver on TI AM335x chipsets. The following build error is reported if DM watchdog support was enabled in SPL: CC spl/drivers/usb/gadget/rndis.o LD spl/drivers/usb/gadget/b

Re: [U-Boot] [PATCH v2 1/2] dm: core: device: switch off power domain after device removal

2019-07-31 Thread Simon Glass
Hi Anatolij, On Wed, 31 Jul 2019 at 10:01, Anatolij Gustschin wrote: > > Hi Simon, > > On Thu, 18 Jul 2019 09:22:20 -0600 > Simon Glass s...@chromium.org wrote: > ... > > > > drivers/core/device-remove.c | 9 + > > > > include/dm/device.h | 6 ++ > > > > 2 files changed, 15

Re: [U-Boot] [PATCH] board_r: re-order the board_early_init_r()

2019-07-31 Thread Simon Glass
Hi Kever, On Wed, 24 Jul 2019 at 04:01, Kever Yang wrote: > > The board_early_init_r() suppose to be called before board_init(), > then the board callback functions in board_r will be: > - board_early_init_r() > - board_init() > - board_late_init() board_early_init_r() was introduced for PowerPC

[U-Boot] [PATCH 1/2] avb: Fix build when CONFIG_OPTEE_TA_AVB is disabled

2019-07-31 Thread Sam Protsenko
When having only these AVB related configs enabled: CONFIG_AVB_VERIFY=y CONFIG_CMD_AVB=y CONFIG_LIBAVB=y build fails with next errors: common/avb_verify.c: In function 'read_persistent_value': common/avb_verify.c:867:6: warning: implicit declaration of function

[U-Boot] [PATCH 2/2] cmd: avb: Fix compiler warnings

2019-07-31 Thread Sam Protsenko
When building U-Boot with AVB enabled, compiler shows next warnings: cmd/avb.c: In function 'do_avb_read_pvalue': cmd/avb.c:371:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [

Re: [U-Boot] [PATCH v2 1/2] dm: core: device: switch off power domain after device removal

2019-07-31 Thread Anatolij Gustschin
Hi Simon, On Wed, 31 Jul 2019 10:29:50 -0600 Simon Glass s...@chromium.org wrote: ... >> But I'm not sure if this it the correct approach. What do you think? > > That doesn't look right to me. Power supplies should be removed before > being unbound, just like any other device. OK, I tried to r

Re: [U-Boot] [RFC] drivers: dma: ti-edma3: Enable edma3-tpcc

2019-07-31 Thread Tom Rini
On Sun, Jun 09, 2019 at 08:34:46AM -0500, Adam Ford wrote: > Enable edma3-tpcc controllers for future use with some > Davinci devices. > > Signed-off-by: Adam Ford > > diff --git a/arch/arm/mach-davinci/cpu.c b/arch/arm/mach-davinci/cpu.c > index f97ad3fc74..e26365cdb1 100644 > --- a/arch/arm/m

[U-Boot] [BISECTED] [BUG]: MMC initialization hang at Zynq Z-turn board

2019-07-31 Thread Matwey V. Kornilov
Hello, I am running Zynq Z-turn board and I face the following issue with MMC initialization in SPL. With u-boot master, I see the message similar to the following: U-Boot SPL 2019.07-00352-gb5f3eb3393 (Jul 31 2019 - 20:03:42 +0300) mmc boot Trying to boot from MMC1 Then, the u-boot waits foreve

Re: [U-Boot] [PATCH v4] board/BuR/brsmarc1: initial commit

2019-07-31 Thread Tom Rini
On Wed, Jul 31, 2019 at 06:31:39AM +0200, Hannes Schmelzer wrote: > This commit adds support for the B&R brsmarc1 SoM. > > The SoM is based on TI's AM335x SoC. > Mainly vxWorks 6.9.4.x is running on the board, > doing some PLC stuff on various carrier boards. > > Signed-off-by: Hannes Schmelzer

Re: [U-Boot] (Offlist) Re: U-Boot/EBBR plugfest at ELC-EU?

2019-07-31 Thread Daniel Kiper
On Tue, Jul 30, 2019 at 03:33:27PM +, Grant Likely wrote: > >> On 24 Jul 2019, at 14:39, Daniel Kiper wrote: > >>> On Mon, Jul 08, 2019 at 01:27:11PM +, Steve McIntyre wrote: > >>> On Mon, Jul 08, 2019 at 11:18:56AM +0100, Leif Lindholm wrote: > >>> On Mon, Jul 08, 2019 at 12:13:07PM +0200

[U-Boot] [PATCH] ARM: omap3: overo: Fix MMC init for SPL

2019-07-31 Thread anselm . busse
From: Anselm Busse The SPL for the Overo board does not initialise the MMC. Hence, it cannot load the main boot loader from the SD card susequently. This Patch moves the initialisation code for the MMC so it gets included in the SPL. --- board/overo/common.c | 25 + bo

[U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190731

2019-07-31 Thread Neil Armstrong
-amlogic/pipelines/376 Thanks, Neil The following changes since commit d0d07ba86afc8074d79e436b1ba4478fa0f0c1b5: Prepare v2019.10-rc1 (2019-07-29 21:16:16 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic.git tags/u-boot-amlogic-20190731

Re: [U-Boot] [PATCH 31/39] env: Drop _ENTRY

2019-07-31 Thread Simon Glass
Hi Joe, On Tue, 30 Jul 2019 at 15:35, Joe Hershberger wrote: > > On Sun, Jul 28, 2019 at 9:28 AM Simon Glass wrote: > > > > This typedef does not need to be defined in the search.h header since it > > is only used in one file (hashtable.c). Remove it from the header and > > change it to a struct

  1   2   >