Re: [PATCH v9 11/18] clk: sifive: fu540-prci: release ethernet clock reset

2020-05-12 Thread Jagan Teki
On Wed, May 13, 2020 at 11:57 AM Pragnesh Patel wrote: > > Release ethernet clock reset Please add a detailed commit message of why the ethernet clock is resetting in SPL code since ethernet won't need for SPL at all? Jagan.

Re: [PATCH v3 15/17] mtd: spi-nor-core: Perform a Soft Reset on boot

2020-05-12 Thread Jagan Teki
On Mon, Mar 30, 2020 at 9:16 PM Pratyush Yadav wrote: > > When the flash is handed to us in a stateful mode like 8D-8D-8D, it is > difficult to detect the mode the flash is in. One option is to read SFDP > in all modes and see which one gives the correct "SFDP" signature, but > not all flashes sup

Re: [PATCH v3 14/17] mtd: spi-nor-core: Perform a Soft Reset on shutdown

2020-05-12 Thread Jagan Teki
On Mon, Mar 30, 2020 at 9:16 PM Pratyush Yadav wrote: > > On probe, the SPI NOR core will put a flash in 8D-8D-8D mode if it > supports it. But Linux as of now expects to get the flash in 1S-1S-1S > mode. Handing the flash to Linux in Octal DTR mode means the kernel will > fail to detect the flash

[PATCH v9 18/18] doc: sifive: fu540: Add description for OpenSBI generic platform

2020-05-12 Thread Pragnesh Patel
OpenSBI generic platform support provides platform specific functionality based on the FDT passed by previous booting stage. Depends on OpenSBI commit: platform: Add generic FDT based platform support (sha1: f1aa9e54e6ae70aeac638d5b75093520f65d) Signed-off-by: Pragnesh Patel --- doc/board/s

[PATCH v9 16/18] sifive: fu540: Add U-Boot proper sector start

2020-05-12 Thread Pragnesh Patel
From: Jagan Teki Add U-Boot proper sector start offset for SiFive FU540. This value is based on the partition layout supported by SiFive FU540. u-boot.itb need to write on this specific offset so-that the SPL will retrieve it from here and load. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng

[PATCH v9 17/18] configs: fu540: Add config options for U-Boot SPL

2020-05-12 Thread Pragnesh Patel
With sifive_fu540_defconfig: User can use FSBL or u-boot-spl.bin anyone at a time. For FSBL, fsbl->fw_payload.bin (opensbi + U-Boot) For u-boot-spl.bin, u-boot-spl.bin->FIT image (opensbi + U-Boot proper + dtb) U-Boot SPL will be loaded by ZSBL from SD card (replace fsbl.bin with u-boot-spl.bin

[PATCH v9 12/18] riscv: dts: sifive: Sync hifive-unleashed-a00 dts from linux

2020-05-12 Thread Pragnesh Patel
This sync has changes required to use GPIO in U-Boot and U-Boot SPL. Sync dts from linux v5.7-rc2 commit: "riscv: dts: Add GPIO reboot method to HiFive Unleashed DTS file" (sha1: 0a91330b2af9f71cd483f92774182b58f6d9) Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng --- arch/riscv/dts/fu

[PATCH v9 13/18] riscv: cpu: fu540: Add support for cpu fu540

2020-05-12 Thread Pragnesh Patel
Add SiFive fu540 cpu to support RISC-V arch Signed-off-by: Pragnesh Patel --- arch/riscv/Kconfig | 1 + arch/riscv/cpu/fu540/Kconfig | 15 ++ arch/riscv/cpu/fu540/Makefile| 7 + arch/riscv/cpu/fu540/cpu.c | 22

[PATCH v9 15/18] sifive: fu540: Add sample SD gpt partition layout

2020-05-12 Thread Pragnesh Patel
From: Jagan Teki This is a sample GPT partition layout for SD card, right now three important partitions are added to make the system bootable. partition layout: PartStart LBA End LBA Name Attributes Type GUID Partition GUID 1 0x0022 0x00

[PATCH v9 14/18] riscv: sifive: fu540: add SPL configuration

2020-05-12 Thread Pragnesh Patel
Add a support for SPL which will boot from L2 LIM (0x0800_) and then SPL will boot U-Boot FIT image (OpenSBI FW_DYNAMIC + u-boot.bin) from MMC boot devices. SPL related code is leveraged from FSBL (https://github.com/sifive/freedom-u540-c000-bootloader.git) Signed-off-by: Pragnesh Patel Revi

[PATCH v9 08/18] riscv: sifive: dts: fu540: add U-Boot dmc node

2020-05-12 Thread Pragnesh Patel
Add dmc node to enable ddr driver. dmc is used to initialize the memory controller. Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- arch/riscv/dts/fu540-c000-u-boot.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/riscv/dts/fu540-c000-u-boot.dt

[PATCH v9 11/18] clk: sifive: fu540-prci: release ethernet clock reset

2020-05-12 Thread Pragnesh Patel
Release ethernet clock reset Signed-off-by: Pragnesh Patel --- drivers/clk/sifive/fu540-prci.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/clk/sifive/fu540-prci.c b/drivers/clk/sifive/fu540-prci.c index f26a370a64..45491a77d5 100644 --- a/drivers/clk/sifive/

[PATCH v9 07/18] sifive: dts: fu540: Add DDR controller and phy register settings

2020-05-12 Thread Pragnesh Patel
Add DDR controller and phy register settings, taken from fsbl (https://github.com/sifive/freedom-u540-c000-bootloader.git) Signed-off-by: Pragnesh Patel --- .../dts/fu540-hifive-unleashed-a00-ddr.dtsi | 1489 + 1 file changed, 1489 insertions(+) create mode 100644 arch/riscv/d

[PATCH v9 10/18] clk: sifive: fu540-prci: Add ddr clock initialization

2020-05-12 Thread Pragnesh Patel
Release ddr clock reset Signed-off-by: Pragnesh Patel --- drivers/clk/sifive/fu540-prci.c | 51 + 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/drivers/clk/sifive/fu540-prci.c b/drivers/clk/sifive/fu540-prci.c index bf06c3a3bb..f26a370a64 100644 -

[PATCH v9 09/18] clk: sifive: fu540-prci: Add clock enable and disable ops

2020-05-12 Thread Pragnesh Patel
Added clock enable and disable functions in prci ops Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- drivers/clk/sifive/fu540-prci.c | 108 1 file changed, 96 insertions(+), 12 deletions(-) diff --git a/drivers/clk/sifive/fu540-prci

[PATCH v9 05/18] riscv: sifive: dts: fu540: Add board -u-boot.dtsi files

2020-05-12 Thread Pragnesh Patel
Devicetree files in FU540 platform is synced from Linux, like other platforms does. Apart from these U-Boot in FU540 would also require some U-Boot specific node like clint. So, create board specific -u-boot.dtsi files. This would help of maintain U-Boot specific changes separately without touchin

[PATCH v9 06/18] sifive: fu540: add ddr driver

2020-05-12 Thread Pragnesh Patel
Add driver for fu540 to support ddr initialization in SPL. This driver is based on FSBL (https://github.com/sifive/freedom-u540-c000-bootloader.git) Signed-off-by: Pragnesh Patel --- board/sifive/fu540/Kconfig | 2 + drivers/ram/Kconfig| 1 + drivers/ram/Makefile |

[PATCH v9 04/18] lib: Makefile: build crc7.c when CONFIG_MMC_SPI

2020-05-12 Thread Pragnesh Patel
When build U-Boot SPL, meet an issue of undefined reference to 'crc7' for drivers/mmc/mmc_spi.c, so let's compile crc7.c when CONFIG_MMC_SPI selected. Signed-off-by: Pragnesh Patel --- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile in

[PATCH v9 03/18] riscv: Add _image_binary_end for SPL

2020-05-12 Thread Pragnesh Patel
For SPL_SEPARATE_BSS, Device tree will be put at _image_binary_end Signed-off-by: Pragnesh Patel Reviewed-by: Anup Patel Reviewed-by: Jagan Teki Reviewed-by: Bin Meng Tested-by: Bin Meng --- arch/riscv/cpu/u-boot-spl.lds | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/cpu/u-bo

[PATCH v9 02/18] riscv: sifive: fu540: Use OTP DM driver for serial environment variable

2020-05-12 Thread Pragnesh Patel
Use the OTP DM driver to set the serial environment variable. Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- arch/riscv/dts/fu540-c000-u-boot.dtsi | 14 +++ .../dts/hifive-unleashed-a00-u-boot.dtsi | 2 + board/sifive/fu540/Kconfig

[PATCH v9 01/18] misc: add driver for the SiFive otp controller

2020-05-12 Thread Pragnesh Patel
Added a misc driver to handle OTP memory in SiFive SoCs. Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- drivers/misc/Kconfig | 7 + drivers/misc/Makefile | 1 + drivers/misc/sifive-otp.c | 273 ++ 3 files changed, 28

[PATCH v9 00/18] RISC-V SiFive FU540 support SPL

2020-05-12 Thread Pragnesh Patel
This series add support for SPL to FU540. U-Boot SPL can boot from L2 LIM (0x0800_) and jump to OpenSBI(FW_DYNAMIC firmware) and U-Boot proper from MMC devices. This series depends on: [1] https://patchwork.ozlabs.org/patch/1281853 [2] https://patchwork.ozlabs.org/patch/1281852 All these toge

Re: [PATCH 2/5 v2] efi_loader: Implement EFI variable handling via OP-TEE

2020-05-12 Thread Heinrich Schuchardt
On 5/11/20 8:14 PM, Ilias Apalodimas wrote: > In OP-TEE we can run EDK2's StandAloneMM on a secure partition. > StandAloneMM is responsible for the UEFI variable support. In > combination with OP-TEE and it's U-Boot supplicant, variables are > authenticated/validated in secure world and stored on a

Re: [ANN] U-Boot v2020.07-rc2 released

2020-05-12 Thread Heiko Schocher
Hello Heinrich, Am 13.05.2020 um 07:53 schrieb Heinrich Schuchardt: On 5/13/20 5:54 AM, Heiko Schocher wrote: Hello Tom, Am 12.05.2020 um 15:28 schrieb Heiko Schocher: Hello Tom, Am 12.05.2020 um 00:28 schrieb Tom Rini: Hey all, It's release day and I've tagged v2020.07-rc2.  At this point

Re: [ANN] U-Boot v2020.07-rc2 released

2020-05-12 Thread Heinrich Schuchardt
On 5/13/20 5:54 AM, Heiko Schocher wrote: > Hello Tom, > > Am 12.05.2020 um 15:28 schrieb Heiko Schocher: >> Hello Tom, >> >> Am 12.05.2020 um 00:28 schrieb Tom Rini: >>> Hey all, >>> >>> It's release day and I've tagged v2020.07-rc2.  At this point out we >>> should be seeing stabilization, clean-

[PATCH] MAINTAINERS: POWERPC MPC8XX: Update email address

2020-05-12 Thread Christophe Leroy
Our email addresses have changed from @c-s.fr to @csgroup.eu Update entry in MAINTAINERS Signed-off-by: Christophe Leroy --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index ec59ce8b8802..d67112479700 100644 --- a/MAINTAINERS +++ b/

Re: [ANN] U-Boot v2020.07-rc2 released

2020-05-12 Thread Heiko Schocher
Hello Tom, Am 12.05.2020 um 15:28 schrieb Heiko Schocher: Hello Tom, Am 12.05.2020 um 00:28 schrieb Tom Rini: Hey all, It's release day and I've tagged v2020.07-rc2.  At this point out we should be seeing stabilization, clean-up and localized new features. Once again, for a changelog, git lo

Re: [PATCH 1/1] tools: ftdgrep: use /* fallthrough */ as needed

2020-05-12 Thread Tom Rini
On Mon, May 11, 2020 at 09:08:03PM +0200, Heinrich Schuchardt wrote: > On 5/11/20 8:40 PM, Tom Rini wrote: > > On Sun, May 10, 2020 at 10:12:07PM +0900, Masahiro Yamada wrote: > >> On Sun, May 10, 2020 at 12:12 AM Heinrich Schuchardt > >> wrote: > >>> > >>> GCC recognizes /* fallthrough */ if -Wi

Re: [PATCH v1 2/2] drivers: pcie: add Broadcom IPROC PCIe RC driver

2020-05-12 Thread Simon Glass
Hi Rayagonda, On Tue, 12 May 2020 at 02:00, Rayagonda Kokatanur wrote: > > From: Srinath Mannam > > Add support for IPROC PAXC PCIe RC driver. > > Signed-off-by: Srinath Mannam > Signed-off-by: Rayagonda Kokatanur > --- > drivers/pci/Kconfig |7 + > drivers/pci/Makefile |1 +

Re: [PATCH v1 2/2] drivers: pcie: add Broadcom IPROC PCIe RC driver

2020-05-12 Thread Rayagonda Kokatanur
Hi Simon, On Wed, May 13, 2020 at 7:56 AM Simon Glass wrote: > > Hi Rayagonda, > > On Tue, 12 May 2020 at 02:00, Rayagonda Kokatanur > wrote: > > > > From: Srinath Mannam > > > > Add support for IPROC PAXC PCIe RC driver. > > > > Signed-off-by: Srinath Mannam > > Signed-off-by: Rayagonda Kokat

Re: [PATCH v1 2/2] drivers: pcie: add Broadcom IPROC PCIe RC driver

2020-05-12 Thread Simon Glass
Hi Rayagonda, On Tue, 12 May 2020 at 02:00, Rayagonda Kokatanur wrote: > > From: Srinath Mannam > > Add support for IPROC PAXC PCIe RC driver. > > Signed-off-by: Srinath Mannam > Signed-off-by: Rayagonda Kokatanur > --- > drivers/pci/Kconfig |7 + > drivers/pci/Makefile |1 +

Re: [PATCH v1 1/2] drivers: pci: add api to get dma regions

2020-05-12 Thread Simon Glass
Hi Rayagonda, On Tue, 12 May 2020 at 02:00, Rayagonda Kokatanur wrote: > > Add api to get dma regions. > > Signed-off-by: Rayagonda Kokatanur > --- > drivers/pci/pci-uclass.c | 42 > include/pci.h| 3 ++- > 2 files changed, 44 insertions(+),

Re: [PPC] Internet connection on qemu-ppce500

2020-05-12 Thread kosai1111
It goes without saying, that the satellite broadband often costs more than fixed line broadband deals and set up costs are between £100 to £400. Prices for satellite broadband tend to vary between £20 per month to £100 per month. Satellite broadband deals also often have restrictive download limits

Re: [PATCH v4 12/16] usb: dwc3: add make compatible for rockchip platform

2020-05-12 Thread Frank Wang
Hi Marek, On 2020/5/12 15:26, Marek Vasut wrote: On 5/12/20 3:08 AM, Frank Wang wrote: Hi Marek, On 2020/5/11 17:48, Marek Vasut wrote: On 5/11/20 9:57 AM, Frank Wang wrote: [...] @@ -394,6 +407,12 @@ static int dwc3_glue_probe(struct udevice *dev)   if (ret)   return ret;  

Re: U-CLASS SPI Bus and Devices

2020-05-12 Thread Rudolf J Streif
Hi Simon, Thanks for your response. On 5/7/20 6:36 PM, Simon Glass wrote: > Hi Rudolf, > > On Wed, 18 Mar 2020 at 05:25, Rudolf J Streif > wrote: >> I ran into an issue today with a U-CLASS SPI NOR flash device on a NXP >> FlexSPI controller. U-Boot started correctly from the flash device but >

Re: Antwort: Re: [PATCH v2 00/35] dm: Add programmatic generation of ACPI tables (part B)

2020-05-12 Thread Simon Glass
Hi Andy, On Tue, 12 May 2020 at 06:32, Andy Shevchenko wrote: > > On Tue, May 12, 2020 at 01:55:49PM +0200, Wolfgang Wallner wrote: > > > > Since you were involved a lot in the discussion in the part A series, > > > would you please let me know if you get some time to review this? > > > > Unfortu

Re: [PATCH 1/4] clk: clk-imx8mm: Add flexspi clock and fix set parent

2020-05-12 Thread Fabio Estevam
Hi Peng, On Sun, May 3, 2020 at 9:37 AM Peng Fan wrote: > > From: Ye Li > > Add flexspi relevant clocks, and fix set parent clock, so we can These are two different changes, which should be addressed by two separate patches. Thanks

Re: [PATCH 1/4] clk: clk-imx8mm: Add flexspi clock and fix set parent

2020-05-12 Thread Adam Ford
On Sun, May 3, 2020 at 7:37 AM Peng Fan wrote: > > From: Ye Li > > Add flexspi relevant clocks, and fix set parent clock, so we can > assign clocks through DTB In one place it's called flexspi, but in two other places it's called QSPI. I recognize that the FlexSPI is controlling a quad-spi no

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

2020-05-12 Thread Tom Rini
On Tue, May 12, 2020 at 08:39:16PM +0200, Marek Vasut wrote: > The following changes since commit 2a38d2239d0bb4d128b00886bf097ab247a0b1a7: > > Prepare v2020.07-rc2 (2020-05-11 18:28:19 -0400) > > are available in the Git repository at: > > git://git.denx.de/u-boot-usb.git master > > for y

[PATCH] phy: sun4i-usb: Align H6 initialization logic with the kernel

2020-05-12 Thread Roman Stratiienko
H6 SOC needs additional initialization of PHY registers. Corresponding changes can be found in the kernel patch [1]. Without this changes there is no enumeration of 'musb' gadget. [1] - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ae409cc7c3cdb9ac4a1dba3eae70efec

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

2020-05-12 Thread Jim Quinlan
On Tue, May 12, 2020 at 12:42 PM Sylwester Nawrocki wrote: > > Hi Jim, > > On 08.05.2020 16:25, Jim Quinlan wrote: > static int brcm_pcie_probe(struct udevice *dev) > +{ > + struct udevice *ctlr = pci_get_controller(dev); > + struct pci_controller *hose = dev_get_uc

Re: raspberrypi cm3 v2019.07 not working

2020-05-12 Thread Belisko Marek
On Tue, May 12, 2020 at 1:51 PM Matthias Brugger wrote: > > > > On 12/05/2020 13:39, Matthias Brugger wrote: > > > > > > On 12/05/2020 13:36, Belisko Marek wrote: > >> On Tue, May 12, 2020 at 1:16 PM Matthias Brugger > >> wrote: > >>> > >>> > >>> > >>> On 12/05/2020 13:00, Belisko Marek wrote: >

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread Tom Rini
On Tue, May 12, 2020 at 05:39:46PM +0100, André Przywara wrote: > On 12/05/2020 16:09, Tom Rini wrote: > > Hi, > > > On Tue, May 12, 2020 at 03:53:55PM +0100, André Przywara wrote: > >> On 12/05/2020 15:25, Tom Rini wrote: > >>> On Tue, May 12, 2020 at 03:18:33PM +0100, André Przywara wrote: > >>

Re: [PULL u-boot] Please pull u-boot-amlogic-20200511

2020-05-12 Thread Tom Rini
On Tue, May 12, 2020 at 11:26:52AM +0200, Neil Armstrong wrote: > Hi Tom, > > This PR enables adds GPIO Open-Drain/Open-Source emulation in GPIO uclass > and finally enables USB Host support for the Odroid-C2 board. > > The CI job is at > https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic/

[PULL] u-boot-usb/master

2020-05-12 Thread Marek Vasut
The following changes since commit 2a38d2239d0bb4d128b00886bf097ab247a0b1a7: Prepare v2020.07-rc2 (2020-05-11 18:28:19 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to 648856ac19ea528ecdc3788a638e080c33256a3c: usb: dwc3

Re: [PATCH][v4 6/6] board: tbs2910: add documentation

2020-05-12 Thread Soeren Moch
On 09.05.20 19:59, Denis 'GNUtoo' Carikli wrote: > On Sun, 1 Mar 2020 14:59:23 +0100 > Soeren Moch wrote: > >> To ease the review process it is good style to add a patch revision >> history below the sign-off after a "---" separator. This would look >> like --- >> changes in v4: >>  - bla > I u

[RESEND PATCH v3 6/9] linux/bitfield.h: Add primitives for manipulating bitfields both in host- and fixed-endian

2020-05-12 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 v3 8/9] pci: Add driver for Broadcom BCM2711 SoC PCIe controller

2020-05-12 Thread Sylwester Nawrocki
This patch adds basic driver PCI Express controller found on Broadcom set-top-box SoCs, e.g. BCM2711. 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 3GB region is

[PATCH v3 9/9] configs: Enable support for the XHCI controller on RPI4 board (ARM 64-bit)

2020-05-12 Thread Sylwester Nawrocki
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 their environment if it is

[PATCH v3 7/9] pci: Add some PCI Express capability register offset definitions

2020-05-12 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 v2: - added Current Link Speed defines. Changes since v1: - none. Changes since RFC: - ens

[PATCH v3 5/9] rpi4: add a mapping for the PCIe XHCI controller MMIO registers (ARM 64bit)

2020-05-12 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 v3 3/9] pci: Move some PCIe register offset definitions to a common header

2020-05-12 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 v3 6/9] linux/bitfield.h: Add primitives for manipulating bitfields both in host- and fixed-endian

2020-05-12 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 v3 4/9] rpi4: shorten a mapping for the DRAM

2020-05-12 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 v3 1/9] usb: xhci: Add missing cache flush in the scratchpad array initialization

2020-05-12 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 v3 0/9] USB host support for Raspberry Pi 4 board (64-bit)

2020-05-12 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 64-bit builds and some related fixes and updates in the usb/xhci and the pci dr

[PATCH v3 2/9] usb: xhci: Use only 32-bit accesses in xhci_writeq/xhci_readq

2020-05-12 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

Re: [PATCH v3 00/17] mtd: spi-nor-core: add xSPI Octal DTR support

2020-05-12 Thread Pratyush Yadav
On 12/05/20 10:13PM, Jagan Teki wrote: > On Mon, Mar 30, 2020 at 9:15 PM Pratyush Yadav wrote: > > > > Hi, > > > > This series adds support for octal DTR flashes in the spi-nor framework, > > and then adds hooks for the Cypress Semper flash which is an xSPI > > compliant Octal DTR flash. > > > > T

Re: [PATCH v1 1/2] driver: spi: add brcm iproc qspi support.

2020-05-12 Thread Jagan Teki
On Mon, May 4, 2020 at 12:27 PM Rayagonda Kokatanur wrote: > > Add brcm iproc qspi support. > > Signed-off-by: Rayagonda Kokatanur > --- > drivers/spi/Kconfig | 14 + > drivers/spi/Makefile | 1 + > drivers/spi/iproc_qspi.c | 852 +++ > drivers/spi

[PATCH 2/2] [RFC] clk: stm32mp1: Handle SoC speed grade configs

2020-05-12 Thread Marek Vasut
There are two speed grades of the STM32MP1, the A/C and D/F, the former can run up to 650 MHz, the later at up to 800 MHz. Allow specifying PLL config for both in the DT, so that it is possible to cater for boards which can be populated with either SoC. Signed-off-by: Marek Vasut Cc: Patrick Dela

[PATCH 1/2] [RFC] ARM: stm32: Make bsec available in SPL

2020-05-12 Thread Marek Vasut
Make the bsec driver available both in SPL and in U-Boot proper to make it possible to read out the SoC type (A/C/D/F) and thus to determine the MPU PLL configuration (650/800 MHz). Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- arch/arm/mach-stm32mp/Makefile | 2 +- 1

Re: [PATCH 1/1] imx: rom api: fix image offset computation

2020-05-12 Thread Patrick Wildt
On Tue, May 12, 2020 at 03:09:54PM +0200, S??bastien Szymanski wrote: > According to the table 6-25 "Primary image offset and IVT offset > details", in the IMX8MNRM, the ROM expects the following image offset: > > SD: 32KB > eMMC: 0 if image is in boot partion and 32KB if it is on user partition >

Re: [PATCH] ARM: dts: stm32: Synchronize DDR setttings on DH SoMs

2020-05-12 Thread Marek Vasut
On 4/29/20 3:08 PM, Marek Vasut wrote: > Add custom DDR DRAM settings for the DHCOR and DHCOM SoMs and put them > into use by the board file instead of the default ones. These new DRAM > settings are a better fit for the SoMs. > > Signed-off-by: Marek Vasut > Cc: Patrick Delaunay > Cc: Patrice C

Re: [PATCH v3 00/17] mtd: spi-nor-core: add xSPI Octal DTR support

2020-05-12 Thread Jagan Teki
On Mon, Mar 30, 2020 at 9:15 PM Pratyush Yadav wrote: > > Hi, > > This series adds support for octal DTR flashes in the spi-nor framework, > and then adds hooks for the Cypress Semper flash which is an xSPI > compliant Octal DTR flash. > > The Cadence QSPI controller driver is also updated to run

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

2020-05-12 Thread Sylwester Nawrocki
Hi Jim, On 08.05.2020 16:25, Jim Quinlan wrote: static int brcm_pcie_probe(struct udevice *dev) +{ + struct udevice *ctlr = pci_get_controller(dev); + struct pci_controller *hose = dev_get_uclass_priv(ctlr); + struct brcm_pcie *pcie = dev_get_priv(dev); >

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread André Przywara
On 12/05/2020 16:09, Tom Rini wrote: Hi, > On Tue, May 12, 2020 at 03:53:55PM +0100, André Przywara wrote: >> On 12/05/2020 15:25, Tom Rini wrote: >>> On Tue, May 12, 2020 at 03:18:33PM +0100, André Przywara wrote: On 09/05/2020 15:25, Amit Singh Tomar wrote: > This patch adds node for e

Re: [PATCH][v4 6/6] board: tbs2910: add documentation

2020-05-12 Thread Denis 'GNUtoo' Carikli
On Sun, 1 Mar 2020 14:59:23 +0100 Soeren Moch wrote: > To ease the review process it is good style to add a patch revision > history below the sign-off after a "---" separator. This would look > like --- > changes in v4: >  - bla I usually use that to indicate changes that do not correspond to th

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread Amit Tomer
> So, we're at -rc2 for v2020.07. The DDR calculation stuff I can see > getting pulled in. Is the ethernet driver for this SoC so far from done > that it's not ready for linux-next? Things don't have to be in mainline > proper, but the expectation is that it's making reasonable progress > there

Re: [PATCH] dt-bindings: vendor-prefixes: Add U-Boot bootloader prefix

2020-05-12 Thread Rob Herring
On Thu, 30 Apr 2020 11:31:27 +0200, Michal Simek wrote: > List U-Boot project in vendor prefixes. > > For more information take a look at: > https://en.wikipedia.org/wiki/Das_U-Boot > Source code is available here: > https://gitlab.denx.de/u-boot/u-boot > > Signed-off-by: Michal Simek > --- > >

Re: [RFC PATCH 1/2] arm: provide a function for boards init code to modify MMU virtual-physical map

2020-05-12 Thread Sylwester Nawrocki
On 12.05.2020 15:17, Marek Szyprowski wrote: > -void mmu_set_region_dcache_behaviour(phys_addr_t start, size_t size, > - enum dcache_option option); > +static inline void mmu_set_region_dcache_behaviour(phys_addr_t start, > + size_t size, enum dc

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread Tom Rini
On Tue, May 12, 2020 at 03:53:55PM +0100, André Przywara wrote: > On 12/05/2020 15:25, Tom Rini wrote: > > On Tue, May 12, 2020 at 03:18:33PM +0100, André Przywara wrote: > >> On 09/05/2020 15:25, Amit Singh Tomar wrote: > >>> This patch adds node for ethernet controller found on Action Semi OWL >

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread André Przywara
On 12/05/2020 15:37, Amit Tomer wrote: > Hi, > > On Tue, May 12, 2020 at 7:49 PM André Przywara wrote: >> >> On 09/05/2020 15:25, Amit Singh Tomar wrote: >>> This patch adds node for ethernet controller found on Action Semi OWL >>> S700 SoC. >>> >>> Since, there is no upstream Linux binding exist

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread André Przywara
On 12/05/2020 15:25, Tom Rini wrote: > On Tue, May 12, 2020 at 03:18:33PM +0100, André Przywara wrote: >> On 09/05/2020 15:25, Amit Singh Tomar wrote: >>> This patch adds node for ethernet controller found on Action Semi OWL >>> S700 SoC. >>> >>> Since, there is no upstream Linux binding exist for

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread Tom Rini
On Tue, May 12, 2020 at 08:12:37PM +0530, Amit Tomer wrote: > Hi, > > > The general way to move forward here is that bindings should be getting > > proposed to Linux and accepted there, and U-Boot can take a WIP of them, > > that gets updated later on to match, but we shouldn't get it here first.

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread Amit Tomer
Hi, > The general way to move forward here is that bindings should be getting > proposed to Linux and accepted there, and U-Boot can take a WIP of them, > that gets updated later on to match, but we shouldn't get it here first. I do have a plan to propose this binding to Linux but this is kind of

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread Amit Tomer
Hi, On Tue, May 12, 2020 at 7:49 PM André Przywara wrote: > > On 09/05/2020 15:25, Amit Singh Tomar wrote: > > This patch adds node for ethernet controller found on Action Semi OWL > > S700 SoC. > > > > Since, there is no upstream Linux binding exist for S700 ethernet > > controller, Changes are

Re: [PATCH v3 2/7] uart: pl011: Add proper DM clock support

2020-05-12 Thread André Przywara
On 28/04/2020 18:57, Simon Glass wrote: Hi, sorry for the delay, found this, slightly mouldy already, in my draft folder. First, thanks for the review! I saw the Tom merged this already, but wanted to come back to the DT hacks: > Hi Andre, > > On Mon, 27 Apr 2020 at 12:18, Andre Przywara wrot

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread Tom Rini
On Tue, May 12, 2020 at 03:18:33PM +0100, André Przywara wrote: > On 09/05/2020 15:25, Amit Singh Tomar wrote: > > This patch adds node for ethernet controller found on Action Semi OWL > > S700 SoC. > > > > Since, there is no upstream Linux binding exist for S700 ethernet > > controller, Changes a

Re: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller

2020-05-12 Thread André Przywara
On 09/05/2020 15:25, Amit Singh Tomar wrote: > This patch adds node for ethernet controller found on Action Semi OWL > S700 SoC. > > Since, there is no upstream Linux binding exist for S700 ethernet > controller, Changes are put in u-boot specific dtsi file. But that should not be the S700 SoC .d

Re: [PATCH v2 1/1] efi_loader: put device tree into EfiACPIReclaimMemory

2020-05-12 Thread Grant Likely
On 11/05/2020 12:55, Heinrich Schuchardt wrote: On 11.05.20 10:48, Grant Likely wrote: On 07/05/2020 19:19, Heinrich Schuchardt wrote: According to the UEFI spec ACPI tables should be placed in EfiACPIReclaimMemory. Let's do the same with the device tree. Suggested-by: Ard Biesheuvel Cc: G

Re: [ANN] U-Boot v2020.07-rc2 released

2020-05-12 Thread Heiko Schocher
Hello Tom, Am 12.05.2020 um 00:28 schrieb Tom Rini: Hey all, It's release day and I've tagged v2020.07-rc2. At this point out we should be seeing stabilization, clean-up and localized new features. Once again, for a changelog, git log --merges v2020.07-rc1..v2020.07-rc2 and as always, I ask f

[RFC PATCH 0/2] ARM: arbitrary virtual-physical mappings for RPi4 XHCI support

2020-05-12 Thread Marek Szyprowski
Hi All, This is a result of the following discussion: https://lists.denx.de/pipermail/u-boot/2020-May/411086.html Those 2 patches are replacement for the patch discussed there. Best regards Marek Szyprowski Samsung R&D Institute Poland Marek Szyprowski (2): arm: provide a function for boards

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

2020-05-12 Thread 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 virtual address. Signed-o

[RFC PATCH 1/2] arm: provide a function for boards init code to modify MMU virtual-physical map

2020-05-12 Thread Marek Szyprowski
Provide a function for setting arbitrary virtual-physical MMU mapping for the given region. Signed-off-by: Marek Szyprowski --- arch/arm/include/asm/mmu.h| 8 arch/arm/include/asm/system.h | 18 -- arch/arm/lib/cache-cp15.c | 18 -- 3 files chang

Re: [PATCH v2] cmd: avb: free partition buffer upon verify completion

2020-05-12 Thread Igor Opaniuk
Hi Gary, On Mon, May 11, 2020 at 1:11 PM Gary Bisson wrote: > > Doing the same as the unittests for libavb [1]. > > Allows to run 'avb verify' multiple times which can be useful after a > failure to be able to re-flash the partition and try again. > > [1] > https://android.googlesource.com/platfo

[PATCH 1/1] imx: rom api: fix image offset computation

2020-05-12 Thread Sébastien Szymanski
According to the table 6-25 "Primary image offset and IVT offset details", in the IMX8MNRM, the ROM expects the following image offset: SD: 32KB eMMC: 0 if image is in boot partion and 32KB if it is on user partition NAND: 0 FlexSPI: 4KB SPI: 0 On eMMC, it is more likely that U-Boot is on the boo

[PATCH v4 3/3] gpio: search for gpio label if gpio is not found through bank name

2020-05-12 Thread Heiko Schocher
dm_gpio_lookup_name() searches for a gpio through the bank name. But we have also gpio labels, and it makes sense to search for a gpio also in the labels we have defined, if no gpio is found through the bank name definition. This is useful for example if you have a wp pin on different gpios on dif

[PATCH v4 2/3] sandbox, test: add test for GPIO_HOG function

2020-05-12 Thread Heiko Schocher
currently gpio hog function is not tested with "ut dm gpio" so add some basic tests for gpio hog functionality. For this enable GPIO_HOG in sandbox_defconfig, add in DTS some gpio hog entries, and add testcase in "ut dm gpio" command. Signed-off-by: Heiko Schocher --- Changes in v4: - rebased

[PATCH v4 0/3] gpio: add possibility to search for gpio label name

2020-05-12 Thread Heiko Schocher
search for gpio label if gpio name from bankname is not found. This makes sense on boards with different hardware verions. You can now search for the gpio label name, and can give the gpio a unique name. The real gpio pin number is not needed in board code anymore. while at it add basic gpio hog

[PATCH v4 1/3] gpio-uclass.c: save the GPIOD flags also in the gpio descriptor

2020-05-12 Thread Heiko Schocher
save the GPIOD_ flags also in the gpio descriptor. Signed-off-by: Heiko Schocher --- Changes in v4: - new in version 4 Changes in v3: None Changes in v2: None drivers/gpio/gpio-uclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-ucl

RE: [PATCH 2/2] configs: rpi_arm64: enable SDHCI SDMA support

2020-05-12 Thread Peng Fan
> Subject: [PATCH 2/2] configs: rpi_arm64: enable SDHCI SDMA support > > From: Matthias Brugger > > RPi4 supports SDMA on it's SDHCI controller. Enable to option for the combine > RPi3/4 config. > > Signed-off-by: Matthias Brugger > > --- > > configs/rpi_arm64_defconfig | 1 + > 1 file chan

RE: [PATCH 1/2] mmc: sdhci: Use debug for not supported SDMA info message

2020-05-12 Thread Peng Fan
> Subject: [PATCH 1/2] mmc: sdhci: Use debug for not supported SDMA info > message > > From: Matthias Brugger > > If CONFIG_MMC_SDHCI_SDMA is enabled but the HW could not support it, > we no longer error out. Instead we do not enable it in the host. > Change the output from printf to debug as th

Re: Antwort: Re: [PATCH v2 00/35] dm: Add programmatic generation of ACPI tables (part B)

2020-05-12 Thread Andy Shevchenko
On Tue, May 12, 2020 at 01:55:49PM +0200, Wolfgang Wallner wrote: > > Since you were involved a lot in the discussion in the part A series, > > would you please let me know if you get some time to review this? > > Unfortunately, I don't have as much time now for review of part B as I had for > pa

Re: [RFC] am65x_evm_r5: Disable serial output

2020-05-12 Thread Tom Rini
On Tue, May 12, 2020 at 11:35:06AM +0530, Lokesh Vutla wrote: > Hi Tom, > > On 12/05/20 1:11 AM, Tom Rini wrote: > > Given limitations on the current implementation of our test framework, > > having both am65x_evm_r5 and am65x_evm_a53 have serial output on the > > same port confuses the tests. If

Antwort: [PATCH v2] test: Use ut_asserteq_mem() where possible

2020-05-12 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - >Betreff: [PATCH v2] test: Use ut_asserteq_mem() where possible > >Quite a few tests still use ut_assertok(memcmp(...)) and variants. >Modify >them to use the macro designed for this purpose. > >Suggested-by: Wolfgang Wallner > >Signed-off-by: Simon Gl

Re: [GIT PULL] TI changes for v2020.07-rc2

2020-05-12 Thread Tom Rini
On Tue, May 12, 2020 at 11:24:10AM +0530, Vignesh Raghavendra wrote: > > > On 11/05/20 11:53 pm, Tom Rini wrote: > > On Mon, May 11, 2020 at 06:12:59PM +0530, Lokesh Vutla wrote: > > > >> Hi Tom, > >>Please find the pull request for v2020.07-rc2 containing TI specific > >> changes. > >> > >

Re: [PATCH V2 1/5] imx8mp_evk: spl: drop useless code

2020-05-12 Thread Fabio Estevam
Hi Peng, On Tue, May 12, 2020 at 8:59 AM Peng Fan wrote: > I not met this error. Which commit hash are you using? I am using top of tree U-Boot master: commit 2a38d2239d0bb4d128b00886bf097ab247a0b1a7 Author: Tom Rini Date: Mon May 11 18:28:19 2020 -0400 Prepare v2020.07-rc2 Signed

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

2020-05-12 Thread Marek Szyprowski
Hi Matthias, On 08.05.2020 23:26, Matthias Brugger wrote: > Adding Tom as he is the arm maintainer. > > On 04/05/2020 14:45, Sylwester Nawrocki wrote: >> From: Marek Szyprowski >> >> Create a non-cacheable mapping for the 0x6 physical memory region, >> where MMIO registers for the PCIe XH

Re: [PATCH] dt-bindings: vendor-prefixes: Add U-Boot bootloader prefix

2020-05-12 Thread Linus Walleij
On Thu, Apr 30, 2020 at 11:31 AM Michal Simek wrote: > List U-Boot project in vendor prefixes. > > For more information take a look at: > https://en.wikipedia.org/wiki/Das_U-Boot > Source code is available here: > https://gitlab.denx.de/u-boot/u-boot > > Signed-off-by: Michal Simek > --- > > The

RE: [PATCH V2 1/5] imx8mp_evk: spl: drop useless code

2020-05-12 Thread Peng Fan
> Subject: Re: [PATCH V2 1/5] imx8mp_evk: spl: drop useless code > > Hi Peng, > > On Tue, May 12, 2020 at 6:16 AM Peng Fan wrote: > > > > Drop useless getting ccm device, there is no need to explicted do this > > in board code, and we not enable SPL CLK currently. > > > > Signed-off-by: Peng Fan

  1   2   >