Re: [U-Boot] [PATCH] i2c: mvtwsi: Fix delay time for Turris Omnia

2019-04-30 Thread Marek Behun
> You mean tha patch series > > "[U-Boot] [PATCH u-boot-marvell v2 00/15] Fixes for Turris Omnia" > > So we can ignore this patch? > > bye, > Heiko Yes :) ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] i2c: mxc: Hide kconfig based control in DM_I2C mode

2019-04-30 Thread Heiko Schocher
Hello Trent, Am 30.04.2019 um 06:24 schrieb Heiko Schocher: Hello Trent, Am 12.04.2019 um 21:19 schrieb Trent Piepho: These options only apply when not using DM_I2C.  When using device trees, the dt will enable and control the speeds of the I2C controller(s) and these configuration options hav

Re: [U-Boot] [PATCH] i2c: mvtwsi: Fix delay time for Turris Omnia

2019-04-30 Thread Heiko Schocher
Hello Marek, Am 30.04.2019 um 09:01 schrieb Marek Behun: You mean tha patch series "[U-Boot] [PATCH u-boot-marvell v2 00/15] Fixes for Turris Omnia" So we can ignore this patch? bye, Heiko Yes :) Ok, fine. I set Patchwork state for this patch to superseded http://patchwork.ozlabs.org/pat

[U-Boot] [PATCH] README: davinci: update the documentation for DaVinci

2019-04-30 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The DM* family of SOCs is no longer supported. We now support the omap-l138 lcdk board and Lego EV3 platform. Reflect those changes in the README. Signed-off-by: Bartosz Golaszewski --- doc/README.davinci | 125 - 1 file cha

Re: [U-Boot] [PATCH v2] arm: socfpga: Move Stratix 10 SDRAM driver to DM

2019-04-30 Thread Ley Foon Tan
On Mon, Apr 29, 2019 at 5:55 PM Marek Vasut wrote: > > On 4/26/19 10:23 AM, Ley Foon Tan wrote: > > On Wed, Apr 24, 2019 at 11:01 PM Marek Vasut wrote: > >> > >> On 4/24/19 8:21 AM, Ley Foon Tan wrote: > >>> Convert Stratix 10 SDRAM driver to device model. > >>> > >>> Get rid of call to socfpga_p

Re: [U-Boot] [PATCH 2/2] fsl_qspi: Improve QSPI driver to incorporate 4 byte commands

2019-04-30 Thread Schrempf Frieder
Hi, On 26.04.19 06:58, Vignesh Raghavendra wrote: > > > On 25/04/19 5:20 PM, Rajat Srivastava wrote: >> >> >>> -Original Message- >>> From: Vignesh Raghavendra >>> Sent: Wednesday, April 24, 2019 10:17 PM >>> To: Rajat Srivastava ; u-boot@lists.denx.de; >>> ja...@openedev.com >>> Cc: As

Re: [U-Boot] [PATCH 2/2] fsl_qspi: Improve QSPI driver to incorporate 4 byte commands

2019-04-30 Thread Vignesh Raghavendra
On 30/04/19 1:13 PM, Schrempf Frieder wrote: > Hi, > > On 26.04.19 06:58, Vignesh Raghavendra wrote: >> >> >> On 25/04/19 5:20 PM, Rajat Srivastava wrote: >>> >>> -Original Message- From: Vignesh Raghavendra Sent: Wednesday, April 24, 2019 10:17 PM To: Rajat Srivasta

Re: [U-Boot] [PATCH v4 1/5] riscv: Introduce CONFIG_XIP to support booting from flash

2019-04-30 Thread Bin Meng
On Tue, Apr 30, 2019 at 1:54 PM Andes wrote: > > From: Rick Chen > > When U-Boot boots from flash, during the boot process, > hart_lottery and available_harts_lock variable addresses > point to flash which is not writable. This causes boot > failures on AE350. Introduce a config option CONFIG_XIP

Re: [U-Boot] [PATCH v4 3/5] riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE is enabled

2019-04-30 Thread Bin Meng
On Tue, Apr 30, 2019 at 1:54 PM Andes wrote: > > From: Rick Chen > > This patch will fix prior_stage_fdt_address write failure problem, when > AE350 boots from flash. > > When AE350 boots from flash, prior_stage_fdt_address will be flash > address, we shall avoid it to be written. > > Signed-off-

Re: [U-Boot] [PATCH v4 5/5] riscv: configs: AE350 will use CONFIG_OF_SEPARATE when boots from flash

2019-04-30 Thread Bin Meng
On Tue, Apr 30, 2019 at 1:55 PM Andes wrote: > > From: Rick Chen > > When AE350 boots from flash, use CONFIG_OF_SEPARATE instead of > CONFIG_OF_BOARD. > > Also remove unused code about prior_stage_fdt_address. > And modify CONFIG_SYS_FDT_BASE as flash address. > > Signed-off-by: Rick Chen > Cc:

Re: [U-Boot] [PATCH 2/4] crypto/fsl: Use __sec_set_jr_context_normal

2019-04-30 Thread Bryan O'Donoghue
On 30/04/2019 02:28, Bryan O'Donoghue wrote: On 25/04/2019 04:24, Breno Matheus Lima wrote: I couldn't get encrypted boot working in my first attempt, doing the exact same procedure with commit 22191ac35344 ("drivers/crypto/fsl: assign job-rings to non-TrustZone") reverted works fine. Hi B

Re: [U-Boot] [PATCH] dts: arm: socfpga: fix socfpga_de10_nano console

2019-04-30 Thread Simon Goldschmidt
On Mon, Apr 29, 2019 at 10:29 PM Marek Vasut wrote: > > On 4/29/19 9:50 PM, Simon Goldschmidt wrote: > > Am 29.04.2019 um 21:23 schrieb Marek Vasut: > >> On 4/29/19 8:53 PM, Simon Goldschmidt wrote: > >>> Am 29.04.2019 um 20:33 schrieb Marek Vasut: > On 4/29/19 8:32 PM, Simon Goldschmidt wrot

Re: [U-Boot] [PATCH] README: davinci: update the documentation for DaVinci

2019-04-30 Thread Adam Ford
On Tue, Apr 30, 2019 at 2:39 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > The DM* family of SOCs is no longer supported. We now support the > omap-l138 lcdk board and Lego EV3 platform. Reflect those changes Don't forget about the da850 EVM > in the README. > > Signed-off-by:

Re: [U-Boot] [PATCH] README: davinci: update the documentation for DaVinci

2019-04-30 Thread Bartosz Golaszewski
wt., 30 kwi 2019 o 11:08 Adam Ford napisał(a): > > On Tue, Apr 30, 2019 at 2:39 AM Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > The DM* family of SOCs is no longer supported. We now support the > > omap-l138 lcdk board and Lego EV3 platform. Reflect those changes > > Don'

[U-Boot] [PATCH v3 0/3] Move Stratix 10 SDRAM driver to DM

2019-04-30 Thread Ley Foon Tan
Compile ALTERA_SDRAM driver in SPL only and move Stratix 10 SDRAM driver to DM. v2->v3: --- - Compile ALTERA_SDRAM driver in SPL only - Separate dts change to new patch - Change to use #if CONFIG_IS_ENABLED(ALTERA_SDRAM) - Add _remove() - Remove #ifdef CONFIG_SPL_BUILD checking in sdram_s10.c

[U-Boot] [PATCH v3 1/3] ddr: altera: Compile ALTERA SDRAM in SPL only

2019-04-30 Thread Ley Foon Tan
Compile ALTERA_SDRAM driver in SPL only. Rename ALTERA_SDRAM to SPL_ALTERA_SDRAM. Signed-off-by: Ley Foon Tan --- Makefile | 2 +- arch/arm/mach-socfpga/Kconfig | 4 ++-- drivers/Makefile | 2 +- drivers/ddr/altera/Kconfig

[U-Boot] [PATCH v3 2/3] arm: dts: Stratix10: Add SDRAM node

2019-04-30 Thread Ley Foon Tan
Add SDRAM device tree node to support SDRAM DM driver. Signed-off-by: Ley Foon Tan --- arch/arm/dts/socfpga_stratix10.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/socfpga_stratix10.dtsi b/arch/arm/dts/socfpga_stratix10.dtsi index d1ae2fabae..bd68a78a37 100755 -

[U-Boot] [PATCH v3 3/3] arm: socfpga: Move Stratix 10 SDRAM driver to DM

2019-04-30 Thread Ley Foon Tan
Convert Stratix 10 SDRAM driver to device model. Get rid of call to socfpga_per_reset() and use reset framework. SPL is changed from calling function in SDRAM driver directly to just probing UCLASS_RAM. Move sdram_s10.h from arch to driver/ddr/altera directory. Signed-off-by: Ley Foon Tan ---

Re: [U-Boot] [PATCH 3/4] usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support

2019-04-30 Thread Adam Ford
On Mon, Apr 29, 2019 at 4:54 AM Marek Vasut wrote: > > On 4/28/19 11:45 PM, Adam Ford wrote: > > This patch reuses some former code for the hawkboard, combines it > > with some some similar DM_USB compatible code for the OHCI driver, > > and enables the use of the da850's OHCI controller with DM_U

Re: [U-Boot] [PATCH 3/4] usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support

2019-04-30 Thread Marek Vasut
On 4/30/19 11:24 AM, Adam Ford wrote: > On Mon, Apr 29, 2019 at 4:54 AM Marek Vasut wrote: >> >> On 4/28/19 11:45 PM, Adam Ford wrote: >>> This patch reuses some former code for the hawkboard, combines it >>> with some some similar DM_USB compatible code for the OHCI driver, >>> and enables the us

Re: [U-Boot] [PATCH v3 1/3] ddr: altera: Compile ALTERA SDRAM in SPL only

2019-04-30 Thread Marek Vasut
On 4/30/19 11:19 AM, Ley Foon Tan wrote: > Compile ALTERA_SDRAM driver in SPL only. > Rename ALTERA_SDRAM to SPL_ALTERA_SDRAM. > > Signed-off-by: Ley Foon Tan > --- > Makefile | 2 +- > arch/arm/mach-socfpga/Kconfig | 4 ++-- > drivers/Makefile

Re: [U-Boot] [PATCH v3 2/3] arm: dts: Stratix10: Add SDRAM node

2019-04-30 Thread Marek Vasut
On 4/30/19 11:20 AM, Ley Foon Tan wrote: > Add SDRAM device tree node to support SDRAM DM driver. DT is a hardware description, so you're adding the node to describe the hardware that's present, not to enable software feature. > Signed-off-by: Ley Foon Tan > --- > arch/arm/dts/socfpga_stratix10

Re: [U-Boot] [PATCH v2 2/2] RISCV: image: Parse Image.gz support in booti.

2019-04-30 Thread Marek Vasut
On 4/30/19 3:27 AM, Atish Patra wrote: [...] >>> Yes. FIT image parsing can be done in that way. However, the idea was >>> here to load Image.gz directly. Image.gz is default compressed Linux >>> kernel image format in RISC-V. >> >> Sigh, and the image header is compressed as well, so there's no

Re: [U-Boot] [PATCH v2] arm: socfpga: Move Stratix 10 SDRAM driver to DM

2019-04-30 Thread Marek Vasut
On 4/30/19 9:40 AM, Ley Foon Tan wrote: [...] > +static int altera_sdram_probe(struct udevice *dev) > +{ > + int ret; > + struct reset_ctl_bulk resets; > + > + ret = reset_get_bulk(dev, &resets); > + if (ret) { > + dev_err(dev, "Can't get

[U-Boot] [PATCH 2/6] arm: dts: imx8qm: add support for i2c0, i2c1, i2c2, i2c3 and i2c4

2019-04-30 Thread Marcel Ziswiler
From: Marcel Ziswiler Add support for i2c0, i2c1, i2c2, i2c3 and i2c4. Signed-off-by: Marcel Ziswiler --- arch/arm/dts/fsl-imx8qm.dtsi | 75 1 file changed, 75 insertions(+) diff --git a/arch/arm/dts/fsl-imx8qm.dtsi b/arch/arm/dts/fsl-imx8qm.dtsi index d

[U-Boot] [PATCH 5/6] imx8: fuse: fix fuse driver

2019-04-30 Thread Marcel Ziswiler
This fixes the i.MX 8 fuse driver to actually build for i.MX 8QM as well. Signed-off-by: Marcel Ziswiler --- drivers/misc/imx8/fuse.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/imx8/fuse.c b/drivers/misc/imx8/fuse.c index 29d2256a22..2f2fad2c17 100644 --- a/drivers/misc/

[U-Boot] [PATCH 4/6] imx8qm: fix cpu frequency reporting

2019-04-30 Thread Marcel Ziswiler
CPU frequency reporting failed with the following error message being printed: sc_pm_get_clock_rate: resource:507 clk:2: res:3 Could not read CPU frequency: -22 CPU: NXP i.MX8QM RevB A53 at 0 MHz Fix this by differentiating between the A35 as found on the i.MX 8QXP and the A53 as found on the i

[U-Boot] [PATCH 0/6] apalis imx8qm 4gb wb it v1.0b module support

2019-04-30 Thread Marcel Ziswiler
This series adds support for more lpuart instances, support for i2c0, i2c1, i2c2, i2c3, i2c4, fixes support for uSDHC2, fixes CPU frequency reporting, fixes fuse driver and last but not least introduces support for the Toradex Apalis iMX8QM 4GB WB IT V1.0B module. This series is available togethe

[U-Boot] [PATCH 3/6] clk: imx8qm: fix usdhc2 clocks

2019-04-30 Thread Marcel Ziswiler
Trying to bring up uSDHC2 the following error message was observed: MMC: imx8_clk_set_rate(Invalid clk ID #60) imx8_clk_set_rate(Invalid clk ID #60) usdhc@5b03 - probe failed: -22 This commit fixes this by properly setting resp. clocks. Signed-off-by: Marcel Ziswiler --- drivers/clk/im

[U-Boot] [PATCH 1/6] arm: dts: imx8qm: add lpuart1, lpuart2, lpuart3, lpuart4

2019-04-30 Thread Marcel Ziswiler
From: Marcel Ziswiler Add support for lpuart1, lpuart2, lpuart3 and lpuart4. Signed-off-by: Marcel Ziswiler --- arch/arm/dts/fsl-imx8qm.dtsi | 80 1 file changed, 80 insertions(+) diff --git a/arch/arm/dts/fsl-imx8qm.dtsi b/arch/arm/dts/fsl-imx8qm.dtsi i

[U-Boot] [PATCH 6/6] board: toradex: add apalis imx8qm 4gb wb it v1.0b module support

2019-04-30 Thread Marcel Ziswiler
From: Marcel Ziswiler This commit adds initial support for the Toradex Apalis iMX8QM 4GB WB IT V1.0B module. Unlike the V1.0A early access samples exclusively booting from SD card, they are now strapped to boot from eFuses which are factory fused to properly boot from their on-module eMMC. U-Boot

[U-Boot] [i.MX8MM+CCF 00/41] i.MX8MM + CCF

2019-04-30 Thread Peng Fan
This patch set is based Lukasz V3 CCF patchset, [PATCH v3 00/11] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3) https://github.com/lmajewski/u-boot-dfu/commits/CCF-v3 Added a few fixes to Lukasz's v3 patchset. Introduced clk-gate/composite Added set rate support Per my unde

[U-Boot] [i.MX8MM+CCF 01/41] clk: correct get clk_x pointer

2019-04-30 Thread Peng Fan
Directly use driver data is wrong, need to the helper to get the correct clk_divider and etc Signed-off-by: Peng Fan --- drivers/clk/clk-divider.c | 2 +- drivers/clk/imx/clk-gate2.c | 4 ++-- drivers/clk/imx/clk-pfd.c | 2 +- drivers/clk/imx/clk-pllv3.c | 2 +- 4 files changed, 5 insertions

[U-Boot] [i.MX8MM+CCF 02/41] clk: fixed-factor: fix get clk_fixed_factor

2019-04-30 Thread Peng Fan
driver data is not clk, not clk_fixed_factor, fix it. Signed-off-by: Peng Fan --- drivers/clk/clk-fixed-factor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index acbc0909b4..c535aadc48 100644 --- a/drivers/c

[U-Boot] [i.MX8MM+CCF 05/41] clk-provider: sync more clk flags from Linux Kernel

2019-04-30 Thread Peng Fan
Sync more clk flags that might be used in U-Boot CCF. Signed-off-by: Peng Fan --- include/linux/clk-provider.h | 21 + 1 file changed, 21 insertions(+) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index eac045c5f8..3458746a60 100644 --- a/include/

[U-Boot] [i.MX8MM+CCF 03/41] clk: introduce clk_dev_binded

2019-04-30 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_driver_data to get the correct clk_mux/gate/divider. So ad

[U-Boot] [i.MX8MM+CCF 04/41] clk: use clk_dev_binded

2019-04-30 Thread Peng Fan
Preparing to support composite clk. Signed-off-by: Peng Fan --- 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 1d2c1b1ec4..2f09e0bb58 100644 --- a

[U-Boot] [i.MX8MM+CCF 09/41] clk: add clk-gate support

2019-04-30 Thread Peng Fan
Import clk-gate support from Linux Kernel 5.1-rc5 Signed-off-by: Peng Fan --- drivers/clk/Makefile | 2 +- drivers/clk/clk-gate.c | 151 +++ include/linux/clk-provider.h | 18 ++ 3 files changed, 170 insertions(+), 1 deletion(-) creat

[U-Boot] [i.MX8MM+CCF 08/41] clk: export mux/divider ops

2019-04-30 Thread Peng Fan
Export mux/divider ops for composite usage Signed-off-by: Peng Fan --- 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 index 216095d28c..a60cf6e833 100644 --- a/include/linux/clk-provider.h +++ b/include

[U-Boot] [i.MX8MM+CCF 06/41] cmd: clk: print err value when clk_get_rate failed

2019-04-30 Thread Peng Fan
Print err value when clk_get_rate failed Signed-off-by: Peng Fan --- cmd/clk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/clk.c b/cmd/clk.c index 2ea82176aa..73d963184d 100644 --- a/cmd/clk.c +++ b/cmd/clk.c @@ -41,6 +41,8 @@ int __weak soc_clk_dump(void) rate = cl

[U-Boot] [i.MX8MM+CCF 10/41] divider set rate supporrt

2019-04-30 Thread Peng Fan
Signed-off-by: Peng Fan --- 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 2f09e0bb58..8615f9815d 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/cl

[U-Boot] [i.MX8MM+CCF 07/41] clk: mux: add set parent support

2019-04-30 Thread Peng Fan
Add set parent support for clk mux Signed-off-by: Peng Fan --- 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/drivers/clk/clk-mux.c index

[U-Boot] [i.MX8MM+CCF 13/41] clk: imx: import clk heplers

2019-04-30 Thread Peng Fan
Import some clk helpers from Linux Kernel for i.MX8MM usage Signed-off-by: Peng Fan --- 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 864a215a22..aa6e81ff13 100644

[U-Boot] [i.MX8MM+CCF 14/41] clk: imx: gate2 add set rate

2019-04-30 Thread Peng Fan
Add set rate for imx clk-gate2 Signed-off-by: Peng Fan --- 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 83589b9206..75b6b85e07 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/cl

[U-Boot] [i.MX8MM+CCF 11/41] clk: fixed_rate: export clk_fixed_rate

2019-04-30 Thread Peng Fan
Export the structure for others to use. Signed-off-by: Peng Fan --- 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_rate.c index 089f060a23..06

[U-Boot] [i.MX8MM+CCF 19/41] imx: add IMX8MM kconfig entry

2019-04-30 Thread Peng Fan
Add IMX8MM kconfig entry Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index 9c487870a6..35c978e863 100644 --- a/arch/arm/mach-imx/imx8m/Kconfig +++ b/arch/arm/

[U-Boot] [i.MX8MM+CCF 20/41] imx: imx8mm: add clock bindings header

2019-04-30 Thread Peng Fan
Add i.MX8MM clock binding header for i.MX8MM Signed-off-by: Peng Fan --- include/dt-bindings/clock/imx8mm-clock.h | 244 +++ 1 file changed, 244 insertions(+) create mode 100644 include/dt-bindings/clock/imx8mm-clock.h diff --git a/include/dt-bindings/clock/imx8mm-c

[U-Boot] [i.MX8MM+CCF 12/41] clk: fixed_rate: add pre reloc flag

2019-04-30 Thread Peng Fan
Add pre reloc flag to use this driver before relocation Signed-off-by: Peng Fan --- drivers/clk/clk_fixed_rate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c index 069e643fbc..debada1463 100644 --- a/drivers/clk/clk_fixed_rate.c

[U-Boot] [i.MX8MM+CCF 15/41] linux: compat: guard PAGE_SIZE

2019-04-30 Thread Peng Fan
Some archs defined PAGE_SIZE, such as ARMv8, to avoid build warning, guard PAGE_SIZE. Signed-off-by: Peng Fan --- include/linux/compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compat.h b/include/linux/compat.h index d0f51baab4..c1f8bdf8f2 100644 --- a/include/linux/c

[U-Boot] [i.MX8MM+CCF 22/41] imx: spl: add spl_board_boot_device for i.MX8MM

2019-04-30 Thread Peng Fan
Differnet board has different controller used, it is hard to use one layout for them all. Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c index 9f1e0f6a72..a6d7b69ad8 100644 --- a/ar

[U-Boot] [i.MX8MM+CCF 39/41] clk: imx: add i.MX8MM composite clk support

2019-04-30 Thread Peng Fan
Import i.MX8MM composite clk from Linux Kernel Signed-off-by: Peng Fan --- drivers/clk/imx/clk-composite-8m.c | 170 + include/linux/clk-provider.h | 3 + 2 files changed, 173 insertions(+) create mode 100644 drivers/clk/imx/clk-composite-8m.c diff -

[U-Boot] [i.MX8MM+CCF 36/41] clk: imx: add Kconfig entry for i.MX8MM

2019-04-30 Thread Peng Fan
Add Kconfig entry for i.MX8MM, select CLK_CCF and SPL_CLK_CCF Signed-off-by: Peng Fan --- drivers/clk/imx/Kconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index 469768b5c3..0e4c68659c 100644 --- a/drivers/clk/imx/Kconfig +++ b

[U-Boot] [i.MX8MM+CCF 16/41] drivers: core: use strcmp when find device by name

2019-04-30 Thread Peng Fan
`if (!strncmp(dev->name, name, strlen(name)))` might find out the wrong device, it might find out `dram_pll_ref_sel`, when name is `dram_pll`. So use strcmp to avoid such issue. Signed-off-by: Peng Fan --- drivers/core/uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[U-Boot] [i.MX8MM+CCF 37/41] clk: imx: add pll14xx driver

2019-04-30 Thread Peng Fan
Add pll14xx driver Signed-off-by: Peng Fan --- drivers/clk/imx/clk-pll14xx.c | 377 ++ drivers/clk/imx/clk.h | 25 +++ 2 files changed, 402 insertions(+) create mode 100644 drivers/clk/imx/clk-pll14xx.c diff --git a/drivers/clk/imx/clk-pll14xx.c

[U-Boot] [i.MX8MM+CCF 33/41] imx8m: Configure trustzone region 0 for non-secure access

2019-04-30 Thread Peng Fan
From: Ye Li Set trustzone region 0 to allow both non-secure and secure access when trust zone is enabled. We found USB controller fails to access DDR if the default region 0 is secure access only. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 6 ++ 1 fil

[U-Boot] [i.MX8MM+CCF 29/41] imx8m: add pin header for i.MX8MM

2019-04-30 Thread Peng Fan
Add pin header file for i.MX8MM To IMX8MM_PAD_NAND_WE_B_USDHC3_CLK, IOMUX_CONFIG_SION needs to be selected. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx8mm_pins.h | 691 ++ 1 file changed, 691 insertions(+) create mode 100644 arch/arm/include/asm/arch

[U-Boot] [i.MX8MM+CCF 17/41] ddr: imx8m: fix ddr firmware location when enable SPL OF

2019-04-30 Thread Peng Fan
With SPL_OF_SPERATE, the device tree will be padded to end of the u-boot-spl-nodtb.bin, however we also put the ddr firmware file to this location, so need to adapt the code with SPL OF and align to 16bytes to ease copy firmware. Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8m/helper.c | 12 ++

[U-Boot] [i.MX8MM+CCF 32/41] imx8m: set BYPASS ID SWAP to avoid AXI bus errors

2019-04-30 Thread Peng Fan
set the BYPASS ID SWAP bit (GPR10 bit 1) in order for GPU not to generated AXI bus errors with TZC380 enabled. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 5e948

[U-Boot] [i.MX8MM+CCF 27/41] imx8m: add clk support for i.MX8MM

2019-04-30 Thread Peng Fan
Introduce clk implementation for i.MX8MM, including pll configuration, ccm configuration. Mostly will be done clk dm driver, but such as DRAM part, we still use non clk dm driver, because we have limited sram. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock.h| 2 + ar

[U-Boot] [i.MX8MM+CCF 23/41] imx8m: update imx-regs for i.MX8MM

2019-04-30 Thread Peng Fan
i.MX8MM has similar architecture with i.MX8MQ, but it has totally different PLL design and some register layout change. Note: Some registers in this file are not updated because not used now. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 75 +++

[U-Boot] [i.MX8MM+CCF 34/41] imx8m: soc: enable SCTR clock before timer init

2019-04-30 Thread Peng Fan
To i.MX8MM SCTR clock is disabled by ROM, so before timer init need to enable it. To i.MX8MQ, it does not hurt the clock is enabled again. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/

[U-Boot] [i.MX8MM+CCF 40/41] clk: imx: add i.MX8MM clk driver

2019-04-30 Thread Peng Fan
Add i.MX8MM clk driver support. Signed-off-by: Peng Fan --- drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx8mm.c | 415 +++ 2 files changed, 416 insertions(+) create mode 100644 drivers/clk/imx/clk-imx8mm.c diff --git a/drivers/clk/imx/Make

[U-Boot] [i.MX8MM+CCF 21/41] imx: add i.MX8MM cpu type

2019-04-30 Thread Peng Fan
Add i.MX8MM cpu type and related helper functions Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 6 ++ arch/arm/include/asm/mach-imx/sys_proto.h | 8 arch/arm/mach-imx/cpu.c | 12 3 files changed, 26 insertions(+) diff --git

[U-Boot] [i.MX8MM+CCF 31/41] imx8m: Fix MMU table issue for OPTEE memory

2019-04-30 Thread Peng Fan
When running with OPTEE, the MMU table in u-boot does not remove the OPTEE memory from its settings. So ARM speculative prefetch in u-boot may access that OPTEE memory. Due to trust zone is enabled by OPTEE and that memory is set to secure access, then the speculative prefetch will fail and cause v

[U-Boot] [i.MX8MM+CCF 26/41] imx8m: restructure clock.h

2019-04-30 Thread Peng Fan
i.MX8MQ and i.MX8MM use different analog pll design, but they share same ccm design. Add clock_imx8mq.h for i.MX8MQ keep common part in clock.h Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8m/clock.h| 491 +++-- arch/arm/include/asm/arch-imx8m/clock_imx8mq

[U-Boot] [i.MX8MM+CCF 18/41] imx: add IMX8MQ kconfig entry

2019-04-30 Thread Peng Fan
Add IMX8MQ kconfig entry, preparing support IMX8MM Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Kconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index 317dee9bc1..9c487870a6 100644 --- a/arch

[U-Boot] [PATCH V2 1/2] usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support

2019-04-30 Thread Adam Ford
This patch reuses some former code for the hawkboard, combines it with some some similar DM_USB compatible code for the OHCI driver, and enables the use of the da850's OHCI controller with DM_USB compatibility. Signed-off-by: Adam Ford --- V2: Replace timeout with get_timer and read/modify/write

[U-Boot] [i.MX8MM+CCF 25/41] imx8m: rename clock to clock_imx8mq

2019-04-30 Thread Peng Fan
i.MX8MQ and i.MX8MM has totally different pll design, so rename clock to clock_imx8mq. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/Makefile| 3 ++- arch/arm/mach-imx/imx8m/{clock.c => clock_imx8mq.c} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename arch/ar

[U-Boot] [i.MX8MM+CCF 35/41] serial: Kconfig: make MXC_UART usable for MX7 and IMX8M

2019-04-30 Thread Peng Fan
i.MX7 and i.MX8M use mxc uart driver, so let's make the SoC could use MXC_UART kconfig. Signed-off-by: Peng Fan --- drivers/serial/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index fcbb0a81ed..a37b2d60f2 100644 --- a

[U-Boot] [i.MX8MM+CCF 30/41] imx: add i.MX8MM PE property

2019-04-30 Thread Peng Fan
i.MX8MM does not have LVTTL, it has a PE property Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/iomux-v3.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/mach-imx/iomux-v3.h b/arch/arm/include/asm/mach-imx/iomux-v3.h index b899a4ff6f..720e8f7043 100644

[U-Boot] [i.MX8MM+CCF 28/41] imx8m: soc: probe clk before relocation

2019-04-30 Thread Peng Fan
probe clk device before relocation to get cpu clk. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 42b99945b4..07cda86bdd 100644 --- a/arch/arm

[U-Boot] [i.MX8MM+CCF 24/41] imx: add get_cpu_rev support for i.MX8MM

2019-04-30 Thread Peng Fan
There are several variants based on i.MX8MM, add the support in get_cpu_rev Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8m/soc.c | 57 +++ 1 file changed, 47 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-im

[U-Boot] [PATCH V2 0/2] Enable DA830 OHCI USB Controller with DM_USB

2019-04-30 Thread Adam Ford
This patch enables the DA830 USB Host controller with DM_USB. Adam Ford (2): usb: ohci: ohci-da8xx: Enable da850-ohci driver with DM support ARM: da850evm: Enable da850-ohci USB host controller configs/da850evm_defconfig| 7 +- drivers/usb/host/Kconfig | 5 ++ drivers/usb/host/o

[U-Boot] [i.MX8MM+CCF 38/41] clk: add composite clk support

2019-04-30 Thread Peng Fan
Import clk composite clk support from Linux Kernel 5.1-rc5 Signed-off-by: Peng Fan --- drivers/clk/Kconfig | 14 drivers/clk/Makefile | 1 + drivers/clk/clk-composite.c | 165 +++ include/linux/clk-provider.h | 22 ++ 4 files

[U-Boot] [PATCH 2/2] ARM: da850evm: Enable da850-ohci USB host controller

2019-04-30 Thread Adam Ford
The DA850 EVM has one USB 1.1 OHCI Host controller. With the host controller now support DM_USB, this patch enables the respective functions for the da850evm. Signed-off-by: Adam Ford --- V2: No changes diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index ee39b0b1bc..1

[U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Shyam Saini
IMX6 platform has two stage boot loaders like SPL and U-Boot proper. For each stage we need to burn the image on to flash with respective offsets. This patch create a single image using binman, so that user can get rid of burning different stage boot images. without this patch: --

Re: [U-Boot] [PATCH 0/4] Tidy up some dangling OP-TEE gotchas

2019-04-30 Thread Rui Miguel Silva
Hi Bryan, On Tue 30 Apr 2019 at 02:30, Bryan O'Donoghue wrote: > On 24/04/2019 01:43, Bryan O'Donoghue wrote: >> Rober P Day rightly pointed out that some odd OP-TEE specific defines were >> appearing in his defconfig, despite not having CONFIG_OPTEE=y set in his >> defconfig. > > Ping, > > Robert,

Re: [U-Boot] [PATCH v12 4/9] ARM: socfpga: Moving the watchdog reset to the for-loop status polling

2019-04-30 Thread Chee, Tien Fong
On Sat, 2019-04-27 at 21:34 +0200, Simon Goldschmidt wrote: > > On 19.03.19 09:50, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > Ensure the watchdog is reset timely on each status polling. > I would have expected a longer commit message here explaining why > this  > is do

Re: [U-Boot] [PATCH v12 5/9] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-04-30 Thread Chee, Tien Fong
On Sat, 2019-04-27 at 21:57 +0200, Simon Goldschmidt wrote: > > On 19.03.19 09:50, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > Add FPGA driver to support program FPGA with FPGA bitstream loading > > from > > filesystem. The driver are designed based on generic firmware

Re: [U-Boot] [PATCH v12 9/9] ARM: socfpga: Increase Malloc pool size to support FAT filesystem in SPL

2019-04-30 Thread Chee, Tien Fong
On Sat, 2019-04-27 at 21:50 +0200, Simon Goldschmidt wrote: > > On 19.03.19 09:50, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > Increasing Malloc pool size up to 0x15000 is required to support > > FAT in SPL > > . The result of calculation is come from after applying som

Re: [U-Boot] [PATCH] README: davinci: update the documentation for DaVinci

2019-04-30 Thread Sekhar Nori
On 30/04/19 2:38 PM, Adam Ford wrote: > On Tue, Apr 30, 2019 at 2:39 AM Bartosz Golaszewski wrote: >> >> From: Bartosz Golaszewski >> >> The DM* family of SOCs is no longer supported. We now support the >> omap-l138 lcdk board and Lego EV3 platform. Reflect those changes > > Don't forget about t

Re: [U-Boot] [PATCH v12 5/9] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-04-30 Thread Simon Goldschmidt
On Tue, Apr 30, 2019 at 2:09 PM Chee, Tien Fong wrote: > > On Sat, 2019-04-27 at 21:57 +0200, Simon Goldschmidt wrote: > > > > On 19.03.19 09:50, tien.fong.c...@intel.com wrote: > > > > > > From: Tien Fong Chee > > > > > > Add FPGA driver to support program FPGA with FPGA bitstream loading > > >

Re: [U-Boot] [PATCH v12 9/9] ARM: socfpga: Increase Malloc pool size to support FAT filesystem in SPL

2019-04-30 Thread Simon Goldschmidt
On Tue, Apr 30, 2019 at 2:19 PM Chee, Tien Fong wrote: > > On Sat, 2019-04-27 at 21:50 +0200, Simon Goldschmidt wrote: > > > > On 19.03.19 09:50, tien.fong.c...@intel.com wrote: > > > > > > From: Tien Fong Chee > > > > > > Increasing Malloc pool size up to 0x15000 is required to support > > > FAT

Re: [U-Boot] [PATCH] core: ofnode: Fix ASAN-reported stack-buffer-overflow in of_get_address

2019-04-30 Thread Eugeniu Rosca
Hi Jeremy, Would you kindly feedback if it's possible to include commit https://github.com/getpatchwork/patchwork/commit/67faf96ab96d932 into U-Boot's patchwork to avoid occasional glitches in the description of U-Boot commits? On Sun, Apr 14, 2019 at 07:39:19PM -0400, Tom Rini wrote: > On Sun, A

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Fabio Estevam
Hi Shyam, On Tue, Apr 30, 2019 at 7:34 AM Shyam Saini wrote: > > IMX6 platform has two stage boot loaders like SPL and > U-Boot proper. For each stage we need to burn the image > on to flash with respective offsets. > > This patch create a single image using binman, so that > user can get rid of

[U-Boot] [PATCH] ARM: dts: logicpd-som-lv: Fix MMC1 card detect

2019-04-30 Thread Adam Ford
The card detect pin was incorrectly using IRQ_TYPE_LEVEL_LOW instead of GPIO_ACTIVE_LOW when reading the state of the CD pin. Without this patch, MMC1 won't be detected. This is the same patch submitted to linux-omap, but I was hoping to get it applied to U-Boot without having to wait for the lin

Re: [U-Boot] [PATCH 0/4] Tidy up some dangling OP-TEE gotchas

2019-04-30 Thread Fabio Estevam
On Mon, Apr 29, 2019 at 10:31 PM Bryan O'Donoghue wrote: > > > > On 24/04/2019 01:43, Bryan O'Donoghue wrote: > > Rober P Day rightly pointed out that some odd OP-TEE specific defines were > > appearing in his defconfig, despite not having CONFIG_OPTEE=y set in his > > defconfig. > > Ping, > > Rob

Re: [U-Boot] [PATCH 1/4] crypto/fsl: Introduce API to save/restore job-ring context

2019-04-30 Thread Bryan O'Donoghue
On 25/04/2019 23:13, Breno Matheus Lima wrote: Hi Bryan, Em ter, 23 de abr de 2019 às 07:20, Bryan O'Donoghue escreveu: We need to handle the case where DEK blobs are passed to the BootROM. In this case, unlike in HAB authentication the BootROM checks job-ring ownership set to secure world.

Re: [U-Boot] [PATCH] Makefile: Create single image for imx6 socs based boards

2019-04-30 Thread Jagan Teki
Hi Fabio, On Tue, Apr 30, 2019 at 6:17 PM Fabio Estevam wrote: > > Hi Shyam, > > On Tue, Apr 30, 2019 at 7:34 AM Shyam Saini > wrote: > > > > IMX6 platform has two stage boot loaders like SPL and > > U-Boot proper. For each stage we need to burn the image > > on to flash with respective offsets.

Re: [U-Boot] [PATCH 2/2] ti: Add am335x-pocketbeagle to am335x_evm_defconfig.

2019-04-30 Thread Tom Rini
On Mon, Apr 29, 2019 at 04:12:30PM -0700, Vagrant Cascadian wrote: > Add am335x-pocketbeagle to CONFIG_OF_LIST in am335x_evm_defconfig. > > Signed-off-by: Vagrant Cascadian We need to update include/configs/am335x_evm.h too so that it detects this variant and loads the right dtb. -- Tom sig

Re: [U-Boot] [PATCH 1/2] ti: Add device-tree for am335x-pocketbeagle.

2019-04-30 Thread Tom Rini
On Mon, Apr 29, 2019 at 04:12:29PM -0700, Vagrant Cascadian wrote: > Add device-tree files from linux 5.1-rc7 needed to complete support > for PocketBeagle. > > Signed-off-by: Vagrant Cascadian Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature __

[U-Boot] [PATCH v2 0/4] Add watchdog support for STM32MP1

2019-04-30 Thread Patrice Chotard
This series: - sorts Kconfig entries in alphabetical order - enable watchdog support in SPL for STM32MP1 - adds watchdog support to STM32MP1 boards Changes in v2: - Rename timeout variable in timeout_ms in stm32mp_wdt_start() Patrice Chotard (4): watchdog: Kconfig: Sort entry alphabe

[U-Boot] [PATCH v2 2/4] ARM: dts: stm32mp: Add iwdg2 support for stm32mp157c

2019-04-30 Thread Patrice Chotard
This patch adds independent watchdog support for stm32mp157c in SPL. Signed-off-by: Patrice Chotard --- Changes in v2: None arch/arm/dts/stm32mp157-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/stm32mp157-u-boot.dtsi b/arch/arm/dts/stm32mp157-u-boot.dtsi ind

[U-Boot] [PATCH v2 1/4] watchdog: Kconfig: Sort entry alphabetically

2019-04-30 Thread Patrice Chotard
To make adding new entry easier, sort Kconfig entries in alphabetical order. Signed-off-by: Patrice Chotard Reviewed-by: Stefan Roese --- Changes in v2: None drivers/watchdog/Kconfig | 87 1 file changed, 44 insertions(+), 43 deletions(-) diff

[U-Boot] [PATCH v2 4/4] configs: stm32mp15: Enable WDT flags

2019-04-30 Thread Patrice Chotard
This allows to enable WATCHDOG and WDT flags to be able to reset the watchdog and to support watchdog driver model. Signed-off-by: Patrice Chotard --- Changes in v2: None configs/stm32mp15_basic_defconfig | 2 ++ configs/stm32mp15_trusted_defconfig | 2 ++ 2 files changed, 4 insertions(+) d

[U-Boot] [PATCH v2 3/4] watchdog: stm32mp: Add watchdog driver

2019-04-30 Thread Patrice Chotard
This patch adds IWDG (Independent WatchDoG) support for STM32MP platform. Signed-off-by: Christophe Kerello Signed-off-by: Patrice Chotard --- Changes in v2: - Rename timeout variable in timeout_ms in stm32mp_wdt_start() MAINTAINERS| 1 + arch/arm/mach-stm32mp/Kconfig

Re: [U-Boot] [PATCH] test/py: don't use mmc_rd config for other mmc tests

2019-04-30 Thread Stephen Warren
On 4/16/19 4:04 PM, Stephen Warren wrote: From: Stephen Warren Fix test_mmc_dev(), test_mmc_rescan(), test_mmc_info() not to use the same configuration data that test_mmc_rd() does. Doing so causes the following issues: * The new code uncondtionally expects certain keys to exist in the configu

[U-Boot] [PATCH] net: davinci_emac: use driver model (CONFIG_DM_ETH)

2019-04-30 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add support for CONFIG_DM_ETH to the davinci_emac driver. Optimally we should only support DM-enabled platforms but there are several non-DT boards that still use it so either we need to keep supporting it or drop the boards from u-boot. For now we're stuck with ugly ifd

Re: [U-Boot] [PATCH 2/2] i2c: mxc_i2c: Fix read and read->write xfers in DM mode

2019-04-30 Thread Trent Piepho
On Tue, 2019-04-30 at 06:34 +0200, Heiko Schocher wrote: > Hello Trent, > > Am 16.04.2019 um 00:02 schrieb Trent Piepho: > > This is an old driver that supports both device mapped and non-mapped > > mode, and covers a wide range of hardware. It's hard to change without > > risking breaking someth

Re: [U-Boot] [PATCH 2/4] crypto/fsl: Use __sec_set_jr_context_normal

2019-04-30 Thread Breno Matheus Lima
Hi Bryan, Em ter, 30 de abr de 2019 às 05:13, Bryan O'Donoghue escreveu: > > > > On 30/04/2019 02:28, Bryan O'Donoghue wrote: > > > > > > On 25/04/2019 04:24, Breno Matheus Lima wrote: > >> I couldn't get encrypted boot working in my first attempt, doing the > >> exact same procedure with commit

  1   2   >