[PATCH v5 00/16] Add Rockchip RK3399 USB3.0 Host support

2020-05-13 Thread Frank Wang
This series add quirks for DWC3 and add Rockchip RK3399 USB3.0 host support. The function has been tested pass on rk3399-evb and roc-rk3399-pc board. For V5 update: - Fix dwc3-generic driver followed Marek's comments for [PATCH v4 12/16]. - Add 'Reviewed-by' and 'Tested-by' tag for [PATCH v4 07

[PATCH v5 04/16] phy: rockchip: Add Rockchip USB2PHY driver

2020-05-13 Thread Frank Wang
From: Jagan Teki Add Rockchip USB2PHY driver with initial support. This will help to use it for EHCI controller in host mode, and USB 3.0 controller in otg mode. More functionality like charge, vbus detection will add it in future changes. Signed-off-by: Jagan Teki --- drivers/Makefile

[PATCH v5 03/16] clk: rk3399: Enable/Disable TCPHY clocks

2020-05-13 Thread Frank Wang
From: Jagan Teki Enable/Disable TCPHY clock for rk3399 platform. Signed-off-by: Jagan Teki --- drivers/clk/rockchip/clk_rk3399.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 98fc6a3267

[PATCH v5 02/16] clk: rk3399: Set empty for TCPHY assigned-clocks

2020-05-13 Thread Frank Wang
From: Jagan Teki Due to v5.7-rc1 sync the SD controller nodes in rk3399.dtsi have SCLK_UPHY0_TCPDCORE, SCLK_UPHY1_TCPDCORE assigned-clocks which are usually required for Linux and don't require to handle them in U-Boot. assigned-clocks = <&cru SCLK_UPHY0_TCPDCORE>; assigned-clocks = <&cru SC

[PATCH v5 07/16] usb: dwc3: add dis_enblslpm_quirk

2020-05-13 Thread Frank Wang
Add a quirk to clear the GUSB2PHYCFG.ENBLSLPM bit, which controls whether the PHY receives the suspend signal from the controller. Refer to commit ec791d149bca("usb: dwc3: Add dis_enblslpm_quirk") in Linux Kernel. Signed-off-by: Frank Wang Reviewed-by: Kever Yang Reviewed-by: Jagan Teki Tested

[PATCH v5 05/16] arm64: dts: rk3399: Move u2phy into root port

2020-05-13 Thread Frank Wang
From: Jagan Teki Yes, This is changing the actual device tree u2phy structure but the problem with the current Generic PHY subsystem is unable to find PHY if the PHY node is not part of the root structure. This will be reverted, - Once we support the PHY subsystem to get the PHY even though it

[PATCH v5 09/16] usb: dwc3: Add disable u2mac linestate check quirk

2020-05-13 Thread Frank Wang
From: Jagan Teki This patch adds a quirk to disable USB 2.0 MAC linestate check during HS transmit. Refer the dwc3 databook, we can use it for some special platforms if the linestate not reflect the expected line state(J) during transmission. When use this quirk, the controller implements a fixe

[PATCH v5 06/16] phy: rockchip: Add Rockchip USB TypeC PHY driver

2020-05-13 Thread Frank Wang
From: Jagan Teki Add USB TYPEC PHY driver for rockchip platform. Referenced from Linux TypeC PHY driver, currently supporting usb3-port and dp-port need to add it in the future. Signed-off-by: Frank Wang Signed-off-by: Jagan Teki --- drivers/phy/rockchip/Kconfig | 7 + drivers

[PATCH v5 11/16] usb: dwc3: amend UTMI/UTMIW phy interface setup

2020-05-13 Thread Frank Wang
Let move 8/16-bit UTMI+ interface initialization into DWC3 core init that is convenient for both DM_USB and u-boot traditional process. Signed-off-by: Frank Wang Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- drivers/usb/common/common.c | 25 ++ drivers/usb/dwc3/core.c |

[PATCH v5 14/16] ARM: dts: rk3399-evb: usb3.0 host support

2020-05-13 Thread Frank Wang
Configure 'tcphy1' and 'usbdrd_dwc3_1' nodes to support USB3.0 host for Rockchip RK3399 Evaluation Board. Signed-off-by: Frank Wang Reviewed-by: Jagan Teki --- arch/arm/dts/rk3399-evb-u-boot.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/dts/rk3399-evb-u-boot.d

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

2020-05-13 Thread Frank Wang
RK3399 Type-C PHY is required that must hold whole USB3.0 OTG controller in resetting to hold pipe power state in P2 before initializing the PHY. This commit fixed it and added device compatible for rockchip platform. Signed-off-by: Frank Wang Signed-off-by: Jagan Teki --- drivers/usb/dwc3/dwc3

[PATCH v5 10/16] usb: dwc3: Enable AutoRetry feature in the controller

2020-05-13 Thread Frank Wang
From: Jagan Teki By default when core sees any transaction error (CRC or overflow) it replies with terminating retry ACK (Retry=1 and Nump == 0). Enabling this Auto Retry feature in controller will make the core send a non-terminanting ACK upon such transaction errors. That is, ACK TP with Retry

[PATCH v5 13/16] driver: usb: drop legacy rockchip xhci driver

2020-05-13 Thread Frank Wang
We have changed to use dwc3 generic driver for usb3.0 host, so the legacy Rockchip's xHCI driver is not needed, and drop it. Signed-off-by: Frank Wang Reviewed-by: Jagan Teki --- drivers/usb/host/Kconfig | 9 -- drivers/usb/host/Makefile| 1 - drivers/usb/host/xhci-rockchip.

[PATCH v5 08/16] usb: dwc3: add dis_u2_freeclk_exists_quirk

2020-05-13 Thread Frank Wang
Add a quirk to clear the GUSB2PHYCFG.U2_FREECLK_EXISTS bit, which specifies whether the USB2.0 PHY provides a free-running PHY clock, which is active when the clock control input is active. Refer to commit 27f83eeb6b42("usb: dwc3: add dis_u2_freeclk_exists_quirk") in Linux Rockchip Kernel. Signed

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

2020-05-13 Thread Pragnesh Patel
Hi Jagan, >-Original Message- >From: Jagan Teki >Sent: 13 May 2020 12:21 >To: Pragnesh Patel >Cc: U-Boot-Denx ; Atish Patra >; Palmer Dabbelt ; Bin >Meng ; Paul Walmsley ; >Anup Patel ; Sagar Kadam >; Rick Chen ; Lukasz >Majewski ; Anatolij Gustschin ; Simon >Glass >Subject: Re: [PATCH

[PATCH v5 15/16] configs: evb-rk3399: update support usb3.0 host

2020-05-13 Thread Frank Wang
Update evb-rk3399 default config to support USB3.0 Host. Signed-off-by: Frank Wang Reviewed-by: Jagan Teki --- configs/evb-rk3399_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig index 7f14e18b1b..6cfb4e5dac 100644 -

[PATCH v5 01/16] clk: rk3399: Enable/Disable the USB2PHY clk

2020-05-13 Thread Frank Wang
From: Jagan Teki Enable/Disable the USB2PHY clk for rk3399. CLK is clear in enable and set in disable functionality. Signed-off-by: Jagan Teki --- drivers/clk/rockchip/clk_rk3399.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/c

[PATCH v5 16/16] roc-rk3399-pc: Enable USB3.0 Host

2020-05-13 Thread Frank Wang
From: Jagan Teki Enable USB3.0 Host support for ROC-RK3399-PC boards. Tested USB3.0 SSD on Type C1 port on board. => usb start starting USB... Bus usb@fe38: USB EHCI 1.00 Bus usb@fe3c: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controlle

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

2020-05-13 Thread Jagan Teki
On Wed, May 13, 2020 at 12:48 PM Pragnesh Patel wrote: > > Hi Jagan, > > >-Original Message- > >From: Jagan Teki > >Sent: 13 May 2020 12:21 > >To: Pragnesh Patel > >Cc: U-Boot-Denx ; Atish Patra > >; Palmer Dabbelt ; Bin > >Meng ; Paul Walmsley ; > >Anup Patel ; Sagar Kadam > >; Rick Che

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

2020-05-13 Thread Pragnesh Patel
>-Original Message- >From: Jagan Teki >Sent: 13 May 2020 13:30 >To: Pragnesh Patel >Cc: U-Boot-Denx ; Atish Patra >; Palmer Dabbelt ; Bin >Meng ; Paul Walmsley ; >Anup Patel ; Sagar Kadam >; Rick Chen ; Lukasz >Majewski ; Anatolij Gustschin ; Simon >Glass >Subject: Re: [PATCH v9 11/18] c

[PATCH v2] rpi_4_defconfig: add missing CONFIG_ARCH_FIXUP_FDT_MEMORY

2020-05-13 Thread Corentin Labbe
As discussed at https://lore.kernel.org/linux-arm-kernel/b726290c-1038-3771-5187-6ac370bc9...@arm.com/T/ the defconfig for rpi4 miss CONFIG_ARCH_FIXUP_FDT_MEMORY. Without it, booting with an initrd fail. Signed-off-by: Corentin Labbe --- Changes since v1: - added fix for rpi_4_32b_defconfig co

Re: [RESEND PATCH v2 01/11] net: dwc_eth_qos: Use dev_ functions calls to get FDT data

2020-05-13 Thread Patrice CHOTARD
Hi David On 5/12/20 11:56 AM, David Wu wrote: > It seems dev_ functions are more general than fdt_ functions. > > Signed-off-by: David Wu > --- > > Changes in v2: > - None > > drivers/net/dwc_eth_qos.c | 7 +++ > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/net/dw

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

2020-05-13 Thread Ilias Apalodimas
On Wed, May 13, 2020 at 08:14:19AM +0200, Heinrich Schuchardt wrote: > 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 > > + [...] > > + EFI_ENTRY("%p \"%ls\" %pUl",

Re: [RESEND PATCH v2 02/11] net: dwc_eth_qos: Add option "snps,reset-gpio" phy-rst gpio for stm32

2020-05-13 Thread Patrice CHOTARD
Hi David On 5/12/20 11:56 AM, David Wu wrote: > It can be seen that most of the Socs using STM mac, "snps,reset-gpio" > gpio is used, adding this option makes reset function more general. > > Signed-off-by: David Wu > --- > > Changes in v2: > - Remove the code is not related (Patrice) > > driver

Re: [RESEND PATCH v2 03/11] net: dwc_eth_qos: Move interface() to eqos_ops structure

2020-05-13 Thread Patrice CHOTARD
On 5/12/20 11:56 AM, David Wu wrote: > After moving to eqos_ops, if eqos_config is defined > outside file, can not export interface() definition, > only export eqos_ops struct defined in dwc_eth_qos.c. > > Signed-off-by: David Wu > --- > > Changes in v2: > - None > > drivers/net/dwc_eth_qos.c |

Re: [RESEND PATCH v2 04/11] net: dwc_eth_qos: Make clk_rx and clk_tx optional

2020-05-13 Thread Patrice CHOTARD
Hi David On 5/12/20 11:56 AM, David Wu wrote: > For others using, clk_rx and clk_tx may not be necessary, > and their clock names are different. > > Signed-off-by: David Wu > --- > > Changes in v2: > - Don't change the Rx and Tx clock names. (Patrice, Stephen) > > drivers/net/dwc_eth_qos.c | 61

Re: [RESEND PATCH v2 05/11] net: dwc_eth_qos: Split eqos_start() to get link speed

2020-05-13 Thread Patrice CHOTARD
one typo below On 5/12/20 11:57 AM, David Wu wrote: > For Rockchip, need to obtain the current link speed to > configure the tx clocks, (for example, in rgmii mode, > 1000M link: 125M, 100M link: 25M, 10M link is 2.5M rate) > and then enable gmac. So after the adjust_link(), before > the start gam

Re: [RESEND PATCH v2 06/11] net: dwc_eth_qos: make eqos_start_clks and eqos_stop_clks optional

2020-05-13 Thread Patrice CHOTARD
Hi David On 5/12/20 11:57 AM, David Wu wrote: > If there are definitions for eqos_start_clks and eqos_stop_clks, > then call these callback function. > > Signed-off-by: David Wu > --- > > Changes in v2: > - None > > drivers/net/dwc_eth_qos.c | 16 ++-- > 1 file changed, 10 insertions(

Re: [RESEND PATCH v2 07/11] net: dwc_eth_qos: Export common struct and interface at head file

2020-05-13 Thread Patrice CHOTARD
Hi David On 5/12/20 11:57 AM, David Wu wrote: > Open structure data and interface, so that Soc using dw_eth_qos > controller can reference. > > Signed-off-by: David Wu > --- > > Changes in v2: > - Add the lost head file. (Patrice) > > drivers/net/dwc_eth_qos.c | 81 --

Re: [RESEND PATCH v2 10/11] net: dwc_eth_qos: Add EQOS_MAC_MDIO_ADDRESS_CR_100_150 for Rockchip

2020-05-13 Thread Patrice CHOTARD
Hi David On 5/12/20 11:58 AM, David Wu wrote: > The Rockchip CSR clock range is from 100M to 150M, add > EQOS_MAC_MDIO_ADDRESS_CR_100_150. > > Signed-off-by: David Wu > --- > > Changes in v2: > - None > > drivers/net/dwc_eth_qos.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

Re: [RESEND PATCH v2 09/11] net: dwc_eth_qos: Add eqos_rockchip_ops

2020-05-13 Thread Patrice CHOTARD
HI David On 5/12/20 11:58 AM, David Wu wrote: > The eqos_rockchip_ops is simillar to eqos_stm32_ops, and Typo simillar > export the eqos_rockchip_ops to use. > > Signed-off-by: David Wu > --- > > Changes in v2: > - None > > drivers/net/dwc_eth_qos.c | 16 > drivers/net/dwc_et

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

2020-05-13 Thread Pratyush Yadav
On 13/05/20 12:17PM, Jagan Teki wrote: > 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 co

Re: [PATCH 2/2] configs: khadas-vim3: enable HDMI output

2020-05-13 Thread Neil Armstrong
On 11/05/2020 15:17, Neil Armstrong via groups.io wrote: > Enable options to permit HDMI output on Khadas VIM3 & VIM3L boards. > > Signed-off-by: Neil Armstrong > --- > configs/khadas-vim3_defconfig | 9 + > configs/khadas-vim3l_defconfig | 4 > 2 files changed, 13 insertions(+) >

Re: [PATCH 1/2] arm: dts: khadas-vim3: include meson-g12-common-u-boot.dtsi to enable HDMI output

2020-05-13 Thread Neil Armstrong
On 11/05/2020 15:17, Neil Armstrong wrote: > Include the common g12 u-boot tweaks to permit enabling video output tweaks > on Khadas VIM3 boards. > > Signed-off-by: Neil Armstrong > --- > arch/arm/dts/meson-khadas-vim3-u-boot.dtsi | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/

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

2020-05-13 Thread Patrick DELAUNAY
Dear Marek, > From: Marek Vasut > Sent: mardi 12 mai 2020 19:07 > > 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: Pa

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

2020-05-13 Thread Heinrich Schuchardt
On 13.05.20 08:26, Pragnesh Patel wrote: > 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 Reviewed-by: Heinrich Schuchardt > --- > lib/Makefile | 2 +- >

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

2020-05-13 Thread Patrick DELAUNAY
Dear Marek, > From: Marek Vasut > Sent: mardi 12 mai 2020 19:07 > > 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

Re: [PATCH] regulator: fix: enable gpio when requested

2020-05-13 Thread Mark Kettenis
> Date: Tue, 28 Apr 2020 20:26:09 +0200 > From: Lukasz Majewski Ping? > Hi Mark, > > > > Date: Tue, 28 Apr 2020 06:24:10 +0200 > > > From: Lukasz Majewski > > > > Hi Lukasz, > > > > > Hi Mark, > > > > > > > The fix in commit b7adcdd073c0 has the side-effect that the > > > > regulator wi

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

2020-05-13 Thread Sylwester Nawrocki
On 12.05.2020 20:47, Sylwester Nawrocki wrote: > 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

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

2020-05-13 Thread Patrick DELAUNAY
Dear Marek, > From: Marek Vasut > Sent: mercredi 29 avril 2020 15:09 > > 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

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

2020-05-13 Thread Andy Shevchenko
On Tue, May 12, 2020 at 05:22:38PM -0600, Simon Glass wrote: > 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, > > > > wo

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

2020-05-13 Thread Jagan Teki
On Wed, May 13, 2020 at 2:24 PM Pratyush Yadav wrote: > > On 13/05/20 12:17PM, Jagan Teki wrote: > > 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 opt

RE: [PATCH] net: dwc_eth_qos: Pad descriptors to cacheline size

2020-05-13 Thread Patrick DELAUNAY
Hi Stephen and Marek > From: Stephen Warren > Sent: mercredi 29 avril 2020 23:51 > To: Marek Vasut > Cc: u-boot@lists.denx.de; Joe Hershberger ; Patrice > CHOTARD ; Patrick DELAUNAY > ; Ramon Fried ; Stephen > Warren ; Tom Warren > Subject: Re: [PATCH] net: dwc_eth_qos: Pad descriptors to cache

Re: [PATCH v2] rpi_4_defconfig: add missing CONFIG_ARCH_FIXUP_FDT_MEMORY

2020-05-13 Thread Matthias Brugger
On 13/05/2020 10:07, Corentin Labbe wrote: > As discussed at > https://lore.kernel.org/linux-arm-kernel/b726290c-1038-3771-5187-6ac370bc9...@arm.com/T/ > the defconfig for rpi4 miss CONFIG_ARCH_FIXUP_FDT_MEMORY. > Without it, booting with an initrd fail. > > Signed-off-by: Corentin Labbe > --

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

2020-05-13 Thread Pratyush Yadav
On 13/05/20 03:26PM, Jagan Teki wrote: > On Wed, May 13, 2020 at 2:24 PM Pratyush Yadav wrote: > > > > On 13/05/20 12:17PM, Jagan Teki wrote: > > > 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 > > > >

[PATCH] lib: rsa: avoid overriding the object name when already specified

2020-05-13 Thread Bastian Krause
From: Jan Luebbe If "object=" is specified in "keydir" when using the pkcs11 engine do not append another "object=". This makes it possible to use object names other than the key name hint. These two string identifiers are not necessarily equal. Signed-off-by: Jan Luebbe Signed-off-by: Bastian

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

2020-05-13 Thread Marek Vasut
On 5/13/20 2:47 AM, Frank Wang wrote: > 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_g

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

2020-05-13 Thread Marek Vasut
On 5/13/20 11:12 AM, Patrick DELAUNAY wrote: > Dear Marek, > >> From: Marek Vasut >> Sent: mardi 12 mai 2020 19:07 >> >> 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

Re: [PATCH v2] rpi_4_defconfig: add missing CONFIG_ARCH_FIXUP_FDT_MEMORY

2020-05-13 Thread LABBE Corentin
On Wed, May 13, 2020 at 12:38:58PM +0200, Matthias Brugger wrote: > > > On 13/05/2020 10:07, Corentin Labbe wrote: > > As discussed at > > https://lore.kernel.org/linux-arm-kernel/b726290c-1038-3771-5187-6ac370bc9...@arm.com/T/ > > the defconfig for rpi4 miss CONFIG_ARCH_FIXUP_FDT_MEMORY. > > Wi

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

2020-05-13 Thread Matthias Brugger
On 12/05/2020 12:02, matthias@kernel.org wrote: > 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 this isn't an error but only > ad

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

2020-05-13 Thread Matthias Brugger
On 12/05/2020 12:02, matthias@kernel.org wrote: > 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 > > --- Queued for rpi-next > > configs/rpi_arm64_defconfig | 1 + > 1 file

RE: [PATCH] stm32mp1: Fix warning display when 1.5A power supply is used

2020-05-13 Thread Patrick DELAUNAY
Hi Patrice > From: Patrice CHOTARD > Sent: jeudi 30 avril 2020 18:41 > > On DK1/2 board, when a 1.5A power supply is detected, a warning message is > displayed. In this message, "1.5mA" is displayed instead of "1.5A". > > Signed-off-by: Patrice Chotard > --- > > board/st/stm32mp1/stm32mp1.c

Re: [PATCH 1/2] rpi: Kconfig option for initial page reservation

2020-05-13 Thread Matthias Brugger
On 26/02/2020 22:37, kev...@freebsd.org wrote: > From: Kyle Evans > > While the nearly-universal default for the Raspberry Pi family is to use > spin tables and the spin table implementation provided by the Raspberry Pi > Foundation, FreeBSD and others may use a PSCI implementation instead. >

Re: [PATCH 2/2] rpi: use the newly-added RPI_EFI_NR_SPIN_PAGES

2020-05-13 Thread Matthias Brugger
On 26/02/2020 22:39, kev...@freebsd.org wrote: > From: Kyle Evans > > Some systems may use a slightly larger stub to do PSCI for booting the RPi > family. The number of pages has been made configurable so that operating > systems building U-Boot for use in these kinds of environments can rese

Antwort: [PATCH v2 03/35] acpi: Add a way to check device status

2020-05-13 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - >Betreff: [PATCH v2 03/35] acpi: Add a way to check device status > >At present U-Boot does not support the different ACPI status values, >but >it is best to put this logic in a central place. Add a function to >get the >device status. > >Signed-off-by:

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

2020-05-13 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mercredi 13 mai 2020 12:53 > > On 5/13/20 11:12 AM, Patrick DELAUNAY wrote: > > Dear Marek, > > > >> From: Marek Vasut > >> Sent: mardi 12 mai 2020 19:07 > >> > >> There are two speed grades of the STM32MP1, the A/C and D/F, the > >> former can run up to 65

[PATCH 0/4] mach-sunxi: sunxi SPI-NAND-SPL

2020-05-13 Thread Benedikt-Alexander Mokroß
This patch-series enables u-boot to be booted from SPI-NAND memory on sunxi SoCs. Development was done and tested on a sun8i V3s. To accomplish this, the changes where split in 4 different patches. The following list describes the patches, their title, their message ID and contain their commit-me

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

2020-05-13 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 12 mai 2020 18:58 > > 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 S

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

2020-05-13 Thread Marek Vasut
On 5/13/20 2:26 PM, Patrick DELAUNAY wrote: > Hi Marek, > >> From: Marek Vasut >> Sent: mardi 12 mai 2020 18:58 >> >> 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. Th

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

2020-05-13 Thread Marek Vasut
On 5/13/20 2:23 PM, Patrick DELAUNAY wrote: > Hi Marek, > >> From: Marek Vasut >> Sent: mercredi 13 mai 2020 12:53 >> >> On 5/13/20 11:12 AM, Patrick DELAUNAY wrote: >>> Dear Marek, >>> From: Marek Vasut Sent: mardi 12 mai 2020 19:07 There are two speed grades of the STM32MP1

USB gadget ethernet status ?

2020-05-13 Thread Joakim Tjernlund
I decided to check out USB gadget ethernet in u-boot and selected USB_ETHER/USB_ETH_RNDIS and tried to build it but that fails due to missing __constant_cpu_to_leXX() definitions. These are nowhere to find in u-boot so I wonder what shape above code is? Jocke

Re: [PATCH v1 01/10] mips: octeon: Initial minimal support for the Marvell Octeon SoC

2020-05-13 Thread Daniel Schwierzeck
sorry for the delay ;) Am 02.05.20 um 10:59 schrieb Stefan Roese: > From: Aaron Williams > > This patch adds very basic support for the Octeon III SoCs. Only > CFI parallel NOR flash and UART is supported for now. > > Please note that the basic Octeon port does not include the DDR3/4 > initiali

RE: [RESEND PATCH v2 02/11] net: dwc_eth_qos: Add option "snps,reset-gpio" phy-rst gpio for stm32

2020-05-13 Thread Patrick DELAUNAY
Hi David > From: David Wu > Sent: mardi 12 mai 2020 11:56 > > It can be seen that most of the Socs using STM mac, "snps,reset-gpio" > gpio is used, adding this option makes reset function more general. > > Signed-off-by: David Wu > --- > > Changes in v2: > - Remove the code is not related (Pa

Using a 'cpu' command to print CPU information

2020-05-13 Thread Ivan Kapaev
Hi All, I am trying to use 'cpu' command, so I modified config file and compiled u-boot with a 'cpu' command enabled. But when I try to use it properly it's completely silent. It appeared that this behaviour is caused by list at 'dev_head' always being empty in the corresponding uclass. But d

Re: [PATCH v3 0/2] usb: xhci: Load Raspberry Pi 4 VL805's firmware

2020-05-13 Thread Nicolas Saenz Julienne
On Tue, 2020-05-05 at 18:26 +0200, Nicolas Saenz Julienne wrote: > Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to be > loaded explicitly. Earlier versions didn't need that as they where using > an EEPROM for that purpose. This series takes care of setting up the > relevant inf

RE: [RESEND PATCH v2 01/11] net: dwc_eth_qos: Use dev_ functions calls to get FDT data

2020-05-13 Thread Patrick DELAUNAY
Dear David, > From: David Wu > Sent: mardi 12 mai 2020 11:56 > > It seems dev_ functions are more general than fdt_ functions. > > Signed-off-by: David Wu > --- > > Changes in v2: > - None > > drivers/net/dwc_eth_qos.c | 7 +++ > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff

Re: [PATCH v1 02/10] mips: cache: Allow using CONFIG_MIPS_L2_CACHE without CONFIG_MIPS_CM

2020-05-13 Thread Daniel Schwierzeck
Am 02.05.20 um 10:59 schrieb Stefan Roese: > This patch enables the usage of CONFIG_MIPS_L2_CACHE without > CONFIG_MIPS_CM, which is what is needed for the newly added Octeon > platform. > > Signed-off-by: Stefan Roese > --- > > arch/mips/lib/cache.c | 13 - > 1 file changed, 12

Re: [RESEND PATCH v2 01/11] net: dwc_eth_qos: Use dev_ functions calls to get FDT data

2020-05-13 Thread Marek Vasut
On 5/13/20 2:58 PM, Patrick DELAUNAY wrote: > Dear David, > >> From: David Wu >> Sent: mardi 12 mai 2020 11:56 >> >> It seems dev_ functions are more general than fdt_ functions. >> >> Signed-off-by: David Wu It seems Joe still didn't come back, I have patches open for two+ months now. What do

Antwort: [PATCH v2 04/35] irq: Add a method to convert an interrupt to ACPI

2020-05-13 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - >Betreff: [PATCH v2 04/35] irq: Add a method to convert an interrupt >to ACPI > >When generating ACPI tables we need to convert IRQs in U-Boot to the >ACPI >structures required by ACPI. This is a SoC-specific conversion and >cannot >be handled by generi

Re: [PATCH] lib: rsa: avoid overriding the object name when already specified

2020-05-13 Thread George McCollister
On Wed, May 13, 2020 at 5:26 AM Bastian Krause wrote: > > From: Jan Luebbe > > If "object=" is specified in "keydir" when using the pkcs11 engine do > not append another "object=". This makes it possible to > use object names other than the key name hint. These two string > identifiers are not ne

Re: [PATCH v1 03/10] mips: cache: Don't use cache operations with CONFIG_MIPS_CACHE_COHERENT

2020-05-13 Thread Daniel Schwierzeck
Am 02.05.20 um 10:59 schrieb Stefan Roese: > The Octeon platform is cache coherent and cache flushes and invalidates > are not needed. This patch makes use of the newly introduced Kconfig > option CONFIG_MIPS_CACHE_COHERENT to effectively disable all the cache > operations. I don't like this ex

Re: [PATCH v1 04/10] mips: traps: Set WG bit in EBase register on Octeon

2020-05-13 Thread Daniel Schwierzeck
Am 02.05.20 um 10:59 schrieb Stefan Roese: > WG (bit 11) needs to be set on Octeon to enable writing bits 63:30 of > the exception base register. > > Signed-off-by: Stefan Roese > --- > > arch/mips/lib/traps.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/arch/mips/lib/traps.

Re: [PATCH v1 05/10] mips: Rename CONFIG_CPU_CAVIUM_OCTEON to CONFIG_CPU_MIPS64_OCTEON

2020-05-13 Thread Daniel Schwierzeck
Am 02.05.20 um 10:59 schrieb Stefan Roese: > With the introduction of the MIPS Octeon support, lets use the newly > added Kconfig symbol CONFIG_CPU_MIPS64_OCTEON instead of the old Linux > CONFIG_CPU_CAVIUM_OCTEON one (which was never set). Remove these > references completely with this patch.

RE: [RESEND PATCH v2 04/11] net: dwc_eth_qos: Make clk_rx and clk_tx optional

2020-05-13 Thread Patrick DELAUNAY
Hi David, > From: David Wu > Sent: mardi 12 mai 2020 11:56 > > For others using, clk_rx and clk_tx may not be necessary, and their clock > names > are different. > > Signed-off-by: David Wu > --- > > Changes in v2: > - Don't change the Rx and Tx clock names. (Patrice, Stephen) > > drivers/

Re: [RESEND PATCH v2 04/11] net: dwc_eth_qos: Make clk_rx and clk_tx optional

2020-05-13 Thread Marek Vasut
On 5/13/20 3:17 PM, Patrick DELAUNAY wrote: > Hi David, > >> From: David Wu >> Sent: mardi 12 mai 2020 11:56 >> >> For others using, clk_rx and clk_tx may not be necessary, and their clock >> names >> are different. >> >> Signed-off-by: David Wu >> --- >> >> Changes in v2: >> - Don't change the

RE: [PATCH] BDINFO: ARC: print info about relocations

2020-05-13 Thread Alexey Brodkin
Hi Eugeniy, > -Original Message- > From: Eugeniy Paltsev > Sent: Saturday, April 25, 2020 12:11 AM > To: Alexey Brodkin > Cc: u-boot@lists.denx.de; uboot-snps-...@synopsys.com; Eugeniy Paltsev > > Subject: [PATCH] BDINFO: ARC: print info about relocations > > Print relocation informat

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

2020-05-13 Thread Sébastien Szymanski
When not booting from FlexSPI, the offset computation is: offset = image_offset + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512 - 0x8000; When booting from SD card or eMMC user partition, image_offset is 0x8000. It is useless to add and remove 0x8000. When booting from other device, image_offset

[PATCH 00/13] x86: cbfs: Various clean-ups to CBFS implementation

2020-05-13 Thread Simon Glass
This code is very old and has not had much of a clean-up since it was written. This series aims to tidy it up to use error codes, avoid using BSS when not necessary and to add a few more features. Simon Glass (13): cbfs: Rename the result variable cbfs: Use ulong consistently cbfs: Use bool

[PATCH 01/13] cbfs: Rename the result variable

2020-05-13 Thread Simon Glass
At present the result variable in the cbfs_priv is called 'result' as is the local variable in a few functions. Change the latter to 'ret' which is more common in U-Boot and avoids confusion. Signed-off-by: Simon Glass --- fs/cbfs/cbfs.c | 20 ++-- 1 file changed, 10 insertions(

[PATCH 02/13] cbfs: Use ulong consistently

2020-05-13 Thread Simon Glass
U-Boot uses ulong for addresses but there are a few places in this driver that don't use it. Convert this driver over to follow this convention fully. Signed-off-by: Simon Glass --- fs/cbfs/cbfs.c | 9 - include/cbfs.h | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --g

[PATCH 03/13] cbfs: Use bool type for whether initialised

2020-05-13 Thread Simon Glass
At present this uses an int type. U-Boot now supports bool so use this instead. Also use English spelling for initialised which we are here. Signed-off-by: Simon Glass --- fs/cbfs/cbfs.c | 28 ++-- include/cbfs.h | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-

[PATCH 07/13] cbfs: Unify the two header loaders

2020-05-13 Thread Simon Glass
These two functions have mostly the same code. Pull this out into a common function. Also make this function zero the private data so that callers don't have to do it. Finally, update cbfs_load_header_ptr() to take the base of the ROM as its parameter, which makes more sense than passing the addre

[PATCH 05/13] cbfs: Adjust file_cbfs_load_header() to use cbfs_priv

2020-05-13 Thread Simon Glass
This function is strange at the moment in that it takes a header pointer but then accesses the cbfs_s global. Currently clients have their own priv pointer, so update the function to take that as a parameter instead. Signed-off-by: Simon Glass --- fs/cbfs/cbfs.c | 9 + 1 file changed, 5

[PATCH 06/13] cbfs: Adjust cbfs_load_header_ptr() to use cbfs_priv

2020-05-13 Thread Simon Glass
This function is strange at the moment in that it takes a header pointer but then accesses the cbfs_s global. Currently clients have their own priv pointer, so update the function to take that as a parameter instead. Signed-off-by: Simon Glass --- fs/cbfs/cbfs.c | 9 ++--- 1 file changed, 6

[PATCH 04/13] cbfs: Adjust return value of file_cbfs_next_file()

2020-05-13 Thread Simon Glass
At present his uses a true return to indicate it found a file. Adjust it to use 0 for this, so it is consistent with other functions. Update its callers accordingling and add a check for malloc() failure in file_cbfs_fill_cache(). Signed-off-by: Simon Glass --- fs/cbfs/cbfs.c | 43

[PATCH 09/13] cbfs: Record the start address in cbfs_priv

2020-05-13 Thread Simon Glass
The start address of the CBFS is used when scanning for files. It makes sense to put this in our cbfs_priv struct and calculate it when we read the header. Update the code accordingly. Signed-off-by: Simon Glass --- fs/cbfs/cbfs.c | 44 +++- 1 file chang

[PATCH 11/13] cbfs: Change file_cbfs_find_uncached() to return an error

2020-05-13 Thread Simon Glass
This function currently returns a node pointer so there is no way to know the error code. Also it uses data in BSS which seems unnecessary since the caller might prefer to use a local variable. Update the function and split its body out into a separate function so we can use it later. Signed-off-

[PATCH 13/13] cbfs: Don't require the CBFS size with cbfs_init_mem()

2020-05-13 Thread Simon Glass
The size is not actually used since it is present in the header. Drop this parameter. Also tidy up error handling while we are here. Signed-off-by: Simon Glass --- arch/x86/lib/fsp2/fsp_init.c | 3 +-- fs/cbfs/cbfs.c | 9 + include/cbfs.h | 3 +-- 3 files cha

[PATCH 08/13] cbfs: Use void * for the position pointers

2020-05-13 Thread Simon Glass
It doesn't make sense to use u8 * as the pointer type for accessing the CBFS since we do not access it as bytes, but via structures. Change it to void *, which allows us to avoid a cast. Signed-off-by: Simon Glass --- fs/cbfs/cbfs.c | 17 - 1 file changed, 8 insertions(+), 9 del

[PATCH 10/13] cbfs: Return the error code from file_cbfs_init()

2020-05-13 Thread Simon Glass
We may as well return the error code and use it directly in the command code. CBFS still uses its own error enum which we may be able to remove, but leave it for now. Signed-off-by: Simon Glass --- cmd/cbfs.c | 3 +-- fs/cbfs/cbfs.c | 23 +++ include/cbfs.h | 6 +++---

[PATCH 12/13] cbfs: Allow reading a file from a CBFS given its base addr

2020-05-13 Thread Simon Glass
Currently we support reading a file from CBFS given the address of the end of the ROM. Sometimes we only know the start of the CBFS. Add a function to find a file given that. Signed-off-by: Simon Glass --- fs/cbfs/cbfs.c | 13 + include/cbfs.h | 11 +++ 2 files changed, 24 i

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

2020-05-13 Thread Tom Rini
On Tue, May 12, 2020 at 11:04:38PM -0400, Tom Rini wrote: > 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

Re: [PATCH v1 10/10] mips: octeon: Add minimal Octeon 3 EBB7304 EVK support

2020-05-13 Thread Daniel Schwierzeck
Am 02.05.20 um 10:59 schrieb Stefan Roese: > This patch adds very basic minimal support for the Marvell Octeon 3 > CN73xx based EBB7304 EVK. Please note that the basic Octeon port does > not support DDR3/4 initialization yet. To still use U-Boot on with this > port, the L2 cache (4MiB) is used a

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

2020-05-13 Thread Tom Rini
On Wed, May 13, 2020 at 08:13:45AM +0200, Heiko Schocher wrote: > 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, > > > > > > > > A

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

2020-05-13 Thread Marek Vasut
On 5/13/20 4:49 PM, Tom Rini wrote: > On Wed, May 13, 2020 at 08:13:45AM +0200, Heiko Schocher wrote: >> 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: >

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

2020-05-13 Thread Tom Rini
On Wed, May 13, 2020 at 04:52:26PM +0200, Marek Vasut wrote: > On 5/13/20 4:49 PM, Tom Rini wrote: > > On Wed, May 13, 2020 at 08:13:45AM +0200, Heiko Schocher wrote: > >> Hello Heinrich, > >> > >> Am 13.05.2020 um 07:53 schrieb Heinrich Schuchardt: > >>> On 5/13/20 5:54 AM, Heiko Schocher wrote: >

Re: [PATCH v1 08/10] sysreset: Add Octeon sysreset driver

2020-05-13 Thread Daniel Schwierzeck
Am 02.05.20 um 10:59 schrieb Stefan Roese: > This patch adds a UCLASS_SYSRESET sysreset driver for the Octeon SoC > family. > > Signed-off-by: Stefan Roese > --- > > drivers/sysreset/Kconfig | 7 > drivers/sysreset/Makefile | 1 + > drivers/sysreset/sysreset_octeon.

[PATCH v3 1/1] cmd: gpt: add eMMC and GPT support

2020-05-13 Thread Rayagonda Kokatanur
From: Corneliu Doban Add eMMC and GPT support. - GPT partition list and command to create the GPT added to u-boot environment - eMMC boot commands added to u-boot environment - new gpt commands (enumarate and setenv) that are used by broadcom update scripts and boot commands - eMMC specific u

[U-Boot] Please pull ARC fixes for v2020.07-rc3

2020-05-13 Thread Alexey Brodkin
Hi Tom, The following changes since commit 10bca13ea6d9d4b85f80f02c8795227f63240f59: Merge https://gitlab.denx.de/u-boot/custodians/u-boot-usb (2020-05-12 16:20:10 -0400) are available in the Git repository at: g...@gitlab.denx.de:u-boot/custodians/u-boot-arc.git tags/arc-fixes-for-2020.0

[PATCH] imx: Update MTD partitions layout for display5 (i.MX6Q) board

2020-05-13 Thread Lukasz Majewski
This change updates the MTD partition layout on SPI-NOR memory for display5 board. Signed-off-by: Lukasz Majewski --- configs/display5_defconfig | 2 +- configs/display5_factory_defconfig | 2 +- include/configs/display5.h | 7 --- 3 files changed, 6 insertions(+), 5 deletio

  1   2   >