Re: [PATCH] configs: meson64_android: define raw parts for bootloader

2022-01-12 Thread Neil Armstrong
On 07/01/2022 17:39, Mattijs Korpershoek wrote: > Per the android documentation[1]: > - the mmc2boot0 partition should be labeled "bootloader". > - the mmc2boot1 partition should be labeled "bootenv". > > Also the u-boot documentation[2] refers to a BOOT1_OFFSET of 1 block. > > Define 2 raw

Re: [PATCH] cmd: bcb: fix bcb struct alignment issue

2022-01-12 Thread Mattijs Korpershoek
Hi Gary, Thank you for your patch. Gary Bisson writes: > Without this patch the bcb struct could be located at an odd address > which resulted in data not being copied to the buffer. > > Here was the repro steps (from Mattijs): > => mmc dev 1 > => bcb load 1 misc > => bcb dump command >

[PATCH 1/2] imx: imx8mm: imx8mm-kontron-n801x-s: convert options to Kconfig

2022-01-12 Thread Heiko Thiery
CONFIG_SPL_MMC and CONFIG_SPL_SERIAL Signed-off-by: Heiko Thiery --- configs/kontron-sl-mx8mm_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/kontron-sl-mx8mm_defconfig b/configs/kontron-sl-mx8mm_defconfig index 35d12fca32..940bf07a92 100644 ---

[RFC] imx: imx8qm-rom7720: switch to binman

2022-01-12 Thread Oliver Graute
Switch to use binman to pack images Signed-off-by: Oliver Graute --- A flash.bin is now generated by binman but its now bigger then with mkimage_fit_atf.sh 800K vs. 1.1M and is currently NOT booting. So something is still messed up. arch/arm/dts/imx8qm-rom7720-a1.dts| 1 +

[PATCH] configs: amlogic: Disable CONFIG_NET_RANDOM_ETHADDR for android

2022-01-12 Thread Mattijs Korpershoek
The Khadas vim3 and vim3l defconfigs introduced with: * f89b90d2d9 ("configs: add khadas-vim3{l}_android for AOSP support") * 425f06f86e ("configs: prepare khadas-vim3{l}_ab_android for AOSP support") were based on an outdated defconfig prior to the ede1f4f297 ("configs: amlogic: Disable

Re: [PATCH 0/3] sandox: test: activate tests for the command LOG

2022-01-12 Thread Marcel Ziswiler
On Tue, 2022-01-11 at 17:27 +0100, Patrick Delaunay wrote: > > This patches activate the command LOG and the associated tests > in sandbox with CONFIG_CMD_LOG=y and solve the associated issues > when these tests are executed. > > Patrick > > > Patrick Delaunay (3): >   dm: fix up documentation

Re: [PATCH V2] usb: ehci-mx6: Enable OTG detection on imx8mm and imx8mn

2022-01-12 Thread Michael Walle
Am 2022-01-11 17:52, schrieb Adam Ford: On Tue, Jan 11, 2022 at 9:31 AM Michael Walle wrote: Hi, Am 2022-01-11 15:20, schrieb Adam Ford: > On Tue, Jan 4, 2022 at 2:32 AM Michael Walle wrote: >> > The imx8mm and imx8mn appear compatible with imx7d-usb >> > flags in the OTG driver. If the

RE: How to use add-symbol-file in gdb after the program jumped to linux? (both when PC is physical and virtual)

2022-01-12 Thread Chan Kim
I found from gdb manual, "add-symbol-file filename [ -readnow | -readnever ] [ -o offset ] [ textaddress ] [ -s section address ... ] The add-symbol-file command reads additional symbol table information from the file filename. You would use this command when filename has been dynamically loaded

Re: [PATCH] configs: amlogic: Disable CONFIG_NET_RANDOM_ETHADDR for android

2022-01-12 Thread Neil Armstrong
On 12/01/2022 09:40, Mattijs Korpershoek wrote: > The Khadas vim3 and vim3l defconfigs introduced with: > * f89b90d2d9 ("configs: add khadas-vim3{l}_android for AOSP support") > * 425f06f86e ("configs: prepare khadas-vim3{l}_ab_android for AOSP support") > > were based on an outdated defconfig

imx8mq hangs when reset board with button

2022-01-12 Thread Belisko Marek
Hello, I'm trying to find the cause why my imx8mq based board hangs when it is rebooted by reset button (works fine when init reset by reboot -f in console). By adding print messages I was able to track down in following code: ret = cdn_api_checkalive(); printf("CDN_API_CheckAlive returned ret

[PATCH 2/2] imx: imx8mm: imx8mm-kontron-n801x-s: add common board u-boot.dtsi

2022-01-12 Thread Heiko Thiery
When using a board variant that selects the lvds specific dtb the *.u-boot.dtsi file will not be included. To have a lvds dtb specific u-boot.dtsi file move this part to a common board u-boot.dtsi file and include this in the board base u-boot.dtsi and create an additional one for the lvds

Re: [PATCH 0/3] sandox: test: activate tests for the command LOG

2022-01-12 Thread Marcel Ziswiler
On Tue, 2022-01-11 at 17:27 +0100, Patrick Delaunay wrote: > > This patches activate the command LOG and the associated tests > in sandbox with CONFIG_CMD_LOG=y and solve the associated issues > when these tests are executed. > > Patrick > > > Patrick Delaunay (3): >   dm: fix up documentation

Re: [PATCH] imx8mm_beacon/imx8mn_beacon: Update build instructions

2022-01-12 Thread Marcel Ziswiler
Hi Andrey On Tue, 2022-01-11 at 14:23 +, ZHIZHIKIN Andrey wrote: > Hello Adam, > > > -Original Message- > > From: U-Boot On Behalf Of Adam Ford > > Sent: Tuesday, January 11, 2022 2:51 PM > > To: u-boot@lists.denx.de > > Cc: sba...@denx.de; tr...@konsulko.com;

Re: [PATCH] serial: zynq: Add missing xlnx,zynqmp-uart compatible

2022-01-12 Thread Michal Simek
On 1/11/22 13:55, Michal Simek wrote: Based on Linux kernel DT binding xlnx,zynqmp-uart is another compatible string which can be used for this driver. That's why also list it here. Signed-off-by: Michal Simek --- drivers/serial/serial_zynq.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH v3] phy: zynqmp: Add serdes/psgtr driver

2022-01-12 Thread Michal Simek
čt 6. 1. 2022 v 9:49 odesílatel Michal Simek napsal: > > Add PSGTR driver for Xilinx ZynqMP. > The most of configurations are taken from Linux kernel psgtr driver. > > USB3.0 and SGMII configurations are tested on SOM. In SGMII case also > IOU_SLCR reg is updated to get proper clock setup and

[PATCH 8/9] doc: add include/dm/of*.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/ofnode.h and add the device tree node API to the HTML documentation; the ofnode functions are compatible with Live tree or with flat device tree. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 9 ++ include/dm/of.h| 13 +-

[PATCH 4/9] doc: add include/dm/platdata.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/platdata.h and add the associated API to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst| 1 + include/dm/platdata.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api/dm.rst

[PATCH 7/9] doc: add include/dm/read.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/read.h and add the device read from device tree API to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst| 1 + include/dm/read.h | 163 +++--- 2 files changed, 82 insertions(+),

[PATCH 5/9] doc: add include/dm/device.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/device.h and add the driver model device API to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 5 ++ include/dm/device.h | 209 2 files changed, 121 insertions(+), 93

[PATCH 6/9] doc: add include/dm/devres.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/devres.h and add the driver model device resource API, devres_*(), to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 1 + include/dm/devres.h | 14 +++--- 2 files changed, 8 insertions(+), 7 deletions(-)

[PATCH 1/9] doc: add include/dm/uclass.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/uclass.h and add the driver model UCLASS API to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 9 ++ doc/api/index.rst | 1 + include/dm/uclass.h | 75 ++--- 3 files

Re: [PATCH] mmc: dw_mmc: Fixes timeout issue for FIFO mode

2022-01-12 Thread Jaehoon Chung
Hi, On 1/12/22 3:17 PM, gtXfined H. wrote: > Hi, > > I switched back to master branch and only made the following changes. > > --- a/drivers/mmc/dw_mmc.c > +++ b/drivers/mmc/dw_mmc.c > @@ -167,6 +167,10 @@ static int dwmci_data_transfer(struct dwmci_host > *host, struct mmc_data *data) >

Re: [PATCH u-boot-marvell 00/16] tools: kwbimage: Load address fixes

2022-01-12 Thread Stefan Roese
On 1/12/22 12:34, Pali Rohár wrote: On Wednesday 12 January 2022 12:06:22 Stefan Roese wrote: Hi Pali, On 1/12/22 11:55, Stefan Roese wrote: On 1/12/22 11:41, Pali Rohár wrote: On Wednesday 12 January 2022 08:26:10 Stefan Roese wrote: Hi Pali, while testing with this patchset (amongst

RE: [PATCH] imx8mm_beacon/imx8mn_beacon: Update build instructions

2022-01-12 Thread ZHIZHIKIN Andrey
Hello Marcel, > -Original Message- > From: U-Boot On Behalf Of Marcel Ziswiler > Sent: Wednesday, January 12, 2022 10:28 AM > To: aford...@gmail.com; u-boot@lists.denx.de; andrey.zhizhikin@leica- > geosystems.com > Cc: tr...@konsulko.com; af...@beaconembedded.com; sba...@denx.de >

[PATCH v10 11/14] Layerscape: Enable Job ring driver model.

2022-01-12 Thread Gaurav Jain
LS(1021/1012/1028/1043/1046/1088/2088), LX2160, LX2162 platforms are enabled with JR driver model. removed sec_init() call from board files. removed CONFIG_FSL_CAAM from defconfig files. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain

[PATCH v10 12/14] PPC: Add crypto node in device tree

2022-01-12 Thread Gaurav Jain
device tree imported from linux kernel. c500bee1c5b2 (tag: v5.14-rc4) Linux 5.14-rc4 Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/powerpc/dts/p2041si-post.dtsi | 1 + arch/powerpc/dts/p3041si-post.dtsi | 1 + arch/powerpc/dts/p4080si-post.dtsi | 1 +

[PATCH v10 13/14] PPC: Enable Job ring driver model.

2022-01-12 Thread Gaurav Jain
removed sec_init() call and CONFIG_FSL_CAAM from defconfig. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/powerpc/cpu/mpc85xx/cpu_init.c | 19 +--

[PATCH v10 14/14] update CAAM MAINTAINER

2022-01-12 Thread Gaurav Jain
updated CAAM driver files maintainer. Signed-off-by: Gaurav Jain --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f4bd3d79e2..1c912b2c65 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1334,3 +1334,9 @@ T:git

Re: [PATCH u-boot-marvell 00/16] tools: kwbimage: Load address fixes

2022-01-12 Thread Pali Rohár
On Wednesday 12 January 2022 14:53:23 Stefan Roese wrote: > On 1/12/22 12:34, Pali Rohár wrote: > > On Wednesday 12 January 2022 12:06:22 Stefan Roese wrote: > > > Hi Pali, > > > > > > On 1/12/22 11:55, Stefan Roese wrote: > > > > On 1/12/22 11:41, Pali Rohár wrote: > > > > > On Wednesday 12

Re: [PATCH u-boot-marvell 00/16] tools: kwbimage: Load address fixes

2022-01-12 Thread Stefan Roese
On 1/12/22 11:41, Pali Rohár wrote: On Wednesday 12 January 2022 08:26:10 Stefan Roese wrote: Hi Pali, while testing with this patchset (amongst others), I get this error while building for "theadorable_debug": $ make theadorable_debug_defconfig $ make -s -j20 Invalid LOAD_ADDRESS 0x40004030

Re: [PATCH u-boot-marvell 00/16] tools: kwbimage: Load address fixes

2022-01-12 Thread Stefan Roese
Hi Pali, On 1/12/22 11:55, Stefan Roese wrote: On 1/12/22 11:41, Pali Rohár wrote: On Wednesday 12 January 2022 08:26:10 Stefan Roese wrote: Hi Pali, while testing with this patchset (amongst others), I get this error while building for "theadorable_debug": $ make

[PATCH V2 0/2] fw_env: two minor code cleanups

2022-01-12 Thread Rafał Miłecki
From: Rafał Miłecki Hi, I'm a long time OpenWrt developer and just recently I started working with some devices using U-Boot. I was trying to understand how environment variables are read in user space and I had some problems understanding fw_env_open() logic. I eventually got it but I thought

[PATCH V2 2/2] fw_env: simplify logic & code paths in the fw_env_open()

2022-01-12 Thread Rafał Miłecki
From: Rafał Miłecki Environment variables can be stored in two formats: 1. Single entry with header containing CRC32 2. Two entries with extra flags field in each entry header For that reason fw_env_open() has two main code paths and there are pointers for CRC32/flags/data. Previous

[PATCH V2 1/2] fw_env: make flash_io() take buffer as an argument

2022-01-12 Thread Rafał Miłecki
From: Rafał Miłecki It's usually easier to understand code & follow it if all arguments are passed explicitly. Many coding styles also discourage using global variables. Behaviour of flash_io() was a bit unintuitive as it was writing to a buffer referenced in a global struct. That required

Re: [PATCH 1/2] imx: imx8mm: imx8mm-kontron-n801x-s: convert options to Kconfig

2022-01-12 Thread Frieder Schrempf
On 12.01.22 09:57, Heiko Thiery wrote: > CONFIG_SPL_MMC and CONFIG_SPL_SERIAL > > Signed-off-by: Heiko Thiery I suspect these got lost during a defconfig resync as the Kconfig options were introduced/renamed around the same time this was merged. Reviewed-by: Frieder Schrempf > --- >

Re: [PATCH v4] net: uclass: Save generated ethernet MAC addresses to the environment

2022-01-12 Thread Michal Simek
On 1/11/22 10:28, Michal Simek wrote: When a MAC address is randomly generated we currently only update the appropriate data structure. For consistency and to re-align with historic usage, it should be also saved to the appropriate environment variable as well. Cc: Wolfgang Denk

Re: [PATCH u-boot-marvell 00/16] tools: kwbimage: Load address fixes

2022-01-12 Thread Pali Rohár
On Wednesday 12 January 2022 12:06:22 Stefan Roese wrote: > Hi Pali, > > On 1/12/22 11:55, Stefan Roese wrote: > > On 1/12/22 11:41, Pali Rohár wrote: > > > On Wednesday 12 January 2022 08:26:10 Stefan Roese wrote: > > > > Hi Pali, > > > > > > > > while testing with this patchset (amongst

[PATCH V3 1/2] fw_env: make flash_io() take buffer as an argument

2022-01-12 Thread Rafał Miłecki
From: Rafał Miłecki It's usually easier to understand code & follow it if all arguments are passed explicitly. Many coding styles also discourage using global variables. Behaviour of flash_io() was a bit unintuitive as it was writing to a buffer referenced in a global struct. That required

[PATCH V3 0/2] fw_env: two minor code cleanups

2022-01-12 Thread Rafał Miłecki
From: Rafał Miłecki Hi, I'm a long time OpenWrt developer and just recently I started working with some devices using U-Boot. I was trying to understand how environment variables are read in user space and I had some problems understanding fw_env_open() logic. I eventually got it but I thought

Re: [PATCH] mmc: dwmmc: return a proper error code when busy

2022-01-12 Thread John Keeping
On Wed, Jan 12, 2022 at 08:38:01AM +0900, Jaehoon Chung wrote: > On 1/12/22 7:12 AM, Jaehoon Chung wrote: > > On 1/12/22 1:15 AM, John Keeping wrote: > >> When failing to send a command because the hardware is busy, return > >> EBUSY to indicate the cause instead of just -1. > > Is this patch

[PATCH V3 2/2] fw_env: simplify logic & code paths in the fw_env_open()

2022-01-12 Thread Rafał Miłecki
From: Rafał Miłecki Environment variables can be stored in two formats: 1. Single entry with header containing CRC32 2. Two entries with extra flags field in each entry header For that reason fw_env_open() has two main code paths and there are pointers for CRC32/flags/data. Previous

[PATCH v10 01/14] crypto/fsl: Add support for CAAM Job ring driver model

2022-01-12 Thread Gaurav Jain
added device tree support for job ring driver. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- drivers/crypto/fsl/Kconfig | 1 + drivers/crypto/fsl/jr.c| 323 -

[PATCH v10 00/14] Add CAAM driver model support

2022-01-12 Thread Gaurav Jain
This patchset adds the support for following: 1) CAAM Driver model for all i.MX, layerscape, PPC platforms. 2) Added crypto node in device tree files. 3) fix build issue for mx6sabre: Remove SPL DTB related configs and SPL_OF_CONTROL. i.MX platforms: i.MX6, i.MX7, i.MX7ULP, i.MX8MM/MN/MP/MQ,

[PATCH v10 03/14] crypto/fsl: i.MX8M: Enable Job ring driver model.

2022-01-12 Thread Gaurav Jain
i.MX8MM/MN/MP/MQ - added support for JR driver model. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/include/asm/arch-imx8m/imx-regs.h | 1 +

[PATCH v10 04/14] mx6sabre: Remove unnecessary SPL configs

2022-01-12 Thread Gaurav Jain
From: Ye Li Because we don't use SPL_DM on mx6sabresd and mx6sabreauto, so it is unnecessary to have SPL DTB related configs and SPL_OF_CONTROL enabled. Signed-off-by: Ye Li Reviewed-by: Fabio Estevam Reviewed-by: Gaurav Jain --- configs/mx6sabreauto_defconfig | 2 --

[PATCH v10 02/14] i.MX8M: crypto: updated device tree for supporting DM in SPL

2022-01-12 Thread Gaurav Jain
disabled use of JR0 in SPL and uboot, as JR0 is reserved for secure boot. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 19 ++- arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi | 19 ++- arch/arm/dts/imx8mp-evk-u-boot.dtsi

[PATCH 2/9] doc: add include/dm/root.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/devres.h and add the associated driver model API to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst| 1 + include/dm/root.h | 20 +++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git

[PATCH 3/9] doc: add include/dm/lists.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/lists.h and add the list API to the HTML documentation. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 1 + include/dm/lists.h | 8 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/api/dm.rst b/doc/api/dm.rst

RE: [PATCH v3] net: fsl: Fix busy flag polling register

2022-01-12 Thread Camelia Alexandra Groza (OSS)
> -Original Message- > From: U-Boot On Behalf Of Markus Koch > Sent: Tuesday, January 11, 2022 20:23 > To: Camelia Alexandra Groza ; > joe.hershber...@ni.com; rfried@gmail.com > Cc: Madalin Bucur (OSS) ; Ioana Ciornei > ; u-boot@lists.denx.de; Markus Koch > > Subject: [PATCH v3] net:

[PATCH] spi: Add spi_get_bus_and_cs() new use_dt param

2022-01-12 Thread Patrice Chotard
Add spi_flash_probe_bus_cs() and spi_get_bus_and_cs() new "use_dt" param which allows to select SPI speed and mode from DT or from default value passed in parameters. Since commit e2e95e5e2542 ("spi: Update speed/mode on change") when calling "sf probe" or "env save" on SPI flash,

Re: [PATCH] imx8mm_beacon/imx8mn_beacon: Update build instructions

2022-01-12 Thread Adam Ford
On Wed, Jan 12, 2022 at 5:10 AM ZHIZHIKIN Andrey wrote: > > Hello Marcel, > > > -Original Message- > > From: U-Boot On Behalf Of Marcel Ziswiler > > Sent: Wednesday, January 12, 2022 10:28 AM > > To: aford...@gmail.com; u-boot@lists.denx.de; andrey.zhizhikin@leica- > > geosystems.com > >

Re: [PATCH 2/2] imx: imx8mm: imx8mm-kontron-n801x-s: add common board u-boot.dtsi

2022-01-12 Thread Frieder Schrempf
On 12.01.22 09:57, Heiko Thiery wrote: > When using a board variant that selects the lvds specific dtb the > *.u-boot.dtsi file will not be included. To have a lvds dtb specific > u-boot.dtsi file move this part to a common board u-boot.dtsi file and > include this in the board base u-boot.dtsi

[PATCH v10 10/14] Layerscape: Add crypto node in device tree

2022-01-12 Thread Gaurav Jain
LS(1021/1012/1028/1043/1046/1088/2088), LX2160 - updated device tree Signed-off-by: Gaurav Jain Reviewed-by: Priyanka Jain --- arch/arm/dts/fsl-ls1012a.dtsi | 46 ++- arch/arm/dts/fsl-ls1043a.dtsi | 45 +-

[PATCH v10 09/14] crypto/fsl: i.MX8: Enable Job ring driver model.

2022-01-12 Thread Gaurav Jain
i.MX8(QM/QXP) - added support for JR driver model. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Signed-off-by: Horia Geantă Reviewed-by: Ye Li --- arch/arm/Kconfig | 3 ++

[PATCH v10 05/14] i.MX6: Enable Job ring driver model.

2022-01-12 Thread Gaurav Jain
i.MX6,i.MX6SX,i.MX6UL - added support for JR driver model. removed sec_init() call, sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/mach-imx/mx6/Kconfig | 10 ++ arch/arm/mach-imx/mx6/soc.c | 13

[PATCH v10 08/14] i.MX8: Add crypto node in device tree

2022-01-12 Thread Gaurav Jain
i.MX8(QM/QXP) - updated device tree for supporting DM in SPL. disabled use of JR1 in SPL and uboot, as JR1 is reserved for SECO FW. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/dts/fsl-imx8dx.dtsi | 61 +++- arch/arm/dts/fsl-imx8qm-mek-u-boot.dtsi

[PATCH v10 07/14] i.MX7ULP: Enable Job ring driver model.

2022-01-12 Thread Gaurav Jain
added crypto node in device tree. sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/dts/imx7ulp.dtsi| 24

[PATCH v10 06/14] i.MX7: Enable Job ring driver model.

2022-01-12 Thread Gaurav Jain
i.MX7D - added support for JR driver model. removed sec_init() call, sec is initialized based on job ring information processed from device tree. Signed-off-by: Gaurav Jain Reviewed-by: Ye Li --- arch/arm/Kconfig | 2 +- arch/arm/mach-imx/mx7/Kconfig | 1 +

[PATCH 8/9] doc: add include/dm/of*.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/ofnode.h and add the device tree node API to the HTML documentation; the ofnode functions are compatible with Live tree or with flat device tree. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 9 ++ include/dm/of.h| 13 +-

[PATCH 9/9] doc: add include/dm/fdtaddr.h to the HTML documentation

2022-01-12 Thread Patrick Delaunay
Correct Sphinx style comments in include/dm/fdtaddr.h and add the devfdt API to the HTML documentation; these functions are NOT compatible with live tree. Signed-off-by: Patrick Delaunay --- doc/api/dm.rst | 1 + include/dm/fdtaddr.h | 25 - 2 files changed, 13

Re: [PATCH u-boot-marvell 00/16] tools: kwbimage: Load address fixes

2022-01-12 Thread Pali Rohár
On Wednesday 12 January 2022 08:26:10 Stefan Roese wrote: > Hi Pali, > > while testing with this patchset (amongst others), I get this error > while building for "theadorable_debug": > > $ make theadorable_debug_defconfig > $ make -s -j20 > Invalid LOAD_ADDRESS 0x40004030 for BINARY

[PATCH 0/2] mmc: fsl_esdhc_imx: Auto-detect higher speeds

2022-01-12 Thread Adam Ford
The driver in the Linux kernel can automatically detect high speed options like UHS, HS200, HS400 and HS400-ES without needing to add special flags to the device tree. UHS appears to have been broken in this driver, so fix UHS support, and add auto-detection. Adam Ford (2): mmc: fsl_esdhc_imx:

[PATCH 2/2] mmc: fsl_esdhc_imx: Use esdhc_soc_data flags to set host caps

2022-01-12 Thread Adam Ford
The Linux driver automatically can detect and enable UHS, HS200, HS400 and HS400_ES automatically without extra flags being placed into the device tree. Right now, for U-Boot to use UHS, HS200 or HS400, the extra flags are needed in the device tree. Instead, go through the esdhc_soc_data flags

[PATCH 1/2] mmc: fsl_esdhc_imx: Fix fsl_esdhc_wait_dat0

2022-01-12 Thread Adam Ford
According to Haibo Chen [1] - the current implementation mmc_wait_dat0, the second mmc_wait_dat0() in mmc_switch_voltage() always return timeout. This causes UHS cards to not properly initialize to their highest rate, and default back for high-speed mode. When reviewing [1] and comparing it to

Re: [PATCH u-boot-marvell] ddr: marvell: a38x: fix SPLIT_OUT_MIX state decision

2022-01-12 Thread Stefan Roese
+Cc Chris On 1/12/22 17:06, Marek Behún wrote: From: Marek Behún This is a cleaned up and fixed version of a patch mv_ddr: a380: fix SPLIT_OUT_MIX state decision in each pattern cycle the bus state can be changed in order to avoide it, need to back to the same bus state on each

Re: [PATCH u-boot-marvell v2 06/20] tools: kwbimage: Add support for specifying CPU core

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: For other changes it is required to know if CPU core is Sheeva or not. Therefore add a new command CPU for specifying CPU. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- tools/kwbimage.c | 26 ++ 1

Re: [PATCH u-boot-marvell v2 18/20] tools: kwbimage/kwboot: Check ext field for non-zero value

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: Despite the official specification, BootROM does not look at the lowest bit of ext field but rather checks if ext field is non-zero. Moreover original Marvell doimage tool puts into the mhdr->ext field the number of extended headers, so basically it sets ext

Re: [PATCH u-boot-marvell v2 17/20] tools: kwbimage: Do not cast const pointers to non-const pointers

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: Avoid casting const to non-const. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan --- tools/kwbimage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kwbimage.h

Re: [PATCH] arm: mvebu: Replace hardcoded values 0x0030/0x4030 by proper calculation

2022-01-12 Thread Stefan Roese
On 1/12/22 18:32, Pali Rohár wrote: These hardcoded values were calculated from CONFIG_SPL_TEXT_BASE macro. Now this macro is configurable via Kconfig, so calculate values 0x0030/0x4030 at compile time via CONFIG_SPL_TEXT_BASE option. Values 0x0030/0x4030 represents offset of

Re: [PATCH u-boot-marvell] ddr: marvell: a38x: fix SPLIT_OUT_MIX state decision

2022-01-12 Thread Chris Packham
On Thu, 13 Jan 2022, 7:29 PM Stefan Roese, wrote: > +Cc Chris > > On 1/12/22 17:06, Marek Behún wrote: > > From: Marek Behún > > > > This is a cleaned up and fixed version of a patch > >mv_ddr: a380: fix SPLIT_OUT_MIX state decision > > > >in each pattern cycle the bus state can be

Re: [PATCH u-boot-marvell v2] arm: mvebu: turris_omnia: Fixup SATA or PCIe nodes at runtime in DT blob

2022-01-12 Thread Stefan Roese
On 1/10/22 11:47, Marek Behún wrote: From: Pali Rohár On of the MiniPCIe ports on Turris Omnia is also a mSATA port. Whether it works in SATA or PCIe mode is determined by a strapping pin, which value is read from the MCU. We already determine which type of card is connected when configuring

Re: [PATCH u-boot-marvell v2 03/20] tools: kwbimage: Fix generating image with multiple DATA_DELAY commands

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: Register set header consists of sequence of DATA commands followed by exactly one DATA_DELAY command. Thus if we are generating image with multiple DATA_DELAY commands, we need to create more register set headers. Fix calculation of image size with multiple

Re: [PATCH u-boot-marvell v2 01/20] tools: kwbimage: Mark all local functions as static

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: Mark all local functions as static. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan --- tools/kwbimage.c | 37 +++-- 1 file changed, 19 insertions(+), 18 deletions(-) diff

Re: [PATCH u-boot-marvell v2 02/20] tools: kwbimage: Deduplicate v1 regtype header finishing

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: Deduplicate code that finishes OPT_HDR_V1_REGISTER_TYPE header by extracing it into separate function. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan --- tools/kwbimage.c | 41

Re: [PATCH u-boot-marvell v2 07/20] tools: kwbimage: Add support for specifying LOAD_ADDRESS for BINARY command

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: ARM executable code included in kwbimage binary header, which is not position independent, needs to be loaded and executed by BootROM at the correct fixed address. Armada BootROMs load kwbimage header (in which the executable code is also stored) at fixed

Re: [PATCH u-boot-marvell v2 08/20] tools: kwbimage: Check the return value of image_headersz_v1()

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: Function image_headersz_v1() may return zero on fatal errors. In this case the function already printed an error message. Check the return value of image_headersz_v1() in kwbimage_generate(), and exit on zero value with EXIT_FAILURE. Signed-off-by: Pali

Re: [PATCH u-boot-marvell v2 10/20] arm: mvebu: Set CPU for U-Boot SPL binary in kwbimage

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: kwbimage needs to know CPU type, so set it in kwbimage config file. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- arch/arm/mach-mvebu/Makefile| 8 arch/arm/mach-mvebu/kwbimage.cfg.in | 3 +++ 2 files

Re: [PATCH u-boot-marvell v2 15/20] tools: kwbimage: Show binary image offset in mkimage -l, in addition to size

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: For debugging purposes it is good to know where the binary image would be loaded and also it is needed to know if printed size is image size or the size of header together with image. Make it unambiguous by showing that printed size is not the size of the

Re: [PATCH u-boot-marvell v2 14/20] tools: kwbimage: Add missing check for maximal value for DATA_DELAY

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: Data delay is stored as 8-bit number in kwbimage structure. Ensure the given value is at most 255. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan --- tools/kwbimage.c | 4 1 file changed, 4

Re: [PATCH u-boot-marvell v2 13/20] arm: mvebu: Enable BootROM output on A38x

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: BootROMs on pre-A38x SoCs enabled its output on UART by default, but A38x' BootROM has its output on UART disabled by default. To enable BootROM output on A38x SoC, it is required to set DEBUG flag (which only enables BootROM output and nothing more) in

Re: [PATCH 1/1] riscv: revert Complete efi header for RV32/64

2022-01-12 Thread Leo Liang
On Sun, Jan 09, 2022 at 06:38:55PM +0100, Heinrich Schuchardt wrote: > EDK II refuses to load the EFI binaries created by U-Boot. > The reason is an incorrect PE-COFF header. The number of > data directories does not match NumberOfRvaAndSizes. > This leads to a failed consistency check in >

Re: [PATCH u-boot-marvell v2 19/20] tools: kwbimage: Extract main data image without -p arg for dumpimage

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: When there is no -p argument for dumpimage tool specified, extract the main data image from kwbimage file. This makes dumpimage consistent with other image formats. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks,

Re: [PATCH u-boot-marvell v2 20/20] tools: kwbimage: Fix mkimage/dumpimage -l argument

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: Do not check for kwbimage configuration file when just showing information about existing kwbimage file. The check for kwbimage configuration file is required only when creating kwbimage, not when showing information about image or when extracting data from

[PATCH] net: fastboot: make UDP port net: configurable

2022-01-12 Thread Christian Gmeiner
The fastboot protocol uses per default the UDP port 5554. In some cases it might be needed to change the used port. The fastboot utility provides a way to specifiy an other port number to use already. fastboot -s udp:192.168.1.76:1234 boot fastboot.img Signed-off-by: Christian Gmeiner ---

Re: [PATCH 02/31] kconfig: Add support for conditional values

2022-01-12 Thread Rasmus Villemoes
On 12/01/2022 22.56, Tom Rini wrote: > On Wed, Jan 12, 2022 at 02:28:21PM -0700, Simon Glass wrote: >> Hi Ilias, >> >> On Mon, 1 Nov 2021 at 01:05, Ilias Apalodimas >> wrote: >>> >>> On Mon, 1 Nov 2021 at 03:19, Simon Glass wrote: At present if an optional Kconfig value needs to be

Re: [PATCH u-boot-marvell v2 05/20] arm: mvebu: Generate kwbimage.cfg with $(call cmd, ...)

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: Usage of $(call cmd,...) is standard way to call other commands which generate things. It also has the advantage of printing build information in the form KWBCFG arch/arm/mach-mvebu/kwbimage.cfg if verbosity is disabled, and printing the build command

Re: [PATCH u-boot-marvell v2 04/20] tools: kwbimage: Preserve order of BINARY, DATA and DATA_DELAY commands

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: Preserve the order of BINARY, DATA and DATA_DELAY commands as they appear in the input file. They may depend on each other. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by: Stefan Roese Thanks, Stefan --- tools/kwbimage.c | 58

Re: [PATCH u-boot-marvell v2 09/20] tools: kwbimage: Check for maximal kwbimage header size

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: BootROM loads kwbimage header to L2-SRAM and BootROM reserve only 192 kB for it. Signed-off-by: Pali Rohár --- tools/kwbimage.c | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index a5b518f60bc8..ce053a4a5a78

Re: [PATCH u-boot-marvell v2 11/20] arm: mvebu: Correctly set LOAD_ADDRESS for U-Boot SPL binary in kwbimage

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: U-Boot SPL for mvebu platform is not compiled as position independent. Therefore it is required to instruct BootROM to load U-Boot SPL at the correct address. Loading of kwbimage binary code at specific address can be now achieved by the new LOAD_ADDRESS token

Re: [PATCH u-boot-marvell v2 12/20] tools: kwbimage: Enforce 128-bit boundary alignment only for Sheeva CPU

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: This alignment is required only for platforms based on Sheeva CPU core which are A370 and AXP. Now when U-Boot build system correctly propagates LOAD_ADDRESS there is no need to have enabled 128-bit boundary alignment on platforms which do not need it.

Re: [PATCH u-boot-marvell v2 16/20] tools: kwbimage: Dump kwbimage config file on '-p -1' option

2022-01-12 Thread Stefan Roese
On 1/12/22 18:20, Pali Rohár wrote: To regenerate kwbimage from existing image, it is needed to have kwbimage config file. Add a new option to generate kwbimage config file from existing kwbimage when '-p 1' option is given. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún Reviewed-by:

Re: [PATCH 4/6] arm: Clean up asm/io.h

2022-01-12 Thread Leo Liang
On Sun, Jan 09, 2022 at 09:39:03PM +, Andre Przywara wrote: > On Sun, 9 Jan 2022 17:30:07 + > Andre Przywara wrote: > > Hi Rick, Leo: > > > asm/io.h is the header file containing the central MMIO accessor macros. > > Judging by the header and the comments, it was apparently once copied

Re: [PATCH] arm: mvebu: db-88f6720: Fix CONFIG_SPL_TEXT_BASE and remove wrong memory layout

2022-01-12 Thread Stefan Roese
On 1/12/22 18:30, Pali Rohár wrote: Memory layout in the comment is from Armada XP platform which uses load address 0x40004030. DB-88f6720 is Armada 375 platform which uses same load address as Armada 38x which is 0x4030. Currently SPL support for Armada 375 is unfinished and does not work.

Re: [PATCH V3] sf: Querying write-protect status before operating the flash

2022-01-12 Thread Jan Kiszka
On 17.11.21 12:59, Tom Rini wrote: On Wed, Nov 17, 2021 at 01:43:28PM +0530, Jagan Teki wrote: On Wed, Nov 17, 2021 at 1:33 PM Michael Walle wrote: Hi, Am 2021-11-17 03:48, schrieb chaochao2021...@163.com: From: chao zeng When operating the write-protection flash,spi_flash_std_write()

Re: [PATCH u-boot-marvell 00/16] tools: kwbimage: Load address fixes

2022-01-12 Thread Stefan Roese
On 1/12/22 15:16, Pali Rohár wrote: On Wednesday 12 January 2022 14:53:23 Stefan Roese wrote: On 1/12/22 12:34, Pali Rohár wrote: On Wednesday 12 January 2022 12:06:22 Stefan Roese wrote: Hi Pali, On 1/12/22 11:55, Stefan Roese wrote: On 1/12/22 11:41, Pali Rohár wrote: On Wednesday 12

Re: [PATCH v10 11/14] Layerscape: Enable Job ring driver model.

2022-01-12 Thread Michael Walle
Am 2022-01-12 14:31, schrieb Gaurav Jain: LS(1021/1012/1028/1043/1046/1088/2088), LX2160, LX2162 platforms are enabled with JR driver model. removed sec_init() call from board files. removed CONFIG_FSL_CAAM from defconfig files. sec is initialized based on job ring information processed from

[PATCH] rockchip: ram: sdram_rk3x88: replace comma by semicolon

2022-01-12 Thread Johan Jonker
A comma at the end of a line gives sometimes strange effects in combination with some code formatters, so replace a comma by a semicolon in the sdram_rk3188.c and sdram_rk3288.c files. Signed-off-by: Johan Jonker --- drivers/ram/rockchip/sdram_rk3188.c | 2 +-

Re: [PATCH u-boot-marvell 00/16] tools: kwbimage: Load address fixes

2022-01-12 Thread Pali Rohár
On Wednesday 12 January 2022 16:06:53 Stefan Roese wrote: > On 1/12/22 15:16, Pali Rohár wrote: > > On Wednesday 12 January 2022 14:53:23 Stefan Roese wrote: > > > On 1/12/22 12:34, Pali Rohár wrote: > > > > On Wednesday 12 January 2022 12:06:22 Stefan Roese wrote: > > > > > Hi Pali, > > > > > >

[PATCH u-boot-marvell] ddr: marvell: a38x: fix SPLIT_OUT_MIX state decision

2022-01-12 Thread Marek Behún
From: Marek Behún This is a cleaned up and fixed version of a patch mv_ddr: a380: fix SPLIT_OUT_MIX state decision in each pattern cycle the bus state can be changed in order to avoide it, need to back to the same bus state on each pattern cycle by Moti Boskula The original patch is

[PATCH u-boot-marvell v2 00/20] tools: kwbimage: Load address fixes

2022-01-12 Thread Pali Rohár
This patch series fixes generating images in kwbimage format, main fix is setting correct load address of U-Boot SPL. Also it adds support for generating kwbimage config file from existing kwbimage file via dumpimage tool. Changes in v2: * Fix base address for Sheeva CPUs (A370, AXP), it is

  1   2   3   >