Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-21 Thread Wolfgang Denk
Dear Simon, In message <20210720132940.1171011-1-...@chromium.org> you wrote: > U-Boot mostly uses hex for value input, largely because addresses are much > easier to understand in hex. > > But in some cases a hex value is requested, but it is more convenient to > provide a decimal value. This may

Re: [PATCH] ARM: dts: stm32: Fix AV96 eMMC pinmux

2021-07-21 Thread Patrick DELAUNAY
Hi Marek, On 7/20/21 11:46 PM, Marek Vasut wrote: Commit 500327e2ea7 ("ARM: dts: stm32mp1: DT alignment with Linux kernel v5.8-rc1") renamed sdmmc2_d47_pins_b phandle to sdmmc2_d47_pins_c, but without updating the AV96 DT which uses that phandle. Linux missed similar update as well and it was o

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-21 Thread Wolfgang Denk
Hi, In message <20210720160547.GM9379@bill-the-cat> you wrote: > > > So for example (10)123 would mean decimal 123? I don't know how we > > would parse brackets separately from expressions though. > > (123)10 would be "123" in decimal. Which is indeed a mouthful. But it > would also be generic

[RESEND PATCH] build: remove the variable NM in gen_ll_addressable_symbols.sh

2021-07-21 Thread Patrick Delaunay
With LTO activated, the buildman tools failed with an error on my configuration (Ubuntu 20.04, stm32mp15_trusted_defconfig) with the error: ../arm-linux-gnueabi/bin/nm: scripts/gen_ll_addressable_symbols.sh: file format not recognized It seems the shell variable initialization NM=$(NM) is

[PATCH v4 1/2] imx: imx6ul: Add support for Kontron Electronics SL/BL i.MX6UL/ULL boards (N63xx/N64xx)

2021-07-21 Thread Frieder Schrempf
From: Frieder Schrempf This adds support for i.MX6UL/ULL-based evaluation kits with SoMs by Kontron Electronics GmbH. Currently there are the following SoM flavors (SoM-Line): * N6310: SOM with i.MX6UL-2, 256MB RAM, 256MB SPI NAND * N6311: SOM with i.MX6UL-2, 512MB RAM, 512MB SPI NAND * N6

[PATCH v4 2/2] imx: imx8mm: Add support for Kontron Electronics SL/BL i.MX8M-Mini boards (N801x)

2021-07-21 Thread Frieder Schrempf
From: Frieder Schrempf The Kontron SoM-Line i.MX8MM (N801x) by Kontron Electronics GmbH is a SoM module with an i.MX8M-Mini SoC, 1/2/4 GB LPDDR4 RAM, SPI NOR, eMMC and PMIC. The matching evaluation boards (Board-Line) have 2 Ethernets, USB 2.0, HDMI/LVDS, SD card, CAN, RS485 and much more. Sig

Re: [PATCH 13/15] RFC: lib: Support a binary prefix 0y

2021-07-21 Thread Sean Anderson
On 7/20/21 9:29 AM, Simon Glass wrote: In some cases it is useful to be able to supply a binary value to a command. Use the '0y' prefix for this (binarY). To bikeshed: 0b please https://gcc.gnu.org/onlinedocs/gcc/Binary-constants.html --Sean Signed-off-by: Simon Glass --- doc/usage/cmd

Re: Pull request: u-boot-imx u-boot-imx-20210720

2021-07-21 Thread Frieder Schrempf
Hi Tom, Stefano, On 20.07.21 19:45, Tom Rini wrote: > On Tue, Jul 20, 2021 at 05:17:59PM +0200, Stefano Babic wrote: > >> Hi Tom, >> >> please pull from u-boot-imx, thanks ! >> >> The following changes since commit f929ce50727bf1019323d6c199dfd3a5755c5474: >> >> Merge branch '2021-07-16-cleanup

Re: Pull request: u-boot-imx u-boot-imx-20210720

2021-07-21 Thread Stefano Babic
On 21.07.21 10:07, Frieder Schrempf wrote: Hi Tom, Stefano, On 20.07.21 19:45, Tom Rini wrote: On Tue, Jul 20, 2021 at 05:17:59PM +0200, Stefano Babic wrote: Hi Tom, please pull from u-boot-imx, thanks ! The following changes since commit f929ce50727bf1019323d6c199dfd3a5755c5474: Merge

Re: [PATCH 13/15] RFC: lib: Support a binary prefix 0y

2021-07-21 Thread Wolfgang Denk
Dear Simon, In message <20210720132940.1171011-14-...@chromium.org> you wrote: > In some cases it is useful to be able to supply a binary value to a > command. Use the '0y' prefix for this (binarY). We also don't handle octal input yet, and also miss a number of other interesting numberbases, lik

Re: [PATCH 13/15] RFC: lib: Support a binary prefix 0y

2021-07-21 Thread Wolfgang Denk
Dear Sean, In message <9e1797ea-c1bf-5749-03a6-cf0e9430f...@gmail.com> you wrote: > On 7/20/21 9:29 AM, Simon Glass wrote: > > In some cases it is useful to be able to supply a binary value to a > > command. Use the '0y' prefix for this (binarY). > > To bikeshed: 0b please That doesn't work, as 0

Re: [PATCH] build: remove the variable NM in gen_ll_addressable_symbols.sh

2021-07-21 Thread Patrick DELAUNAY
On 7/20/21 8:50 PM, Simon Glass wrote: Hi Patrick, On Tue, 20 Jul 2021 at 12:34, Patrick Delaunay wrote: With LTO activated, the buildman tools failed with an error on my configuration (Ubuntu 20.04, stm32mp15_trusted_defconfig) with the error: ../arm-linux-gnueabi/bin/nm: scripts/

Re: [PATCH u-boot-mvebu v2 13/41] tools: kwbimage: Change maximum number of arguments in binary header to 256

2021-07-21 Thread Stefan Roese
On 19.07.21 14:20, Marek Behún wrote: From: Pali Rohár The number is stored in one byte, so the maximum should be 255. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan --- tools/kwbimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH u-boot-mvebu v2 14/41] tools: kwbimage: Fix calculating size of binary header

2021-07-21 Thread Stefan Roese
On 19.07.21 14:20, Marek Behún wrote: From: Pali Rohár Binary header consist of: * 1 byte for header type * 3 bytes for header size * 1 byte for number of arguments * 3 reserved bytes * N*4 bytes for arguments * M bytes (aligned to 4 bytes) for executable data * 1 byte for information about nex

Re: [PATCH u-boot-mvebu v2 15/41] tools: kwbimage: Add support for more BINARY headers

2021-07-21 Thread Stefan Roese
On 19.07.21 14:20, Marek Behún wrote: From: Pali Rohár The kwbimage v1 format supports multiple BINARY executable headers. Add support for it into mkimage/kwbimage tool. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by: Chris Packham Tested-by: Chris Packham Reviewed-by: St

Re: [PATCH u-boot-mvebu v2 16/41] tools: kwbimage: Don't parse PAYLOAD keyword

2021-07-21 Thread Stefan Roese
On 19.07.21 14:20, Marek Behún wrote: From: Pali Rohár The PAYLOAD keyword does nothing. No code is using it and both mkimage and kwbimage completely ignore it. It looks like a relict from the past. The payload image itself can be specified only via -d parameter to mkimage. Signed-off-by: Pali

Re: [PATCH u-boot-mvebu v2 17/41] tools: kwbimage: Add support for DATA command also for v1 images

2021-07-21 Thread Stefan Roese
On 19.07.21 14:20, Marek Behún wrote: From: Pali Rohár The DATA command is already supported by mkimage for v0 images, but not for v1 images. BootROM code which executes v1 images also supports DATA command via an optional extended v1 header OPT_HDR_V1_REGISTER_TYPE. Implement support for DAT

Re: [PATCH u-boot-mvebu v2 18/41] tools: kwbimage: Add support for a new DATA_DELAY command

2021-07-21 Thread Stefan Roese
On 19.07.21 14:20, Marek Behún wrote: From: Pali Rohár This command is supported only by v1 images and specifies a milliseconds delay after executing some set of DATA commands. The special string value SDRAM_SETUP instructs BootROM to setup SDRAM controller instead of executing delay. SDRAM_SET

Re: [PATCH u-boot-mvebu v2 19/41] tools: kwbimage: Do not hide usage of secure header under CONFIG_ARMADA_38X

2021-07-21 Thread Stefan Roese
On 19.07.21 14:20, Marek Behún wrote: From: Pali Rohár The mkimage host tool can be used to generate kwbimage v1 image with secure header on host system for A38x plaform also when U-Boot is being compiled for different platform. So there is no reason to not allow compiling of mkimage/kwbimage w

Re: [PATCH u-boot-mvebu v2 20/41] tools: kwbimage: Mark all BootROM structures __packed

2021-07-21 Thread Stefan Roese
On 19.07.21 14:20, Marek Behún wrote: From: Pali Rohár These structures must have specific size without padding, so mark them as packed via the de-facto standard macro __packed. Also replace PACKED macro. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks

Re: [PATCH u-boot-mvebu v2 21/41] tools: dumpimage: Fix crashing when trying to extract data from kwbimage

2021-07-21 Thread Stefan Roese
On 19.07.21 14:20, Marek Behún wrote: From: Pali Rohár Trying to call the following command causes NULL pointer dereference in strlen(): ./tools/dumpimage -T kwbimage -o /tmp/out u-boot-spl.kwb Fix it by checking whether params->imagename is non-NULL before calling strlen(). Signed-off-by:

Re: [PATCH u-boot-mvebu v2 22/41] tools: dumpimage: Show error message when trying to extract data from kwbimage

2021-07-21 Thread Stefan Roese
On 19.07.21 14:20, Marek Behún wrote: From: Pali Rohár There is no code for extracting data from kwbimage, so show an error message when user tries this via e.g. dumpimage call: ./tools/dumpimage -T kwbimage -o /tmp/out u-boot-spl.kwb Signed-off-by: Pali Rohár Reviewed-by: Marek Behún R

Re: [PATCH u-boot-mvebu v2 28/41] tools: kwboot: Fix checking image header version

2021-07-21 Thread Stefan Roese
On 19.07.21 14:20, Marek Behún wrote: From: Pali Rohár Function image_version() returns unsigned value, so it can never be negative. Explicitly check for two supported image versions: v0 and v1. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan

[PATCH] patman: add warning for invalid tag

2021-07-21 Thread Patrick Delaunay
Add a error in patman tool when the commit message contents an invalid tag "Serie-.*" instead of "Series-.*". Signed-off-by: Patrick Delaunay --- I create this patch to avoid my frequent mistake: using "Serie-" tag instead of "Series-" as it is done in [1]. RE_INV_TAG can be extended to other fr

Re: [PATCH u-boot-mvebu v2 33/41] SPL: Add support for specifying offset between header and image

2021-07-21 Thread Stefan Roese
On 19.07.21 14:20, Marek Behún wrote: From: Pali Rohár Some image types (e.g. kwbimage v1) store the offset to SPL binary and offset to main U-Boot binary in their headers. To avoid reading SPL binary when loading main U-Boot, add support for specifying offset in struct spl_image_info, which de

Re: Help wanted: Adding OpenSSL in FSL HAB

2021-07-21 Thread Daniel D
Thanks for the update! I've tried the options as mentioned and cannot find the OpenSSL library in there! Do you know how to integrate an external library (any) in U-Boot?? Are there any documentation out there? Thanks in advance. Kind regards, Daniel Selvan D. -- P Please consi

[PATCH v2] serial: pl011: Enable DEBUG_UART_PL011 in SPL

2021-07-21 Thread Chen Baozi
Commit b81406db51a6 ("arm: serial: Add debug UART capability to the pl01x driver") add supports to use pl01x as a debug UART. However, due to CONFIG_IS_ENABLED macro requires CONFIG_SPL_* prefix, the _debug_uart_init() would not choose TYPE_PL011 in SPL build. This patch fixes the bug by judging CO

[PATCH v3] serial: pl011: Enable DEBUG_UART_PL011 in SPL

2021-07-21 Thread Chen Baozi
Commit b81406db51a6 ("arm: serial: Add debug UART capability to the pl01x driver") add supports to use pl01x as a debug UART. However, due to CONFIG_IS_ENABLED macro requires CONFIG_SPL_* prefix, the _debug_uart_init() would not choose TYPE_PL011 in SPL build. This patch fixes the bug by judging CO

Re: Pull request: u-boot-imx u-boot-imx-20210720

2021-07-21 Thread Peng Fan
Sorry for non-text top posting. The imx8ulp patch set has pin headers that would have lots warning, but we have agreement in Linux kernel that they are acceptable. Or you need we fix the line 100 warning? Are there others blocking the patch set? Thanks, Peng 获取 Outlook for iOS

Re: [PATCH v4 01/21] drivers: reset: Add devm_to_reset() to return dummy "struct reset_ctl"

2021-07-21 Thread Kishon Vijay Abraham I
Hi Simon, On 21/07/21 12:02 am, Simon Glass wrote: > Hi Kishon, > > On Mon, 12 Jul 2021 at 00:20, Kishon Vijay Abraham I wrote: >> >> Add devm_to_reset() to return dummy "struct reset_ctl", useful for >> invoking reset APIs which doesn't have a valid "struct reset_ctl". >> >> Suggested-by: Simon

[PATCH 0/2] Add support of the FXL6408 GPIO expander

2021-07-21 Thread Oleksandr Suvorov
Add support of the Fairchild's FXL6408 i2c gpio expander and enable this driver for Toradex Colibri iMX8QXP SoM. Oleksandr Suvorov (2): GPIO: fxl6408: Add support for FXL6408 GPIO expander colibri-imx8x: add on-module gpio expander fxl6408 arch/arm/dts/fsl-imx8qxp-colibri.dts | 27 ++ conf

[PATCH 2/2] colibri-imx8x: add on-module gpio expander fxl6408

2021-07-21 Thread Oleksandr Suvorov
The FXL6408 GPIO expander manages critical devices, including on-module USB hub. Configure the expander to switch the USB hub into bypass mode, allowing to use on-carrier-board USB hub. Signed-off-by: Oleksandr Suvorov --- arch/arm/dts/fsl-imx8qxp-colibri.dts | 27 +++ c

[PATCH 1/2] GPIO: fxl6408: Add support for FXL6408 GPIO expander

2021-07-21 Thread Oleksandr Suvorov
Initial support for Fairchild's 8 bit I2C gpio expander FXL6408. The CONFIG_FXL6408_GPIO define enables support for such devices. Based on: https://patchwork.kernel.org/patch/9148419/ Signed-off-by: Oleksandr Suvorov --- drivers/gpio/Kconfig| 7 + drivers/gpio/Makefile | 1 +

Re: Pull request: u-boot-imx u-boot-imx-20210720

2021-07-21 Thread Tom Rini
On Wed, Jul 21, 2021 at 10:23:12AM +, Peng Fan wrote: > Sorry for non-text top posting. > > The imx8ulp patch set has pin headers that would have lots warning, but we > have agreement in Linux kernel that they are acceptable. Or you need we fix > the line 100 warning? > > Are there others

Re: [PATCH v4 1/2] imx: imx6ul: Add support for Kontron Electronics SL/BL i.MX6UL/ULL boards (N63xx/N64xx)

2021-07-21 Thread Tom Rini
On Wed, Jul 21, 2021 at 10:03:26AM +0200, Frieder Schrempf wrote: > From: Frieder Schrempf > > This adds support for i.MX6UL/ULL-based evaluation kits with SoMs by > Kontron Electronics GmbH. > > Currently there are the following SoM flavors (SoM-Line): > * N6310: SOM with i.MX6UL-2, 256MB RAM

[PATCH V4 00/44] imx: add i.MX8ULP support

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan V4: Fix checkpatch errors Fix some checkpatch warnings, there are still warnings such as pin header and dts exceed 100. Tom, Stefano, please see whether you are happy with this patchset. V3: Fix build error which break 8MN, pass buildman for i.MX. Select GPIO_EXTRA_HEADER fo

[PATCH V4 01/44] arm: imx: add i.MX8ULP basic Kconfig option

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8ULP related basic Kconfig option, which will be used later. Signed-off-by: Peng Fan --- arch/arm/Kconfig | 11 +++ arch/arm/mach-imx/imx8ulp/Kconfig | 16 2 files changed, 27 insertions(+) create mode 100644 arch/arm/mach-imx/i

[PATCH V4 03/44] arm: imx: sys_proto: move boot mode define to common header

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan These defines could be reused by i.MX8ULP, so move them to common header. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-mx7ulp/sys_proto.h | 9 - arch/arm/include/asm/mach-imx/sys_proto.h| 10 ++ 2 files changed, 10 insertions(+), 9 deletions(-) dif

[PATCH V4 02/44] arm: imx: add i.MX8ULP cpu type and helper

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8ULP cpu type and helpers. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 4 arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 11 +++ arch/arm/include/asm/mach-imx/sys_proto.h | 1 + arch/arm/mach-imx/imx8ulp/soc.c

[PATCH V4 05/44] imx: imx8ulp: add get reset cause

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Add get reset cause function to show what triggerred reset. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 69 + 1 file changed, 69 insertions(+) diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index

[PATCH V4 04/44] arm: imx8ulp: support print cpu info

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Support print cpu info. the clock function has not been added, it will be added in following patches. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 3 + arch/arm/mach-imx/imx8ulp/soc.c | 59 +++ 2 files changed, 62 ins

[PATCH V4 07/44] arm: imx8: Move container parser and image to mach-imx common folder

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Since we will re-use the container parser on imx8ulp, move the codes to mach-imx Signed-off-by: Ye Li --- arch/arm/mach-imx/Makefile| 4 arch/arm/mach-imx/{imx8/image.c => image-container.c} | 0 arch/arm/mach-imx/imx8/Makefile

[PATCH V4 06/44] arm: imx: basic i.MX8ULP support

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Add basic i.MX8ULP support For the MMU part, Using a simple way the calculate the MMU size to avoid default heavy calcaulation. And align address and size in the table settings to 2MB or 4GB as much as possible. So we can reduce the 4K page allocations in MMU table which will spen

[PATCH V4 08/44] arm: imx8: Move container image header file to mach-imx

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Since the container is shared among i.MX platforms, move its header file to mach-imx Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/{arch-imx8 => mach-imx}/image.h | 0 arch/arm/mach-imx/cmd_dek.c | 2 +- arch/arm/mach-imx/image-cont

[PATCH V4 09/44] arm: imx: parse-container: guard included header files

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Guard included sci.h with CONFIG_AHAB_BOOT to avoid build failure for i.MX8ULP Signed-off-by: Peng Fan --- arch/arm/mach-imx/parse-container.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/parse-container.c b/arch/arm/mach-imx/parse-container.c index e

[PATCH V4 10/44] arm: imx8ulp: add container support

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li i.MX8ULP support using ROM API to load container image, it use same ROM API as i.MX8MN/MP, and use same container format as i.MX8QM/QXP. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 2 + arch/arm/include/asm/mach-imx/image.h

[PATCH V4 11/44] arm: imx: move container Kconfig under mach-imx

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Since i.MX8 and i.MX8ULP reuse common container, so move the Kconfig public to both. Signed-off-by: Peng Fan --- arch/arm/mach-imx/Kconfig | 13 + arch/arm/mach-imx/imx8/Kconfig | 13 - 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a

[PATCH V4 13/44] net: fec_mxc: support i.MX8ULP

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Support i.MX8ULP in fec_mxc Signed-off-by: Peng Fan Reviewed-by: Ramon Fried --- drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 726ad36b7c..dbdc302b29 100

[PATCH V4 12/44] driver: misc: Add MU and S400 API to communicate with Sentinel

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Add MU driver and S400 API. Need enable MISC driver to work Signed-off-by: Ye Li --- arch/arm/include/asm/arch-imx8ulp/s400_api.h | 30 +++ arch/arm/include/asm/global_data.h | 5 + drivers/misc/Makefile| 1 + drivers/misc/imx8ulp/Makefile

[PATCH V4 15/44] driver: serial: fsl_lpuart: support i.MX8ULP

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan i.MX8ULP lpuart has same register layout as i.MX7ULP and i.MX8 Signed-off-by: Peng Fan --- include/fsl_lpuart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fsl_lpuart.h b/include/fsl_lpuart.h index 511fb84367..18e5cc15d6 100644 --- a/include/fsl_l

[PATCH V4 14/44] pinctrl: Add pinctrl driver for imx8ulp

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Add pinctrl driver for i.MX8ULP Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/pinctrl/nxp/Kconfig | 14 + drivers/pinctrl/nxp/Makefile | 1 + drivers/pinctrl/nxp/pinctrl-imx8ulp.c | 44 +++ 3 files changed, 59 insertio

[PATCH V4 18/44] arm: imx8ulp: soc: Change to use CMC1 to get bootcfg

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li CMC1 also has a MR register for bootcfg Signed-off-by: Ye Li --- arch/arm/mach-imx/imx8ulp/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index 6f4b506386..cddcdc2d20 100644 --- a/arch/arm/

[PATCH V4 17/44] drivers: mmc: fsl_esdhc_imx: support i.MX8ULP

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan i.MX8ULP reuse same SDHC IP as i.MX8M, so follow i.MX8M code logic. Signed-off-by: Peng Fan --- drivers/mmc/Kconfig | 2 +- drivers/mmc/fsl_esdhc_imx.c | 12 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kc

[PATCH V4 16/44] arm: imx8ulp: add clock support

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8ULP clock support Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/cgc.h | 130 ++ arch/arm/include/asm/arch-imx8ulp/clock.h| 9 +- arch/arm/include/asm/arch-imx8ulp/imx-regs.h | 1 + arch/arm/include/asm/arch-imx8ulp/pcc.h | 139 +

[PATCH V4 19/44] arm: imx8ulp: Enable full L2 cache in SPL

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li SRAM2 is half L2 cache and default to SRAM after system boot. To enable the full l2 cache (512KB), it needs to reset A35 to make the change happen. So re-implement the jump entry function in SPL: 1. configure the core0 reset vector to entry (ATF) 2. enable the L2 full cache 3. reset

[PATCH V4 20/44] arm: imx8ulp: disable wdog3

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Disable wdog3 which is configured by ROM Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 36 - 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index 33ae

[PATCH V4 22/44] drivers: misc: s400_api: Update S400_SUCCESS_IND to 0xd6

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li According to latest S400 API doc, the the success indicate value is changed to 0xd6. So update the driver codes. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/misc/imx8ulp/imx8ulp_mu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/imx8

[PATCH V4 21/44] arm: imx8ulp: Update the reset vector in u-boot

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Because we have set reset vector to ATF in SPL, have to set it back to ROM for any reset in u-boot Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 35 + 1 file changed, 22 insertions(+), 13 deletions(-) diff --git

[PATCH V4 23/44] drivers: misc: imx8ulp: Add S400 API for image authentication

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Add S400 API for image authentication Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/s400_api.h | 8 +- drivers/misc/imx8ulp/s400_api.c | 121 ++- 2 files changed, 127 insertions(+), 2 deletions(-) diff --git a/ar

[PATCH V4 24/44] drivers: misc: imx8ulp: Update S400 API for release RDC

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li The RDC API is updated to add a field for XRDC or TRDC Signed-off-by: Ye Li --- arch/arm/include/asm/arch-imx8ulp/s400_api.h | 2 +- drivers/misc/imx8ulp/s400_api.c | 7 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/asm/arch-im

[PATCH V4 26/44] arm: imx8ulp: release and configure XRDC at early phase

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Since S400 will set the memory of SPL image to R/X. We can't write to any data in SPL image. 1. Set the parameters save/restore only for u-boot, not for SPL. to avoid write data. 2. Not use MU DM driver but directly call MU API to send release XRDC to S400 at early phase. 3. Co

[PATCH V4 25/44] drivers: misc: s400_api: Update API for fuse read and write

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Add API to support fuse read and write Signed-off-by: Ye Li --- arch/arm/include/asm/arch-imx8ulp/s400_api.h | 7 +- drivers/misc/imx8ulp/s400_api.c | 81 2 files changed, 87 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-imx

[PATCH V4 27/44] arm: imx8ulp: add rdc support

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan There is xrdc inside i.MX8ULP, we need to configure permission to make sure AP non-secure world could access the resources. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 2 + arch/arm/mach-imx/imx8ulp/Makefile| 2 +- arch/arm/mach-im

[PATCH V4 28/44] arm: imx8ulp: add trdc release request

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Add TRDC release request, then we could configure resources to be accessible by A35 Domain. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-imx/imx8ulp/soc.c

[PATCH V4 29/44] arm: imx8ulp: release trdc and assign lpav from RTD to APD

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Rlease LPAV from RTD to APD Release gpu2D/3D to APD Set TRDC MBC2 MEM1 for iomuxc0 access Since upower depends AP/M33 SW to configure IOMUX for its PMIC i2c and MODE pins. we have to open iomuxc0 access for A35 core (domain 7) in single boot. Signed-off-by: Peng Fan Signed-off-by

[PATCH V4 31/44] arm: imx8ulp: Probe the S400 MU device in arch init

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Need probe the S400 MU device in arch_cpu_init_dm, so we can use S400 API in u-boot Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 35 - 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-

[PATCH V4 30/44] imx8ulp: unify rdc functions

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Unify rdc function to rdc.c Update soc.c to use new rdc function Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/rdc.h | 27 +++ arch/arm/mach-imx/imx8ulp/rdc.c | 283 +++- arch/arm/mach-imx/imx8ulp/soc.c | 180 ++-

[PATCH V4 32/44] arm: iMX8ULP: Add boot device relevant functions

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Read from ROM API to get current boot device. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 1 + arch/arm/mach-imx/imx8ulp/soc.c | 84 +++ 2 files changed, 85 insertions(+) diff --git a/arch/arm/inc

[PATCH V4 37/44] imx8ulp: soc: correct reset cause

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan The CMC1 SRS reflects the current reset cause, not SSRS. Then you could get "Reset cause: WARM-WDG" when issue reset in U-Boot. Reviewed-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff

[PATCH V4 35/44] arm: imx8ulp: add iomuxc support

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8ULP iomuxc support Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/iomux.h | 82 +++ arch/arm/mach-imx/imx8ulp/iomux.c | 56 +++- 2 files changed, 137 insertions(+), 1 deletion(-) create mode 100644 arch/arm/include

[PATCH V4 33/44] arm: imx8ulp: Allocate DCNANO and MIPI_DSI to AD domain

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Configure DCNANO and MIPI_DSI to be controlled by AD for single boot Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index add46

[PATCH V4 39/44] imx8ulp: Add workaround for eMMC boot

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li When booting from boot part1/2, the image offset should be 0, but ROM has a bug to return 0x8000. Has to workaround the issue before ROM fix it. Use a ROM function to know boot from emmc boot part or user part So we can set the image offset accordingly. Signed-off-by: Ye Li --- ar

[PATCH V4 38/44] imx8ulp: Use DGO_GP5 to get boot config

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Since CMC1 MR0 only reflects high 16 bits boot cfg used for AP domian, it does not connect to low 16 bits for RTD. So we can't get the correct boot mode. Change to use DGO_GP5 of SEC_SIM which is set by ROM. Signed-off-by: Ye Li --- arch/arm/mach-imx/imx8ulp/soc.c | 2 +- 1 file ch

[PATCH V4 40/44] imx8ulp: move struct mu_type to common header

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Move struct mu_type to common header to make it reusable by upower and S400 Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/imx-regs.h | 25 drivers/misc/imx8ulp/imx8ulp_mu.c| 19 +-- 2 files changed, 26 insertions(+), 1

[PATCH V4 42/44] ddr: Add DDR driver for iMX8ULP

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li Add iMX8ULP DDR initialization driver which loads the DDR timing parameters and executes the training procedure. When enabling IMX8ULP_DRAM_PHY_PLL_BYPASS, using PHY PLL bypass mode to do DDR init Signed-off-by: Ye Li --- drivers/Makefile | 1 + drivers/ddr/imx

[PATCH V4 41/44] imx8ulp: add upower api support

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Add upower api support, this is modified from upower firmware exported package. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/upower.h| 15 + arch/arm/mach-imx/imx8ulp/Makefile| 4 + arch/arm/mach-imx/imx8ulp/upower/Makefile | 6 + arch/a

[PATCH V4 44/44] arm: imx: add i.MX8ULP EVK support

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8ULP EVK basic support, support SD/I2C/ENET/LPUART Log as below: I would keep some debug info for now, and after we move to be stable and production launch, we could drop that. U-Boot SPL 2021.07-rc4-00164-gb800e19a6b (Jun 29 2021 - 10:23:30 +0800) Normal Boot upower_init

[PATCH V4 36/44] driver: misc: imx8ulp: Add fuse driver for imx8ulp

2021-07-21 Thread Peng Fan (OSS)
From: Ye Li This driver uses FSB to read some fuses, but not support program fuse. It only works in SPL (secure mode), u-boot needs traps to ATF to read them. Some fuses can read from S400 API and others are from FSB. Also support program some fuses via S400 API Signed-off-by: Ye Li --- drive

[PATCH V4 34/44] arm: imx8ulp: add dummy imx_get_mac_from_fuse

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Add imx_get_mac_from_fuse for enet build pass Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/soc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c index e5985c4cf1..0728cb9847 100644 --- a/arch/arm

[PATCH V4 43/44] arm: dts: add i.MX8ULP dtsi

2021-07-21 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX8ULP dtsi Signed-off-by: Peng Fan --- arch/arm/dts/imx8ulp-pinfunc.h| 978 ++ arch/arm/dts/imx8ulp.dtsi | 728 include/dt-bindings/clock/imx8ulp-clock.h | 247 ++ 3 files changed, 1953 insertions(+) cr

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-21 Thread Simon Glass
Hi Tom, On Tue, 20 Jul 2021 at 13:28, Tom Rini wrote: > > On Tue, Jul 20, 2021 at 12:33:14PM -0600, Simon Glass wrote: > > Hi Tom. > > > > On Tue, 20 Jul 2021 at 10:05, Tom Rini wrote: > > > > > > On Tue, Jul 20, 2021 at 09:57:55AM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue

Re: [PATCH] arm: vexpress64: juno: Enable distro_bootcmd functionality

2021-07-21 Thread Linus Walleij
On Mon, Jul 12, 2021 at 1:25 AM Andre Przywara wrote: > The ARM Juno boards can be used as somewhat decent machines to run > off-the-shelf distributions, with USB, SATA, GBit Ethernet and 8GB of > DRAM. > > With stable DTs in the board's NOR flash this would work really nicely, > however the defa

Re: [PATCH] patman: add warning for invalid tag

2021-07-21 Thread Simon Glass
Hi Patrick, On Wed, 21 Jul 2021 at 03:45, Patrick Delaunay wrote: > > Add a error in patman tool when the commit message contents an invalid > tag "Serie-.*" instead of "Series-.*". > > Signed-off-by: Patrick Delaunay > --- > I create this patch to avoid my frequent mistake: > using "Serie-" tag

Re: [PATCH 13/15] RFC: lib: Support a binary prefix 0y

2021-07-21 Thread Simon Glass
Hi Wolfgang, On Wed, 21 Jul 2021 at 02:27, Wolfgang Denk wrote: > > Dear Simon, > > In message <20210720132940.1171011-14-...@chromium.org> you wrote: > > In some cases it is useful to be able to supply a binary value to a > > command. Use the '0y' prefix for this (binarY). > > We also don't hand

Re: [PATCH 1/2] board: sifive: unmatched: refine GEMGXL initialized function in SPL

2021-07-21 Thread Leo Liang
On Thu, Jul 08, 2021 at 09:08:20AM +0800, Vincent Chen wrote: > Create a new function spl_reset_device_by_gpio to reset the device > whose reset pin is connected to the GPIO. Then, using this function > to initialize GEMGXL. > > Signed-off-by: Vincent Chen > --- > board/sifive/unmatched/spl.c |

Re: [PATCH 2/2] board: sifive: unmatched: reset USB hub, PCIe-USB bridge, and ULPI device in SPL

2021-07-21 Thread Leo Liang
On Thu, Jul 08, 2021 at 09:08:21AM +0800, Vincent Chen wrote: > Ensure USB hub, PCIe-USB bridge, and ULPI device to be reset > even if the rebooting is without power-cycling. > > Signed-off-by: Vincent Chen > --- > board/sifive/unmatched/spl.c | 36 > 1 file

Re: [PATCH 00/15] lib: Add support for a decimal 0m prefix for numbers

2021-07-21 Thread Simon Glass
Hi Wolfgang, On Wed, 21 Jul 2021 at 01:53, Wolfgang Denk wrote: > > Hi, > > In message <20210720160547.GM9379@bill-the-cat> you wrote: > > > > > So for example (10)123 would mean decimal 123? I don't know how we > > > would parse brackets separately from expressions though. > > > > (123)10 would

Re: [PATCH RESEND u-boot-spi 1/8] mtd: spi-nor-core: Try cleaning up in case writing BAR failed

2021-07-21 Thread Jagan Teki
On Thu, Jul 15, 2021 at 5:21 AM Marek Behún wrote: > > Use the cleanup codepath of spi_nor_erase() also in the event of failure > of writing the BAR register. > > Signed-off-by: Marek Behún > Tested-by: Masami Hiramatsu > --- Reviewed-by: Jagan Teki

Re: [PATCH RESEND u-boot-spi 2/8] mtd: spi-nor-core: Check return value of write_enable() in spi_nor_erase()

2021-07-21 Thread Jagan Teki
On Thu, Jul 15, 2021 at 5:21 AM Marek Behún wrote: > > The spi_nor_erase() function does not check return value of the > write_enable() call. Fix this. > > Signed-off-by: Marek Behún > Tested-by: Masami Hiramatsu > --- Reviewed-by: Jagan Teki

[PATCH v5 00/20] TI/Cadence: Add Sierra/Torrent SERDES driver

2021-07-21 Thread Kishon Vijay Abraham I
Patch series adds Sierra and Torrent SERDES driver for the SERDES used in TI's K3 platforms. This SERDES is used by USB3, PCIe and Ethernet. This series is mostly an adaptation of drivers added in upstream Linux kernel. Changes from v4: 1) Dropped `[PATCH v4 01/21] drivers: reset: Add devm_to_rese

[PATCH v5 02/20] dm: test: Add test case to check node name ignoring unit address

2021-07-21 Thread Kishon Vijay Abraham I
Add test to check node name ignoring unit address. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Simon Glass --- test/dm/core.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/test/dm/core.c b/test/dm/core.c index 2210345dd1..e83f71f767 100644 --- a/test/dm/core.c +++ b

[PATCH v5 01/20] dm: core: Add helper to compare node names

2021-07-21 Thread Kishon Vijay Abraham I
Add helper to compare node names. Signed-off-by: Kishon Vijay Abraham I --- drivers/core/ofnode.c | 13 + include/dm/ofnode.h | 10 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index eeeccfb446..e83d3141b2 100644 --- a/dri

[PATCH v5 03/20] dt-bindings: phy: Add definitions for additional phy types

2021-07-21 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add definitions for additional phy types that's used specifically for Torrent SERDES. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/phy/ph

[PATCH v5 05/20] dt-bindings: phy: cadence-torrent: Add defines for refclk driver

2021-07-21 Thread Kishon Vijay Abraham I
Add defines for refclk driver used to route the refclk out of torrent SERDES. Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy-cadence.h | 20 1 file changed, 20 insertions(+) create mode 100644 include/dt-bindings/phy/phy-cadence.h diff --git a/includ

[PATCH v5 04/20] dt-bindings: phy: Add defines for AM64 SERDES Wrapper

2021-07-21 Thread Kishon Vijay Abraham I
Add defines for AM64 SERDES Wrapper. Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/phy/phy-ti.h | 21 + 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/phy/phy-ti.h diff --git a/include/dt-bindings/phy/phy-ti.h b/include/dt-bindings/p

[PATCH v5 06/20] dt-bindings: ti-serdes-mux: Add defines for AM64 SoC

2021-07-21 Thread Kishon Vijay Abraham I
AM64 has a single lane SERDES which can be configured to be used with either PCIe or USB. Define the possilbe values for the SERDES function in AM64 SoC here. Signed-off-by: Kishon Vijay Abraham I --- include/dt-bindings/mux/ti-serdes.h | 5 + 1 file changed, 5 insertions(+) diff --git a/in

[PATCH v5 07/20] phy: cadence: Add driver for Sierra PHY

2021-07-21 Thread Kishon Vijay Abraham I
From: Alan Douglas Add a Sierra PHY driver with PCIe and USB support. This driver is a port from the mainline linux driver. The PHY has multiple lanes, which can be configured into groups, and a generic PHY device is created for each group. There are two resets controlling the overall PHY block

[PATCH v5 10/20] board: ti: j721e: Add support for probing and configuring Torrent serdes on J7200

2021-07-21 Thread Kishon Vijay Abraham I
From: Aswath Govindraju Add support for probing and configuring Torrent serdes on J7200. Signed-off-by: Aswath Govindraju Signed-off-by: Kishon Vijay Abraham I --- board/ti/j721e/evm.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/board

[PATCH v5 09/20] phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC

2021-07-21 Thread Kishon Vijay Abraham I
From: Jean-Jacques Hiblot Add support for WIZ module present in TI's J721E SoC. WIZ is a SERDES wrapper used to configure some of the input signals to the SERDES. It is used with both Sierra(16G) and Torrent(10G) SERDES. This driver configures three clock selects (pll0, pll1, dig) and supports re

[PATCH v5 11/20] ARM: dts: k3-j721e: Add support for USB3 in USB0 instance

2021-07-21 Thread Kishon Vijay Abraham I
Configure the parent clock of wiz3_pll0_refclk to the internal clock required for USB3 to be functional and also remove "ti,usb2-only" property as it now supports USB3 mode. This has properties specific to u-boot on top of DT present in v5.13 of Linux Kernel. Signed-off-by: Jean-Jacques Hiblot Si

  1   2   >