Re: [PATCH 6/8] ARM: imx8m: Fix reset in SPL on NXP iMX8MP EVK

2020-05-04 Thread Fabio Estevam
Hi, On Wed, Apr 29, 2020 at 10:05 AM Harald Seiler wrote: > > From: Marek Vasut > > Board files should not re-implement do_reset() to work around this > function not being defined in for specific configurations. Rather, > the fix is to compile in drivers which implement this properly. > This pat

Re: [PATCH v2] imx: support for conga-QMX8 board

2020-05-04 Thread Oliver Graute
On 04/05/20, Stefano Babic wrote: > Hi Oliver, > > this was quite lost under the flood of other patches, sorry for that. > What about to rebase and repost it ? > will rebase and rework that patch, as soon as I'am back in office and get access to that board again. Best regards, Oliver

RE: [PATCH] dm: serial: introduce puts hook

2020-05-04 Thread Peng Fan
Hi Simon, > Subject: Re: [PATCH] dm: serial: introduce puts hook > > Hi Peng, > > On Sun, 3 May 2020 at 06:42, Peng Fan wrote: > > > > Introduce puts hook for dm serial driver. > > > > Signed-off-by: Peng Fan > > --- > > drivers/serial/serial-uclass.c | 13 +++-- > > include/serial.h

Re: [PATCH v3 1/4] patman: Modify functional tests for new behavior

2020-05-04 Thread Simon Glass
Hi Sean, On Sun, 3 May 2020 at 15:55, Sean Anderson wrote: > > This patch adds or modifies functional tests for the Cover-changes, > Commit-changes, and Series-process-log tags in order to account for new > behavior added in the next several patches. The '(no changes since v1)' > case is not test

Re: [PATCH] rsa: fix alignment issue when getting public exponent

2020-05-04 Thread Simon Glass
+Tom Rini On Sun, 3 May 2020 at 05:26, Heiko Stuebner wrote: > > From: Heiko Stuebner > > To fill the exponent field of the rsa_public_key struct, rsa_mod_exp_sw > did a cast to uint64_t of the key_prop->public_exponent field. > But that alignment is not guaranteed in all cases. > > This came to

Re: [PATCH 3/4] sata: dwc_ahsata: Fix incorrect free

2020-05-04 Thread Simon Glass
On Sun, 3 May 2020 at 08:04, Peng Fan wrote: > > From: Ye Li > > Fix coverity issue CID 43665: Free of address-of expression (BAD_FREE) > incorrect_free: free frees incorrect pointer pp. > > pp points the port array field of struct ahci_uc_priv, should not free it. > > Acked-by: Peng Fan > Signe

Re: [PATCH v4 1/2] drivers: gpio: add broadcom iproc gpio driver support

2020-05-04 Thread Simon Glass
Hi Rayagonda, On Sun, 3 May 2020 at 10:32, Rayagonda Kokatanur wrote: > > Add gpio driver support for Broadcom iproc-based socs. > > Signed-off-by: Rayagonda Kokatanur > Signed-off-by: Sheetal Tigadoli > --- > drivers/gpio/Kconfig | 11 ++ > drivers/gpio/Makefile | 1 + > drivers/g

Re: [PATCH] dm: serial: introduce puts hook

2020-05-04 Thread Simon Glass
Hi Peng, On Sun, 3 May 2020 at 06:42, Peng Fan wrote: > > Introduce puts hook for dm serial driver. > > Signed-off-by: Peng Fan > --- > drivers/serial/serial-uclass.c | 13 +++-- > include/serial.h | 8 > 2 files changed, 19 insertions(+), 2 deletions(-) I'm jus

Re: [PATCH v2 2/2] patman: Add an option to create patches without binary contents

2020-05-04 Thread Simon Glass
On Mon, 4 May 2020 at 01:52, Bin Meng wrote: > > Some mailing lists have size limits and when we add binary contents > to our patches it's easy to exceed the size limits. > > Git supports a command line option "--no-binary" to generate patches > without any binary contents. Add an option in patman

Re: [PATCH 1/4] sata: ahsata: Fix resource leak

2020-05-04 Thread Simon Glass
On Sun, 3 May 2020 at 08:04, Peng Fan wrote: > > From: Ye Li > > Fix coverity issue CID 3606684: Resource leak (RESOURCE_LEAK) > leaked_storage: Variable uc_priv going out of scope leaks the storage it > points to > > Signed-off-by: Ye Li > Signed-off-by: Peng Fan > --- > drivers/ata/dwc_ahsa

Re: [PATCH 2/4] sata: ahsata: Fix wrong operand for checking SERR DIAG_X

2020-05-04 Thread Simon Glass
On Sun, 3 May 2020 at 08:04, Peng Fan wrote: > > From: Ye Li > > Fix coverity issue CID 3261683: Wrong operator used > (CONSTANT_EXPRESSION_RESULT) operator_confusion: > ({...; __v;}) | 67108864 is always 1/true regardless of the values > of its operand. This occurs as the logical operand of ! >

[PATCH 14/14] nand: enable the Randomizer module for i.mx7 and i.mx8

2020-05-04 Thread Peng Fan
From: Alice Guo To enable the Randomizer module, set GPMI_ECCCTRL[RANDOMIZER_ENABLE] to 1, then set GPMI_ECCCOUNT[RANDOMIZER_PAGE] to select randomizer page number needed to be randomized. Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand.c | 8 +++- 1 fil

[PATCH 12/14] MXS_NAND: Add clock support for iMX8

2020-05-04 Thread Peng Fan
From: Ye Li Since iMX8 has enabled clock uclass, we can parse the clocks from DTB and enable them in GPMI driver. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand_dt.c | 69 ++ 1 file changed, 69 insertions(+) diff --git a/dri

[PATCH 13/14] mxs_nand: don't check zero count when ECC reading with randomizer

2020-05-04 Thread Peng Fan
From: Han Xu When enabled randomizer during ECC reading, the controller reported it's erased page. Checking zero count will cause data get modified to all 0xFF. Stop checking during randomizer to workaround this issue. Signed-off-by: Han Xu Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs

[PATCH 10/14] nand: mxs_nand: make imx8mm can use hardware BCH and randomizer

2020-05-04 Thread Peng Fan
From: Alice Guo imx8mm needs to BCH encode and set NAND page number needed to be randomized modify conditional compilation Use CONFIG_IMX8M, so it apply to imx8mq/mm/mn Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand.c | 2 +- 1 file changed, 1 insertion(+

[PATCH 09/14] mtd: mxs_nand: fix the gf_13/14 definition issue

2020-05-04 Thread Peng Fan
From: Han Xu gf_13/14 mask was not set correctly in register definition. Signed-off-by: Han Xu Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/regs-bch.h | 8 drivers/mtd/nand/raw/mxs_nand.c | 2 ++ include/mxs_nand.h | 1 + 3 files changed, 7

[PATCH 11/14] mtd: nand: support GPMI NAND driver for i.MX8

2020-05-04 Thread Peng Fan
enable the GPMI NAND driver for i.MX8, i.MX8 use similar controller as i.MX8M - register definition for i.mx8 - DMA structure must be 32bit address Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/dma.h | 15 --- arch/arm/include/asm/mach-imx/regs-apbh.h | 9

[PATCH 07/14] mxs_nand: Update compatible string for i.MX6SX

2020-05-04 Thread Peng Fan
From: Ye Li The iMX6SX uses compatible string "fsl,imx6sx-gpmi-nand" for gpmi node in DTS, so update the driver for the string Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand_dt.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mtd/nand/raw/m

[PATCH 08/14] mtd: nand: mxs_nand: add i.MX6QP compatible string

2020-05-04 Thread Peng Fan
From: Han Xu add the dedicate compatible string for i.MX6QP Signed-off-by: Han Xu Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand_dt.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/nand/raw/mxs_nand_dt.c b/drivers/mtd/nand/raw/mxs_nand_dt.c index 7efc9684db..b

[PATCH 05/14] mxs_nand: Add support for i.MX8M

2020-05-04 Thread Peng Fan
From: Ye Li Update the gpmi/apbh_dma/bch drivers and relevant registers for i.MX8M. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/dma.h | 2 +- arch/arm/include/asm/mach-imx/regs-apbh.h | 6 +++--- arch/arm/include/asm/mach-imx/regs-bch.h | 4 ++-- driv

[PATCH 06/14] nand: Update SPL MXS NAND mini driver

2020-05-04 Thread Peng Fan
From: Ye Li Update the mini driver to add support for getting ecc info from ONFI and support read image data from page unaligned NAND address. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand_spl.c | 41 ++--- 1 file changed, 34 in

[PATCH 04/14] nand: mxs: correct bitflip for erased NAND page

2020-05-04 Thread Peng Fan
This patch is a porting of http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/ commit/?h=imx_4.1.15_1.0.0_ga&id=e4dacc44d22e9474ec456cb330df525cd805ea38 " i.MX6QP and i.MX7D BCH module integrated a new feature to detect the bitflip number for erased NAND page. So for these two platform, se

[PATCH 03/14] nand: mxs: fix the bitflips for erased page when uncorrectable error

2020-05-04 Thread Peng Fan
This patch is porting from linux: http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/commit/ ?h=imx_4.1.15_1.0.0_ga&id=3d42fcece496224fde59f9343763fb2dfc5b0768 " We may meet the bitflips in reading an erased page(contains all 0xFF), this may causes the UBIFS corrupt, please see the log fr

[PATCH 02/14] mtd: gpmi: provide the option to use legacy bch geometry

2020-05-04 Thread Peng Fan
From: Ye Li Provide an option in DT to use legacy bch geometry, which compatible with the 3.10 kernel bch setting. To enable the feature, adding "fsl,legacy-bch-geometry" under gpmi-nand node. NOTICE: The feature must be enabled/disabled in both u-boot and kernel. Signed-off-by: Han Xu Signed-

[PATCH 01/14] mtd: gpmi: change the BCH layout setting for large oob NAND

2020-05-04 Thread Peng Fan
From: Ye Li The code change updated the NAND driver BCH ECC layout algorithm to support large oob size NAND chips(oob > 1024 bytes) and proposed a new way to set ECC layout. Current implementation requires each chunk size larger than oob size so the bad block marker (BBM) can be guaranteed locat

[PATCH 00/14] mtd: nand: i.MX update

2020-05-04 Thread Peng Fan
This is to upstream NXP downstream mtd nand patches, including DT/CLK/i.MX8M/i.MX8/SPL Alice Guo (2): nand: mxs_nand: make imx8mm can use hardware BCH and randomizer nand: enable the Randomizer module for i.mx7 and i.mx8 Han Xu (3): mtd: nand: mxs_nand: add i.MX6QP compatible string mtd:

[PATCH] mmc: zynq_sdhci: Remove global pointer

2020-05-04 Thread Michal Simek
Driver is not calling gd anywhere that's why there is not need to define it. Signed-off-by: Michal Simek --- drivers/mmc/zynq_sdhci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 18925d01fa0b..df6d3f7a7e47 100644 --- a/drivers/mm

[PATCH] arm: versal: Fix xspi0 boot mode

2020-05-04 Thread Michal Simek
Use proper number to be aligned with xspi0 boot mode. Signed-off-by: Michal Simek --- include/configs/xilinx_versal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/xilinx_versal.h b/include/configs/xilinx_versal.h index 1b40ad7d0963..bc980df0eb2b 100644 ---

Re: ReadTheDocs integration

2020-05-04 Thread Tom Rini
On Sat, May 02, 2020 at 10:00:45AM +0200, Heinrich Schuchardt wrote: > On 5/1/20 11:57 PM, Tom Rini wrote: > > On Fri, May 01, 2020 at 10:06:17PM +0200, Heinrich Schuchardt wrote: > > > >> Out documentation directory is doc/ and not docs/. > >> > >> Signed-off-by: Heinrich Schuchardt > > > > Appli

[PATCH 0/3] Move memtest configurations to Kconfig

2020-05-04 Thread Michal Simek
Hi, memtest configurations should be moved to Kconfig long time ago. This patchset is doing it. Thanks, Michal Ashok Reddy Soma (1): treewide: mem: Move mtest related defines to Kconfig Michal Simek (2): treewide: mem: Remove alternate memtest setup from Mox and x530 treewide: mem: Enabl

[PATCH 1/3] treewide: mem: Remove alternate memtest setup from Mox and x530

2020-05-04 Thread Michal Simek
The commit e89f8aae3d67 ("treewide: Migrate CONFIG_SYS_ALT_MEMTEST to Kconfig") setup correct dependency on MEMTEST that's why there is no reason to enable enable alternate memtest without mtest command. Signed-off-by: Michal Simek --- include/configs/turris_mox.h | 2 -- include/configs/x530.h

[PATCH 2/3] treewide: mem: Enable MEMTEST via defconfig

2020-05-04 Thread Michal Simek
There is no reason to enable MEMTEST from headers when was converted to Kconfig already. Signed-off-by: Michal Simek --- configs/ls1012afrwy_qspi_SECURE_BOOT_defconfig | 1 + configs/ls1012afrwy_qspi_defconfig | 1 + configs/ls1012afrwy_tfa_SECURE_BOOT_defconfig | 1 + configs/ls10

Re: Pull request: u-boot-rockchip-20200501

2020-05-04 Thread Tom Rini
On Sat, May 02, 2020 at 10:10:07AM +0800, Kever Yang wrote: > Hi Tom, > > Please pull the rockchip updates/fixes: > - dts clean up to use -u-boot for px30, rk3399 boards > - dts sycn from upstream kernel for rk3328, rk3399 > - add rockchip rng driver > - new board support: rk3328-roc-cc, rk3399-r

Re: [PATCH] net: pcnet: fix I/O primitives for memory access

2020-05-04 Thread Tom Rini
On Sun, May 03, 2020 at 07:43:32PM +0200, Daniel Schwierzeck wrote: > Commit 69529c912059 ("net: pcnet: Switch to PCI memory access") > switched from PCI IO access to PCI memory access without updating > the I/O primitives. Contrary to SH, the primitives for memory > access and IO access are imple

Re: [PATCH v5 1/4] omap: mmc: Avoid using libfdt with of-platdata

2020-05-04 Thread Simon Glass
Hi Bart, On Mon, 4 May 2020 at 01:10, Bartosz Golaszewski wrote: > > pt., 1 maj 2020 o 20:32 Tom Rini napisał(a): > > > > On Thu, Apr 30, 2020 at 01:43:30PM +0200, Bartosz Golaszewski wrote: > > > wt., 28 kwi 2020 o 09:01 Faiz Abbas napisał(a): > > > > > > > > +Bartosz > > > > > > > > On 28/04/

Re: [PATCH] image: Add support for ZSTD decompression

2020-05-04 Thread Tom Rini
On Sun, May 03, 2020 at 12:24:14PM +0200, Robert Marko wrote: > Hi, > > I checked and SPL_ZSTD symbol already exists. > But trying to use #if CONFIG_IS_ENABLED(ZSTD) inside > of the switch case will fail with the preprocessor error: > In file included from tools/common/image.c:1: Ah right, oops.

RE: [PATCH V2 1/9] uclass: cpu: Add new API to get udevice for current CPU

2020-05-04 Thread Peng Fan
Hi Simon, > Subject: Re: [PATCH V2 1/9] uclass: cpu: Add new API to get udevice for > current CPU > > Hi Peng, > > On Sun, 3 May 2020 at 07:14, Peng Fan wrote: > > > > Hi Simon, > > > > > Subject: Re: [PATCH V2 1/9] uclass: cpu: Add new API to get udevice > > > for current CPU > > > > > > Hi Pe

[PATCH V2 3/6] power: imx8-power-domain: Set DM_FLAG_DEFAULT_PD_CTRL_OFF flag

2020-05-04 Thread Peng Fan
From: Ye Li If without this flag, calling dev_power_domain_ctrl will iteratively remove the power domain device will causes iteratively power off parent PD. This is not expected by imx8-power-domain-legacy driver. Power off parent PD is controlled by the driver internally. So set DM_FLAG_DEFAULT

[PATCH V2 5/6] power: imx8: Check owned resource in power on

2020-05-04 Thread Peng Fan
From: Ye Li When fspi is assigned to M4, we have to let the fspi probe failed when its power domain is failed to power up. Because not all devices have power domain (for example, external devices on the board). Current checking resource owner in power domain probe is not good, change to check it

[PATCH V2 6/6] imx8: Replace SC_R_LAST with SC_R_NONE in DTB

2020-05-04 Thread Peng Fan
From: Leonard Crestez We are currently using SC_R_LAST as a marker for imx8 power domain tree nodes without a resource attached. This value is compiled into dtb as part of the linux build and used by uboot. The SC_R_LAST constant changes frequently as SCFW resources are added (by design) and eve

[PATCH V2 4/6] power: imx8: remove the resource owned check before power off

2020-05-04 Thread Peng Fan
For all the devices used and set ACTIVE in U-Boot, U-Boot needs to power off all of them without the check of resource owner. When we create software partition before booting Linux, the resource own checkw will return false, and cause the power domain not powered off. If without the check of resou

Re: [RFC PATCH 1/2] arch: x86: apl: Only load VBT if CONFIG_HAVE_VBT is enabled

2020-05-04 Thread Simon Glass
Hi Bernhard, On Thu, 30 Apr 2020 at 03:16, Bernhard Messerklinger wrote: > > Only load VBT if it's present in the u-boot.rom. > I think you can drop the RFC from this series. The approach seems good to me. Also, what APL boards have you tested with? > Signed-off-by: Bernhard Messerklinger >

Re: [RFC PATCH 2/2] arch: x86: apl: Use devicetree for FSP configuration

2020-05-04 Thread Simon Glass
Hi Bernhard, On Thu, 30 Apr 2020 at 03:16, Bernhard Messerklinger wrote: > > A the moment the FSP configuration is a mix of hard coded values and > devicetree properties. > This patch makes FSP-M and FSP-S full configurable from devicetree by > adding binding properties for all FSP parameters. >

[PATCH V2 2/6] imx8: power: Add PD device lookup interface to power domain uclass

2020-05-04 Thread Peng Fan
Add power_domain_lookup_name interface to power domain uclass to find a power domain device by its DTB node name, not using its associated client device. Through this interface, we can operate the power domain devices directly. This is needed for non-DM drivers. Modified from Ye's NXP downstream

[PATCH V2 1/6] dt-bindings: imx_rsrc: add SC_R_NONE

2020-05-04 Thread Peng Fan
Add SC_R_NONE entry Signed-off-by: Peng Fan --- V2: New For other patches in patchset, only patch 6 is changed. include/dt-bindings/soc/imx_rsrc.h | 1 + 1 file changed, 1 insertions(+) diff --git a/include/dt-bindings/soc/imx_rsrc.h b/include/dt-bindings/soc/imx_rsrc.h index 4870eb985b..9

Re: [PATCH V2 1/9] uclass: cpu: Add new API to get udevice for current CPU

2020-05-04 Thread Simon Glass
Hi Peng, On Sun, 3 May 2020 at 07:14, Peng Fan wrote: > > Hi Simon, > > > Subject: Re: [PATCH V2 1/9] uclass: cpu: Add new API to get udevice for > > current CPU > > > > Hi Peng, > > > > On Fri, 1 May 2020 at 07:22, Peng Fan wrote: > > > > > > When running on SoC with multiple clusters, the boot

[PATCH v2 10/10] config: Enable support for the XHCI controller on RPI4 board

2020-05-04 Thread Sylwester Nawrocki
From: Marek Szyprowski This requires enabling BRCMSTB PCIe and XHCI_PCI drivers as well as PCI and USB commands. To get it working one has to call the following commands: "pci enum; usb start;", thus such commands have been added to the default "preboot" environment variable. One has to update th

[PATCH v2 09/10] pci: Add driver for Broadcom STB PCIe controller

2020-05-04 Thread Sylwester Nawrocki
This patch adds basic driver for the Broadcom STB PCIe host controller. The code is based on Linux upstream driver (pcie-brcmstb.c) with MSI handling removed. The inbound access memory region is not currently parsed from dma-ranges DT property and a fixed 4GB region is used. The patch has been tes

[PATCH v2 07/10] linux/bitfield.h: Add primitives for manipulating bitfields both in host- and fixed-endian

2020-05-04 Thread Sylwester Nawrocki
From: Nicolas Saenz Julienne Imports Al Viro's original Linux commit 00b0c9b82663a, which contains an in depth explanation and two fixes from Johannes Berg: e7d4a95da86e0 "bitfield: fix *_encode_bits()", 37a3862e12382 "bitfield: add u8 helpers". Signed-off-by: Nicolas Saenz Julienne [s.nawroc

[PATCH v2 04/10] rpi4: shorten a mapping for the DRAM

2020-05-04 Thread Sylwester Nawrocki
From: Marek Szyprowski Remove the overlap between DRAM and device's IO area. Signed-off-by: Marek Szyprowski Signed-off-by: Sylwester Nawrocki Reviewed-by: Nicolas Saenz Julienne --- Changes since v1: - none. --- arch/arm/mach-bcm283x/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH v2 02/10] usb: xhci: Use only 32-bit accesses in xhci_writeq/xhci_readq

2020-05-04 Thread Sylwester Nawrocki
There might be hardware configurations where 64-bit data accesses to XHCI registers are not supported properly. This patch removes the readq/writeq so always two 32-bit accesses are used to read/write 64-bit XHCI registers, similarly as it is done in Linux kernel. This patch fixes operation of th

[PATCH v2 08/10] pci: Add some PCI Express capability register offset definitions

2020-05-04 Thread Sylwester Nawrocki
Add PCI Express capability definitions required by the Broadcom STB PCIe controller driver. Signed-off-by: Sylwester Nawrocki Reviewed-by: Bin Meng Reviewed-by: Nicolas Saenz Julienne --- Changes since v1: - none. Changes since RFC: - ensure the entries are added in order, sorted by ascending

[PATCH v2 06/10] rpi4: add a mapping for the PCIe XHCI controller MMIO registers (ARM 32bit)

2020-05-04 Thread Sylwester Nawrocki
From: Marek Szyprowski Create a non-cacheable mapping for the 0x6 physical memory region, where MMIO registers for the PCIe XHCI controller are instantiated by the PCIe bridge. Due to 32bit limit in the CPU virtual address space in ARM 32bit mode, this region is mapped at 0xff80 CPU v

[PATCH v2 05/10] rpi4: add a mapping for the PCIe XHCI controller MMIO registers (ARM 64bit)

2020-05-04 Thread Sylwester Nawrocki
From: Marek Szyprowski Create a non-cacheable mapping for the 0x6 physical memory region, where MMIO registers for the PCIe XHCI controller are instantiated by the PCIe bridge. Signed-off-by: Marek Szyprowski Signed-off-by: Sylwester Nawrocki Reviewed-by: Nicolas Saenz Julienne --- Ch

[PATCH v2 03/10] pci: Move some PCIe register offset definitions to a common header

2020-05-04 Thread Sylwester Nawrocki
Some PCI Express register offsets are currently defined in multiple drivers, move them to a common header to avoid re-definitions and as a pre-requisite for adding new PCIe driver. While at it replace some spaces with tabs. Signed-off-by: Sylwester Nawrocki Reviewed-by: Bin Meng Reviewed-by: Nic

[PATCH v2 01/10] usb: xhci: Add missing cache flush in the scratchpad array initialization

2020-05-04 Thread Sylwester Nawrocki
In current code there is no cache flush after initializing the scratchpad buffer array with the scratchpad buffer pointers. This leads to a failure of the "slot enable" command on the rpi4 board (Broadcom STB PCIe controller + VL805 USB hub) - the very first TRB transfer on the command ring fails a

[PATCH v2 00/10] USB host support for Raspberry Pi 4 board

2020-05-04 Thread Sylwester Nawrocki
Hi all, This patch series adds USB host support for Raspberry Pi 4 board. It includes the Broadcom STB PCIe controller driver ported from Linux kernel, a memory mapping update for the xHCI controller on PCIe bus for 32-bit and 64-bit system builds and some related fixes and updates in the usb/xh

[PATCH 2/4] kbuild: spl: Fix parallel build

2020-05-04 Thread Jan Kiszka
From: Jan Kiszka The dts dir must exists when running this rule. That missing dependency broke e.g. "make -j" for the am65x targets. Fixes: 2f57c95100f2 ("spl: dm: Make it possible for the SPL to pick its own DTB from a FIT") CC: Jean-Jacques Hiblot Signed-off-by: Jan Kiszka --- scripts/Mak

[PATCH 0/4] Various build dependency fixes

2020-05-04 Thread Jan Kiszka
See patches for details. Jan CC: Andrew F. Davis CC: Heinrich Schuchardt CC: Jan Kiszka CC: Jean-Jacques Hiblot Jan Kiszka (4): kbuild: efi: Avoid rebuilding efi targets kbuild: spl: Fix parallel build kbuild: spl: Add shrunk arch-dtbs to targets list kbuild: arm: Fix duplicate build

[PATCH 4/4] kbuild: arm: Fix duplicate builds of dtbs

2020-05-04 Thread Jan Kiszka
From: Jan Kiszka Build the secured board dtbs (.dtb_HS) as part of the regular dtb build on CONFIG_TI_SECURE_DEVICE targets. This avoids rebuilding them, possibly overwriting artifacts that are in use, as it is done so far. In the same run, fix needless rebuilding of the secured spl dtb. Fixes:

[PATCH 3/4] kbuild: spl: Add shrunk arch-dtbs to targets list

2020-05-04 Thread Jan Kiszka
From: Jan Kiszka This avoids needless rebuilding. Fixes: 2f57c95100f2 ("spl: dm: Make it possible for the SPL to pick its own DTB from a FIT") CC: Jean-Jacques Hiblot Signed-off-by: Jan Kiszka --- scripts/Makefile.spl | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sc

[PATCH 1/4] kbuild: efi: Avoid rebuilding efi targets

2020-05-04 Thread Jan Kiszka
From: Jan Kiszka Add a couple of missing targets so that helloworld and other efi targets are not needlessly rebuilt. CC: Heinrich Schuchardt Signed-off-by: Jan Kiszka --- lib/efi_loader/Makefile | 1 + scripts/Makefile.lib| 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/efi_loa

Re: [PATCH 10/13] imx: load calibration parameters from fuse for i.MX8MP

2020-05-04 Thread Fabio Estevam
Hi Peng, On Sun, May 3, 2020 at 8:39 PM Peng Fan wrote: > 5.4.3 upstream kernel + latest upstream boot? No, I meant imx_5.4.3_2.0.0 NXP kernel + latest upstream U-Boot. > Disable busfreq, try clk_ignore_unused? There is no way to disable busfreq from the NXP kernel. Passing clk_ignore_unused

[PATCH] drivers: crypto: mod_exp_sw: Re-add DM_FLAG_PRE_RELOC

2020-05-04 Thread Jan Kiszka
From: Jan Kiszka This driver is safe to use in SPL without relocation. Denying DM_FLAG_PRE_RELOC prevents its usability for verifying the main U-Boot or other artifacts from the SPL unless needless enabling the full driver set (SPL_OF_PLATDATA). Fixes: 17e117408571 ("drivers: crypto: rsa_mod_exp

[PATCH] drivers: net: fsl-mc: fixup msi-map property

2020-05-04 Thread Laurentiu Tudor
Similarly to iommu-map, the msi-map property must also be fixed up in the device tree, in order for the icid -> streamid translation be possible in the MSI case as well. Signed-off-by: Laurentiu Tudor --- drivers/net/fsl-mc/mc.c | 17 - 1 file changed, 16 insertions(+), 1 deletio

[PATCH v2 16/16] MAINTAINERS: update maintainers for broadcom ns3 platform

2020-05-04 Thread Rayagonda Kokatanur
Update MAINTAINERS for broadcom ns3 platform (TARGET_NS3). Signed-off-by: Rayagonda Kokatanur --- MAINTAINERS | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 66f0b07263..507cd1e0cf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[PATCH v2 14/16] include/configs: ns3: add env variables for Linux boot

2020-05-04 Thread Rayagonda Kokatanur
From: Bharat Gooty Add env variables and commands for booting Linux. Signed-off-by: Bharat Gooty Signed-off-by: Rayagonda Kokatanur --- include/configs/bcm_ns3.h | 366 ++ 1 file changed, 366 insertions(+) diff --git a/include/configs/bcm_ns3.h b/include/c

[PATCH v2 13/16] board: ns3: limit U-boot relocation within 16MB memory

2020-05-04 Thread Rayagonda Kokatanur
From: Bharat Kumar Reddy Gooty By default re-location happens to higher address of DDR, i.e, DDR start + DDR size. Limit re-location to happen within 16MB memory, start 0xFF00_ and end 0x1__ Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Rayagonda Kokatanur --- board/broa

[PATCH v2 15/16] include/configs: ns3: add support for flashing images

2020-05-04 Thread Rayagonda Kokatanur
From: Bharat Gooty Add support for flashing images into QSPI and eMMC. Signed-off-by: Bharat Gooty Signed-off-by: Rayagonda Kokatanur --- include/configs/bcm_ns3.h | 491 +- 1 file changed, 490 insertions(+), 1 deletion(-) diff --git a/include/configs/bcm_

[PATCH v2 12/16] board: ns3: define ddr memory layout

2020-05-04 Thread Rayagonda Kokatanur
Add both DRAM banks memory information and the corresponding MMU page table mappings. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Rayagonda Kokatanur --- arch/arm/dts/ns3-board.dts | 23 ++ board/broadcom/bcmns3/ns3.c | 83 +++-- configs/bcm_n

[PATCH v2 11/16] dt-bindings: memory: ns3: add ddr memory definition

2020-05-04 Thread Rayagonda Kokatanur
Add ddr memory definitions. Signed-off-by: Rayagonda Kokatanur --- include/dt-bindings/memory/bcm-ns3-mc.h | 30 - 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/memory/bcm-ns3-mc.h b/include/dt-bindings/memory/bcm-ns3-mc.h index d6e771

[PATCH v2 08/16] dt-bindings: memory: ns3: update GIC LPI address

2020-05-04 Thread Rayagonda Kokatanur
Update NS3 GIC LPI address. Signed-off-by: Rayagonda Kokatanur --- include/dt-bindings/memory/bcm-ns3-mc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/memory/bcm-ns3-mc.h b/include/dt-bindings/memory/bcm-ns3-mc.h index b4f78584a5..d6e7717ba2 100644 --- a/include/d

[PATCH v2 10/16] configs: ns3: enable GIC ITS LPI table programing

2020-05-04 Thread Rayagonda Kokatanur
Enables the GIC_V3 ITS LPI configuration table and LPI table. Signed-off-by: Rayagonda Kokatanur Signed-off-by: Bharat Kumar Reddy Gooty --- configs/bcm_ns3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index 7e51a926f7..040e

[PATCH v2 09/16] board: ns3: program GIC LPI tables

2020-05-04 Thread Rayagonda Kokatanur
U-boot programs the GIC LPI configuration tables and enables the LPI table. Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Rayagonda Kokatanur --- board/broadcom/bcmns3/ns3.c | 12 include/configs/bcm_ns3.h | 6 ++ 2 files changed, 18 insertions(+) diff --git a/boar

[PATCH v2 07/16] board: ns3: default reset type to L3

2020-05-04 Thread Rayagonda Kokatanur
Default "reset" from u-boot to L3 reset. "reset" command with argument will trigger L1 reset. Signed-off-by: Rajesh Ravi Signed-off-by: Bharat Kumar Reddy Gooty Signed-off-by: Rayagonda Kokatanur --- board/broadcom/bcmns3/ns3.c | 20 ++-- 1 file changed, 18 insertions(+), 2 del

[PATCH v2 04/16] arm: dts: ns3: add clock dt node

2020-05-04 Thread Rayagonda Kokatanur
Add clock dt node for ns3. Signed-off-by: Rayagonda Kokatanur --- arch/arm/dts/ns3-clock.dtsi | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 arch/arm/dts/ns3-clock.dtsi diff --git a/arch/arm/dts/ns3-clock.dtsi b/arch/arm/dts/ns3-clock.dtsi new file

[PATCH v2 03/16] configs: ns3: enable clock subsystem

2020-05-04 Thread Rayagonda Kokatanur
Enable clock subsystem for ns3. Signed-off-by: Rayagonda Kokatanur --- configs/bcm_ns3_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index a81541e394..7e51a926f7 100644 --- a/configs/bcm_ns3_defconfig +++ b/configs/bcm_ns3_d

[PATCH v2 05/16] dt-bindings: memory: ns3: add memory definitions

2020-05-04 Thread Rayagonda Kokatanur
Add NS3 memory definitions. Signed-off-by: Rayagonda Kokatanur --- include/dt-bindings/memory/bcm-ns3-mc.h | 34 + 1 file changed, 34 insertions(+) create mode 100644 include/dt-bindings/memory/bcm-ns3-mc.h diff --git a/include/dt-bindings/memory/bcm-ns3-mc.h b/include

[PATCH v2 06/16] board: ns3: add api to save boot parameters passed from BL31

2020-05-04 Thread Rayagonda Kokatanur
From: Abhishek Shah Add API to save boot parameters passed from BL31 Use assembly implementation of save_boot_params instead of c function. Because generally ATF does not set up SP_EL2 on exiting. Thus, usage of a C function immediately after exiting with no stack setup done by ATF explicitly, m

[PATCH v2 00/16] add initial support for broadcom NS3 soc

2020-05-04 Thread Rayagonda Kokatanur
This patch series adds initial support for Broadcom Northstar 3 SoC. NS3 is a octo-core 64-bit ARMv8 Cortex-A72 processors targeting a broad range of networking applications. Changes from v1: -Address review comments from Marek Vasut, Split the series into samller and logical series like core,

[PATCH v2 01/16] board: ns3: add support for Broadcom Northstar 3

2020-05-04 Thread Rayagonda Kokatanur
Add support for Broadcom Northstar 3 SoC. NS3 is a octo-core 64-bit ARMv8 Cortex-A72 processors targeting a broad range of networking applications. Signed-off-by: Rayagonda Kokatanur --- arch/arm/Kconfig | 10 ++ arch/arm/dts/Makefile | 2 ++ arch/arm/dts/ns3-board.dt

[PATCH v2 02/16] arm: cpu: armv8: add L3 memory flush support

2020-05-04 Thread Rayagonda Kokatanur
Add L3 memory flush support for NS3. Signed-off-by: Rayagonda Kokatanur --- arch/arm/cpu/armv8/Makefile | 1 + arch/arm/cpu/armv8/bcmns3/Makefile | 5 ++ arch/arm/cpu/armv8/bcmns3/lowlevel.S | 90 3 files changed, 96 insertions(+) create mode 100644 arc

Re: [PULL] u-boot-sh/next network cleanup part 1

2020-05-04 Thread Marek Vasut
On 5/4/20 1:27 PM, Tom Rini wrote: > On Fri, May 01, 2020 at 05:54:04PM +0200, Marek Vasut wrote: > >> This is part 1 of big network cleanup / DM conversion. >> The dc2114x/rtl8139/pcnet/tulip PCI adapter drivers received checkpatch >> cleanups in preparation for DM conversion. The smc911x is conv

Re: [PULL] u-boot-sh/next network cleanup part 1

2020-05-04 Thread Tom Rini
On Fri, May 01, 2020 at 05:54:04PM +0200, Marek Vasut wrote: > This is part 1 of big network cleanup / DM conversion. > The dc2114x/rtl8139/pcnet/tulip PCI adapter drivers received checkpatch > cleanups in preparation for DM conversion. The smc911x is converted to > DM completely. The dwc_eth_qos

Re: [PATCH V2] mkimage: fit: Do not tail-pad fitImage with external data

2020-05-04 Thread Tom Rini
On Fri, May 01, 2020 at 05:40:25PM +0200, Marek Vasut wrote: > There is no reason to tail-pad fitImage with external data to 4-bytes, > while fitImage without external data does not have any such padding and > is often unaligned. DT spec also does not mandate any such padding. > > Moreover, the t

[PATCH 1/2] arm64: armada-37xx: dts: sync armada-3720-espressobin.dts with u-boot-marvell

2020-05-04 Thread Peter Vollmer
from https://github.com/MarvellEmbeddedProcessors/u-boot-marvell/blob/u-boot-2018.03-armada-18.12/arch/arm/dts/armada-3720-espressobin.dts fix comphy mode settings for USB3 (working) fix comphy mode setting for network (working) fix comphy mode setting for SATA (not yet working) add config for SD

[PATCH 2/2] arm: mvebu: ds414: define CONFIG_SYS_U_BOOT_OFFS

2020-05-04 Thread Ezra Buehler
Without CONFIG_SYS_U_BOOT_OFFS set to CONFIG_SYS_SPI_U_BOOT_OFFS, U-Boot will be located at address 0x16000. SPL will load its payload from 0x24000 causing the boot to hang. Signed-off-by: Ezra Buehler --- include/configs/ds414.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/con

AW: sd-card is not working on espressobin

2020-05-04 Thread Moritz Berghof
Hi Stefan, thanks for the information. I tested the patchset already, it works. The Patchset comes also from me. Peter V. and I work together on this espressobin topic. Thanks, -- Moritz Berghof Software Engineer Tel. +49 30 921028-209 Fax +49 30 921028-020 mberg...@phoenixcontact.com www.pho

[PATCH 2/2] arm64: armada-37xx: espressobin: enable SD card and network

2020-05-04 Thread Peter Vollmer
activate MMC_BROKEN_CD because drivers/mmc/mvebu_mmc.c does not yet follow the driver model, so the card detection GPIO is not polled. activate network switch, tested with bootp and random MAC generation Signed-off-by: Peter Vollmer --- configs/mvebu_espressobin-88f3720_defconfig | 4 +++- 1 fi

[PATCH 0/2] fixes for basic espressobin support

2020-05-04 Thread Peter Vollmer
With current u-boot mainline espressobin is not working: - SATA causes synchronous abort on startup - USB3, SD card, EMMC flash and ethernet are not working out of the box This patch series fixes above (with SATA not yet working) and makes espressobin usable again with mainline u-boot, based on t

[PATCH 1/2] arm: mvebu: armada-370-xp.dtsi: add u-boot, dm-pre-reloc to spi0

2020-05-04 Thread Ezra Buehler
Without this U-Boot-specific property, the Synology DS414/DS214+ fails in SPL. As the spi0 node was not scanned the SPI flash cannot be found. Signed-off-by: Ezra Buehler --- arch/arm/dts/armada-370-xp.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/armada-370-xp.dtsi b/arc

[PATCH 0/2] Fix boot from SPI flash on Synology DS414

2020-05-04 Thread Ezra Buehler
Booting from SPI flash on Synology DS414 (or DS214+) devices has been broken for quite some time now. As far as I can tell this is due to following commits: 3c265bbe4d rm: sync armada-xp dts files from Linux 5.0 7ddf8cfb0d kwbimage: Rename CONFIG_SYS_SPI_U_BOOT_OFFS to CONFIG_SYS_U_BOOT_OFFS

[PATCH] cache: l2x0: Fix missing write to Auxiliary Control Register

2020-05-04 Thread Ley Foon Tan
commit f62782fb2999 ("cache: l2x0: Fix write to incorrect shared-override bit") Commit above removed writel to regs->pl310_aux_ctrl by accidentally, restore it back. Signed-off-by: Ley Foon Tan --- drivers/cache/cache-l2x0.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cache/ca

[PATCH 1/1] test: stabilize test_efi_secboot

2020-05-04 Thread Heinrich Schuchardt
When setting up the console via function efi_console_register() we call query_console_serial(). This functions sends an escape sequence to the terminal to query the display size. The response is another escape sequence. console.run_command_list() is looking for a regular expression '^==>'. If the

[PATCH] MAINTAINERS: add QorIQ DPAA

2020-05-04 Thread Madalin Bucur
Add entries for the QorIQ DPAA related files - the DPAA FMan Ethernet driver and the QorIQ ARM DPAA device tree include files. Signed-off-by: Madalin Bucur --- This was included in v3 of the DPAA DM patches but, as v1 was merged, it was left out, resending. MAINTAINERS | 6 ++ 1 file change

[PATCH] driver: net: fm: minor fix in DM ETH support

2020-05-04 Thread Madalin Bucur
Bus callback functions for read/write/reset need to be set only for DM_ETH, moving endif a bit lower. Signed-off-by: Madalin Bucur --- As v1 of the patches were merged, this change made in v3 needs to be merged on its own. drivers/net/fm/eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: What is the right way to run fw_setenv for selecting different ECC or dtb files?

2020-05-04 Thread Jupiter
Could anyone please advise how to set up dtb? In running uuu, I can set up "SDP: write -f imx6ulz-kobs.dtb -addr 0x9000", but how can I change to different dtb calling fw_setenv? Thank you and appreciate it. Kind regards, - jh On 5/3/20, Jupiter wrote: > Hi, > > To flash u-boot to iMX6ULL

Re: [PATCH v3 3/5] net: phy: Add helper routines to set and clear bits

2020-05-04 Thread Michal Simek
On 30. 04. 20 18:30, Dan Murphy wrote: > Add phy_set/clear_bit helper routines so that ported drivers from the > kernel can use these functions. > > Signed-off-by: Dan Murphy > --- > include/phy.h | 54 +++ > 1 file changed, 54 insertions(+) > > d

Re: [PATCH v3 4/5] net: phy: Add support for TI PHY init

2020-05-04 Thread Michal Simek
On 30. 04. 20 18:30, Dan Murphy wrote: > ti_phy_init function was allocated to the DP83867 PHY. This function > name is to generic for a specific PHY. The function can be moved to a > TI specific file that can register all TI PHYs that are defined in the > defconfig. The ti_phy_init file will co

Re: [PATCH v3 2/5] net: phy: Fix kernel doc issues in phy.h

2020-05-04 Thread Michal Simek
On 30. 04. 20 18:30, Dan Murphy wrote: > Fix kernel doc warnings in phy.h. Mostly the warnings were due to the > return missing the semi-colon. > > Signed-off-by: Dan Murphy > --- > include/phy.h | 19 --- > 1 file changed, 8 insertions(+), 11 deletions(-) > > diff --git a/incl

<    1   2   3   >