Re: [PATCH] RFC: nvedit: support doing one (extra) expansion of the value in "env set"

2020-02-18 Thread Rasmus Villemoes
On 16/02/2020 18.25, Wolfgang Denk wrote: > Dear Rasmus, > > In message <20200216152427.e80c7240...@gemini.denx.de> I wrote: >> >> So lets change my little script to add setting "left": >> >> slot=none >> for i in $BOOT_ORDER ; do >> setenv tmp_cmd 'setexpr tmp_val sub '^' "" $'BOOT

Re: [PATCH v2 04/10] mmc: sdhci: Expose sdhci_init() as non-static

2020-02-18 Thread Jaehoon Chung
On 2/18/20 4:51 PM, Faiz Abbas wrote: > Jaehoon, > > On 18/02/20 4:54 am, Jaehoon Chung wrote: >> Hi Faiz, >> >> On 2/18/20 7:35 AM, Jaehoon Chung wrote: >>> Hi Faiz, >>> >>> On 2/17/20 9:42 PM, Faiz Abbas wrote: Jaehoon, On 17/02/20 5:47 pm, Jaehoon Chung wrote: > Hi, > >>>

[PATCH v4 3/5] usb: host: dwc2: add clk support

2020-02-18 Thread Patrick Delaunay
Add support for clock with driver model. This patch don't added dependency because when CONFIG_CLK is not activated the clk function are stubbed. Signed-off-by: Patrick Delaunay --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/usb/host/dwc2.c | 30 ++

[PATCH v4 4/5] usb: host: dwc2: force reset assert

2020-02-18 Thread Patrick Delaunay
Assert reset before deassert in dwc2_reset; this patch solve issues when the DWC2 registers are already initialized with value incompatible with host mode. Force a hardware reset of the IP reset all the DWC2 registers at default value, the host driver start with a clean state (Core Soft reset doen

Re: [PATCH v4 07/17] spi: dw: Add mem_ops

2020-02-18 Thread Rick Chen
Hi Sean > The dw spi devices on the Kendryte K210 must be operated in a specific > fasion which cannot be achived through multiple writes to via dw_spi_xfer > (as it is currently written). This patch adds an implementation of exec_op, > which gives correct behaviour when reading/writing spi flash.

[PATCH v4 2/5] usb: host: dwc2: add phy support

2020-02-18 Thread Patrick Delaunay
Use generic phy to initialize the PHY associated to the DWC2 device and available in the device tree. This patch don't added dependency because when CONFIG_PHY is not activated, the generic PHY function are stubbed. Signed-off-by: Patrick Delaunay --- Changes in v4: None Changes in v3: None Cha

[PATCH v6] Add support for SoM "VoCore2".

2020-02-18 Thread Mauro Condarelli
Small patch to add support for VoCore/VoCore2 board. VoCore is open hardware and runs OpenWrt/LEDE. It has WIFI, USB, UART, 20+ GPIOs but is only one inch square. It will help you to make a smart house, study embedded system or even make the tiniest router in the world. Details about this SoM can

[PATCH v4 5/5] usb: host: dwc2: add trace to have clean usb start

2020-02-18 Thread Patrick Delaunay
Solve issue for the display of "usb start" command on stm32mp1 because one carriage return is missing in DWC2 probe. Before the patch: STM32MP> usb start starting USB... Bus usb-otg@4900:Bus usbh-ehci@5800d000: USB EHCI 1.00 after the patch: STM32MP> usb start starting USB... Bus usb-

[PATCH v4 0/5] usb: host: dwc2: use driver model for PHY and CLOCK

2020-02-18 Thread Patrick Delaunay
In this serie I update the DWC2 host driver to use the device tree information and the associated PHY and CLOCK drivers when they are availables. The V4 is rebased on latest master (v2020.04-rc2). CI-Tavis build is OK: https://travis-ci.org/patrickdelaunay/u-boot/builds/651479714 NB: CI-Tra

[PATCH v4 1/5] dm: clk: add stub when CONFIG_CLK is desactivated

2020-02-18 Thread Patrick Delaunay
Add stub for functions clk_...() when CONFIG_CLK is desactivated. This patch avoids compilation issues for driver using these API without protection (#if CONFIG_IS_ENABLED(CLK)) For example, before this patch we have undefined reference to `clk_disable_bulk') for code: clk_disable_bulk(&priv->c

[PATCH v2 1/8] phy: generic: add error trace to detect PHY issue in uclass

2020-02-18 Thread Patrick Delaunay
Add an error trace for PHY errors directly in generic phy functions provided by PHY uclass. Signed-off-by: Patrick Delaunay --- This patch is requested by Marek Vasut to avoid code duplication in usb host serie for dwc2: See http://patchwork.ozlabs.org/patch/1176048/#2297595 [U-Boot,RESEND,1/5]

[PATCH v2 4/8] usb: host: ohci: change trace level for phy errors managed by uclass

2020-02-18 Thread Patrick Delaunay
As the error message is now displayed by generic phy functions, the dev_err can be change to dev_dbg. Signed-off-by: Patrick Delaunay --- Changes in v2: None drivers/usb/host/ohci-generic.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ohci-generi

[PATCH v2 2/8] usb: gadget: dwc2: change trace level for phy errors managed by uclass

2020-02-18 Thread Patrick Delaunay
As the error message is now displayed by generic phy functions, the dev_err can be change to dev_dbg. Signed-off-by: Patrick Delaunay --- Changes in v2: None drivers/usb/gadget/dwc2_udc_otg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/dwc2_udc_

[PATCH v2 5/8] usb: host: ehci-hcd: change trace level for phy errors managed by uclass

2020-02-18 Thread Patrick Delaunay
As the error message is now displayed by generic phy functions, the pr_err can be change to pr_debug. Signed-off-by: Patrick Delaunay --- Changes in v2: None drivers/usb/host/ehci-hcd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-hcd.c b/dr

[PATCH v2 7/8] ata: dwc-ahci: change trace level for phy errors managed by uclass

2020-02-18 Thread Patrick Delaunay
As the error message is now displayed by generic phy functions, the pr_err can be change to pr_debug. Signed-off-by: Patrick Delaunay --- Changes in v2: None drivers/ata/dwc_ahci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ata/dwc_ahci.c b/drivers/ata/dwc_

[PATCH v2 3/8] board: sunxi: change trace level for phy errors managed by uclass

2020-02-18 Thread Patrick Delaunay
As the error message is now displayed by generic phy functions, the pr_err can be change to pr_idebug. Signed-off-by: Patrick Delaunay --- Changes in v2: None board/sunxi/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index

[PATCH v2 6/8] usb: dwc3: change trace level for phy errors managed by uclass

2020-02-18 Thread Patrick Delaunay
As the error message is now displayed by generic phy functions, the pr_err can be change to pr_debug. Signed-off-by: Patrick Delaunay --- Changes in v2: None drivers/usb/dwc3/core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/dwc3/core.c b/drive

[PATCH v2 8/8] usb: musb-new: sunxi: change trace level for phy errors managed by uclass

2020-02-18 Thread Patrick Delaunay
As the error message is now displayed by generic phy functions, the dev_err/pr_err can be change to dev_dbg/pr_debug. Signed-off-by: Patrick Delaunay --- Changes in v2: - Added patch after rebase: new generic_phy API usage drivers/usb/musb-new/sunxi.c | 8 1 file changed, 4 insertions

[PATCH] include/eeprom.h: fix build errors

2020-02-18 Thread Rasmus Villemoes
CMD_EEPROM and ENV_IS_IN_EEPROM can be selected independently, and cmd/eeprom.o gets built in either case, so whether to declare the real prototypes needs to follow the same logic as whether cmd/eeprom.c is built. Otherwise a ENV_IS_IN_EEPROM=y, CMD_EEPROM=n build fails cmd/eeprom.c:73:1: error: e

[PATCH] env: make file-scope env_ptr variables static

2020-02-18 Thread Rasmus Villemoes
The combination ENV_IS_IN_NVRAM=y, ENV_IS_IN_REMOTE=y fails to build: env/remote.o:/mnt/ext4/devel/u-boot/env/remote.c:17: multiple definition of `env_ptr' env/nvram.o:/mnt/ext4/devel/u-boot/env/nvram.c:41: first defined here It's not necessarily a meaningful combination, but for build-testing i

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

2020-02-18 Thread Heiko Schocher
add DM support for parallel I/O ports on QUICC Engine Block Signed-off-by: Heiko Schocher --- Travis build: https://travis-ci.org/hsdenx/u-boot-test/builds/651400509 Open questions / discussion: - may we should move this part to drivers/pinctrl ? - I let the old none DM based implementation i

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

2020-02-18 Thread Heiko Schocher
add DM/DTS suppor for the UEC ethernet on QUICC Engine Block. Signed-off-by: Heiko Schocher --- Travis build: https://travis-ci.org/hsdenx/u-boot-test/builds/651400509 - I let the old none DM based implementation in code so boards should work with old implementation. This Code should be rem

Re: u-boot saveenv corrupted other MTD parttions

2020-02-18 Thread Andy Pont
JH wrote... gpmi-nand:1m(boot),1m(ubootenv),-(storage) The saveenv does not take any parameters, how did it work to write to the NAND 1m(ubootenv)? => saveenv Saving Environment to NAND... Erasing NAND... Erasing at 0x5e -- 100% complete. Writing to NAND... OK It looks like that saveen

Re: [PATCH v1] Revert "x86: use invd instead of wbinvd in real mode start code"

2020-02-18 Thread Andy Shevchenko
On Tue, Feb 18, 2020 at 09:45:34AM +0900, Masahiro Yamada wrote: > On Tue, Feb 18, 2020 at 12:30 AM Andy Shevchenko > wrote: > > > > This reverts commit 0d67fac29f3187e67f4fd3ef15f73e91be2fad12. > > > > As real hardware testing (*) shows the above mentioned commit > > breaks U-Boot on it. Revert f

Re: [PATCH v1] Revert "x86: use invd instead of wbinvd in real mode start code"

2020-02-18 Thread Andy Shevchenko
On Tue, Feb 18, 2020 at 08:24:03AM +0800, Bin Meng wrote: > On Mon, Feb 17, 2020 at 11:30 PM Andy Shevchenko > wrote: > > > > This reverts commit 0d67fac29f3187e67f4fd3ef15f73e91be2fad12. > > > > As real hardware testing (*) shows the above mentioned commit > > breaks U-Boot on it. Revert for the

[PATCH v2] doc: add board documentation for stm32mp1

2020-02-18 Thread Patrick Delaunay
Change plain test README to rst format and move this file in documentation directory. Signed-off-by: Patrick Delaunay Tested-by: Heinrich Schuchardt Reviewed-by: Patrice Chotard --- Hi, it is V2 for the previous patch after rebase (the last of the serie) http://patchwork.ozlabs.org/patch/12302

Re: [PATCH v3 0/3] Ethernet support for Raspberry Pi 4

2020-02-18 Thread LABBE Corentin
On Tue, Feb 18, 2020 at 11:13:03AM +0900, Jaehoon Chung wrote: > Hi LABBE, > > On 2/17/20 8:37 PM, Jaehoon Chung wrote: > > On 2/3/20 6:48 PM, LABBE Corentin wrote: > >> On Wed, Jan 29, 2020 at 07:21:09AM +0900, Jaehoon Chung wrote: > >>> On 1/27/20 9:06 PM, Andre Przywara wrote: > On Mon, 27

Re: RPI4: fail too boot with an initrd

2020-02-18 Thread LABBE Corentin
On Mon, Feb 17, 2020 at 02:07:09PM +0100, Matthias Brugger wrote: > > > On 17/02/2020 13:53, LABBE Corentin wrote: > > On Mon, Feb 17, 2020 at 11:50:04AM +0100, Matthias Brugger wrote: > >> > >> > >> On 17/02/2020 11:37, LABBE Corentin wrote: > >>> On Fri, Feb 14, 2020 at 06:15:27PM +, James

Re: [PATCH 1/1] stm32mp1: rng: remove superfluous assignment

2020-02-18 Thread Sughosh Ganu
On Sun, 16 Feb 2020 at 14:41, Heinrich Schuchardt wrote: > We should not assign a value that is overwritten before use. > > Signed-off-by: Heinrich Schuchardt > Acked-by: Sughosh Ganu > --- > drivers/rng/stm32mp1_rng.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a

Re: [PATCH 1/1] efi_loader: EFI_RNG_PROTOCOL

2020-02-18 Thread Sughosh Ganu
On Sat, 15 Feb 2020 at 04:04, Heinrich Schuchardt wrote: > Do not use quotation marks for Kconfig help text. > Replace rng abbreviation by full words. > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_loader/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

RE: [PATCH] ARM: bootm: take into account gd->ram_top

2020-02-18 Thread Patrick DELAUNAY
Hi Simon, > From: Simon Glass > Sent: vendredi 14 février 2020 20:17 > > Hi Patrick, > > On Thu, 13 Feb 2020 at 11:30, Patrick Delaunay > wrote: > > > > From: Patrice Chotard > > > > If gd->ram_top has been tuned using board_get_usable_ram_top(), it > > must be taken into account when reservi

Re: RPI4: fail too boot with an initrd

2020-02-18 Thread Matthias Brugger
On 18/02/2020 11:01, LABBE Corentin wrote: > On Mon, Feb 17, 2020 at 02:07:09PM +0100, Matthias Brugger wrote: >> >> >> On 17/02/2020 13:53, LABBE Corentin wrote: >>> On Mon, Feb 17, 2020 at 11:50:04AM +0100, Matthias Brugger wrote: On 17/02/2020 11:37, LABBE Corentin wrote: >

Re: use invd instead of wbinvd in real mode start code

2020-02-18 Thread Andy Shevchenko
On Tue, Feb 18, 2020 at 7:48 AM Heiko Schocher wrote: > Am 17.02.2020 um 17:04 schrieb Wolfgang Denk: > > In message > > you > > wrote: > >> On Mon, Feb 17, 2020 at 5:09 PM Wolfgang Denk wrote: > >>> In message > >>> you > >>> wrote: > > >> git bisect is the usual way to figure out

[PATCH] fixdep: fix U-Boot own code to handle only valid symbol characters

2020-02-18 Thread Masahiro Yamada
Currently, fixdep skips parsing include/linux/kconfig.h, but if it parsed it, it would translate the following code in kconfig.h config_enabled(CONFIG_VAL(option##_MODULE) into: $(wildcard include/config/option##/module.h) When Kbuild includes .*.cmd, it would emit the following error: *

Re: use invd instead of wbinvd in real mode start code

2020-02-18 Thread Heiko Schocher
Hello Andy, Am 18.02.2020 um 11:45 schrieb Andy Shevchenko: On Tue, Feb 18, 2020 at 7:48 AM Heiko Schocher wrote: Am 17.02.2020 um 17:04 schrieb Wolfgang Denk: In message you wrote: On Mon, Feb 17, 2020 at 5:09 PM Wolfgang Denk wrote: In message you wrote: git bisect is the usual wa

Re: RPI4: fail too boot with an initrd

2020-02-18 Thread Jaehoon Chung
On 2/18/20 7:36 PM, Matthias Brugger wrote: > > > On 18/02/2020 11:01, LABBE Corentin wrote: >> On Mon, Feb 17, 2020 at 02:07:09PM +0100, Matthias Brugger wrote: >>> >>> >>> On 17/02/2020 13:53, LABBE Corentin wrote: On Mon, Feb 17, 2020 at 11:50:04AM +0100, Matthias Brugger wrote: > >>>

[PATCH B] fixdep: fix U-Boot own code to handle only valid symbol characters

2020-02-18 Thread Masahiro Yamada
Currently, fixdep skips parsing include/linux/kconfig.h, but if it parsed it, it would translate the following code in kconfig.h config_enabled(CONFIG_VAL(option##_MODULE) into: $(wildcard include/config/option##/module.h) When Kbuild includes .*.cmd, it would emit the following error: *

Re: [PATCH v3 06/11] mmc: sdhci: reduce code duplication for aligned buffer

2020-02-18 Thread Jaehoon Chung
On 2/14/20 4:40 PM, Masahiro Yamada wrote: > The same code is run for both SDHCI_QUIRK_32BIT_DMA_ADDR and > define(CONFIG_FIXED_SDHCI_ALIGNED_BUFFER). > > Unify the code. > > Signed-off-by: Masahiro Yamada Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > Changes in v3: None

Re: [PATCH v3 05/11] mmc: sdhci: put the aligned buffer pointer to struct sdhci_host

2020-02-18 Thread Jaehoon Chung
On 2/14/20 4:40 PM, Masahiro Yamada wrote: > Using the global variable does not look nice. > > Add a new field sthci::align_buffer to point to the bounce buffer. > > Signed-off-by: Masahiro Yamada Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > Changes in v3: None > Changes

Re: [PATCH v3 07/11] mmc: sdhci: use lower_32_bit2() and upper_32_bits() for setting adma_addr

2020-02-18 Thread Jaehoon Chung
On 2/14/20 4:40 PM, Masahiro Yamada wrote: > Use {lower,upper}_32_bits() instead of the combination of cast > and shift. > > Signed-off-by: Masahiro Yamada Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > Changes in v3: None > Changes in v2: None > > drivers/mmc/sdhci.c | 5

Re: [PATCH v3 09/11] mmc: add mmc_get_dma_dir() helper

2020-02-18 Thread Jaehoon Chung
On 2/14/20 4:40 PM, Masahiro Yamada wrote: > Copied from Linux kernel. > include/linux/mmc/host.h > > Signed-off-by: Masahiro Yamada Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > Changes in v3: None > Changes in v2: None > > include/mmc.h | 6 ++ > 1 file changed, 6

Re: [PATCH v3 08/11] mmc: sdhci: remove unneeded casts

2020-02-18 Thread Jaehoon Chung
On 2/14/20 4:40 PM, Masahiro Yamada wrote: > host->mmc is already (struct mmc *). > > memalign() returns an opaque pointer, so there is no need for casting. > > Signed-off-by: Masahiro Yamada Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > Changes in v3: None > Changes in v

[U-Boot 1/1] eth: mtk-eth: add mt7531 switch support in mediatek eth driver

2020-02-18 Thread Landen Chao
mt7531 is a 7-ports switch with 5 embedded giga phys, and uses the same MAC design of mt7530. The cpu port6 supports SGMII only. The cpu port5 supports RGMII or SGMII in different model. mt7531 is connected to mt7622 via both RGMII and SGMII interfaces. In this patch, mt7531 cpu port5 or port6 is

Re: [PATCH] arch: arm: Fix SZ_64K undeclared compilation error

2020-02-18 Thread Bharat Kumar Reddy
Looks good to me. On 14/02/20 11:00 am, Wasim Khan wrote: Macro SZ_64K is undeclared. Include sizes.h to fix the compilation error. Signed-off-by: Wasim Khan --- arch/arm/lib/gic-v3-its.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/lib/gic-v3-its.c b/arch/arm/lib/gic-v3-its

Re: use invd instead of wbinvd in real mode start code

2020-02-18 Thread Andy Shevchenko
On Tue, Feb 18, 2020 at 1:06 PM Heiko Schocher wrote: > Am 18.02.2020 um 11:45 schrieb Andy Shevchenko: > > On Tue, Feb 18, 2020 at 7:48 AM Heiko Schocher wrote: ... > > How the feed back line is organized? I mean how host system will know that > > a) we done flash correctly? > > b) the boo

Re: [PATCH] kbuild: fixdep: Resync this with v4.17

2020-02-18 Thread Masahiro Yamada
Hi Tom, On Tue, Feb 18, 2020 at 11:29 AM Tom Rini wrote: > > The previous kbuild resync Precisely, it was "kconfig resync", not "kbuild resync". > of e91610da7c8a ("kconfig: re-sync with Linux > 4.17-rc4") accidentally did not sync the fixdep program. I do not think it was accidental. Kcon

Re: [PATCH] fixdep: fix U-Boot own code to handle only valid symbol characters

2020-02-18 Thread Masahiro Yamada
On Tue, Feb 18, 2020 at 8:06 PM Masahiro Yamada wrote: > > Currently, fixdep skips parsing include/linux/kconfig.h, but if it > parsed it, it would translate the following code in kconfig.h > > config_enabled(CONFIG_VAL(option##_MODULE) > > into: > > $(wildcard include/config/option##/module.h

Re: [PATCH] kbuild: fixdep: Resync this with v4.17

2020-02-18 Thread Masahiro Yamada
On Tue, Feb 18, 2020 at 8:32 PM Masahiro Yamada wrote: > > Hi Tom, > > On Tue, Feb 18, 2020 at 11:29 AM Tom Rini wrote: > > > > The previous kbuild resync > > > Precisely, it was "kconfig resync", not "kbuild resync". > > > > of e91610da7c8a ("kconfig: re-sync with Linux > > 4.17-rc4") accidental

Re: [PATCH] i2c: designware_i2c: Correct the selection of speed mode

2020-02-18 Thread Heiko Schocher
Hello Simon, Am 13.02.2020 um 21:24 schrieb Simon Glass: Unfortunately a recent change adjusted the order of the checks here such that 400MHz now shows up as fast-plus speed (1Mbps). Fix it. Signed-off-by: Simon Glass Fixes: d96440d1e3 ("i2c: designware_i2c: Add support for fast-plus speed") -

[U-Boot] Please pull from u-boot-i2c

2020-02-18 Thread Heiko Schocher
Hello Tom, please pull from u-boot-i2c master branch: The following changes since commit f2a73d6867ef973fbb8471cc87058205999b5e5c: Merge tag 'u-boot-stm32-20200214' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm (2020-02-14 07:31:47 -0500) are available in the Git repository at:

Re: [PATCH] fixdep: fix U-Boot own code to handle only valid symbol characters

2020-02-18 Thread Tom Rini
On Tue, Feb 18, 2020 at 08:35:06PM +0900, Masahiro Yamada wrote: > On Tue, Feb 18, 2020 at 8:06 PM Masahiro Yamada wrote: > > > > Currently, fixdep skips parsing include/linux/kconfig.h, but if it > > parsed it, it would translate the following code in kconfig.h > > > > config_enabled(CONFIG_VAL

[PATCH 02/16] ARM: dts: zynq: replace gpio-key, wakeup with wakeup-source property

2020-02-18 Thread Michal Simek
From: Sudeep Holla Most of the legacy "gpio-key,wakeup" boolean property is already replaced with "wakeup-source". However few occurrences of old property has popped up again, probably from the remnants in downstream trees. Replace the legacy properties with the unified "wakeup-source" property

[PATCH 00/16] xilinx: DT sync up

2020-02-18 Thread Michal Simek
Hi, I am sending these patches based on Xilinx SoC vendor tree. There are also fixes found based on Linux yaml parser. Patches with link to Linux mainline patches should be marked properly. Thanks, Michal Amit Kumar Mahapatra (1): arm64: zynqmp: Do not duplicate flash partition label propert

[PATCH 01/16] ARM: dts: zc702: Fix I2C bus warnings

2020-02-18 Thread Michal Simek
From: Quanyang Wang The dtc has new checks for I2C and SPI buses. Fix the warnings in node names and unit-addresses. Warning from Linux kernel: arch/arm/boot/dts/zynq-zc702.dts:187.13-190.6: Warning (i2c_bus_reg): /amba/i2c@e0004000/i2c-mux@74/i2c@7/hwmon@52: I2C bus unit address format error,

[PATCH 04/16] arm64: zynqmp: Update Copyright years to 2020

2020-02-18 Thread Michal Simek
Trivial change. Signed-off-by: Michal Simek --- arch/arm/dts/avnet-ultra96-rev1.dts | 2 +- arch/arm/dts/zynqmp-clk-ccf.dtsi | 2 +- arch/arm/dts/zynqmp-clk.dtsi | 2 +- arch/arm/dts/zynqmp-mini-qspi.dts| 2 +- arch/arm/dts/zynqmp-zc1232-revA.dts | 2 +- ar

[PATCH 06/16] arm64: zynqmp: Remove unused zynqmp-clk.dtsi

2020-02-18 Thread Michal Simek
All boards have been converted to firmware based driver that's why we can remove this file now. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-clk.dtsi | 244 --- 1 file changed, 244 deletions(-) delete mode 100644 arch/arm/dts/zynqmp-clk.dtsi diff --git a

[PATCH 03/16] arm64: zynqmp: Replace gpio-key, wakeup with wakeup source

2020-02-18 Thread Michal Simek
The same change has been done for Zynq by commit 1241c72b6db1 ("ARM: dts: zynq: replace gpio-key,wakeup with wakeup-source property") in mainline Linux kernel. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu208-revA.dts | 2 +- arch/arm/dts/zynqmp-zcu216-revA.dts | 2 +- 2 files changed

[PATCH 10/16] arm64: dts: zynqmp: Add clk cells for sdhci

2020-02-18 Thread Michal Simek
From: Ashok Reddy Soma Add clock-cells and clock-output-names for sdhci0 and sdhci1. These are needed for linux sdhci driver from 5.4 version onwards. Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp.dtsi | 4 1 file changed, 4 insertions(+) diff --gi

[PATCH 08/16] arm64: zynqmp: Add 'no-1-8-v' property for ZynqMP Boards

2020-02-18 Thread Michal Simek
From: Manish Narani Modify dts files to add 'no-1-8-v' property for all the ZynqMP boards. User can remove this property to enable the UHS mode. This is to keep the same speed (HS) modes across all the stages of the Linux Boot. Due to power cycling limitation of some of the ZynqMP boards, some SD

[PATCH 07/16] arm64: zynqmp: Sync zynqmp fpga manager with mainline

2020-02-18 Thread Michal Simek
From: Nava kishore Manne Sync zynqmp fpga manager with mainline. Signed-off-by: Nava kishore Manne Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-clk-ccf.dtsi | 4 arch/arm/dts/zynqmp.dtsi | 12 +++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/a

[PATCH 09/16] arm64: zynqmp: Remove second copy of reset-controller

2020-02-18 Thread Michal Simek
Reset controller is handled via firmware that's why it should be the part of firmware node. Origin solution hasn't been removed when above change was applied by commit b07e97b4ba27 ("arm64: zynqmp: Use reset header in zynqmp.dtsi"). Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp.dtsi | 5 -

[PATCH 05/16] ARM: zynq: Fix spi name node

2020-02-18 Thread Michal Simek
None name address should be aligned with address. DTC 1.5.1 is reporting issues related to that. arch/arm/boot/dts/zynq-zc770-xm010.dts:106.10-119.4: Warning (spi_bus_reg): /amba/spi@e0007000/flash@0: SPI bus unit address format error, expected "1" arch/arm/boot/dts/zynq-zc770-xm013.dts:101.19-1

[PATCH 12/16] arm64: zynqmp: Sync DP subsystem

2020-02-18 Thread Michal Simek
Sync DP subsystem with the latest state in Xilinx U-Boot repository. This binding hasn't been approved in mainline Linux but it is much better than ancient version which this patch removes. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-clk-ccf.dtsi | 6 +- arch/arm/dts/zynqmp-zc

[PATCH 15/16] arm64: zynqmp: Change bus naming to axi

2020-02-18 Thread Michal Simek
Linux dtbs_check reports issue with bus name reported as amba-apu@0: $nodename:0: 'amba-apu@0' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' amba: $nodename:0: 'amba' does not match '^(bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' That's why change bus names to axi. Signed-off-by: Michal Simek --

[PATCH 11/16] arm64: zynqmp: Do not duplicate flash partition label property

2020-02-18 Thread Michal Simek
From: Amit Kumar Mahapatra In kernel 5.4, support has been added for reading MTD devices via the nvmem API. For this the mtd devices are registered as read-only NVMEM providers under sysfs with the same name as the flash partition label property. So if flash partition label property of multiple

[PATCH 14/16] arm64: zynqmp: Fix GIC compatible property

2020-02-18 Thread Michal Simek
dtbs_check is showing warning around GIC compatible property as interrupt-controller@f901: compatible: ['arm,gic-400', 'arm,cortex-a15-gic'] is not valid under any of the given schemas Similar change has been done also by Linux kernel commit 5400cdc1410b ("ARM: dts: sunxi: Fix GIC compatible")

[PATCH 13/16] arm64: zynqmp: Fix addresses in partition definitions

2020-02-18 Thread Michal Simek
Node name should be @ which is not how partitions are described. Issue was found by running dtbs_check as: flash@0: 'partition@qspi-device-tree', 'partition@qspi-fsbl-uboot', 'partition@qspi-linux', 'partition@qspi-rootfs' do not match any of the regexes: ... Signed-off-by: Michal Simek --- ar

[PATCH 16/16] arm64: zynqmp: Move pinctrl node under firmware node

2020-02-18 Thread Michal Simek
Pinctrl is handled via firmare interface that's why move it there without reg property and new compatible string. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp.dtsi | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/arm/dts/zynqmp.dtsi b/arch/arm/dts/zynq

Re: [PATCH] kbuild: fixdep: Resync this with v4.17

2020-02-18 Thread Tom Rini
On Tue, Feb 18, 2020 at 08:37:44PM +0900, Masahiro Yamada wrote: > On Tue, Feb 18, 2020 at 8:32 PM Masahiro Yamada wrote: > > > > Hi Tom, > > > > On Tue, Feb 18, 2020 at 11:29 AM Tom Rini wrote: > > > > > > The previous kbuild resync > > > > > > Precisely, it was "kconfig resync", not "kbuild res

[RFC PATCH] serial: ns16550: Move PCI access from ofdata_to_platdata() to probe()

2020-02-18 Thread Wolfgang Wallner
Currently the ofdata_to_platdata() method calls dev_read_addr_pci(), which potentially accesses the parent PCI bus. If this happens before the parent PCI bus is probed the resulting address will be wrong. This behavior was triggered by commit 82de42fa1468 ("dm: core: Allocate parent data separate

[PATCH] env: Kconfig: Adding default values for Microblaze

2020-02-18 Thread Michal Simek
From: Varalaxmi Bingi This patch will add default values for ENV_OFFSET and ENV_SECT_SIZE for Microblaze. Signed-off-by: Varalaxmi Bingi Signed-off-by: Michal Simek --- env/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/env/Kconfig b/env/Kconfig index 0d6f559b39d3..2d972a5d4f3

[PATCH] net: phy: dp83867: Add SGMII mode type switching

2020-02-18 Thread Michal Simek
This patch adds ability to switch beetween two PHY SGMII modes. Some hardware, for example, FPGA IP designs may use 6-wire mode which enables differential SGMII clock to MAC. Patch description, dt flags have been done in mainline Linux by commit a2111c460c0c ("net: phy: dp83867: Add documentation

Re: [PATCH] common: fix regression on block cache init

2020-02-18 Thread Angelo Dureghello
Hi Simon, sorry for the late reply, startup assembly code that is actually accessing (re-adjusting) "got" after relocation is in : microblaze m68k I cannot test microblaze stuff btw. Regards, Angelo On Mon, Jan 27, 2020 at 9:21 AM Simon Goldschmidt wrote: > > On Sun, Jan 26, 2020 at 7:30 PM

RE: [PATCH v2] dm: core: Move "/chosen" and "/firmware" node scan

2020-02-18 Thread Patrick DELAUNAY
Hi, > From: Simon Glass > Sent: lundi 17 février 2020 04:56 > > Hi Patrick, > > On Thu, 13 Feb 2020 at 11:48, Patrick Delaunay > wrote: > > > > Use the new function dm_scan_fdt_ofnode_path() to scan all the nodes > > which aren't devices themselves but may contain some: > > - "/chosen" > > - "

Re: [PATCH v4 03/17] clk: Unconditionally recursively en-/dis-able clocks

2020-02-18 Thread Sean Anderson
On 2/18/20 2:20 AM, Rick Chen wrote: > Hi Sean > >> For clocks not in the CCF, their parents will not have UCLASS_CLK, so we >> just enable them as normal. The enable count is local to the struct clk, >> but this will never result in the actual en-/dis-able op being called >> (unless the same stru

Re: [PATCH 1/1] efi_loader: EFI_RNG_PROTOCOL

2020-02-18 Thread Heinrich Schuchardt
On 2/18/20 11:26 AM, Sughosh Ganu wrote: On Sat, 15 Feb 2020 at 04:04, Heinrich Schuchardt mailto:xypron.g...@gmx.de>> wrote: Do not use quotation marks for Kconfig help text. Replace rng abbreviation by full words. Signed-off-by: Heinrich Schuchardt mailto:xypron.g...@gmx.de>>

[PATCH] x86: p2sb: Drop 'apl' prefix

2020-02-18 Thread Wolfgang Wallner
Drop the Apollo Lake prefix 'apl' from the functions, types and variables in the P2SB driver. The P2SB is not Apollo Lake specific, and as such it was moved in commit 2999846c1127 ("x86: Move P2SB from Apollo Lake to a more generic location") from the Apollo Lake folder to the intel_common folder.

Re: [PATCH] include/eeprom.h: fix build errors

2020-02-18 Thread Tom Rini
On Tue, Feb 18, 2020 at 08:39:42AM +, Rasmus Villemoes wrote: > CMD_EEPROM and ENV_IS_IN_EEPROM can be selected independently, and > cmd/eeprom.o gets built in either case, so whether to declare the real > prototypes needs to follow the same logic as whether cmd/eeprom.c is > built. Otherwise

Re: use invd instead of wbinvd in real mode start code

2020-02-18 Thread Tom Rini
On Tue, Feb 18, 2020 at 01:29:04PM +0200, Andy Shevchenko wrote: > On Tue, Feb 18, 2020 at 1:06 PM Heiko Schocher wrote: > > Am 18.02.2020 um 11:45 schrieb Andy Shevchenko: > > > On Tue, Feb 18, 2020 at 7:48 AM Heiko Schocher wrote: > > ... > > > > How the feed back line is organized? I mean ho

[PATCH v3] dm: core: Move "/chosen" and "/firmware" node scan

2020-02-18 Thread Patrick Delaunay
Use the new function dm_scan_fdt_ofnode_path() to scan all the nodes which aren't devices themselves but may contain some: - "/chosen" - "/clocks" - "/firmware" The patch removes the strcmp call in recursive function dm_scan_fdt_live() and also corrects a conflict with the 2 applied patches in the

[PATCH] ARM: zynq: Change zc770 xm011 Nand x16 configurations

2020-02-18 Thread Michal Simek
Instead of symlink include origin file and just change model description. Difference is not in DT but in ps7_init configurations which is taken based on device tree name that's why the same DT can't be used. Also update model and update comments to match configurations. Signed-off-by: Michal Sime

Re: use invd instead of wbinvd in real mode start code

2020-02-18 Thread Andy Shevchenko
On Tue, Feb 18, 2020 at 4:43 PM Tom Rini wrote: > On Tue, Feb 18, 2020 at 01:29:04PM +0200, Andy Shevchenko wrote: > > On Tue, Feb 18, 2020 at 1:06 PM Heiko Schocher wrote: > > > Am 18.02.2020 um 11:45 schrieb Andy Shevchenko: > > > > On Tue, Feb 18, 2020 at 7:48 AM Heiko Schocher wrote: > > > >

[PATCH 1/2] Makefile: Add environment variable DEVICE_TREE to header

2020-02-18 Thread Michal Simek
Users have option to overwrite default device tree (CONFIG_DEFAULT_DEVICE_TREE) via environment variable DEVICE_TREE. Feature has been added long time ago by commit 74de8c9a1672 ("dts/Makefile: Build the user specified dts") for a little bit different reason. But this variable can be also used fo

[PATCH 0/2] ARM: zynq: Start to use unified configurations

2020-02-18 Thread Michal Simek
Hi, over the time there are a lot of zynq configurations which are almost the same. It just increasing amount of time for building/testing/maintaining that's why this patch starts to use xilinx_zynq_virt_defconfig which is all in one configurations which can be used on all zynq board. The series c

[PATCH 2/2] ARM: zynq: Switch to single zynq configurations

2020-02-18 Thread Michal Simek
There are a lot of zynq configurations which can be merged together and use only one for all. The similar change has been done for ZynqMP by commit be1b6c32d940 ("arm64: zynqmp: Use zynqmp_virt platform") Build SPL with u-boot.img for zc706 like this. export DEVICE_TREE=zynq-zc706 && make xilinx_z

[PATCH v2] ARM: zynq: Rename defconfig to be align with ZynqMP and Versal

2020-02-18 Thread Michal Simek
Just cosmetic change before real switch. Signed-off-by: Michal Simek --- Changes in v2: - Cover this new file by MAINTAINERS fragment board/xilinx/zynq/MAINTAINERS | 1 + configs/{zynq_virt_defconfig => xilinx_zynq_virt_defconfig} | 0 2 files changed, 1 insertion

[PATCH v1 0/2] display proper CPU frequency on hifive-unleashed

2020-02-18 Thread Sagar Shrikant Kadam
U-Boot cmd "cpu detail" shows wrong values, as the current cpu driver is fetching cpu_freq by reading the dt node property "clock-frequency". There should be a fallback mechanism to handle a case where this property if not present in DT it should be read from the prci driver. This patch series use

[PATCH v1 1/2] fu540: prci: add request and free clock handlers

2020-02-18 Thread Sagar Shrikant Kadam
Add handlers to check if a valid clock id is used to request clock by any driver using clk_request/clk_free API calls. Signed-off-by: Sagar Shrikant Kadam Tested-by: Vincent Chen --- drivers/clk/sifive/fu540-prci.c | 24 1 file changed, 24 insertions(+) diff --git a/dr

[PATCH v1 2/2] cpu: clk: riscv: populate proper CPU core clk frequency

2020-02-18 Thread Sagar Shrikant Kadam
Fetch core clock frequency from prci if clock-frequency for CPU nodes is missing in device tree, so that the cmd "#cpu detail" will show the correct CPU frequency. U-Boot command "#cpu detail" is showing wrong frequency values. This patch fixes this issue by getting the core clock set in prci driv

[PATCH] tools: image-host.c: remove uboot_aes.h

2020-02-18 Thread Philippe Reynes
The include uboot_aes.h is not usefull and it breaks the compilation on android, so we remove it. Signed-off-by: Philippe Reynes --- tools/image-host.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/image-host.c b/tools/image-host.c index 9483561..76a361b 100644 --- a/tools/image-host.

Re: [PATCH v4 07/17] spi: dw: Add mem_ops

2020-02-18 Thread Sean Anderson
On 2/18/20 3:34 AM, Rick Chen wrote: > Hi Sean > >> The dw spi devices on the Kendryte K210 must be operated in a specific >> fasion which cannot be achived through multiple writes to via dw_spi_xfer >> (as it is currently written). This patch adds an implementation of exec_op, >> which gives co

Re: [PATCH 1/1] efi_loader: EFI_RNG_PROTOCOL

2020-02-18 Thread Sughosh Ganu
On Tue, 18 Feb 2020 at 19:44, Heinrich Schuchardt wrote: > > > On 2/18/20 11:26 AM, Sughosh Ganu wrote: > > > > On Sat, 15 Feb 2020 at 04:04, Heinrich Schuchardt > > wrote: > > > > Do not use quotation marks for Kconfig help text. > > Replace rng abbreviation b

[PATCH] mpc83xx, abb: remove suvd3 board

2020-02-18 Thread Heiko Schocher
the mpc83xxx suvd3 variant is not longer used, so remove it. Signed-off-by: Holger Brunck Signed-off-by: Heiko Schocher --- Travis build: https://travis-ci.org/hsdenx/u-boot-test/builds/651885101 arch/powerpc/cpu/mpc83xx/Kconfig | 4 - board/keymile/km83xx/Kconfig | 19 board/keym

[PATCH V3 2/2] ARM: socfpga: Add missing Denali NAND config options

2020-02-18 Thread Marek Vasut
The Denali SPL shim won't build without these options set, set them accordingly to fix the build error and let the SPL shim to work correctly. Signed-off-by: Marek Vasut Cc: Ley Foon Tan Cc: Simon Goldschmidt --- V2: No changes V2: Drop CONFIG_SYS_NAND_USE_FLASH_BBT --- include/configs/socfpga

[PATCH V3 1/2] ARM: socfpga: Permit overriding the default timer frequency

2020-02-18 Thread Marek Vasut
The default timer rate may be different than 25 MHz, permit overriding the default rate in board configuration file. Ultimatelly, this should be properly handled by a clock driver, however that is not available on Gen5 yet. Signed-off-by: Marek Vasut Cc: Ley Foon Tan Cc: Simon Goldschmidt --- V

[PATCH] doc: i2c: gpio: Document deblock sequence on probe

2020-02-18 Thread Marek Vasut
Document the gpio-i2c deblocking sequence binding. Signed-off-by: Marek Vasut --- doc/device-tree-bindings/i2c/i2c-gpio.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/device-tree-bindings/i2c/i2c-gpio.txt b/doc/device-tree-bindings/i2c/i2c-gpio.txt index ba56ed5dea..e29eeba9e6 10

Re: [PATCH 3/4] i2c: Add option to send start condition after deblocking

2020-02-18 Thread Marek Vasut
On 2/18/20 8:07 AM, Heiko Schocher wrote: > Hello Marek, Hi, > Am 07.02.2020 um 16:57 schrieb Marek Vasut: >> Add option to send start condition after deblocking SDA. >> >> Signed-off-by: Marek Vasut >> --- >>   drivers/i2c/i2c-uclass.c | 23 --- >>   include/i2c.h   

Re: [PATCH 4/4] i2c: gpio: Run deblock sequence on probe

2020-02-18 Thread Marek Vasut
On 2/18/20 8:11 AM, Heiko Schocher wrote: > Hello Marek, > > Am 07.02.2020 um 16:57 schrieb Marek Vasut: >> Add deblock dequence for the I2C bus, needed on some devices. This >> sequence >> is issued once, when probing the driver, and is controlled by DT >> property, >> "i2c-gpio,deblock". >> >> S

Re: [PATCH] fixdep: fix U-Boot own code to handle only valid symbol characters

2020-02-18 Thread Masahiro Yamada
On Tue, Feb 18, 2020 at 8:06 PM Masahiro Yamada wrote: > > Currently, fixdep skips parsing include/linux/kconfig.h, but if it > parsed it, it would translate the following code in kconfig.h > > config_enabled(CONFIG_VAL(option##_MODULE) > > into: > > $(wildcard include/config/option##/module.h

Re: [PATCH] image.h: use uint32_t instead of u32 in android_image_get_dtb*

2020-02-18 Thread Masahiro Yamada
On Mon, Feb 17, 2020 at 7:24 PM Eugeniu Rosca wrote: > > Replace 'u32' by 'uint32_t' in image.h, since the former may lead to > build failures in U-Boot tooling (see [1]). > > Avoid using 'uint', since it is not a fixed-width type [2], potentially > leading to a dangerous mismatch between the prot

  1   2   >