[U-Boot] [PATCH 5/9] mmc: tmio: sdhi: Adjust HS400 calibration offsets

2019-11-10 Thread Marek Vasut
Adjust the TMPPORT3 offsets according to the latest information from the chip vendor. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas

[U-Boot] [PATCH 7/9] mmc: tmio: sdhi: Add SCC error checking

2019-11-10 Thread Marek Vasut
Check SCC for errors after check command if applicable and optionally adjust the bus skew settings accordingly. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 85 ++ 1 file changed, 85 insertions(+) diff --git a/drivers/mmc

[U-Boot] [PATCH 2/9] mmc: tmio: sdhi: Track SMPCMP valu in private data

2019-11-10 Thread Marek Vasut
Retain the SMPCMP value from last calibration in private data. This will be later used for skipping bad taps. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 18 ++ drivers/mmc/tmio-common.h | 1 + 2 files changed, 11 insertions(+), 8 deletions

[U-Boot] [PATCH 6/9] mmc: tmio: sdhi: Disable auto-retuning in HS400

2019-11-10 Thread Marek Vasut
Disable the auto-retuning in HS400 mode in favor of manual calibration. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c index

[U-Boot] [PATCH 3/9] mmc: tmio: sdhi: Use 4 tuning taps on M3W up to ES1.2

2019-11-10 Thread Marek Vasut
The M3W up to ES1.2 uses 4 tuning taps for HS400, make it so. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c index 2f34173d03

[U-Boot] [PATCH 9/9] mmc: tmio: sdhi: Add calibration tables

2019-11-10 Thread Marek Vasut
Instead of using single fixed value for the calibration offset, add tables which dynamically adjust this per calibration code from the SCC. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 97 -- drivers/mmc/tmio-common.h | 1

[U-Boot] [PATCH 8/9] mmc: tmio: sdhi: Skip bad taps

2019-11-10 Thread Marek Vasut
Some of the tuning taps produce suboptimal results. Add code which skips those "bad" taps. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 49 +- drivers/mmc/tmio-common.h | 1 + 2 files changed, 49 insertions(+),

[U-Boot] [PATCH 4/9] mmc: tmio: sdhi: Adjust DT2FF settings for HS400 mode

2019-11-10 Thread Marek Vasut
Adjust the DT2FF offsets in HS400 according to latest information from the chip vendor. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas

[U-Boot] [PATCH 1/9] mmc: tmio: sdhi: Track current tap number in private data

2019-11-10 Thread Marek Vasut
Retain the tap number from last calibration in private data. This will be later used for SCC error checking after each command. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 31 --- drivers/mmc/tmio-common.h | 1 + 2 files changed

Re: [U-Boot] [RESEND PATCH 1/5] usb: host: dwc2: add phy support

2019-11-08 Thread Marek Vasut
On 11/8/19 2:25 PM, Patrick DELAUNAY wrote: Hi, [...] > +static int dwc2_shutdown_phy(struct udevice *dev) { > + struct dwc2_priv *priv = dev_get_priv(dev); > + int ret; > + > + if (!generic_phy_valid(>phy)) > + return 0; > + > + ret =

Re: [U-Boot] [PATCH v2 0/4] usb: host: dwc2: use driver model for PHY and CLOCK

2019-11-08 Thread Marek Vasut
On 11/8/19 3:47 PM, Patrick Delaunay wrote: > > In this serie I update the DWC2 host driver to use the device tree > information and the associated PHY and CLOCK drivers when they are > available. I'm kinda on the fence whether to add it into current release or not. The patches look generally OK

Re: [U-Boot] [RESEND PATCH 3/5] usb: host: dwc2: force reset assert

2019-11-08 Thread Marek Vasut
On 11/8/19 11:51 AM, Patrick DELAUNAY wrote: [...] Isn't there a way to poll the IP to determine whether the reset completed ? >>> >>> It is HW IP reset, the complete state is not available for stm32mp1 reset >> controller (RCC). >>> And the need reset duration of depends on each IP (can't be

Re: [U-Boot] [PATCH] arm: dts: Stratix10: Fix memory node address and size cells

2019-11-08 Thread Marek Vasut
On 11/8/19 3:56 AM, Ley Foon Tan wrote: > Add #address-cells and #size-cells to memory node to fix incorrect memory > size decoding in recent Uboot version. > > Signed-off-by: Ley Foon Tan > --- > arch/arm/dts/socfpga_stratix10_socdk.dts | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [U-Boot] [PATCH] configs: Stratix10: Disable CONFIG_SPL_USE_TINY_PRINTF

2019-11-08 Thread Marek Vasut
On 11/8/19 3:58 AM, Ley Foon Tan wrote: > Commit 2a51e16bd57a ("configs: Make USE_TINY_PRINTF depend on SPL||TPL and be > default") > enable USE_TINY_PRINTF by default, disable it for Stratix10. > > Resync with savedefconfig. > > Signed-off-by: Ley Foon Tan > --- >

[U-Boot] [PULL] u-boot-usb/master

2019-11-08 Thread Marek Vasut
The following changes since commit 0f282c1876af26cc2c8c018ae6293a691561011e: Makefile: fix dependency for imx targets (2019-11-06 09:22:32 -0500) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to

Re: [U-Boot] [PATCH] usb: xhci: support 1.1 or later version

2019-11-08 Thread Marek Vasut
On 11/8/19 11:02 AM, Bin Meng wrote: > On Fri, Nov 8, 2019 at 10:56 AM Chunfeng Yun > wrote: >> >> The xHCI 1.1 version also need set Transfer Type field >> >> Signed-off-by: Chunfeng Yun >> --- >> drivers/usb/host/xhci-ring.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> > >

Re: [U-Boot] [RESEND PATCH 3/5] usb: host: dwc2: force reset assert

2019-11-08 Thread Marek Vasut
On 11/8/19 10:53 AM, Patrick DELAUNAY wrote: > Hi, Hi, [...] > diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index > 51023b0c2c..3086411fc4 100644 > --- a/drivers/usb/host/dwc2.c > +++ b/drivers/usb/host/dwc2.c > @@ -1149,6 +1149,8 @@ static int

Re: [U-Boot] [PATCH V2 2/3] watchdog: designware: Convert to DM and DT probing

2019-11-07 Thread Marek Vasut
On 11/7/19 8:30 PM, Simon Goldschmidt wrote: [...] >> diff --git a/include/configs/socfpga_stratix10_socdk.h >> b/include/configs/socfpga_stratix10_socdk.h >> index 353e08f982..0c0c27000a 100644 >> --- a/include/configs/socfpga_stratix10_socdk.h >> +++ b/include/configs/socfpga_stratix10_socdk.h

Re: [U-Boot] [PATCH V2 2/3] watchdog: designware: Convert to DM and DT probing

2019-11-07 Thread Marek Vasut
On 10/4/19 11:26 AM, Ley Foon Tan wrote: > On Thu, Oct 3, 2019 at 9:00 PM Marek Vasut wrote: >> >> Convert the designware watchdog timer driver to DM and add DT probing >> support. Perform minor coding style clean up, like drop superfluous >> braces. There ought

Re: [U-Boot] [PATCH V2 1/3] watchdog: designware: Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig

2019-11-07 Thread Marek Vasut
On 10/11/19 11:51 AM, Ley Foon Tan wrote: > On Thu, Oct 10, 2019 at 3:47 PM Marek Vasut wrote: >> >> On 10/10/19 8:28 AM, Ley Foon Tan wrote: >>> On Fri, Oct 4, 2019 at 7:04 PM Marek Vasut wrote: >>>> >>>> On 10/4/19 10:59 AM, Ley Foon Tan wrote:

Re: [U-Boot] [PATCH v5 1/4] arm: dts: socfpga: Add u-boot, dm-pre-reloc for sysmgr and clkmgr nodes

2019-11-07 Thread Marek Vasut
On 11/7/19 10:14 AM, Simon Goldschmidt wrote: > On Thu, Nov 7, 2019 at 9:40 AM Marek Vasut wrote: >> >> On 11/7/19 9:36 AM, Simon Goldschmidt wrote: >>> On Thu, Nov 7, 2019 at 9:33 AM Marek Vasut wrote: >>>> >>>> On 11/7/19 4:31 AM, Ley Foon Tan wr

Re: [U-Boot] [PATCH v5 2/4] arm: socfpga: Convert reset manager from struct to defines

2019-11-07 Thread Marek Vasut
On 11/7/19 9:41 AM, Ley Foon Tan wrote: > On Thu, Nov 7, 2019 at 4:33 PM Marek Vasut wrote: >> >> On 11/7/19 9:06 AM, Ley Foon Tan wrote: >>> On Thu, Nov 7, 2019 at 10:49 AM Marek Vasut wrote: >>>> >>>> On 11/7/19 3:10 AM, Ley Foon Tan wrote

Re: [U-Boot] [PATCH v5 1/4] arm: dts: socfpga: Add u-boot, dm-pre-reloc for sysmgr and clkmgr nodes

2019-11-07 Thread Marek Vasut
On 11/7/19 9:36 AM, Simon Goldschmidt wrote: > On Thu, Nov 7, 2019 at 9:33 AM Marek Vasut wrote: >> >> On 11/7/19 4:31 AM, Ley Foon Tan wrote: >>> On Thu, Nov 7, 2019 at 10:49 AM Marek Vasut wrote: >>>> >>>> On 11/7/19 3:10 AM, Ley Foon Tan wrote: &g

Re: [U-Boot] [PATCH v5 2/4] arm: socfpga: Convert reset manager from struct to defines

2019-11-07 Thread Marek Vasut
On 11/7/19 9:06 AM, Ley Foon Tan wrote: > On Thu, Nov 7, 2019 at 10:49 AM Marek Vasut wrote: >> >> On 11/7/19 3:10 AM, Ley Foon Tan wrote: >>> Convert reset manager for Gen5, Arria 10 and Stratix 10 from struct >>> to defines. >>> >>> Change to

Re: [U-Boot] [PATCH v5 1/4] arm: dts: socfpga: Add u-boot, dm-pre-reloc for sysmgr and clkmgr nodes

2019-11-07 Thread Marek Vasut
On 11/7/19 4:31 AM, Ley Foon Tan wrote: > On Thu, Nov 7, 2019 at 10:49 AM Marek Vasut wrote: >> >> On 11/7/19 3:10 AM, Ley Foon Tan wrote: >> [...] >>> diff --git a/arch/arm/dts/socfpga-common-u-boot.dtsi >>> b/arch/arm/dts/socfpga-common-u-boot.dtsi

Re: [U-Boot] [PATCH v5 3/4] arm: socfpga: Convert system manager from struct to defines

2019-11-06 Thread Marek Vasut
On 11/7/19 3:10 AM, Ley Foon Tan wrote: [...] > diff --git a/arch/arm/mach-socfpga/misc_arria10.c > b/arch/arm/mach-socfpga/misc_arria10.c > index 2e2a40b65d..ff6ab83441 100644 > --- a/arch/arm/mach-socfpga/misc_arria10.c > +++ b/arch/arm/mach-socfpga/misc_arria10.c > @@ -28,9 +28,6 @@ > #define

Re: [U-Boot] [PATCH v5 2/4] arm: socfpga: Convert reset manager from struct to defines

2019-11-06 Thread Marek Vasut
On 11/7/19 3:10 AM, Ley Foon Tan wrote: > Convert reset manager for Gen5, Arria 10 and Stratix 10 from struct > to defines. > > Change to get reset manager base address from DT node instead of using > #define. It seems the patch also moves spl_early_init() around ? [...] > diff --git

Re: [U-Boot] [PATCH v5 1/4] arm: dts: socfpga: Add u-boot, dm-pre-reloc for sysmgr and clkmgr nodes

2019-11-06 Thread Marek Vasut
On 11/7/19 3:10 AM, Ley Foon Tan wrote: [...] > diff --git a/arch/arm/dts/socfpga-common-u-boot.dtsi > b/arch/arm/dts/socfpga-common-u-boot.dtsi > index 322c858c4b..d55460755f 100644 > --- a/arch/arm/dts/socfpga-common-u-boot.dtsi > +++ b/arch/arm/dts/socfpga-common-u-boot.dtsi > @@ -10,6 +10,10

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (06.11.2019)

2019-11-06 Thread Marek Vasut
On 11/6/19 1:27 PM, Lukasz Majewski wrote: > Hi Marek, Hi, >> On 11/6/19 12:27 PM, Lukasz Majewski wrote: >>> Hi Marek, >>> On 11/6/19 10:21 AM, Lukasz Majewski wrote: > Dear Marek, > > The following changes since commit > 14d39c9e1dc9397febd58399a70f32e7481bbc27: >

Re: [U-Boot] [RESEND PATCH 3/5] usb: host: dwc2: force reset assert

2019-11-06 Thread Marek Vasut
er: > Added by my commit c2c74f97afff Isn't there a way to poll the IP to determine whether the reset completed ? [...] -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [RESEND PATCH 2/5] usb: host: dwc2: add support for clk

2019-11-06 Thread Marek Vasut
eded > by the other driver (B) But if you don't disable the clock in .remove callback, the clock are left running and that might cause other problems. Are there such systems which share single clock enable bit between multiple DWC2 IPs ? > I use the same logical than dwc3 driver: clk_disable_bu

Re: [U-Boot] [RESEND PATCH 1/5] usb: host: dwc2: add phy support

2019-11-06 Thread Marek Vasut
SB PHY will be available for next > request/probe (recovery with phy reset for example). > > I use the same logic than dwc3 driver in : > source/drivers/usb/dwc3/dwc3-generic.c::dwc3_generic_remove() > drivers/usb/host/xhci-dwc3.c::xhci_dwc3_remove() dwc3_shutdown_phy() only ever returns 0 though. -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (06.11.2019)

2019-11-06 Thread Marek Vasut
On 11/6/19 12:27 PM, Lukasz Majewski wrote: > Hi Marek, > >> On 11/6/19 10:21 AM, Lukasz Majewski wrote: >>> Dear Marek, >>> >>> The following changes since commit >>> 14d39c9e1dc9397febd58399a70f32e7481bbc27: >>> >>> travis: Rework how we write the ~/.buildman file (2019-11-05 >>> 10:44:16

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (06.11.2019)

2019-11-06 Thread Marek Vasut
hence IMHO it would be best to add them to your next PR We are already in -rc cycle, so fixes only. Should this PR be for -next ? -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PULL] u-boot-usb/master

2019-11-06 Thread Marek Vasut
cmd: thor: select DFU subsystem also for 'thor' download tool dfu: mmc: add support for in-partition offset dwc3: flush cache only if there is a buffer attached to a request thor: fix error path after g_dnl_register() failure Marek Vasut (3): usb: storage: Limit transfer size

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (30.10.2019)

2019-10-31 Thread Marek Vasut
On 10/30/19 5:52 PM, Lukasz Majewski wrote: > Hi Marek, > > The following changes since commit > 7f0d5fa97074690dcbfcbc902f99c8dab0bff24d: > > dwc3-generic: Don't fail probe if clk/reset entries are absent > (2019-10-28 23:47:45 +0100) > > are available in the Git repository at: > >

Re: [U-Boot] [PATCH] usb: ehci: add ehci max xfer size ehci config entry

2019-10-28 Thread Marek Vasut
On 10/28/19 6:35 PM, Robert Hancock wrote: > On 2019-10-25 8:30 a.m., Gilles DOFFE wrote: >> Some USB sticks cannot handle SIZE_MAX bytes (65535) blocks transfer, >> leading to 'EHCI timed out on TD' errors. >> As it is hardly predictable, this commit adds a configuration option >> to easily

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (15.10.2019)

2019-10-28 Thread Marek Vasut
On 10/28/19 5:51 PM, Lukasz Majewski wrote: > Hi Marek, Hi, >> Hi Marek, >> >>> On 10/15/19 9:45 AM, Lukasz Majewski wrote: Dear Marek, >>> >>> Hello Lukasz, >>> The following changes since commit 7a779ed1755c2d5011bd9598da90291f759ae760: travis: Exclude MIPS

Re: [U-Boot] [BUG] tbs2910_defconfig does not compile with gcc 9.2.1

2019-10-26 Thread Marek Vasut
rd seems to compile within travis, so it's a new problem due to newer gcc. -- Best regards, Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 1/1] dwc3-generic: Don't fail probe if clk/reset entries are absent

2019-10-25 Thread Marek Vasut
On 10/25/19 10:18 AM, Vignesh Raghavendra wrote: > Some boards don't populate clk/reset entries as these are are optional > as per binding documentation. Therefore, don't fail driver probe if > clk/reset entries are absent in DT. > > This fixes fastboot failures seen due to enabling of CONFIG_CLK

[U-Boot] [PULL] u-boot-usb/master

2019-10-25 Thread Marek Vasut
The following changes since commit 680023c5fab6b1777c0c6f2e76e5d2effb7903a0: Merge tag 'u-boot-stm32-2019-10-23' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm (2019-10-23 14:04:02 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to

Re: [U-Boot] [PATCH v2] ehci-mx6: Update EHCI driver to support OTG0 on i.MX7ULP

2019-10-24 Thread Marek Vasut
On 10/24/19 3:29 PM, Fabio Estevam wrote: > The ULP has two USB controllers. These two controllers have similar NC > registers layout as i.MX7D. But OTG0 uses UTMI PHY simliar as i.MX6, not > the integrated PHY on i.MX7D. The OTG1 needs off-chip HSIC PHY or ULPI PHY > to work. Applied, thanks

Re: [U-Boot] [PATCH] configs: sei610: khadas-vim3 : disable Gadget support for the DWC3

2019-10-24 Thread Marek Vasut
On 10/24/19 10:15 AM, Jean-Jacques Hiblot wrote: > Those platform use the DWC2 controller for the gadget support and the > DWC3 for host-only operations. Applied, thanks. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

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

2019-10-23 Thread Marek Vasut
On 10/23/19 9:26 PM, Tom Rini wrote: > On Sun, Oct 20, 2019 at 05:08:37PM +0200, Marek Vasut wrote: > >> The following changes since commit 6891152a4596d38ac25d2fe1238e3b6a938554b8: >> >> Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2019

Re: [U-Boot] [PATCH] ehci-mx6: Update EHCI driver to support OTG0 on i.MX7ULP

2019-10-21 Thread Marek Vasut
> Enables support for the on-chip EHCI controller on i.MX6 SoCs. > @@ -169,7 +169,7 @@ config USB_EHCI_VF > help > Enables support for the on-chip EHCI controller on Vybrid SoCs. > > -if USB_EHCI_MX7 > +if USB_EHCI_MX7 || USB_EHCI_MX6 Please swap the MX6 and

[U-Boot] [PULL] u-boot-usb/master

2019-10-20 Thread Marek Vasut
The following changes since commit 6891152a4596d38ac25d2fe1238e3b6a938554b8: Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2019-10-14 21:00:10 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
On 10/16/19 7:51 PM, Eugeniu Rosca wrote: > On Wed, Oct 16, 2019 at 07:43:09PM +0200, Eugeniu Rosca wrote: >> On Wed, Oct 16, 2019 at 07:26:44PM +0200, Marek Vasut wrote: >>> On 10/16/19 7:11 PM, Eugeniu Rosca wrote: >>>> On Tue, Oct 15, 2019 at 10:43:41PM +0200

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
On 10/16/19 7:11 PM, Eugeniu Rosca wrote: > On Tue, Oct 15, 2019 at 10:43:41PM +0200, Marek Vasut wrote: >> Add get_timer_us(), which is useful e.g. when we need higher >> precision timestamps. > > FWIW, I agree with Simon that bootstage [1] can be an awesome tool for >

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
t in particular parts of the code, > accumulating it over multiple calls, etc. E.g. how much is FS, how > much is driver, how much is waiting for replies... And how much overhead does it add compared to calling get_timer{,_us}() directly ? It was about uSecs in this case, so this was the best a

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
On 10/16/19 6:54 PM, Simon Glass wrote: > Hi Marek, Hello Simon, > On Wed, 16 Oct 2019 at 10:44, Marek Vasut wrote: >> >> On 10/16/19 6:40 PM, Simon Glass wrote: >>> Hi Marek, >> >> Hi, >> >>> On Wed, 16 Oct 2019 at 02:55, Marek Vasut w

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
On 10/16/19 6:40 PM, Simon Glass wrote: > Hi Marek, Hi, > On Wed, 16 Oct 2019 at 02:55, Marek Vasut wrote: >> >> On 10/16/19 3:30 AM, Simon Glass wrote: >>> Hi Marek, >> >> Hi, >> >>> On Tue, 15 Oct 2019 at 14:43, Marek Vasut wrote: >>&

Re: [U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-16 Thread Marek Vasut
On 10/16/19 3:30 AM, Simon Glass wrote: > Hi Marek, Hi, > On Tue, 15 Oct 2019 at 14:43, Marek Vasut wrote: >> >> Add get_timer_us(), which is useful e.g. when we need higher >> precision timestamps. > > Can we use timer_get_us()? It seems confusing to have two

[U-Boot] [PATCH] lib: time: Add microsecond timer

2019-10-15 Thread Marek Vasut
Add get_timer_us(), which is useful e.g. when we need higher precision timestamps. Signed-off-by: Marek Vasut Cc: Tom Rini Cc: Simon Glass --- include/time.h | 1 + lib/time.c | 14 ++ 2 files changed, 15 insertions(+) diff --git a/include/time.h b/include/time.h index

[U-Boot] [PATCH] ARM: rmobile: Enable CONFIG_ARCH_FIXUP_FDT_MEMORY on Gen3

2019-10-15 Thread Marek Vasut
Enable CONFIG_ARCH_FIXUP_FDT_MEMORY to let U-Boot patch the Linux DT memory entries. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- configs/r8a7795_salvator-x_defconfig | 1 - configs/r8a7795_ulcb_defconfig| 1 - configs/r8a77965_salvator-x_defconfig | 1 - configs

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

2019-10-15 Thread Marek Vasut
On 10/15/19 6:59 PM, Jean-Jacques Hiblot wrote: > > On 15/10/2019 11:36, Jean-Jacques Hiblot wrote: >> Hi Marek, >> >> On 15/10/2019 03:01, Marek Vasut wrote: >>> On 10/15/19 2:59 AM, Tom Rini wrote: >>>> On Tue, Oct 15, 2019 at 01:34:57AM +0200

[U-Boot] [PATCH] arm: mxs: Increase VDDD voltage to match specification

2019-10-15 Thread Marek Vasut
threshold to 1.4V. The documentation recommends 1.45V setting for the brownout, however, this triggers failure during power block init, so keep the brownout slightly lower. Signed-off-by: Marek Vasut Cc: Stefano Babic --- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 4 ++-- 1 file changed, 2

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (15.10.2019)

2019-10-15 Thread Marek Vasut
On 10/15/19 9:45 AM, Lukasz Majewski wrote: > Dear Marek, Hello Lukasz, > The following changes since commit > 7a779ed1755c2d5011bd9598da90291f759ae760: > > travis: Exclude MIPS from the bcm job (2019-10-13 11:21:56 -0400) > > are available in the Git repository at: > >

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

2019-10-14 Thread Marek Vasut
On 10/15/19 2:59 AM, Tom Rini wrote: > On Tue, Oct 15, 2019 at 01:34:57AM +0200, Marek Vasut wrote: > >> The following changes since commit 44fb0d6c9f5147a41c710032869e5e01b3c9e310: >> >> Merge tag 'xilinx-for-v2020.01' of >> https://gitlab.denx.de/u-boot/custodi

[U-Boot] [PULL] u-boot-socfpga/master

2019-10-14 Thread Marek Vasut
to e6281b8ab07e0d64be3f5f829d5a3d3a08390daa: ARM: socfpga: vining_fpga: Extract eth1 MAC from EEPROM (2019-10-09 22:57:41 +0200) Marek Vasut (5): ARM: socfpga: vining_fpga: Rename VINING|FPGA ARM: socfpga: vining_fpga: Update DT ARM

Re: [U-Boot] [RESEND PATCH 4/5] usb: host: dwc2: add usb33d supply support for stm32mp1

2019-10-14 Thread Marek Vasut
On 10/14/19 10:00 AM, Patrick Delaunay wrote: > Enable the usb33d-supply on STM32MP1 SoCs (with "st,stm32mp1-hsotg" > compatible), it is the external VBUS and ID sensing comparators supply > needed to perform OTG operation. I suspect we might need some dwc2-stm32p1.c SoC-specific driver here.

Re: [U-Boot] [RESEND PATCH 3/5] usb: host: dwc2: force reset assert

2019-10-14 Thread Marek Vasut
On 10/14/19 10:00 AM, Patrick Delaunay wrote: > Assert reset before deassert in dwc2_reset; > It should be more safe for DWC2. Can you be more descriptive about this issue ? I have no idea what this patch does or fixes from the description. > Signed-off-by: Patrick Delaunay > --- > >

Re: [U-Boot] [RESEND PATCH 2/5] usb: host: dwc2: add support for clk

2019-10-14 Thread Marek Vasut
On 10/14/19 10:00 AM, Patrick Delaunay wrote: > Add support for clock with driver model. > Same question as with the PHY -- is there now a mandatory dependency on the DM CLK ? [...] > @@ -1403,6 +1429,7 @@ static int dwc2_usb_remove(struct udevice *dev) > dwc2_uninit_common(priv->regs);

Re: [U-Boot] [RESEND PATCH 1/5] usb: host: dwc2: add phy support

2019-10-14 Thread Marek Vasut
On 10/14/19 10:00 AM, Patrick Delaunay wrote: > Use generic phy to initialize the PHY associated to the PHY and USB are abbreviations, should be in capitals. > DWC2 device and available in the device tree. [...] General question -- is the PHY subsystem a mandatory dependency of this driver now

[U-Boot] [PULL] u-boot-usb/master

2019-10-14 Thread Marek Vasut
The following changes since commit 44fb0d6c9f5147a41c710032869e5e01b3c9e310: Merge tag 'xilinx-for-v2020.01' of https://gitlab.denx.de/u-boot/custodians/u-boot-microblaze (2019-10-09 16:22:03 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to

[U-Boot] [PATCH 2/2] [RFC] usb: ehci-hcd: Keep async schedule running

2019-10-13 Thread Marek Vasut
-by: Marek Vasut Cc: Bin Meng Cc: Simon Glass --- drivers/usb/host/ehci-hcd.c | 51 +++-- 1 file changed, 21 insertions(+), 30 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 61a61abb21..85918e85be 100644 --- a/drivers/usb/host

[U-Boot] [PATCH 1/2] [RFC] usb: storage: Only clear READY flag on error

2019-10-13 Thread Marek Vasut
, not between each and every request. However, the device cannot move out of USB_READY state once it was initialized. Signed-off-by: Marek Vasut Cc: Bin Meng Cc: Simon Glass --- common/usb_storage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/usb_storage.c b/common

Re: [U-Boot] [PATCH v3 0/5] usb: kbd: implement special keys

2019-10-13 Thread Marek Vasut
On 10/10/19 11:36 PM, Heinrich Schuchardt wrote: > GRUB uses function keys. So we should support these with an USB keyboard. > Provide support for F1-F12, Insert, Delete, Home, End, Page Up, Page Down. > Simplify the code beforehand. > > Enhance the keyboard unit test. > > v3: > rebase on

Re: [U-Boot] [PATCH v2] usb: ehci-mx6: Fix bus enumeration for iMX7 SoCs

2019-10-12 Thread Marek Vasut
On 10/10/19 3:09 PM, Igor Opaniuk wrote: > From: Igor Opaniuk > > This fixes the issues with calculation of controller indexes in > ehci_usb_bind() for iMX7, as USB controllers on iMX7 SoCs aren't > placed next to each other, and their addresses incremented by 0x1. > > Example of USB nodes

Re: [U-Boot] [PATCH v1] usb: ehci-mx6: Fix bus enumeration for iMX7 SoCs

2019-10-10 Thread Marek Vasut
On 10/10/19 2:55 PM, Igor Opaniuk wrote: > On Thu, Oct 10, 2019 at 3:43 PM Marek Vasut wrote: >> >> On 10/10/19 2:29 PM, Igor Opaniuk wrote: >>> Hi Marek >> >> Hi Igor, >> >>> On Thu, Oct 10, 2019 at 2:47 PM Marek Vasut wrote

Re: [U-Boot] [PATCH v1] usb: ehci-mx6: Fix bus enumeration for iMX7 SoCs

2019-10-10 Thread Marek Vasut
On 10/10/19 2:29 PM, Igor Opaniuk wrote: > Hi Marek Hi Igor, > On Thu, Oct 10, 2019 at 2:47 PM Marek Vasut wrote: >> >> On 10/10/19 1:25 PM, Igor Opaniuk wrote: >> [...] >>>* from which it derives offsets in the PHY and ANATOP register sets. >>

Re: [U-Boot] [PATCH v1] usb: ehci-mx6: Fix bus enumeration for iMX7 SoCs

2019-10-10 Thread Marek Vasut
On 10/10/19 1:25 PM, Igor Opaniuk wrote: [...] >* from which it derives offsets in the PHY and ANATOP register sets. >* >* Here we attempt to calculate these indexes from DT information as > - * well as we can. The USB controllers on all existing iMX6/iMX7 SoCs > -

Re: [U-Boot] [PATCH v3 3/4] arm: socfpga: Convert system manager from struct to defines

2019-10-10 Thread Marek Vasut
On 10/10/19 12:00 PM, Anatolij Gustschin wrote: > On Thu, 10 Oct 2019 11:39:13 +0200 > Marek Vasut wrote: > ... >>> The preferred way for I/O access is documented in [1], see "Use structures >>> for I/O access" section. >> >> This seems to no

Re: [U-Boot] [PATCH v3 3/4] arm: socfpga: Convert system manager from struct to defines

2019-10-10 Thread Marek Vasut
On 10/10/19 11:29 AM, Anatolij Gustschin wrote: > On Thu, 10 Oct 2019 10:43:46 +0200 > Simon Goldschmidt simon.k.r.goldschm...@gmail.com wrote: > ... >>> Why is this required? In the past we have rejected all new code adding >>> defines instead of structs for register accesses. Have we changed our

Re: [U-Boot] [PATCH V2 1/3] watchdog: designware: Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig

2019-10-10 Thread Marek Vasut
On 10/10/19 8:28 AM, Ley Foon Tan wrote: > On Fri, Oct 4, 2019 at 7:04 PM Marek Vasut wrote: >> >> On 10/4/19 10:59 AM, Ley Foon Tan wrote: >>> On Thu, Oct 3, 2019 at 9:00 PM Marek Vasut wrote: >>>> >>>> Migrate CONFIG_DESIGNWARE_WATCHDOG to

Re: [U-Boot] [PATCH] ARM: socfpga: Fix FPGA bitstream loading code

2019-10-10 Thread Marek Vasut
t;> whether this patch is correct or not. >> > > Right. However, since it seems to work as is, I don't think we have a real > problem. I think the datasheet could use clarification in that aspect. But it might be way too late for that. -- Best regards, Marek Vasut ___

Re: [U-Boot] [PATCH] ARM: socfpga: Fix FPGA bitstream loading code

2019-10-09 Thread Marek Vasut
On 10/9/19 8:06 PM, Simon Goldschmidt wrote: [...] >>> Based on my understand through this register >>> fpga_mgr_fpgamgrdata >>> address map (0xFFCFE400-0xFFCFE7FF) on pg. 207 , the 256 bytes >>> of >>> FIFO >>> buffer is mapping to above range addresses. >>

Re: [U-Boot] [PATCH 1/5] ARM: socfpga: vining_fpga: Rename VINING|FPGA

2019-10-09 Thread Marek Vasut
On 10/9/19 8:20 PM, Simon Goldschmidt wrote: > Marek, Hello Simon, > Am 27.06.2019 um 00:19 schrieb Marek Vasut: >> The company Samtec was merged into Softing, migrate the board over to >> the new name and update copyright headers. > > What happened to this s

Re: [U-Boot] [PATCH V2] usb: ehci-mx6: Fix bus enumeration for DM case

2019-10-09 Thread Marek Vasut
On 10/8/19 7:25 PM, Igor Opaniuk wrote: > Hi Marek, Hi, [...] >> drivers/usb/host/ehci-mx6.c | 37 + >> 1 file changed, 37 insertions(+) >> >> diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c >> index 33abfeada0..e9e6ed596d 100644 >>

Re: [U-Boot] [PATCH 2/8] ARM: socfpga: arria10: Sync A10 SoCDK devicetrees

2019-10-07 Thread Marek Vasut
On 10/7/19 4:03 PM, Dalon L Westergreen wrote: > On Sat, 2019-10-05 at 16:23 -0700, Dalon L Westergreen wrote: >> On Sat, 2019-10-05 at 01:47 +0200, Marek Vasut wrote: >>> On 10/5/19 12:30 AM, Dalon Westergreen wrote: >>>> From: Dalon Westergreen Sync devicetree from

Re: [U-Boot] [PATCH 4/8] ARM: socfpga: arria10: Add generic handoff devicetree include

2019-10-06 Thread Marek Vasut
On 10/6/19 1:19 AM, Dalon L Westergreen wrote: > On Sat, 2019-10-05 at 01:51 +0200, Marek Vasut wrote: >> On 10/5/19 12:30 AM, Dalon Westergreen wrote: >>> From: Dalon Westergreen >>> Generic handoff devicetree include uses a header generated bythe qts-filter- >&g

Re: [U-Boot] [PATCH 3/8] ARM: socfpga: arria10: Add common u-boot devicetree include

2019-10-06 Thread Marek Vasut
On 10/6/19 1:25 AM, Dalon L Westergreen wrote: > On Sat, 2019-10-05 at 01:49 +0200, Marek Vasut wrote: >> On 10/5/19 12:30 AM, Dalon Westergreen wrote: >>> From: Dalon Westergreen >>> Add a common u-boot devicetree include file for the SocFPGAArria10 devic

Re: [U-Boot] [PATCH] arm: socfpga: disable CONFIG_SPL_WDT for gen5 and a10

2019-10-05 Thread Marek Vasut
On 10/5/19 10:30 PM, Simon Goldschmidt wrote: > Am 05.10.2019 um 22:12 schrieb Marek Vasut: >> On 10/5/19 10:10 PM, Simon Goldschmidt wrote: >>> These boards don't have a watchdog enabled in SPL, so make sure >>> CONFIG_SPL_WDT is not enabled. >>> >>>

Re: [U-Boot] [PATCH] arm: socfpga: disable CONFIG_SPL_WDT for gen5 and a10

2019-10-05 Thread Marek Vasut
On 10/5/19 10:10 PM, Simon Goldschmidt wrote: > These boards don't have a watchdog enabled in SPL, so make sure > CONFIG_SPL_WDT is not enabled. > > Fixes: commit 6874cb72204f ("watchdog: Split WDT from SPL_WDT") > --- > > > While I think the more fundamental problem is selecting >

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

2019-10-05 Thread Marek Vasut
changes up to 49d5fba81c85c65f8b64f79ceece48b590e8316d: ARM: dts: rmobile: Restore increase off-on delay on the SD Vcc regulator (2019-09-30 02:07:02 +0200) Marek Vasut (1): ARM: dts: rmobile: Restore increase off-on delay

Re: [U-Boot] [PATCH 4/8] ARM: socfpga: arria10: Add generic handoff devicetree include

2019-10-04 Thread Marek Vasut
On 10/5/19 12:30 AM, Dalon Westergreen wrote: > From: Dalon Westergreen > > Generic handoff devicetree include uses a header generated by > the qts-filter-a10.sh script in mach-socfpga. The script > creates the header based on design specific implementations > for clock and pinmux

Re: [U-Boot] [PATCH 2/8] ARM: socfpga: arria10: Sync A10 SoCDK devicetrees

2019-10-04 Thread Marek Vasut
On 10/5/19 12:30 AM, Dalon Westergreen wrote: > From: Dalon Westergreen > > Sync devicetree from 5.2 kernel. Linux 5.3 was already released, can you update this ? Also, make sure to list the exact commit ID in the commit message when importing stuff from Linux.

Re: [U-Boot] [PATCH 3/8] ARM: socfpga: arria10: Add common u-boot devicetree include

2019-10-04 Thread Marek Vasut
On 10/5/19 12:30 AM, Dalon Westergreen wrote: > From: Dalon Westergreen > > Add a common u-boot devicetree include file for the SocFPGA > Arria10 device. Isn't arch/arm/dts/socfpga_arria10_handoff_u-boot.dtsi doing basically the same thing, except more fine-grained ? > diff --git

Re: [U-Boot] [PATCH 1/8] ARM: socfpga: arria10: Add qts-filter for arria10 socfpga

2019-10-04 Thread Marek Vasut
On 10/5/19 12:30 AM, Dalon Westergreen wrote: > From: Dalon Westergreen > > Add a script to process hps handoff data and generate a header > for inclusion in u-boot specific devicetree addons. The header > should be included in the top level u-boot.dtsi. A10 should already be completely DT

Re: [U-Boot] [PATCH V2 1/3] watchdog: designware: Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig

2019-10-04 Thread Marek Vasut
On 10/4/19 10:59 AM, Ley Foon Tan wrote: > On Thu, Oct 3, 2019 at 9:00 PM Marek Vasut wrote: >> >> Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig and update the headers >> accordingly, no functional change. The S10 enables the WDT only in >> SPL, but does not enable

Re: [U-Boot] [PATCH] MAINTAINERS, git-mailrc: Update the maintainer for socfpga

2019-10-04 Thread Marek Vasut
On 10/4/19 10:43 AM, Ley Foon Tan wrote: > This updates MAINTAINERS and git-mailrc to add me as maintainer for > socfpga. > > Signed-off-by: Ley Foon Tan Acked-by: Marek Vasut ___ U-Boot mailing list U-Boot@lists.denx.de https://l

Re: [U-Boot] [PATCH 2/2] watchdog: designware: Convert to DM and DT probing

2019-10-03 Thread Marek Vasut
On 10/3/19 9:18 PM, Simon Goldschmidt wrote: > Am 03.10.2019 um 21:12 schrieb Marek Vasut: >> [...] >>>>>>> Are you aware that DM WDT is enabled in SPL by default for gen5 >>>>>>> now? I >>>>>> get >>>>>>> a

Re: [U-Boot] [PATCH 2/2] watchdog: designware: Convert to DM and DT probing

2019-10-03 Thread Marek Vasut
[...] > Are you aware that DM WDT is enabled in SPL by default for gen5 now? I get > a message that WDT is not found. I haven't sent a patch to fix that >> yet, > since the message is the only thing that happens, works normally otherwise. > > But if you're working on

Re: [U-Boot] [PATCH 2/2] watchdog: designware: Convert to DM and DT probing

2019-10-03 Thread Marek Vasut
On 10/3/19 8:11 PM, Simon Goldschmidt wrote: > Marek Vasut schrieb am Do., 3. Okt. 2019, 20:09: > >> On 10/3/19 8:06 PM, Simon Goldschmidt wrote: >>> Marek Vasut schrieb am Do., 3. Okt. 2019, 09:22: >>> >>>> On 10/3/19 3:57 AM, Ley Foon Tan wrote: >&g

Re: [U-Boot] [PATCH 2/2] watchdog: designware: Convert to DM and DT probing

2019-10-03 Thread Marek Vasut
On 10/3/19 8:08 PM, Simon Goldschmidt wrote: > Marek Vasut schrieb am Do., 3. Okt. 2019, 20:06: > >> On 10/3/19 8:03 PM, Simon Goldschmidt wrote: >>> Marek Vasut schrieb am Do., 3. Okt. 2019, 14:19: >>> >>>> On 10/3/19 1:40 PM, Marek Vasut wrote:

Re: [U-Boot] [PATCH 2/2] watchdog: designware: Convert to DM and DT probing

2019-10-03 Thread Marek Vasut
On 10/3/19 8:06 PM, Simon Goldschmidt wrote: > Marek Vasut schrieb am Do., 3. Okt. 2019, 09:22: > >> On 10/3/19 3:57 AM, Ley Foon Tan wrote: >> >> [...] >> >>>> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig >>>> index 6fd

Re: [U-Boot] [PATCH 2/2] watchdog: designware: Convert to DM and DT probing

2019-10-03 Thread Marek Vasut
On 10/3/19 8:06 PM, Simon Goldschmidt wrote: > Marek Vasut schrieb am Do., 3. Okt. 2019, 09:22: > >> On 10/3/19 3:57 AM, Ley Foon Tan wrote: >> >> [...] >> >>>> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig >>>> index 6fd

Re: [U-Boot] [PATCH 2/2] watchdog: designware: Convert to DM and DT probing

2019-10-03 Thread Marek Vasut
On 10/3/19 8:03 PM, Simon Goldschmidt wrote: > Marek Vasut schrieb am Do., 3. Okt. 2019, 14:19: > >> On 10/3/19 1:40 PM, Marek Vasut wrote: >>> On 10/3/19 9:55 AM, Jagan Teki wrote: >>>> On Thu, Oct 3, 2019 at 4:26 AM Marek Vasut wrote: >>>>> &g

[U-Boot] [PATCH V2 3/3] watchdog: designware: Optionally fetch clock from DT

2019-10-03 Thread Marek Vasut
Add optional support for fetching watchdog clock rate from DT. This is optional as not all platforms using DW WDT support the clock framework yet. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dalon Westergreen Cc: Dinh Nguyen Cc: Jagan Teki Cc: Ley Foon Tan Cc: Philipp Tomisch Cc

[U-Boot] [PATCH V2 2/3] watchdog: designware: Convert to DM and DT probing

2019-10-03 Thread Marek Vasut
Convert the designware watchdog timer driver to DM and add DT probing support. Perform minor coding style clean up, like drop superfluous braces. There ought to be no functional change. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dalon Westergreen Cc: Dinh Nguyen Cc: Jagan Teki Cc: Ley

[U-Boot] [PATCH V2 1/3] watchdog: designware: Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig

2019-10-03 Thread Marek Vasut
Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig and update the headers accordingly, no functional change. The S10 enables the WDT only in SPL, but does not enable it in U-Boot itself, hence disable it in the config again. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dalon Westergreen Cc

  1   2   3   4   5   6   7   8   9   10   >