Re: [PATCH v3 3/9] phy: phy-mtk-tphy: add support USB phys

2020-04-15 Thread Weijie Gao
On Thu, 2020-03-26 at 16:01 +0800, Chunfeng Yun wrote: > Support USB2 and USB3 PHY with shared banks when support multi-phys > > Signed-off-by: Chunfeng Yun > --- > v3: no changes > > v2: > 1. get the count of phys by dev_get_child_count() > --- > drivers/phy/phy-mtk-tphy.c | 227 ++

Re: [PATCH v3 4/9] phy: phy-mtk-tphy: add support new version

2020-04-15 Thread Weijie Gao
On Thu, 2020-03-26 at 16:01 +0800, Chunfeng Yun wrote: > The new version removes all shared banks between multi-phys > > Signed-off-by: Chunfeng Yun > --- > v2~v3: no changes > --- > drivers/phy/phy-mtk-tphy.c | 68 +++--- > 1 file changed, 63 insertions(+), 5 del

Re: [PATCH v3 5/9] phy: phy-mtk-tphy: add a new reference clock

2020-04-15 Thread Weijie Gao
On Thu, 2020-03-26 at 16:01 +0800, Chunfeng Yun wrote: > Usually the digital and analog phys use the same reference clock, > but some platforms have two separate reference clocks for each of > them, so add another optional clock to support them. > In order to keep the clock names consistent with PH

Re: [PATCH v3 6/9] xhci: mediatek: Add support for MTK xHCI host controller

2020-04-15 Thread Weijie Gao
On Thu, 2020-03-26 at 16:01 +0800, Chunfeng Yun wrote: > This patch is used to support the on-chip xHCI controller on > MediaTek SoCs, currently only control/bulk transfers are > supported. > > Signed-off-by: Chunfeng Yun > --- > v3: > use macro approach to access registers suggested by Marek

Re: [PATCH v3 7/9] arm: dts: mt7629: add usb related nodes

2020-04-15 Thread Weijie Gao
On Thu, 2020-03-26 at 16:01 +0800, Chunfeng Yun wrote: > Add usb, phy and clock nodes > > Signed-off-by: Chunfeng Yun > --- > v3: no changes > > v2: > 1. remove fixed clock clk20m > --- > arch/arm/dts/mt7629-rfb.dts | 8 > arch/arm/dts/mt7629.dtsi| 41 +

Re: [PATCH v3 9/9] dt-bindings: usb: mtk-xhci: Add binding for MediaTek xHCI host controller

2020-04-15 Thread Weijie Gao
On Thu, 2020-03-26 at 16:01 +0800, Chunfeng Yun wrote: > Add dt-binding for MediaTek xHCI host controller > > Signed-off-by: Chunfeng Yun > --- > v2~v3: no changes > --- > .../usb/mediatek,mtk-xhci.txt | 40 +++ > 1 file changed, 40 insertions(+) > create mode 10

Re: [PATCH v5 02/14] test: dm: add test item for ofnode_get_child_count()

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > Add a test item for ofnode_get_child_count() > > Signed-off-by: Chunfeng Yun > Reviewed-by: Simon Glass > --- > v4~v5: no changes > > v3: > 1. squash dts patch into this one suggested by Simon > 2. add reviewed-by Simon > > v2: >

Re: [PATCH v5 01/14] dm: core: Add function to get child count of ofnode or device

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > This patch add function used to get the child count of > a ofnode or a device > > Signed-off-by: Chunfeng Yun > --- > v4~v5: no changes > > v3: > 1. add non/inline function dev_get_child_count() instead of macro > suggested by Simon >

Re: [PATCH v5 04/14] test: dm: phy: add a test item for the phy_bulk API

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > Add a test item for the phy_bulk API > > Signed-off-by: Chunfeng Yun > --- > v5: no changes > > v4: new patch > --- > arch/sandbox/dts/test.dts | 11 +++ > test/dm/phy.c | 29 + > 2 files ch

Re: [PATCH v5 03/14] phy: Add get/enable/disable for a bulk of phys

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > This patch adds a "bulk" API to the phy API in order to > get/enable/disable a group of phys associated with a device. > > The bulk API will avoid adding a copy of the same code to > manage a group of phys in drivers. > > Signed-off-by: Chu

Re: [PATCH v5 05/14] usb: dwc3: use the phy bulk API to get phys

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > Get a group of phys by the phy bulk API > > Signed-off-by: Chunfeng Yun > --- > v5: no changes > > v4: new patch > --- > drivers/usb/dwc3/core.c | 83 - > drivers/usb/dwc3/dwc3-generic.c | 7 ++- >

Re: [PATCH v5 07/14] phy: phy-mtk-tphy: add support USB phys

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > Support USB2 and USB3 PHY with shared banks when support multi-phys > > Signed-off-by: Chunfeng Yun > --- > v3~v5: no changes > > v2: > 1. get the count of phys by dev_get_child_count() > --- > drivers/phy/phy-mtk-tphy.c | 227 +++

Re: [PATCH v5 10/14] xhci: mediatek: Add support for MTK xHCI host controller

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > This patch is used to support the on-chip xHCI controller on > MediaTek SoCs, currently control/bulk/interrupt transfers are > supported. > > Signed-off-by: Chunfeng Yun > --- > v5: > 1. print error number suggested by Marek > 2. su

Re: [PATCH v5 09/14] phy: phy-mtk-tphy: add a new reference clock

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > Usually the digital and analog phys use the same reference clock, > but some platforms have two separate reference clocks for each of > them, so add another optional clock to support them. > In order to keep the clock names consistent with PH

Re: [PATCH v5 12/14] dt-bindings: phy-mtk-tphy: add properties of address mapping and clocks

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > 1. add the address mapping related properties; > 2. make "ref" clock optional, and add optional clock "da_ref"; > 3. add the banks layout of TPHY V1 and V2; > > Signed-off-by: Chunfeng Yun > --- > v2~v5: no changes > --- > doc/device-tree-

Re: [PATCH v5 06/14] usb: dwc2_udc_otg: use the phy bulk API to get phys

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > Use the phy bulk API to get a group of phys > > Signed-off-by: Chunfeng Yun > --- > v5: no changes > > v4: new patch > --- > drivers/usb/gadget/dwc2_udc_otg.c | 90 +-- > 1 file changed, 12 insertions(+), 78 de

Re: [PATCH v5 08/14] phy: phy-mtk-tphy: add support new version

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > The new version removes all shared banks between multi-phys > > Signed-off-by: Chunfeng Yun > --- > v2~v5: no changes > --- > drivers/phy/phy-mtk-tphy.c | 68 +++--- > 1 file changed, 63 insertions(+), 5 del

Re: [PATCH v5 14/14] MAINTAINERS: MediaTek: add USB related files

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > Add dt-binding files of xhci-mtk and phys, C files of > phys. > > Signed-off-by: Chunfeng Yun > --- > v5: new patch > --- > MAINTAINERS | 3 +++ > 1 file changed, 3 insertions(+) > Reviewed-by: Weijie Gao

Re: [PATCH v5 13/14] dt-bindings: usb: mtk-xhci: Add binding for MediaTek xHCI host controller

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > Add dt-binding for MediaTek xHCI host controller > > Signed-off-by: Chunfeng Yun > --- > v2~v5: no changes > --- > .../usb/mediatek,mtk-xhci.txt | 40 +++ > 1 file changed, 40 insertions(+) > create mode 10

Re: [PATCH v5 11/14] arm: dts: mt7629: add usb related nodes

2020-04-15 Thread Weijie Gao
On Fri, 2020-04-10 at 13:45 +0800, Chunfeng Yun wrote: > Add usb, phy and clock nodes > > Signed-off-by: Chunfeng Yun > --- > v3~v5: no changes > > v2: > 1. remove fixed clock clk20m > --- > arch/arm/dts/mt7629-rfb.dts | 8 > arch/arm/dts/mt7629.dtsi| 41 ++

Re: [PATCH v3 8/9] dt-bindings: phy-mtk-tphy: add properties of address mapping and clocks

2020-04-15 Thread Weijie Gao
On Thu, 2020-03-26 at 16:01 +0800, Chunfeng Yun wrote: > 1. add the address mapping related properties; > 2. make "ref" clock optional, and add optional clock "da_ref"; > 3. add the banks layout of TPHY V1 and V2; > > Signed-off-by: Chunfeng Yun > --- > v2~v3: no changes > --- > doc/device-tree-

Re: [PATCH 1/3] mips: mt76x8: ddr_cal: Rename dqs_test_valid() to dqs_test_error()

2020-04-15 Thread Weijie Gao
On Fri, 2020-03-06 at 15:14 +0100, Stefan Roese wrote: > This function returns "-1" (true) upon error. So the function name does > not match its implementation which is confusing. This patch renames the > function to dqs_test_error() which makes the code easier to read. > > Also change the return

Re: [PATCH 2/3] mips: mt76x8: ddr_cal: Change types from u32 to int in dqs_find_min/max

2020-04-15 Thread Weijie Gao
On Fri, 2020-03-06 at 15:14 +0100, Stefan Roese wrote: > This change is made to enable comparison of integer variables, which > might be negative in the next patch. No functional change is intended > in this patch. > > Signed-off-by: Stefan Roese > Cc: Weijie Gao > Cc: Daniel Schwierzeck > ---

Re: [PATCH 3/3] mips: mt76x8: ddr_cal: Correct dqs_find_min/max implementations

2020-04-15 Thread Weijie Gao
On Fri, 2020-03-06 at 15:14 +0100, Stefan Roese wrote: > The current implementations have some issues detecting the correct > values: > > dqs_find_max() will return "last passing fieldval + 1" instead of > "last passing fieldval". Also it will return "maxval + 1" in the > case that all fieldvals a

Re: [Uboot-stm32] [PATCH 1/2] net: dwc_eth_qos: implement reset-gpios for stm32

2020-04-15 Thread Patrice CHOTARD
Hi On 3/18/20 10:50 AM, Patrick Delaunay wrote: > From: Christophe Roullier > > Add management of property "reset-gpios" in the node identified by > "phy-handle" to configure any GPIO used to reset the PHY. > > Signed-off-by: Christophe Roullier > Reviewed-by: Patrice CHOTARD > Reviewed-by: Pat

Re: [Uboot-stm32] [PATCH 2/2] net: dwc_eth_qos: implement phy reg and max-speed for stm32

2020-04-15 Thread Patrice CHOTARD
Hi On 3/18/20 10:50 AM, Patrick Delaunay wrote: > Add management of property "reg" to configure @ of phy and > also "max-speed" property to specify maximum speed in Mbit/s > supported by the device > > Signed-off-by: Christophe Roullier > Reviewed-by: Patrick DELAUNAY > Signed-off-by: Patrick De

Re: [PATCH] ARM: dts: stm32: Define FMC2 base address

2020-04-15 Thread Patrice CHOTARD
Hi On 4/9/20 7:31 PM, Patrick DELAUNAY wrote: > Dear, > >> From: Marek Vasut >> Sent: jeudi 9 avril 2020 13:23 >> >> On 4/1/20 3:45 PM, Patrick DELAUNAY wrote: >>> Hi Marek, >> Hi, >> From: Marek Vasut Sent: jeudi 26 mars 2020 16:57 Define FMC2 base address, for use in board

Re: [PATCH V4] ARM: dts: stm32: Add KS8851-16MLL ethernet on FMC2

2020-04-15 Thread Patrice CHOTARD
Hi On 3/30/20 12:12 PM, Patrice CHOTARD wrote: > Hi Marek > > On 3/28/20 2:01 AM, Marek Vasut wrote: >> Add DT entries, Kconfig entries and board-specific entries to configure >> FMC2 bus and make KS8851-16MLL on that bus accessible to U-Boot. >> >> Signed-off-by: Marek Vasut >> Cc: Patrick Delau

Re: [Uboot-stm32] [PATCH] configs: stm32mp1: replace STM32MP1_TRUSTED by TFABOOT

2020-04-15 Thread Patrice CHOTARD
Hi On 4/1/20 9:46 AM, Patrice CHOTARD wrote: > Hi Patrick > > On 4/1/20 9:07 AM, Patrick Delaunay wrote: >> Activate ARCH_SUPPORT_TFABOOT and replace the arch stm32mp >> specific config CONFIG_STM32MP1_TRUSTED by the generic CONFIG_TFABOOT >> introduced by the commit 535d76a12150 ("armv8: layersca

Re: [PATCH v3 19/23] travis/gitlab/azure: Use -W to avoid warnings check

2020-04-15 Thread Michal Simek
Hi Simon, st 18. 3. 2020 v 16:48 odesílatel Simon Glass napsal: > > We can use the -W flag to tell buildman to ignore warnings. Since we also > have -E defined, compiler warnings are promoted to errors, so they will > still cause a failure. But migration warnings of the form: > >

Re: [PATCH] ARM: dts: stm32: Rename LEDs to match silkscreen on AV96

2020-04-15 Thread Patrice CHOTARD
Hi On 4/6/20 8:01 PM, Manivannan Sadhasivam wrote: > On Mon, Apr 06, 2020 at 03:05:58PM +0200, Marek Vasut wrote: >> The LED labels do not match the silkscreen on the board, fix it. >> >> Signed-off-by: Marek Vasut > Reviewed-by: Manivannan Sadhasivam > > Thanks, > Mani Applied to u-boot-stm/nex

Re: [Uboot-stm32] [PATCH] board: stm32mp1: correct CONFIG_IS_ENABLED usage for LED

2020-04-15 Thread Patrice CHOTARD
Hi On 4/14/20 2:53 PM, Patrice CHOTARD wrote: > Hi > > On 4/10/20 7:14 PM, Patrick Delaunay wrote: >> Use the correct macro to test presence CONFIG_LED: >> replace CONFIG_IS_ENABLED(CONFIG_LED) by CONFIG_IS_ENABLED(LED) >> >> Issue see during review unrelated patch >> "board: stm32mp1: update mana

Re: [Uboot-stm32] [PATCH] ARM: stm32: Enable bootd, iminfo, imxtract on ST defconfig

2020-04-15 Thread Patrice CHOTARD
Hi On 4/14/20 2:52 PM, Patrice CHOTARD wrote: > Hi > > On 4/10/20 6:13 PM, Patrick Delaunay wrote: >> Enable these standard U-Boot commands for image manipulation and for >> starting the default boot command using 'boot' command in U-Boot shell. >> >> Cc: Marek Vasut >> Cc: Patrice Chotard >> Si

Re: [PATCH 1/3] mips: mt76x8: ddr_cal: Rename dqs_test_valid() to dqs_test_error()

2020-04-15 Thread Stefan Roese
Hi Weijie, thanks for reviewing. Could you please also review the latest RFC version of my "generification" of the legacy lzma support as well? I really would like to see some review comments before sending v7 of this patchset to get it (hopefully) accepted in this merge window. http://patchwork

RE: [RFC PATCH] powerpc, qe: add DTS support for parallel I/O ports

2020-04-15 Thread Qiang Zhao
On 2020/4/15 12:46 Heiko Schocher > -Original Message- > From: Heiko Schocher > Sent: 2020年4月15日 12:46 > To: Qiang Zhao > Cc: U-Boot Mailing List ; Holger Brunck > ; Mario Six ; Wolfgang Denk > ; Holger Brunck > Subject: Re: [RFC PATCH] powerpc, qe: add DTS support for parallel I/O por

Re: [RFC PATCH] powerpc, qe: add DTS support for parallel I/O ports

2020-04-15 Thread Heiko Schocher
Hello Qiang Zhao, Am 15.04.2020 um 10:10 schrieb Qiang Zhao: On 2020/4/15 12:46 Heiko Schocher -Original Message- From: Heiko Schocher Sent: 2020年4月15日 12:46 To: Qiang Zhao Cc: U-Boot Mailing List ; Holger Brunck ; Mario Six ; Wolfgang Denk ; Holger Brunck Subject: Re: [RFC PATCH]

RE: [RFC PATCH] net, qe: add DM support for QE UEC ethernet

2020-04-15 Thread Qiang Zhao
Am 15.04.2020 um 06:57 schrieb Heiko Schocher: > -Original Message- > From: Heiko Schocher > Sent: 2020年4月15日 14:25 > To: Qiang Zhao > Cc: Priyanka Jain ; U-Boot Mailing List > ; Holger Brunck ; Joe > Hershberger ; Mario Six > Subject: Re: [RFC PATCH] net, qe: add DM support for QE UEC

[PATCH 0/7] ddr: altera: arria10: Convert SDRAM driver to DM

2020-04-15 Thread Ley Foon Tan
This patchset mainly to covert Arria 10 SDRAM driver to device model and fixes few bugs in driver. It also added RAM size check function to check valid RAM. Ley Foon Tan (7): ddr: altera: arria10: Fix incorrect address for mpu1 ddr: altera: arria10: Move SDRAM driver to DM ddr: altera: arria

[PATCH 1/7] ddr: altera: arria10: Fix incorrect address for mpu1

2020-04-15 Thread Ley Foon Tan
Remove extra "SOCFPGA_SDR_FIREWALL_MPU_FPGA_ADDRESS" in mpu1 address. Signed-off-by: Ley Foon Tan --- drivers/ddr/altera/sdram_arria10.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/ddr/altera/sdram_arria10.c b/drivers/ddr/altera/sdram_arria10.c index 2fd50b7ae550..e0779b810fdc 10

[PATCH 2/7] ddr: altera: arria10: Move SDRAM driver to DM

2020-04-15 Thread Ley Foon Tan
Convert Arria 10 SDRAM driver to device model. SPL is changed from calling function in SDRAM driver directly to just probing UCLASS_RAM. Signed-off-by: Ley Foon Tan --- arch/arm/dts/socfpga_arria10-u-boot.dtsi | 8 + .../mach-socfpga/include/mach/sdram_arria10.h | 244 - arch

[PATCH 4/7] arm: socfpga: arria10: Move sdram_arria10.h to drivers/ddr/altera

2020-04-15 Thread Ley Foon Tan
Move sdram_arria10.h to drivers/ddr/altera directory. No functionality change. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/include/mach/sdram.h | 2 +- arch/arm/mach-socfpga/misc_arria10.c | 2 +- drivers/ddr/altera/sdram_arria10.c

[PATCH 6/7] ddr: altera: arria10: Change %i to %u for printf

2020-04-15 Thread Ley Foon Tan
Tiny printf doesn't support %i, change to %u. Signed-off-by: Ley Foon Tan --- drivers/ddr/altera/sdram_arria10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ddr/altera/sdram_arria10.c b/drivers/ddr/altera/sdram_arria10.c index e3f11984a978..8acf324117af 100644 --

[PATCH 5/7] ddr: altera: arria10: Add RAM size check

2020-04-15 Thread Ley Foon Tan
Add call to get_ram_size() function to check memory range for valid RAM. Signed-off-by: Ley Foon Tan --- drivers/ddr/altera/sdram_arria10.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/drivers/ddr/altera/sdram_arria10.c b/drivers/ddr/altera/sdram

[PATCH 3/7] ddr: altera: arria10: Change to use reset DM function

2020-04-15 Thread Ley Foon Tan
Change to use reset DM function and remove unused socfpga_reset_deassert_noc_ddr_scheduler(). Signed-off-by: Ley Foon Tan --- .../include/mach/reset_manager_arria10.h | 1 - arch/arm/mach-socfpga/reset_manager_arria10.c | 7 -- drivers/ddr/altera/sdram_arria10.c| 25 ++

[PATCH 7/7] ddr: altera: arria10: Remove call to dram_init_banksize()

2020-04-15 Thread Ley Foon Tan
dram_init_banksize() is called in board_init_f() boot sequences in Uboot, remove it from SDRAM driver. Signed-off-by: Ley Foon Tan --- drivers/ddr/altera/sdram_arria10.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/ddr/altera/sdram_arria10.c b/drivers/ddr/altera/sdram_arria10.c

[PULL] Pull request: u-boot-stm/next =u-boot-stm32-20200415

2020-04-15 Thread Patrice CHOTARD
2020-04-14 08:47:07 -0400) are available in the Git repository at:   https://gitlab.denx.de/u-boot/custodians/u-boot-stm tags/u-boot-stm32-20200415 for you to fetch changes up to 71ba2cb0d678d2c29dadd5fcca61ce3942876ee6:   board: stm32mp1: correct CONFIG_IS_ENABLED usage for LED (2020-04-15 09:10

[PATCH] board: fsl: lx2160a: define gic_lpi_base with CONFIG_GIC_V3_ITS support

2020-04-15 Thread Wasim Khan
define gic_lpi_base variable when CONFIG_GIC_V3_ITS support is enable. This avoids compilation warnings when CONFIG_GIC_V3_ITS is not enabled. Signed-off-by: Wasim Khan --- board/freescale/lx2160a/lx2160a.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/freescale/lx2160a/lx2160a.c

[PATCH 1/2] spl: mmc: Rename spl_boot_mode() to spl_mmc_boot_mode()

2020-04-15 Thread Harald Seiler
The function's name is misleading as one might think it is used generally to select the boot-mode when in reality it is only used by the MMC driver to find out in what way it should try reading U-Boot Proper from a device (either using a filesystem, a raw sector/partition, or an eMMC boot partition

[PATCH 2/2] spl: mmc: Rename spl_boot_partition() to spl_mmc_boot_partition()

2020-04-15 Thread Harald Seiler
This function is only relevant to the MMC driver so calling it spl_boot_partition() might be confusing. Rename it to spl_mmc_boot_partition() to make its purpose more clear (and bring it in line with spl_mmc_boot_mode()). Signed-off-by: Harald Seiler --- include/spl.h | 14 +++

[PATCH 0/2] Rename spl_boot_mode() and spl_boot_partition()

2020-04-15 Thread Harald Seiler
TL;DR: The two functions are only used in the SPL MMC driver so I think their names should reflect that. spl_boot_mode() has caused a bit of trouble to me and others because some of its implementations miss what it is meant to do in its current form. This is in part due to history and I suspect i

Re: [PATCH 0/3] watchdog: honour hw_margin_ms property

2020-04-15 Thread Stefan Roese
On 13.03.20 17:04, Rasmus Villemoes wrote: Some watchdogs must be reset more often than the once-per-second ratelimit used by the generic watchdog_reset function in wdt-uclass.c. There's precedent (from the gpio-wdt driver in linux) for using a property called hw_margin_ms to let the device tree

Re: [PATCH v4 1/1] driver: watchdog: get platform clock from dt file

2020-04-15 Thread Stefan Roese
On 06.04.20 09:59, Rayagonda Kokatanur wrote: Get the watchdog platform clock from the DTS file using clk subsystem and use the same for calculating ticks in msec. Signed-off-by: Rayagonda Kokatanur Signed-off-by: Bharat Kumar Reddy Gooty Applied to u-boot-marvell/master Thanks, Stefan --

Please pull u-boot-marvell/master (watchdog related)

2020-04-15 Thread Stefan Roese
Hi Tom, please pull the following watchdog related patches: - Common: honour hw_margin_ms property (Rasmus) - sp805_wdt: get platform clock from dt (Rayagonda) Here

Re: [PATCH 0/4] Updates for ClearFog EEPROM

2020-04-15 Thread Stefan Roese
Hi Joel, On 19.01.20 08:10, Joel Johnson wrote: This set of patches applies on top of https://patchwork.ozlabs.org/cover/1200324/, based on testing using the static configuration fallback updates in a related patch series. Joel Johnson (4): cmd: sys_eeprom: add missing implicit header

RE: [PATCH v2] lx2160a : Update eMMC boot environment variables

2020-04-15 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Meenakshi >Aggarwal >Sent: Thursday, April 9, 2020 6:58 PM >To: u-boot@lists.denx.de; Priyanka Jain >Cc: Meenakshi Aggarwal >Subject: [PATCH v2] lx2160a : Update eMMC boot environment variables > Please provide the description of what env va

RE: [PATCH] armv8: ls1046ardb: add new 16GB udimm memory support

2020-04-15 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of >andy.t...@nxp.com >Sent: Friday, April 3, 2020 12:30 PM >To: Priyanka Jain >Cc: Mingkai Hu ; Rajesh Bhagat >; u-boot@lists.denx.de; Andy Tang > >Subject: [PATCH] armv8: ls1046ardb: add new 16GB udimm memory support > >From: Yuantian Tang >

RE: [PATCH] configs: ls1012afrwy: drop env qspi_bootcmd

2020-04-15 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Biwen Li >Sent: Tuesday, March 31, 2020 1:54 PM >To: Jagdish Gediya ; Priyanka Jain >; Pramod Kumar ; >Shengzhou Liu >Cc: Alison Wang ; u-boot@lists.denx.de; Jiafei Pan >; Biwen Li >Subject: [PATCH] configs: ls1012afrwy: drop env qspi_bootcm

RE: [PATCH v2] configs: ls1021a: Append othbootargs to bootargs

2020-04-15 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Alison Wang >Sent: Wednesday, March 25, 2020 10:04 AM >To: u-boot@lists.denx.de; Priyanka Jain ; Jagdish >Gediya >Cc: Alison Wang ; Shengzhou Liu > >Subject: [PATCH v2] configs: ls1021a: Append othbootargs to bootargs > >This patch appends CM

RE: [PATCHv2 2/9] arm64: fsl-layerscape: Assign addr to resv_ram if enabled RESV_RAM config

2020-04-15 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Zhiqiang Hou >Sent: Tuesday, March 24, 2020 1:42 PM >To: u-boot@lists.denx.de; Priyanka Jain ; Biwen Li > >Cc: Z.q. Hou >Subject: [PATCHv2 2/9] arm64: fsl-layerscape: Assign addr to resv_ram if >enabled RESV_RAM config > >From: Hou Zhiqiang

efi_loader: SPL build fails with EFI_SECURE_BOOT=y

2020-04-15 Thread Heinrich Schuchardt
Hello Takahiro, I tried to run with EFI_SECURE_BOOT enabled on pine64-lts_defconfig. U-Boot does not succeed to move from SPL to main U-Boot. The reason is that the SPL binary grows in size. This is due to EFI_SECURE_BOOT selecting additional code in SPL which of cause in unexpected. This is rel

Re: [RFC PATCH 3/3] mips: spl: Flush cache before jumping to U-Boot proper

2020-04-15 Thread Daniel Schwierzeck
Am 10.04.20 um 13:04 schrieb Stefan Roese: > This patch adds a MIPS specific jump_to_image_no_args() implementation, > which flushes the U-Boot proper image loaded from the boot device in > SPL before jumping to it. > > It has been noticed on MT76x8, that this cache flush is needed. Other > MIP

Re: [RFC PATCH 1/3] spl: spl_nor: Move legacy image loading into spl_legacy.c

2020-04-15 Thread Daniel Schwierzeck
Am 10.04.20 um 13:04 schrieb Stefan Roese: > Move the legacy image loading into spl_legacy.c. This makes it easier > to extend the legacy image handling with new features that other > SPL loaders might use (e.g. spl_spi.c etc). > > No functional change intended. > > Signed-off-by: Stefan Roese

Re: [PATCH v4] mmc: zynq: parse dt when probing

2020-04-15 Thread Benedikt Grassl
Hi Michal, I just tried to check if the read performance acutally increased when using an 8-bit data bus. As a quick test, I use the fatload command to read a chunk of 1 GByte from an eMMC flash (generated with dd from Linux). However, I don't see any difference at all: mmc info Device: mmc@ff160

Re: [RFC PATCH 3/3] mips: spl: Flush cache before jumping to U-Boot proper

2020-04-15 Thread Stefan Roese
On 15.04.20 13:43, Daniel Schwierzeck wrote: Am 10.04.20 um 13:04 schrieb Stefan Roese: This patch adds a MIPS specific jump_to_image_no_args() implementation, which flushes the U-Boot proper image loaded from the boot device in SPL before jumping to it. It has been noticed on MT76x8, that th

RE: [PATCH] configs: ls1012afrwy: drop env qspi_bootcmd

2020-04-15 Thread Biwen Li
> > >-Original Message- > >From: U-Boot On Behalf Of Biwen Li > >Sent: Tuesday, March 31, 2020 1:54 PM > >To: Jagdish Gediya ; Priyanka Jain > >; Pramod Kumar ; > >Shengzhou Liu > >Cc: Alison Wang ; u-boot@lists.denx.de; Jiafei Pan > >; Biwen Li > >Subject: [PATCH] configs: ls1012afrwy:

Re: [RFC PATCH 1/3] spl: spl_nor: Move legacy image loading into spl_legacy.c

2020-04-15 Thread Stefan Roese
On 15.04.20 13:46, Daniel Schwierzeck wrote: Am 10.04.20 um 13:04 schrieb Stefan Roese: Move the legacy image loading into spl_legacy.c. This makes it easier to extend the legacy image handling with new features that other SPL loaders might use (e.g. spl_spi.c etc). No functional change inten

[PATCH] rockchip: rk3399: enable spl-fifo-mode for sdmmc

2020-04-15 Thread Deepak Das
adapting commit fa2047c47310 ("rockchip: rk3328: enable spl-fifo-mode for emmc and sdmmc") for rk3399. Since mmc to sram can't do dma, add patch to prevent aborts transferring TF-A parts. Signed-off-by: Deepak Das --- arch/arm/dts/rk3399-u-boot.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff

RE: [PATCH v2 04/14] board: ls1088ardb: transition to DM_ETH

2020-04-15 Thread Priyanka Jain
>-Original Message- >From: Ioana Ciornei >Sent: Wednesday, March 18, 2020 8:18 PM >To: Priyanka Jain ; joe.hershber...@ni.com; u- >b...@lists.denx.de >Cc: Florin Laurentiu Chiculita ; Ioana >Ciornei >Subject: [PATCH v2 04/14] board: ls1088ardb: transition to DM_ETH > >In case CONFIG_DM_ET

[PATCH] pwm: Add PWM driver for SiFive SoC

2020-04-15 Thread Yash Shah
Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC This driver is simple port of Linux pwm sifive driver. Signed-off-by: Yash Shah --- drivers/pwm/Kconfig | 6 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-sifive.c | 181

[PATCH] USB: Add USB support in u-boot for OrangePi Win/Plus

2020-04-15 Thread hesling . maxime
From: Maxime Hesling Make USB devices (keyboard, storage...) working in u-boot for OrangePi Win/Plus. --- configs/orangepi_win_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/orangepi_win_defconfig b/configs/orangepi_win_defconfig index 047a6b7d84..c7c4c37407 100644 --- a

Re: [RFC PATCH 2/3] spl: spl_legacy: Add lzma decompression support for legacy image

2020-04-15 Thread Daniel Schwierzeck
Am 10.04.20 um 13:04 schrieb Stefan Roese: > From: Weijie Gao > > This patch adds support for decompressing LZMA compressed u-boot payload > in legacy uImage format. > > Using this patch together with u-boot-lzma.img may be useful for some > platforms as they can reduce the size and load time

Re: [PATCH] rockchip: rk3399: enable spl-fifo-mode for sdmmc

2020-04-15 Thread Philipp Tomsich
> On 15.04.2020, at 05:25, Deepak Das wrote: > > adapting commit fa2047c47310 ("rockchip: rk3328: enable spl-fifo-mode > for emmc and sdmmc") for rk3399. > Since mmc to sram can't do dma, add patch to prevent aborts transferring > TF-A parts. > > Signed-off-by: Deepak Das > --- > arch/arm/dts/r

RE: [PATCH v2 10/14] arm: dts: ls2088ardb: add DPMAC and PHY nodes

2020-04-15 Thread Priyanka Jain
>-Original Message- >From: Ioana Ciornei >Sent: Wednesday, March 18, 2020 8:18 PM >To: Priyanka Jain ; joe.hershber...@ni.com; u- >b...@lists.denx.de >Cc: Florin Laurentiu Chiculita ; Ioana >Ciornei >Subject: [PATCH v2 10/14] arm: dts: ls2088ardb: add DPMAC and PHY nodes > >In order to ma

Re: [RFC PATCH 2/3] spl: spl_legacy: Add lzma decompression support for legacy image

2020-04-15 Thread Stefan Roese
On 15.04.20 14:52, Daniel Schwierzeck wrote: Am 10.04.20 um 13:04 schrieb Stefan Roese: From: Weijie Gao This patch adds support for decompressing LZMA compressed u-boot payload in legacy uImage format. Using this patch together with u-boot-lzma.img may be useful for some platforms as they

Re: [PATCH 2/7] ddr: altera: arria10: Move SDRAM driver to DM

2020-04-15 Thread Marek Vasut
On 4/15/20 11:00 AM, Ley Foon Tan wrote: [...] > +++ b/arch/arm/mach-socfpga/include/mach/sdram_arria10.h > @@ -6,76 +6,65 @@ [...] > +/* FW DDR MPU F2S SCR */ > +#define FW_DDR_MPU_F2S_SCR_EN0x00 > +#define FW_DDR_MPU_F2S_SCR_MPUR0 0x10 > +#define FW_DDR_MPU_F2S_SCR_MPUR1

Re: [PATCH 3/7] ddr: altera: arria10: Change to use reset DM function

2020-04-15 Thread Marek Vasut
On 4/15/20 11:00 AM, Ley Foon Tan wrote: > Change to use reset DM function and remove unused > socfpga_reset_deassert_noc_ddr_scheduler(). > > Signed-off-by: Ley Foon Tan > --- > .../include/mach/reset_manager_arria10.h | 1 - > arch/arm/mach-socfpga/reset_manager_arria10.c | 7 -- >

Re: [PATCH 6/7] ddr: altera: arria10: Change %i to %u for printf

2020-04-15 Thread Marek Vasut
On 4/15/20 11:00 AM, Ley Foon Tan wrote: > Tiny printf doesn't support %i, change to %u. > > Signed-off-by: Ley Foon Tan > --- > drivers/ddr/altera/sdram_arria10.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ddr/altera/sdram_arria10.c > b/drivers/ddr/altera

Re: [PATCH 1/7] ddr: altera: arria10: Fix incorrect address for mpu1

2020-04-15 Thread Marek Vasut
On 4/15/20 11:00 AM, Ley Foon Tan wrote: > Remove extra "SOCFPGA_SDR_FIREWALL_MPU_FPGA_ADDRESS" in mpu1 address. I see what the patch does from the patch itself, but the commit message does not explain _why_ the patch does it. Can you add it ? [...]

Re: [PATCH 5/7] ddr: altera: arria10: Add RAM size check

2020-04-15 Thread Marek Vasut
On 4/15/20 11:00 AM, Ley Foon Tan wrote: > Add call to get_ram_size() function to check memory range > for valid RAM. > > Signed-off-by: Ley Foon Tan > --- > drivers/ddr/altera/sdram_arria10.c | 25 - > 1 file changed, 24 insertions(+), 1 deletion(-) > > diff --git a/dri

Re: [PATCH v4] dm: uclass: don't assign aliased seq numbers

2020-04-15 Thread Simon Glass
+Tom Hi, On Sat, 14 Mar 2020 at 14:33, wrote: > > On 03. 03. 20 8:47, Michael Walle wrote: > > If there are aliases for an uclass, set the base for the "dynamically" > > allocated numbers next to the highest alias. > > > > Please note, that this might lead to holes in the sequences, depending >

Re: [PATCH v5 01/14] dm: core: Add function to get child count of ofnode or device

2020-04-15 Thread Simon Glass
On Thu, 9 Apr 2020 at 23:46, Chunfeng Yun wrote: > > This patch add function used to get the child count of > a ofnode or a device > > Signed-off-by: Chunfeng Yun > --- > v4~v5: no changes > > v3: > 1. add non/inline function dev_get_child_count() instead of macro > suggested by Simon > > v2

Re: Please pull u-boot/next

2020-04-15 Thread Simon Glass
Hi Tom, On Sun, 12 Apr 2020 at 14:39, Tom Rini wrote: > > On Fri, Apr 10, 2020 at 02:27:38PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > The following changes since commit 587e4a4296982f85b2a40fc8a704db65079e0aac: > > > > kconfig / kbuild: Re-sync with Linux 4.19 (2020-04-10 11:18:32 -0400)

Re: [PATCH v3 19/23] travis/gitlab/azure: Use -W to avoid warnings check

2020-04-15 Thread Simon Glass
Hi Michal, On Wed, 15 Apr 2020 at 01:31, Michal Simek wrote: > > Hi Simon, > > st 18. 3. 2020 v 16:48 odesílatel Simon Glass napsal: > > > > We can use the -W flag to tell buildman to ignore warnings. Since we also > > have -E defined, compiler warnings are promoted to errors, so they will > > s

Re: [PATCH v5 04/14] test: dm: phy: add a test item for the phy_bulk API

2020-04-15 Thread Simon Glass
On Thu, 9 Apr 2020 at 23:46, Chunfeng Yun wrote: > > Add a test item for the phy_bulk API > > Signed-off-by: Chunfeng Yun > --- > v5: no changes > > v4: new patch > --- > arch/sandbox/dts/test.dts | 11 +++ > test/dm/phy.c | 29 + > 2 files changed

Antwort: Re: Re: [PATCH v3 13/29] dts: Add a binding for hid-over-i2c

2020-04-15 Thread Wolfgang Wallner
Hi Andy, -"Andy Shevchenko" schrieb: - > Betreff: Re: Re: [PATCH v3 13/29] dts: Add a binding for hid-over-i2c > > On Wed, Apr 8, 2020 at 11:40 PM Andy Shevchenko > wrote: > > On Wed, Apr 8, 2020 at 10:39 PM Wolfgang Wallner > > wrote: > > > > On Tue, Apr 07, 2020 at 08:58:13PM -0600,

[PATCH] ARM: imx6: DHCOM i.MX6 PDK: Convert to DM_ETH

2020-04-15 Thread Harald Seiler
Use DM_ETH instead of legacy networking. Signed-off-by: Harald Seiler --- Notes: I am unsure whether I converted 'enough' of the board_eth_init() function to DM. I think the reset GPIO in particular could be handled by the DM driver if I add the following to the device-tree (did not

Re: [PATCH] ARM: imx6: DHCOM i.MX6 PDK: Convert to DM_ETH

2020-04-15 Thread Marek Vasut
On 4/15/20 4:01 PM, Harald Seiler wrote: > Use DM_ETH instead of legacy networking. > > Signed-off-by: Harald Seiler > --- > > Notes: > I am unsure whether I converted 'enough' of the board_eth_init() > function to DM. I think the reset GPIO in particular could be handled > by the D

Re: [PATCH v1 3/3] x86: acpi: Let OS know that console already had been initialized

2020-04-15 Thread Bin Meng
On Thu, Feb 27, 2020 at 11:22 PM Andy Shevchenko wrote: > > SPCR has no clue if the UART base clock speed is different to > the default one. However, the SPCR 1.04 defines baud rate 0 as > a preconfigured state of UART and OS is supposed not to touch > the configuration of the serial device. > > L

Re: [PATCH v4] mmc: zynq: parse dt when probing

2020-04-15 Thread Michal Simek
Hi, On 15. 04. 20 14:05, Benedikt Grassl wrote: > Hi Michal, > > I just tried to check if the read performance acutally increased when > using an 8-bit data bus. As a quick test, I use the fatload command to > read a chunk of 1 GByte from an eMMC flash (generated with dd from > Linux). However, I

Re: [PATCH v1 2/3] serial: ns16550: Provide UART base clock speed in ->getinfo()

2020-04-15 Thread Bin Meng
On Fri, Feb 28, 2020 at 7:41 AM Simon Glass wrote: > > On Thu, 27 Feb 2020 at 07:22, Andy Shevchenko > wrote: > > > > Some callers may need the UART base clock speed value. > > Provide it in the ->getinfo() callback. > > > > Signed-off-by: Andy Shevchenko > > --- > > drivers/serial/ns16550.c |

Re: [PATCH v1 1/3] dm: serial: Add clock member to struct serial_device_info

2020-04-15 Thread Bin Meng
On Fri, Feb 28, 2020 at 7:41 AM Simon Glass wrote: > > On Thu, 27 Feb 2020 at 07:22, Andy Shevchenko > wrote: > > > > Some callers of serial_getinfo() would like to know the UART base > > clock speed in order to make decision what to pass to OS in some > > cases. In particular, ACPI SPCR table ex

Re: Re: Re: [PATCH v3 13/29] dts: Add a binding for hid-over-i2c

2020-04-15 Thread Andy Shevchenko
On Wed, Apr 15, 2020 at 5:00 PM Wolfgang Wallner wrote: > -"Andy Shevchenko" schrieb: - > > Betreff: Re: Re: [PATCH v3 13/29] dts: Add a binding for hid-over-i2c > > > > On Wed, Apr 8, 2020 at 11:40 PM Andy Shevchenko > > wrote: > > > On Wed, Apr 8, 2020 at 10:39 PM Wolfgang Wallner > >

Re: [PATCH v5 00/29] dm: Add programmatic generation of ACPI tables (part A)

2020-04-15 Thread Simon Glass
Hi Bin, On Wed, 8 Apr 2020 at 16:57, Simon Glass wrote: > > This is split from the original series in an attempt to get things applied > in chunks. > > The first 20 or so patches here have been reviewed and the changes here > incorporate those comments. > > Changes in v5: > - Tweak unused naming

Re: [PATCH v1 3/3] x86: acpi: Let OS know that console already had been initialized

2020-04-15 Thread Bin Meng
On Wed, Apr 15, 2020 at 10:20 PM Bin Meng wrote: > > On Thu, Feb 27, 2020 at 11:22 PM Andy Shevchenko > wrote: > > > > SPCR has no clue if the UART base clock speed is different to > > the default one. However, the SPCR 1.04 defines baud rate 0 as > > a preconfigured state of UART and OS is suppo

Re: [PATCH v1 2/3] serial: ns16550: Provide UART base clock speed in ->getinfo()

2020-04-15 Thread Bin Meng
On Wed, Apr 15, 2020 at 10:19 PM Bin Meng wrote: > > On Fri, Feb 28, 2020 at 7:41 AM Simon Glass wrote: > > > > On Thu, 27 Feb 2020 at 07:22, Andy Shevchenko > > wrote: > > > > > > Some callers may need the UART base clock speed value. > > > Provide it in the ->getinfo() callback. > > > > > > Si

Re: [PATCH v1 1/3] dm: serial: Add clock member to struct serial_device_info

2020-04-15 Thread Bin Meng
On Wed, Apr 15, 2020 at 10:19 PM Bin Meng wrote: > > On Fri, Feb 28, 2020 at 7:41 AM Simon Glass wrote: > > > > On Thu, 27 Feb 2020 at 07:22, Andy Shevchenko > > wrote: > > > > > > Some callers of serial_getinfo() would like to know the UART base > > > clock speed in order to make decision what

Re: [PATCH v6 12/29] dm: core: Add basic ACPI support

2020-04-15 Thread Bin Meng
Hi Simon, On Fri, Apr 10, 2020 at 3:36 AM Simon Glass wrote: > > On Thu, 9 Apr 2020 at 11:40, Andy Shevchenko > wrote: > > > > On Thu, Apr 09, 2020 at 10:27:38AM -0600, Simon Glass wrote: > > > ACPI (Advanced Configuration and Power Interface) is a standard for > > > specifying information about

Re: [PATCH v5 00/29] dm: Add programmatic generation of ACPI tables (part A)

2020-04-15 Thread Bin Meng
Hi Simon, On Wed, Apr 15, 2020 at 10:25 PM Simon Glass wrote: > > Hi Bin, > > On Wed, 8 Apr 2020 at 16:57, Simon Glass wrote: > > > > This is split from the original series in an attempt to get things applied > > in chunks. > > > > The first 20 or so patches here have been reviewed and the chang

Re: [PATCH v6 12/29] dm: core: Add basic ACPI support

2020-04-15 Thread Bin Meng
Hi Simon, On Wed, Apr 15, 2020 at 10:31 PM Bin Meng wrote: > > Hi Simon, > > On Fri, Apr 10, 2020 at 3:36 AM Simon Glass wrote: > > > > On Thu, 9 Apr 2020 at 11:40, Andy Shevchenko > > wrote: > > > > > > On Thu, Apr 09, 2020 at 10:27:38AM -0600, Simon Glass wrote: > > > > ACPI (Advanced Configu

RE: [PATCHv2 2/9] arm64: fsl-layerscape: Assign addr to resv_ram if enabled RESV_RAM config

2020-04-15 Thread Z.q. Hou
Hi Priyanka, Thanks a lot for your comments! > -Original Message- > From: Priyanka Jain (OSS) > Sent: 2020年4月15日 18:28 > To: Z.q. Hou ; u-boot@lists.denx.de; Biwen Li > > Cc: Z.q. Hou > Subject: RE: [PATCHv2 2/9] arm64: fsl-layerscape: Assign addr to resv_ram if > enabled RESV_RAM conf

  1   2   3   >