Detecting network loaded uboot

2020-11-06 Thread Spaker, Erich
I would like to configure uboot to default to network booting, if uboot.img was loaded from the network itself (by SPL). Otherwise booting from the drive. I presume some information is passed from SPL to uboot. Is the source of uboot.img (network, mmc) known to uboot after it starts? If not,

[PATCH] efi_loader: Add missing newline to log_{err,warning}

2020-11-06 Thread Paulo Alcantara
Add missing newline to log messages in efi_rng_register() otherwise something like below would be shown Scanning disk virtio-blk#31... Found 2 disks Missing RNG device for EFI_RNG_PROTOCOLNo EFI system partition Signed-off-by: Paulo Alcantara (SUSE) ---

RE: [dwi2c PATCH v1] dwi2c add offsets to reads

2020-11-06 Thread Duffin, CooperX
Hello Simon, I wasn’t using the test/dm/i2c I this was tested using hardware where I was using the dm_i2c_read() function. I just tried to use the test/dm/i2c where I am following the README but I keep getting "sdl2-config: Command not found". I suspect it would also fail where it is trying

Re: [PATCH 10/10] setexpr: Add support for strings

2020-11-06 Thread Simon Glass
Hi Tom, On Fri, 6 Nov 2020 at 13:58, Tom Rini wrote: > > On Thu, Nov 05, 2020 at 10:27:25AM -0700, Simon Glass wrote: > > Hi Marek, > > > > On Tue, 3 Nov 2020 at 09:30, Marek Behun wrote: > > > > > > On Tue, 3 Nov 2020 08:12:17 -0700 > > > Simon Glass wrote: > > > > > > > Hi Marek, > > > > > >

Re: [PATCH 10/10] setexpr: Add support for strings

2020-11-06 Thread Tom Rini
On Thu, Nov 05, 2020 at 10:27:25AM -0700, Simon Glass wrote: > Hi Marek, > > On Tue, 3 Nov 2020 at 09:30, Marek Behun wrote: > > > > On Tue, 3 Nov 2020 08:12:17 -0700 > > Simon Glass wrote: > > > > > Hi Marek, > > > > > > On Sun, 1 Nov 2020 at 16:08, Marek Behun wrote: > > > > > > > > What is

Re: [PATCH v2 0/3] allow positional arguments with "run"

2020-11-06 Thread Tom Rini
On Thu, Nov 05, 2020 at 08:25:31AM +0100, Rasmus Villemoes wrote: > On 07/10/2020 09.20, Rasmus Villemoes wrote: > > This enables one to use positional arguments $1..$9 in functions > > defined in the environment, > > Tom, can I ask for a decision on these? I know Wolfgang is opposed, and > if

Re: [PATCH] env: env_sf: don't set .init op if not needed

2020-11-06 Thread Tom Rini
On Fri, Nov 06, 2020 at 08:46:27AM +0100, Rasmus Villemoes wrote: > On 05/11/2020 17.40, Wolfgang Denk wrote: > > Dear Rasmus, > > > > In message <8ff3b8ad-8c4e-fe99-69c8-7c174e997...@prevas.dk> you wrote: > >> > Not in a none standard way! Instead you can define more than one >

Re: [PATCH] video: add TDO tl070wsh30 panel driver

2020-11-06 Thread Anatolij Gustschin
On Fri, 6 Nov 2020 11:29:47 +0100 Neil Armstrong narmstr...@baylibre.com wrote: > This adds support for the TDO TL070WSH30 TFT-LCD panel module. > The panel has a 1024×600 resolution and uses 24 bit RGB per pixel. > It provides a MIPI DSI interface to the host, a built-in LED backlight > and

Re: [dwi2c PATCH v1] dwi2c add offsets to reads

2020-11-06 Thread Simon Glass
Hi Cduffinx, On Thu, 5 Nov 2020 at 14:26, cduffinx wrote: > > modify the designware_i2c_xfer function to use 1 byte per > address, it was set to 0 before which makes it think its > reading a register type. Added offset of where it is > supposed to read from. Before it was always reading from >

Re: [PATCH 00/33] stm32: enable logging features

2020-11-06 Thread Simon Glass
Hi Patrick, On Fri, 6 Nov 2020 at 10:45, Patrick DELAUNAY wrote: > > Hi Simon, > > > From: Simon Glass > > Sent: vendredi 30 octobre 2020 19:16 > > > > Hi Patrick, > > > > On Wed, 28 Oct 2020 at 05:52, Patrick DELAUNAY > > wrote: > > > > > > Hi Simon, > > > > > > > From: Simon Glass > > > >

Re: [PATCH v2 3/3] mmc: Only retrieve cd pin when GPIO is enabled

2020-11-06 Thread Simon Glass
Hi Harm, On Fri, 6 Nov 2020 at 05:20, Harm Berntsen wrote: > > The driver only needs to retrieve the pin for the ACPI info. The driver > itself works without depending on GPIO. > > Signed-off-by: Harm Berntsen > CC: Simon Glass > --- > Changes for v2: > - Changed ifdef to if

Re: [PATCH v2 2/3] acpi: Add missing ARM acpi_table header

2020-11-06 Thread Simon Glass
On Fri, 6 Nov 2020 at 05:24, Harm Berntsen wrote: > > The pci_mmc.c driver can generate ACPI info and therefore includes > asm/acpi_table.h by proxy. This file does not exist for the ARM > architecture and thus code compilation failed when using this > driver on ARM. > > Signed-off-by: Harm

Re: [PATCH v6 13/14] x86: Provide default SMBIOS manufacturer/product

2020-11-06 Thread Simon Glass
Hi Bin, On Thu, 5 Nov 2020 at 19:16, Bin Meng wrote: > > On Thu, Nov 5, 2020 at 9:32 PM Simon Glass wrote: > > > > Add a file containing defaults for these, using the existing CONFIG > > options. This file must be included with #include since it needs to > > are not passed through the C

[PATCH v2 33/33] configs: stm32mp15: enable LOG features

2020-11-06 Thread Patrick Delaunay
Activate the logging features in SPL and U-Boot (CONFIG_LOG and CONFIG_SPL_LOG) and the command 'log' with CONFIG_CMD_LOG. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) configs/stm32mp15_basic_defconfig | 2 ++ configs/stm32mp15_trusted_defconfig |

[PATCH v2 31/33] board: st: stm32mp1: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change pr_* to dev_ or log_ macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) board/st/stm32mp1/stm32mp1.c | 134 +-- 1 file changed, 65 insertions(+), 69 deletions(-) diff --git

[PATCH v2 29/33] video: stm32_ltdc: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change pr_* to dev_ or log_ macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/video/stm32/stm32_ltdc.c | 33 +--- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git

[PATCH v2 24/33] spi: stm32_spi: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change debug/pr_debug to log_debug or dev_dbg macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1)

[PATCH v2 30/33] video: stm32_dsi: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change pr_* to dev_ or log_ macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/video/stm32/stm32_dsi.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git

[PATCH v2 32/33] board: st: common: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change pr_* to dev_ or log_ macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) board/st/common/stm32mp_dfu.c | 3 ++- board/st/common/stm32mp_mtdparts.c | 5 +++-- board/st/common/stpmic1.c | 5 -

[PATCH v2 25/33] spi: stm32_qspi: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change debug/pr_* to log_* or dev_* macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1)

[PATCH v2 27/33] memory: stm32-fmc2: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change pr_* to dev_ or log_ macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/memory/stm32-fmc2-ebi.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git

[PATCH v2 28/33] serial: stm32: define LOG_CATEGORY

2020-11-06 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/serial/serial_stm32.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c

[PATCH v2 20/33] reset: stm32-reset: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change debug to dev_dbg macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed). Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/reset/stm32-reset.c | 13 + 1 file

[PATCH v2 26/33] mtd: stm32_fmc2: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change pr_* to dev_ or log_ macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/mtd/nand/raw/stm32_fmc2_nand.c | 40 -- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git

[PATCH v2 21/33] mailbox: stm32-ipcc: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change debug to dev_dbg macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1)

[PATCH v2 23/33] phy: stm32-usbphyc: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change pr_debug to log_debug or dev_dbg macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1)

[PATCH v2 19/33] clk: clk_stm32h7: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change debug and pr_ macro to dev macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1)

[PATCH v2 18/33] clk: clk_stm32f: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change debug and pr_ macro to dev macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1)

[PATCH v2 22/33] i2c: stm32f7_i2c: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change debug to dev_dbg macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/i2c/stm32f7_i2c.c |

[PATCH v2 16/33] misc: rcc: keep the rcc device name for subnode

2020-11-06 Thread Patrick Delaunay
Update the name associated with the RCC drivers to avoid duplicated name with the driver name. With this patch the traces displayed with log macro provide a correct device name. The rcc device name before the patch is: Class Index Probed DriverName

[PATCH v2 09/33] mmc: stm32_sdmmc2: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Define LOG_CATEGORY, use dev_ macro when it is possible. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- Changes in v2: - Solve merge conflict - Add

[PATCH v2 17/33] clk: stm32mp1: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change debug and pr_ macro to dev macro and define LOG_CATEGORY. Remove the "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) or log macro (CONFIG_LOGF_FUNC). Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1)

[PATCH v2 10/33] timer: stm32: migrate trace to log macro

2020-11-06 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/timer/stm32_timer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/timer/stm32_timer.c b/drivers/timer/stm32_timer.c index

[PATCH v2 13/33] watchdog: stm32mp: migrate trace to dev macro

2020-11-06 Thread Patrick Delaunay
Change debug and pr_err to dev macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/watchdog/stm32mp_wdt.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/stm32mp_wdt.c

[PATCH v2 14/33] power: regulator: stm32-verfbuf: define LOG_CATEGORY

2020-11-06 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/power/regulator/stm32-vrefbuf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/regulator/stm32-vrefbuf.c

[PATCH v2 15/33] misc: rcc: migrate trace to dev macro

2020-11-06 Thread Patrick Delaunay
Change debug and pr_err to dev macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/misc/stm32_rcc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/misc/stm32_rcc.c

[PATCH v2 12/33] rtc: stm32: migrate trace to log macro

2020-11-06 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/rtc/stm32_rtc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/rtc/stm32_rtc.c b/drivers/rtc/stm32_rtc.c index

[PATCH v2 00/33] stm32: enable logging features

2020-11-06 Thread Patrick Delaunay
V2 of previous patchset [1], I just rebase the serie and solved the compilation issue. This patch-set migrates several stm32 drivers to API compatible with logging features (use dev_...() or log_...() function) and activate the logging features in STM32MP15 boards. The size of U-Boot increased

[PATCH v2 08/33] ram: stm32mp1: migrate trace to dev or log macro

2020-11-06 Thread Patrick Delaunay
Define LOG_CATEGORY, use dev_ macro when it is possible and migrate other trace to log_ macro. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- Changes in v2: - Add dm/device_compat.h drivers/ram/stm32mp1/stm32mp1_ddr.c | 36 +++---

[PATCH v2 03/33] arm: stm32mp: bsec: migrate trace to log macro

2020-11-06 Thread Patrick Delaunay
Define LOG_CATEGORY, change pr_debug to dev_dbg and remove "bsec:" header as it is managed by log macro (dev->name is displayed) Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- Changes in v2: - Add dm/device_compat.h arch/arm/mach-stm32mp/bsec.c | 38

[PATCH v2 11/33] hwspinlock: stm32: migrate trace to log macro

2020-11-06 Thread Patrick Delaunay
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/hwspinlock/stm32_hwspinlock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hwspinlock/stm32_hwspinlock.c

[PATCH v2 04/33] pinctrl: stm32: migrate trace to log macro

2020-11-06 Thread Patrick Delaunay
Change debug to log macro and define LOG_CATEGORY. Remove "%s:" with __func__ as it is managed by log macro (CONFIG_LOGF_FUNC) Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- Changes in v2: - Solve merge conflict - Add dm/device_compat.h drivers/pinctrl/pinctrl_stm32.c | 30

[PATCH v2 07/33] ram: stm32: migrate trace to log macro

2020-11-06 Thread Patrick Delaunay
Define LOG_CATEGORY, change debug to dev_dbg and remove "%s:" __func__ header as it is managed by dev macro (dev->name is displayed) Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/ram/stm32_sdram.c | 10 ++ 1 file changed, 6

[PATCH v2 05/33] gpio: stm32-gpio: migrate trace to dev and log macro

2020-11-06 Thread Patrick Delaunay
Change debug to dev_dbg macro and define LOG_CATEGORY. Remove dev->name as it is already displayed by dev macro. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/gpio/stm32_gpio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[PATCH v2 02/33] arm: stm32mp: migrate cmd_stm32prog to log macro

2020-11-06 Thread Patrick Delaunay
Change debug and pr_ macro to log macro. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- Changes in v2: - solve rebase conflict .../cmd_stm32prog/cmd_stm32prog.c | 4 +- .../mach-stm32mp/cmd_stm32prog/stm32prog.c| 112 +-

[PATCH v2 06/33] remoproc: stm32: migrate trace to log macro

2020-11-06 Thread Patrick Delaunay
Define LOG_CATEGORY and remove unneeded pr_fmt macro with the dev macro as dev->name is displayed and CONFIG_LOGF_FUNC can be activated for log macro. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) drivers/remoteproc/stm32_copro.c | 3 ++- 1 file

[PATCH v2 01/33] arm: stm32mp: migrate trace to log macro

2020-11-06 Thread Patrick Delaunay
Change debug and pr_ macro to log macro and define LOG_CATEGORY. Signed-off-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- (no changes since v1) arch/arm/mach-stm32mp/boot_params.c | 8 +--- arch/arm/mach-stm32mp/cmd_stm32key.c | 3 ++- arch/arm/mach-stm32mp/cpu.c |

[PATCH v2 2/2] pinctrl: renesas: Implement get_pin_muxing() callback

2020-11-06 Thread Lad Prabhakar
Implement get_pin_muxing() callback so that pinmux status command can be used on Renesas platforms. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- drivers/pinctrl/renesas/pfc.c | 31 +++ 1 file changed, 31 insertions(+) diff --git

[PATCH v2 0/2] pinctrl: renesas: trivial fixes and enhancements

2020-11-06 Thread Lad Prabhakar
Hi All, This patch series includes trivial fixes and enhancements to renesas pfc driver. Cheers, Prabhakar v1->v2 * Patch 1/2 updated commit message * patch 2/2 unchanged Lad Prabhakar (2): pinctrl: renesas: Make sure the pin type is updated after setting the MUX pinctrl: renesas:

[PATCH v2 1/2] pinctrl: renesas: Make sure the pin type is updated after setting the MUX

2020-11-06 Thread Lad Prabhakar
By default on startup all the pin types are configured to PINMUX_TYPE_NONE (in sh_pfc_map_pins()), when pin is set as GPIO the pin type is updated to PINMUX_TYPE_GPIO. But the type is not updated when the pin is set as a function in sh_pfc_pinctrl_pin_set() or sh_pfc_pinctrl_group_set() calls

[PATCH 3/3] log: call vsnprintf only when it is needed to emit trace

2020-11-06 Thread Patrick Delaunay
Reduce the log overhead when the traces are filtered, by moving the vsnprintf call from _log() to log_dispatch(). This patch avoids the printf treatment when LOG features is activated, but trace is filtered, for example when MAX_LOG_LEVEL=8 and LOG_DEFAULT_LEVEL=6. Signed-off-by: Patrick

[PATCH 1/3] log: don't build the trace buffer when log is not ready

2020-11-06 Thread Patrick Delaunay
Update _log function to drop any traces when log is yet initialized: vsnprintf is no more executed in this case. This patch allows to reduce the cost for the dropped early debug trace. Signed-off-by: Patrick Delaunay --- common/log.c | 13 - 1 file changed, 8 insertions(+), 5

[PATCH 2/3] log: use debug uart to output trace before LOG init

2020-11-06 Thread Patrick Delaunay
Use the debug uart functions to output the traces before the log initialization (when CONFIG_LOG is not activated) as it is done in puts/putc function in console.c. This patch allows to display the first U-Boot traces (with macro debug) when CONFIG_DEBUG_UART is activated and not only drop them.

RE: [PATCH 00/33] stm32: enable logging features

2020-11-06 Thread Patrick DELAUNAY
Hi Simon, > From: Simon Glass > Sent: vendredi 30 octobre 2020 19:16 > > Hi Patrick, > > On Wed, 28 Oct 2020 at 05:52, Patrick DELAUNAY > wrote: > > > > Hi Simon, > > > > > From: Simon Glass > > > Sent: lundi 26 octobre 2020 20:23 > > > > > > Hi Patrick, > > > > > > On Thu, 15 Oct 2020 at

RE: [PATCH] ARM: dts: stm32: Drop QSPI CS2 on DHCOM

2020-11-06 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mercredi 28 octobre 2020 21:38 > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Patrice CHOTARD > ; Patrick DELAUNAY > Subject: [PATCH] ARM: dts: stm32: Drop QSPI CS2 on DHCOM > Importance: High > > The QSPI CS2 is not used on DHCOM, remove the pinmux and

RE: [PATCH] ARM: dts: stm32: Fix uSD card-detect GPIO on DHCOM

2020-11-06 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mercredi 28 octobre 2020 21:38 > To: u-boot@lists.denx.de > Cc: Marek Vasut ; Patrice CHOTARD > ; Patrick DELAUNAY > Subject: [PATCH] ARM: dts: stm32: Fix uSD card-detect GPIO on DHCOM > Importance: High > > The uSD slot card-detect GPIO is connected to

Re: Please pull u-boot-x86

2020-11-06 Thread Tom Rini
On Fri, Nov 06, 2020 at 12:55:03PM +0800, Bin Meng wrote: > Hi Tom, > > This PR includes the following changes for v2021.01 release: > > - Add a new SMBIOS parser and enable it when booting from coreboot > - Fix up various driver names to avoid dtoc warnings > - Fully enable ACPI support on

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

2020-11-06 Thread Tom Rini
On Fri, Nov 06, 2020 at 10:49:31AM +0100, Neil Armstrong wrote: > Hi Tom, > > This PR fixes some documentation and the android early logo boot flow. > > The CI job is at > https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic/pipelines/5274 > > Thanks, > Neil > > The following changes

Re: [PATCH] Makefile: Fix calling make with V=1

2020-11-06 Thread Tom Rini
On Wed, Nov 04, 2020 at 10:34:35AM +0100, Pali Rohár wrote: > Calling 'make V=1 all' on Ubuntu 18.04 with gcc version 9.2.1 and GNU Make > version 4.1 fails on error: > > scripts/Kbuild.include:220: *** Recursive variable 'echo-cmd' references > itself (eventually). Stop. > > As a

Re: [GIT PULL] Pull request: u-boot-imx u-boot-imx-20201105

2020-11-06 Thread Tom Rini
On Thu, Nov 05, 2020 at 05:48:56PM +0100, Stefano Babic wrote: > Hi Tom, > > please pull from u-boot-imx, thanks ! > > The following changes since commit 2c31d7e746766f47a007f39c030706e493a9cc77: > > Merge tag 'u-boot-rockchip-20201031' of >

RE: [PATCH] Makefile: Fix calling make with V=1

2020-11-06 Thread Patrick DELAUNAY
Hi Pali > From: Pali Rohár > Sent: mercredi 4 novembre 2020 10:35 > > Calling 'make V=1 all' on Ubuntu 18.04 with gcc version 9.2.1 and GNU Make > version 4.1 fails on error: > > scripts/Kbuild.include:220: *** Recursive variable 'echo-cmd' references > itself > (eventually). Stop. > >

[PATCH v2 2/3] acpi: Add missing ARM acpi_table header

2020-11-06 Thread Harm Berntsen
The pci_mmc.c driver can generate ACPI info and therefore includes asm/acpi_table.h by proxy. This file does not exist for the ARM architecture and thus code compilation failed when using this driver on ARM. Signed-off-by: Harm Berntsen CC: Simon Glass --- Changes for v2: Different approach,

[PATCH v2 3/3] mmc: Only retrieve cd pin when GPIO is enabled

2020-11-06 Thread Harm Berntsen
The driver only needs to retrieve the pin for the ACPI info. The driver itself works without depending on GPIO. Signed-off-by: Harm Berntsen CC: Simon Glass --- Changes for v2: - Changed ifdef to if (CONFIG_IS_ENABLED(DM_GPIO)) drivers/mmc/pci_mmc.c | 6 -- 1 file changed, 4

Re: [PATCH 2/3] mmc: meson-gx: limit max frequency on SM1 SoCs

2020-11-06 Thread Mark Kettenis
> From: Neil Armstrong > Date: Fri, 6 Nov 2020 11:35:30 +0100 > > On 06/11/2020 11:32, Jaehoon Chung wrote: > > On 11/6/20 6:27 PM, Neil Armstrong wrote: > >> Amlogic SM1 SoCs doesn't handle very well high clocks from the DIV2 input > >> Thus we limit the max freq to 26MHz on SM1 SoCs until we

[PATCH] mmc: check a return value about regulator's always-on

2020-11-06 Thread Jaehoon Chung
Regulator can be set to "always-on". It's not error about enable/disable. It needs to check about its condition. Signed-off-by: Jaehoon Chung --- drivers/mmc/mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index

[PATCH] mmc: display an error number to debug

2020-11-06 Thread Jaehoon Chung
It's useful to know an error number when it's debugging. Signed-off-by: Jaehoon Chung --- drivers/mmc/mmc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 7783535d0953..2457c6fef97a 100644 --- a/drivers/mmc/mmc.c +++

Re: [PATCH] km/arm: cleanup defconfig files

2020-11-06 Thread Stefan Roese
On 06.11.20 10:42, Holger Brunck wrote: Disable some unneeded config options and adapt the ident string. CC: Stefan Roese Signed-off-by: Holger Brunck Reviewed-by: Stefan Roese Thanks, Stefan --- configs/km_kirkwood_128m16_defconfig | 8 +--- configs/km_kirkwood_defconfig

Re: [PATCH 2/3] mmc: meson-gx: limit max frequency on SM1 SoCs

2020-11-06 Thread Neil Armstrong
On 06/11/2020 11:32, Jaehoon Chung wrote: > On 11/6/20 6:27 PM, Neil Armstrong wrote: >> Amlogic SM1 SoCs doesn't handle very well high clocks from the DIV2 input >> Thus we limit the max freq to 26MHz on SM1 SoCs until we handle higher >> frequencies via the first input from a composite clock. >>

Re: [PATCH 2/3] mmc: meson-gx: limit max frequency on SM1 SoCs

2020-11-06 Thread Jaehoon Chung
On 11/6/20 6:27 PM, Neil Armstrong wrote: > Amlogic SM1 SoCs doesn't handle very well high clocks from the DIV2 input > Thus we limit the max freq to 26MHz on SM1 SoCs until we handle higher > frequencies via the first input from a composite clock. > > Here 26MHz corresponds to MMC_HS clock

[PATCH] video: add TDO tl070wsh30 panel driver

2020-11-06 Thread Neil Armstrong
This adds support for the TDO TL070WSH30 TFT-LCD panel module. The panel has a 1024×600 resolution and uses 24 bit RGB per pixel. It provides a MIPI DSI interface to the host, a built-in LED backlight and touch controller. Signed-off-by: Neil Armstrong --- drivers/video/Kconfig | 9

Re: [PATCH 1/3] mmc: meson-gx: move arch header to local header

2020-11-06 Thread Neil Armstrong
On 06/11/2020 11:27, Jaehoon Chung wrote: > On 11/6/20 6:27 PM, Neil Armstrong wrote: >> Move the asm/arch-meson/sd_emmc.h to a local meson_gx_mmc.h, >> remove the useless if/then and fix the meson_gx_mmc.c include. >> >> Signed-off-by: Neil Armstrong >> --- >> drivers/mmc/meson_gx_mmc.c

Re: [PATCH 1/3] mmc: meson-gx: move arch header to local header

2020-11-06 Thread Jaehoon Chung
On 11/6/20 6:27 PM, Neil Armstrong wrote: > Move the asm/arch-meson/sd_emmc.h to a local meson_gx_mmc.h, > remove the useless if/then and fix the meson_gx_mmc.c include. > > Signed-off-by: Neil Armstrong > --- > drivers/mmc/meson_gx_mmc.c | 4 ++-- >

[PATCH 4/4] configs: use the new MESON_EE_POWER_DOMAIN driver for Amlogic GXBB/GXL/GXM boards

2020-11-06 Thread Neil Armstrong
Linux 5.10-rc1 uses the new generic driver, so switch to it since GXBB and later is now supported. Signed-off-by: Neil Armstrong --- configs/libretech-ac_defconfig | 2 +- configs/libretech-cc_defconfig | 2 +- configs/libretech-s905d-pc_defconfig | 2 +-

[PATCH 3/4] power: domain: meson-ee-pwrc: add support for the Meson AXG SoCs

2020-11-06 Thread Neil Armstrong
This syncs with the linux meson-ee-pwrc driver from Linux 5.10-rc1. Signed-off-by: Neil Armstrong --- drivers/power/domain/meson-ee-pwrc.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/power/domain/meson-ee-pwrc.c b/drivers/power/domain/meson-ee-pwrc.c

[PATCH 1/4] ARM: dts: sync Amlogic GX & AXG from Linux 5.10-rc1

2020-11-06 Thread Neil Armstrong
Synced from Linux commit 3650b228f83a ("Linux 5.10-rc1") Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 1 + arch/arm/dts/meson-axg.dtsi | 6 +- arch/arm/dts/meson-g12b-khadas-vim3.dtsi | 88 ---

[PATCH 2/4] power: domain: meson-ee-pwrc: add support for the Meson GX SoCs

2020-11-06 Thread Neil Armstrong
This syncs with the linux meson-ee-pwrc driver from Linux 5.10-rc1. Signed-off-by: Neil Armstrong --- drivers/power/domain/meson-ee-pwrc.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/power/domain/meson-ee-pwrc.c

[PATCH 0/4] ARM: upgrade Amlogic DT to Linux 5.10

2020-11-06 Thread Neil Armstrong
This syncs the Amlogic DT to 5.10, and : - adds support for the new common MESON_EE_POWER_DOMAIN synced on 5.10 - adds Odroid-N2+ DT using the Odroid-N2 DT as base Neil Armstrong (4): ARM: dts: sync Amlogic GX & AXG from Linux 5.10-rc1 power: domain: meson-ee-pwrc: add support for the Meson

Re: Fail to reset on Odroid-C4

2020-11-06 Thread Neil Armstrong
On 06/11/2020 10:59, Jaehoon Chung wrote: > Hi, > > On 11/6/20 6:28 PM, Neil Armstrong wrote: >> Hi, >> >> On 06/11/2020 03:10, Jaehoon Chung wrote: >>> Hi, >>> >>> I have checked U-boot on Odroid-C4 with v2020.10. >>> I found a problem about reset behavior. >>> >>> In my environment, >>> - Boot

Re: Fail to reset on Odroid-C4

2020-11-06 Thread Jaehoon Chung
Hi, On 11/6/20 6:28 PM, Neil Armstrong wrote: > Hi, > > On 06/11/2020 03:10, Jaehoon Chung wrote: >> Hi, >> >> I have checked U-boot on Odroid-C4 with v2020.10. >> I found a problem about reset behavior. >> >> In my environment, >> - Boot to SD-card, >> - built u-boot v2020.10 with

Re: [PATCH] tools: dumpimage: Remove remaining mentions of the -i option

2020-11-06 Thread Martyn Welch
On Mon, 2020-10-26 at 10:40 -0500, Tyler Hicks wrote: > The -i option of the dumpimage tool has been removed so it should no > longer be documented in the README file. Refer readers to the tool's > help output rather than maintain a copy of the usage in the README. > > Finally, adjust the example

[PULL u-boot] Please pull u-boot-amlogic-20201105

2020-11-06 Thread Neil Armstrong
Hi Tom, This PR fixes some documentation and the android early logo boot flow. The CI job is at https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic/pipelines/5274 Thanks, Neil The following changes since commit cdeb7b8f984e6d9bcdc5a6fdda6107af156d47bf: configs: Resync with

[PATCH RESEND v2 1/2] arm64: dts: import libretech-cc-v2 from linux v5.10-rc1

2020-11-06 Thread Jerome Brunet
Sync the libretech cc v2 device tree from Linux v5.10-rc1 commit 3650b228f83a ("Linux 5.10-rc1") Signed-off-by: Jerome Brunet --- arch/arm/dts/Makefile | 1 + .../dts/meson-gxl-s905x-libretech-cc-v2.dts | 318 ++ 2 files changed, 319 insertions(+)

[PATCH RESEND v2 2/2] arm64: meson: add support for libretech-cc v2

2020-11-06 Thread Jerome Brunet
Add support for the Amlogic based libretech cc version 2. As version 1, it is based on the s905x SoC. Signed-off-by: Jerome Brunet --- ...eson-gxl-s905x-libretech-cc-v2-u-boot.dtsi | 7 ++ board/amlogic/p212/MAINTAINERS| 1 + configs/libretech-cc_v2_defconfig |

[PATCH RESEND v2 0/2] arm64: meson: add libretech cc v2 support

2020-11-06 Thread Jerome Brunet
This patchset adds support for the Amlogic based libretech cc v2. Like the v1, this revised platform used the s905x SoC. Changes since v1: - Move Makefile change to patch #1 - Amend documentation for libretech cc v2 Jerome Brunet (2): arm64: dts: import libretech-cc-v2 from linux v5.10-rc1

Re: [PATCH v2 0/2] arm64: meson: add libretech cc v2 support

2020-11-06 Thread Jerome Brunet
On Fri 06 Nov 2020 at 10:29, Neil Armstrong wrote: > Hi, > > On 06/11/2020 10:07, Jerome Brunet wrote: >> This patchset adds support for the Amlogic based libretech cc v2. >> Like the v1, this revised platform used the s905x SoC. >> >> Changes since v1: >> - Move Makefile change to patch #1

[PATCH] km/arm: cleanup defconfig files

2020-11-06 Thread Holger Brunck
Disable some unneeded config options and adapt the ident string. CC: Stefan Roese Signed-off-by: Holger Brunck --- configs/km_kirkwood_128m16_defconfig | 8 +--- configs/km_kirkwood_defconfig| 8 +--- configs/km_kirkwood_pci_defconfig| 9 ++---

Re: [PATCH 0/2] Fix the potential warning without DM_REGULATOR

2020-11-06 Thread Neil Armstrong
On 06/11/2020 06:57, Jaehoon Chung wrote: > When CONFIG_DM_REGULATOR is disabled, there are some warnings. > This patch-set is fixed them. > > drivers/phy/meson-g12a-usb2.c: In function 'phy_meson_g12a_usb2_power_on': > drivers/phy/meson-g12a-usb2.c:70:35: warning: unused variable 'priv' >

Re: [PATCH v2 0/2] arm64: meson: add libretech cc v2 support

2020-11-06 Thread Neil Armstrong
Hi, On 06/11/2020 10:07, Jerome Brunet wrote: > This patchset adds support for the Amlogic based libretech cc v2. > Like the v1, this revised platform used the s905x SoC. > > Changes since v1: > - Move Makefile change to patch #1 > - Amend documentation for libretech cc v2 Seems you had a patch

[PATCH 3/3] ARM: dts: meson-sm1: add u-boot specific MMC controller compatible

2020-11-06 Thread Neil Armstrong
In order to enable the Amlogic SM1 MMC controller fix, we need to add a u-boot specific MMC controller compatible. This adds a new meson-sm1-u-boot.dtsi and reworks the other -u-boot.dtsi to use this for SM1 based boards. Signed-off-by: Neil Armstrong ---

Re: Fail to reset on Odroid-C4

2020-11-06 Thread Neil Armstrong
Hi, On 06/11/2020 03:10, Jaehoon Chung wrote: > Hi, > > I have checked U-boot on Odroid-C4 with v2020.10. > I found a problem about reset behavior. > > In my environment, > - Boot to SD-card, > - built u-boot v2020.10 with ordoid-c4_defconfig > - Referred to doc/board/amlogic/odroid-c4.rst > >

[PATCH 2/3] mmc: meson-gx: limit max frequency on SM1 SoCs

2020-11-06 Thread Neil Armstrong
Amlogic SM1 SoCs doesn't handle very well high clocks from the DIV2 input Thus we limit the max freq to 26MHz on SM1 SoCs until we handle higher frequencies via the first input from a composite clock. Here 26MHz corresponds to MMC_HS clock speed. We also add a u-boot only sm1 compatible to

[PATCH 1/3] mmc: meson-gx: move arch header to local header

2020-11-06 Thread Neil Armstrong
Move the asm/arch-meson/sd_emmc.h to a local meson_gx_mmc.h, remove the useless if/then and fix the meson_gx_mmc.c include. Signed-off-by: Neil Armstrong --- drivers/mmc/meson_gx_mmc.c | 4 ++-- .../asm/arch-meson/sd_emmc.h => drivers/mmc/meson_gx_mmc.h | 7

[PATCH 0/3] mmc: meson-gx: fix mmc & scard failure on SM1 SoCs

2020-11-06 Thread Neil Armstrong
Amlogic SM1 SoCs doesn't handle very well high clocks from the DIV2 input Thus we limit the max freq to 26MHz on SM1 SoCs until we handle higher frequencies via the first input from a composite clock. Here 26MHz corresponds to MMC_HS clock speed. We also add a u-boot only sm1 compatible to

[PATCH v4] imx: support for conga-QMX8 board

2020-11-06 Thread Oliver Graute
Add i.MX8QM qmx8 congatec board support U-Boot 2021.01-rc1-00246-g63fe655de6 (Nov 06 2020 - 10:09:02 +0100) CPU: NXP i.MX8QM RevB A53 at 1200 MHz Model: Congatec QMX8 Qseven series Board: conga-QMX8 Build: SCFW 494c97f3, SECO-FW d7523fe8, ATF 09c5cc9 Boot: SD2 DRAM: 6 GiB MMC: FSL_SDHC:

[PATCH v2 1/2] arm64: dts: import libretech-cc-v2 from linux v5.10-rc1

2020-11-06 Thread Jerome Brunet
Sync the libretech cc v2 device tree from Linux v5.10-rc1 commit 3650b228f83a ("Linux 5.10-rc1") Signed-off-by: Jerome Brunet --- .../dts/meson-gxl-s905x-libretech-cc-v2.dts | 318 ++ 1 file changed, 318 insertions(+) create mode 100644

[PATCH v2 2/2] arm64: meson: add support for libretech-cc v2

2020-11-06 Thread Jerome Brunet
Add support for the Amlogic based libretech cc version 2. As version 1, it is based on the s905x SoC. Signed-off-by: Jerome Brunet --- arch/arm/dts/Makefile | 1 + ...eson-gxl-s905x-libretech-cc-v2-u-boot.dtsi | 7 ++ configs/libretech-cc_v2_defconfig | 82

[PATCH v2 0/2] arm64: meson: add libretech cc v2 support

2020-11-06 Thread Jerome Brunet
This patchset adds support for the Amlogic based libretech cc v2. Like the v1, this revised platform used the s905x SoC. Changes since v1: - Move Makefile change to patch #1 - Amend documentation for libretech cc v2 Jerome Brunet (2): arm64: dts: import libretech-cc-v2 from linux v5.10-rc1

Re: Re-syncing U-Boot DTS with the kernel again

2020-11-06 Thread Patrice CHOTARD
Hi Tom I have submitted a series which update device tree for STM32 MCU's boards: https://patchwork.ozlabs.org/project/uboot/list/?series=212597 All STM32 DT warnings should be fixed. Thanks Patrice On 10/23/20 6:05 PM, Tom Rini wrote: > Hey all, > > As part of moving us up again to a recent

[PATCH] imx: ahab: fix implicit declaration warning

2020-11-06 Thread Oliver Graute
Fix the following warning: arch/arm/mach-imx/imx8/ahab.c:105:3: warning: implicit declaration of function ‘flush_dcache_range’ [-Wimplicit-function-declaration] flush_dcache_range(s, e); ^~ Include cpu_func.h header which declares the flush_dcache_range() function.

[PATCH] imx: ahab: Fix compiler warnings in printf

2020-11-06 Thread Oliver Graute
arch/arm/mach-imx/imx8/ahab.c:110:63: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘u64 {aka long long unsigned int}’ [-Wformat=] Fix those by using %llx Signed-off-by: Oliver Graute Cc: Stefano Babic Cc: uboot-imx --- arch/arm/mach-imx/imx8/ahab.c |

  1   2   >