[PATCH v9 03/16] rockchip: rk3066: add clock driver for rk3066 soc

2022-04-04 Thread Johan Jonker
From: Paweł Jarosz Add the clock driver for the rk3066 platform. Derived from the rk3288 and rk3188 driver it supports only a bare minimum to bring up the system to reduce the TPL size for: SDRAM clock configuration. The boot devices NAND, EMMC, SDMMC, SPI. A UART for the debug messages

[PATCH v9 05/16] rockchip: rk3066: add sdram driver

2022-04-04 Thread Johan Jonker
From: Paweł Jarosz Add rockchip rk3066 sdram driver Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker --- Changed V7: restyle rename TEST_PATTERN changed function prefix changed #if where possible restyle U_BOOT_DRIVER structure remove rk3066_dmc_of_to_plat because dmc DT

[PATCH v9 07/16] arm: dts: rockchip: fix include rk3xxx-u-boot.dtsi

2022-04-04 Thread Johan Jonker
Move the include for rk3xxx-u-boot.dtsi to rk3188-u-boot.dtsi to stay in line with U-boot dtsi files. Signed-off-by: Johan Jonker --- arch/arm/dts/rk3188-u-boot.dtsi | 1 + arch/arm/dts/rk3188.dtsi| 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v9 06/16] arm: dts: rockchip: fix rk3xxx-u-boot.dtsi

2022-04-04 Thread Johan Jonker
The file rk3xxx-u-boot.dtsi was original only for rk3188 and SPL. With rk3066 added some nodes are also needed in TPL, so change them to u-boot,dm-pre-reloc Signed-off-by: Johan Jonker --- arch/arm/dts/rk3xxx-u-boot.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] env: do not fail on non-existing env.in file

2022-04-04 Thread Tom Rini
On Sun, Apr 03, 2022 at 04:06:03PM +0200, Andrey Zhizhikin wrote: > If include/generated/env.in does not exist, which is a typical case for > clean build, quiet_cmd_gen_envp command tries to delete this file > unconditionally. > > This produces following warning during the build: > ENVP

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-04 Thread Adam Ford
On Wed, Mar 30, 2022 at 10:04 PM Marek Vasut wrote: > > This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework > the driver based on Linux GPCv2 driver to directly control the GPCv2 > block instead of using SMCCC calls. This way, U-Boot can operate the > i.MX8M power domains

ELDK for Armv8.2

2022-04-04 Thread Ron Eggler
Hi, I'm working on a BSP that features the Reesas RZ/G2L & RZ/V2L CPUs which have a Cortex-A55 core onthe Arm8.2 architecture. I don't see it listed under https://www.denx.de/wiki/view/ELDK-5/WebHome#Section_1.4. and was wondering if there's a way to use ELDK for this Aarch64 architecture at

Re: [RFC PATCH 1/3] mx6: ddr: Restore ralat/walat in write level calibration

2022-04-04 Thread Marek Vasut
On 4/4/22 10:51, Francesco Dolcini wrote: The current DDR write level calibration routine always overwrite the ralat/walat fields to their maximum value, just save the existing values at the beginning of the calibration routine and restore it at the end. In case the delay is estimated by the

[PATCH] mmc: fsl_esdhc_spl: pre-PBL: implement redundancy support

2022-04-04 Thread Pali Rohár
QorIQ pre-PBL BootROM scans first 24 SD card sectors (each with fixed 512 bytes length) for boot signature. Implement same redundancy behavior in fsl_esdhc_spl driver to allow loading proper U-Boot when boot sector is not the first one. Signed-off-by: Pali Rohár --- drivers/mmc/fsl_esdhc_spl.c

Re: [RFC PATCH 2/3] mx6: ddr: Wait before issuing the first MRS cmd

2022-04-04 Thread Francesco Dolcini
Hello Marek, thanks for your review. On Mon, Apr 04, 2022 at 03:39:35PM +0200, Marek Vasut wrote: > On 4/4/22 10:51, Francesco Dolcini wrote: > > Wait 1ms before issuing the first MRS command to write DDR3 Mode > > registers. > > > > There is a requirement to wait minimum of Reset CKE Exit time,

Re: [PATCH v4 03/11] test: unit test for u16_strlcat()

2022-04-04 Thread Masahisa Kojima
On Sat, 2 Apr 2022 at 16:47, Heinrich Schuchardt wrote: > > On 3/24/22 14:54, Masahisa Kojima wrote: > > Provide a unit test for function u16_strlcat(). > > > > Signed-off-by: Masahisa Kojima > > Reviewed-by: Simon Glass > > --- > > No change since v2 > > > > Newly created in v2 > > > >

Re: [PULL next] u-boot-at91-2022.07-a

2022-04-04 Thread Tom Rini
On Mon, Apr 04, 2022 at 07:48:34AM +, eugen.hris...@microchip.com wrote: > Hello Tom, > > Please pull tag u-boot-at91-2022.07-a , the first set of new at91 > features for the next cycle 2022.07 . > > This feature set includes the new driver for the Atmel TCB timer, > alignment in DT for

Re: [RFC PATCH 2/3] mx6: ddr: Wait before issuing the first MRS cmd

2022-04-04 Thread Marek Vasut
On 4/4/22 10:51, Francesco Dolcini wrote: Wait 1ms before issuing the first MRS command to write DDR3 Mode registers. There is a requirement to wait minimum of Reset CKE Exit time, tXPR, with tXPR = max(tXS, 5tCK) and to wait 500 useconds after reset is de-asserted. It seems that for some

[PATCH v9 10/16] rockchip: rk3066: add include

2022-04-04 Thread Johan Jonker
Add include for rk3066. Signed-off-by: Johan Jonker --- arch/arm/include/asm/arch-rk3066/boot0.h | 8 arch/arm/include/asm/arch-rk3066/gpio.h | 8 arch/arm/include/asm/arch-rk3066/timer.h | 6 ++ 3 files changed, 22 insertions(+) create mode 100644

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-04 Thread Marek Vasut
On 4/4/22 16:15, Adam Ford wrote: On Mon, Apr 4, 2022 at 8:01 AM Marek Vasut wrote: On 4/4/22 14:51, Adam Ford wrote: On Wed, Mar 30, 2022 at 10:04 PM Marek Vasut wrote: This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework the driver based on Linux GPCv2 driver to

[PATCH 2/5] mtd: rawnand: fsl_elbc: Add device tree support

2022-04-04 Thread Pali Rohár
This allows boards to specify NAND settings via standard DT properties. Signed-off-by: Pali Rohár --- drivers/mtd/nand/raw/Kconfig | 4 +++ drivers/mtd/nand/raw/fsl_elbc_nand.c | 42 ++-- 2 files changed, 44 insertions(+), 2 deletions(-) diff --git

[PATCH 3/5] mtd: rawnand: fsl_elbc: Use ECC configuration from device tree

2022-04-04 Thread Pali Rohár
Initialize ECC configuration after nand_scan_ident() call and only in case nand_scan_ident() have not done it. nand_scan_ident() fills ECC configuration from device tree. Fixes usage of NAND_ECC_SOFT_BCH when it is specified in device tree. Signed-off-by: Pali Rohár ---

[PATCH 4/5] mtd: nand: raw: Add support for DT property nand-ecc-algo=bch

2022-04-04 Thread Pali Rohár
According to Linux kernel DT schema nand-controller.yaml, using DT property nand-ecc-algo=bch is the correct way for specifying BCH as ECC algorithm. Signed-off-by: Pali Rohár --- drivers/mtd/nand/raw/nand_base.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 0/5] mtd: rawnand: fsl_elbc: Device tree support

2022-04-04 Thread Pali Rohár
This patch series adds device tree support for P2020 NAND controller in SW ECC mode. Pali Rohár (5): mtd: rawnand: fsl_elbc: Implement RNDOUT command mtd: rawnand: fsl_elbc: Add device tree support mtd: rawnand: fsl_elbc: Use ECC configuration from device tree mtd: nand: raw: Add support

[PATCH 5/5] powerpc: dts: p2020: Add localbus node

2022-04-04 Thread Pali Rohár
This node is required for NAND and NOR support. Node is taken from the upstream Linux kernel DTS file. Signed-off-by: Pali Rohár --- arch/powerpc/dts/p2020-post.dtsi | 7 +++ arch/powerpc/dts/p2020rdb-pc.dts | 4 arch/powerpc/dts/p2020rdb-pc_36b.dts | 4 3 files changed,

[PATCH v9 02/16] rockchip: rk3066: add grf header file

2022-04-04 Thread Johan Jonker
From: Paweł Jarosz grf is needed by various drivers for rk3066 soc. Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker --- Changed V9: fix TAB Changed V8: add GRF_GPIO3B_IOMUX for SDMMC0 use GENMASK, __bf_shf and REG defines add includes ---

[PATCH v9 00/16] Add Rikomagic MK808 board

2022-04-04 Thread Johan Jonker
MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port, HDMI and a micro-SD card slot. It also includes on-board NAND and 1GB of SDRAM. Changed V9: fix TABs and spaces add led config enable led gpio change pinctrl regmap source disable STIMER move include Changed V8:

[PATCH v9 12/16] rockchip: rk3066: add core support

2022-04-04 Thread Johan Jonker
Add the core architecture code for the rk3066. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/Kconfig| 23 arch/arm/mach-rockchip/Makefile | 1 + arch/arm/mach-rockchip/rk3066/Kconfig | 30 ++ arch/arm/mach-rockchip/rk3066/Makefile

[PATCH v9 11/16] rockchip: rk3066: add rk3066_common.h include

2022-04-04 Thread Johan Jonker
Add rk3066_common.h include. Signed-off-by: Johan Jonker --- include/configs/mk808.h | 9 ++ include/configs/rk3066_common.h | 56 + 2 files changed, 65 insertions(+) create mode 100644 include/configs/mk808.h create mode 100644

Re: The contradictory nature of spl_nand_fit_read

2022-04-04 Thread Sean Anderson
On 4/3/22 11:56 AM, Dario Binacchi wrote: > Hi Sean, > >> Il 01/04/2022 23:43 Michael Nazzareno Trimarchi >> ha scritto: >> >> >> Hi Sean >> >> On Fri, Apr 1, 2022 at 8:53 PM Sean Anderson wrote: >> > >> > >> > >> > On 4/1/22 2:46 PM, Sean Anderson wrote: >> > > Hi all, >> > > >> > > I

[PATCH v9 04/16] rockchip: rk3066: add rk3066 pinctrl driver

2022-04-04 Thread Johan Jonker
From: Paweł Jarosz Add driver supporting pin multiplexing on rk3066 platform. Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker --- Changed V9: change regmap source Changed V7: restyle changed function prefix. restyle U_BOOT_DRIVER structure use OF_REAL use EOPNOTSUPP ---

[PATCH v9 01/16] rockchip: rk3066-power: sync power domain dt-binding header from Linux

2022-04-04 Thread Johan Jonker
In order to update the DT for rk3066 sync the power domain dt-binding header. This is the state as of v5.12 in Linux. Signed-off-by: Johan Jonker --- include/dt-bindings/power/rk3066-power.h | 22 ++ 1 file changed, 22 insertions(+) create mode 100644

[ANN] U-Boot v2022.04 released

2022-04-04 Thread Tom Rini
Hey all, It is release day and here is v2022.04. As a general reminder, there's still many DM migrations that need to be done and while we try and have a non-fatal warning message printed out when building a given platform, some things can slip through the cracks. Checking out your boards

[PATCH] cmd: ubi.c: skip part command if right partition is already attached

2022-04-04 Thread Alexandre Besnard
Attaching a UBI partition may take a while, since scanning the memory is required. It thus makes sense to avoid a detach/scan/attach cycle when the right partition is already attached, and let the calling process call 'detach' beforehand if it needs it. This commit checks for the currently

[PATCH 1/5] mtd: rawnand: fsl_elbc: Implement RNDOUT command

2022-04-04 Thread Pali Rohár
This is needed for SW ECC. Signed-off-by: Pali Rohár --- drivers/mtd/nand/raw/fsl_elbc_nand.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mtd/nand/raw/fsl_elbc_nand.c b/drivers/mtd/nand/raw/fsl_elbc_nand.c index ddfd75d32d06..f8698ec0158a 100644 ---

[PATCH] mmc: fsl_esdhc: Define macro ESDHCCTL_SNOOP for Snoop attribute

2022-04-04 Thread Pali Rohár
Signed-off-by: Pali Rohár --- drivers/mmc/fsl_esdhc.c | 2 +- include/fsl_esdhc.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 05a6d0ce1562..fdf2cc290e06 100644 --- a/drivers/mmc/fsl_esdhc.c +++

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-04 Thread Marek Vasut
On 4/4/22 14:51, Adam Ford wrote: On Wed, Mar 30, 2022 at 10:04 PM Marek Vasut wrote: This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework the driver based on Linux GPCv2 driver to directly control the GPCv2 block instead of using SMCCC calls. This way, U-Boot can operate the

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-04 Thread Adam Ford
On Mon, Apr 4, 2022 at 8:01 AM Marek Vasut wrote: > > On 4/4/22 14:51, Adam Ford wrote: > > On Wed, Mar 30, 2022 at 10:04 PM Marek Vasut wrote: > >> > >> This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework > >> the driver based on Linux GPCv2 driver to directly control the

[PATCH v9 09/16] arm: dts: rockchip: add rk3066a-mk808.dts

2022-04-04 Thread Johan Jonker
MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port, HDMI and a micro-SD card slot. It also includes on-board NAND and 1GB of SDRAM. Add rk3066a-mk808.dts. Move U-boot specific things in a rk3066a-mk808-u-boot.dtsi file. Signed-off-by: Johan Jonker --- Changed V9: add led config

[PATCH v9 13/16] rockchip: rk3066: add Rikomagic MK808 board

2022-04-04 Thread Johan Jonker
MK808 is a RK3066-based board with 1 USB host and 1 USB OTG port, HDMI and a micro-SD card slot. It also includes on-board NAND and 1GB of SDRAM. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/rk3066/Kconfig | 9 + board/rikomagic/mk808/Kconfig | 15 +++

[PATCH v9 14/16] rockchip: rk3066: add mk808_defconfig

2022-04-04 Thread Johan Jonker
This commit adds the default configuration file and relevant description for a MK808 board. Signed-off-by: Johan Jonker --- changed V9: enable led gpio disable STIMER Changed V8: use default log level ENV_IS_NOWHERE --- configs/mk808_defconfig | 100

[PATCH v9 16/16] doc: rockchip: add rk3066 Rikomagic MK808

2022-04-04 Thread Johan Jonker
Add rk3066 Rikomagic MK808 to the list of mainline supported Rockchip boards. Signed-off-by: Johan Jonker --- doc/board/rockchip/rockchip.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index a75e60b9fa..ed2792d414

[PATCH v9 15/16] rockchip: tools: add rk3066 support to rkcommon.c

2022-04-04 Thread Johan Jonker
Add rk3066 support to rkcommon.c Signed-off-by: Johan Jonker --- tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 29f2676c19..860785f839 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -123,6 +123,7 @@ struct spl_info {

[PATCH v9 08/16] arm: dts: rockchip: add rk3066a.dtsi

2022-04-04 Thread Johan Jonker
In the Linux DT the file rk3xxx.dtsi is shared between rk3066 and rk3188. Add rk3066a.dtsi. Move U-boot specific things in a rk3066a-u-boot.dtsi file. Signed-off-by: Johan Jonker --- Changed V9: fix include rk3066a-u-boot.dtsi Changed V8: update dtsi --- arch/arm/dts/rk3066a-u-boot.dtsi |

Re: [PATCH 3/3] efi_loader: setting boot device

2022-04-04 Thread Kyle Evans
On Mon, Apr 4, 2022 at 12:59 AM Heinrich Schuchardt wrote: > > Am 4. April 2022 07:40:16 MESZ schrieb Kyle Evans : > >On Mon, Apr 4, 2022 at 12:09 AM Heinrich Schuchardt > >wrote: > >> > >> Am 3. April 2022 23:08:33 MESZ schrieb Kyle Evans : > >> > On Tue, Jan 12, 2021 at 1:59 PM Heinrich

Re: [PATCH v4 02/11] lib/charset: add u16_strlcat() function

2022-04-04 Thread Masahisa Kojima
Hi Heinrich, On Sat, 2 Apr 2022 at 16:19, Heinrich Schuchardt wrote: > > On 3/24/22 14:54, Masahisa Kojima wrote: > > Provide u16 string version of strlcat(). > > > > Signed-off-by: Masahisa Kojima > > Reviewed-by: Simon Glass > > --- > > Changes in v4: > > - add blank line above the return

Re: [PATCH] misc: atsha204a: Fix big endian support

2022-04-04 Thread Marek Behún
On Sun, 3 Apr 2022 00:36:34 +0200 Pali Rohár wrote: > Callers of function atsha204a_crc16() expect to return value in host cpu > endianity. So remove cpu_to_le16() conversion. > > Signed-off-by: Pali Rohár > --- > drivers/misc/atsha204a-i2c.c | 2 +- > 1 file changed, 1 insertion(+), 1

Does enabling the Driver Model makes the boot slower ?

2022-04-04 Thread Abder
Hi, Recently I have worked on porting an imx6 based board's u-boot2014 to u-boot2020 and I enabled all the used drivers to use DM: GPIO, ETH, USB, SPI, MMC, WDT, MTD and REGULATOR. However, I noticed that the boot of the new u-boot is somehow slower than the old one (not by much though) !

Re: [PATCH v4 07/11] bootmenu: add UEFI and disto_boot entries

2022-04-04 Thread Masahisa Kojima
On Sat, 2 Apr 2022 at 15:33, Heinrich Schuchardt wrote: > > On 3/24/22 14:54, Masahisa Kojima wrote: > > This commit adds the UEFI related menu entries and > > distro_boot entries into the bootmenu. > > > > For UEFI, user can select which UEFI "Boot" option > > to execute, call UEFI bootmgr

Re: [PATCH v4 00/11] enable menu-driven boot device selection

2022-04-04 Thread Masahisa Kojima
Hi Heinrich, On Sat, 2 Apr 2022 at 14:48, Heinrich Schuchardt wrote: > > On 3/24/22 14:54, Masahisa Kojima wrote: > > This patch series adds the menu-driven boot device selection, > > by extending the existing "bootmenu" to include UEFI and distro_boot > > related entries, and supports

[RFC PATCH 3/3] board: apalis_imx6: DDR init using mx6_dram_cfg()

2022-04-04 Thread Francesco Dolcini
Do DDR initialization using the procedural mx6_dram_cfg() instead of programming the MMDC using a raw list of register/value pairs, this solves some rare boot failures on specific "bad" modules. Calibration values, DDR geometry are unchanged, memory timings are updated according to the relevant

[RFC PATCH 1/3] mx6: ddr: Restore ralat/walat in write level calibration

2022-04-04 Thread Francesco Dolcini
The current DDR write level calibration routine always overwrite the ralat/walat fields to their maximum value, just save the existing values at the beginning of the calibration routine and restore it at the end. In case the delay is estimated by the user to be more than one cycle the walat

[RFC PATCH 0/3] Fix iMX6 DDR configuration issues and update toradex apalis-imx6

2022-04-04 Thread Francesco Dolcini
Dear all, we do recently have debugged some spurious boot failures and crashes, about 2% of times on specific "bad" modules", on the toradex apalis imx6 [0]. We found a couple of issues in the generic imx6 ddr configuration code and we updated the apalis-imx6 memory timing to fix those. With the

Re: [PATCH v4 06/11] efi_loader: bootmgr: add booting from removable media

2022-04-04 Thread Masahisa Kojima
On Sat, 2 Apr 2022 at 15:12, Heinrich Schuchardt wrote: > > On 3/24/22 14:54, Masahisa Kojima wrote: > > From: AKASHI Takahiro > > > > Under the current implementation, booting from removable media using > > a architecture-specific default image name, say BOOTAA64.EFI, is > > supported only in

[RFC PATCH 2/3] mx6: ddr: Wait before issuing the first MRS cmd

2022-04-04 Thread Francesco Dolcini
Wait 1ms before issuing the first MRS command to write DDR3 Mode registers. There is a requirement to wait minimum of Reset CKE Exit time, tXPR, with tXPR = max(tXS, 5tCK) and to wait 500 useconds after reset is de-asserted. It seems that for some reason this is not enforced by the MMDC

Re: [PATCH 1/2] sf: dataflash: add support for "extended ID"

2022-04-04 Thread Luca Ellero
Il 01/04/2022 10:57, Jagan Teki ha scritto: On Tue, Mar 22, 2022 at 4:26 PM Luca Ellero wrote: From: Luca Ellero Take as reference Linux kernel code: drivers/mtd/devices/mtd_dataflash.c Linux commit id? Hi Jagan, Linux kernel commit is the following: commit

Re: [PATCH] misc: atsha204a: Fix big endian support

2022-04-04 Thread Stefan Roese
On 4/3/22 00:36, Pali Rohár wrote: Callers of function atsha204a_crc16() expect to return value in host cpu endianity. So remove cpu_to_le16() conversion. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- drivers/misc/atsha204a-i2c.c | 2 +- 1 file changed, 1

Re: [PATCH 1/4] i2c: sun6i_p2wi: Initialize chips in .child_pre_probe

2022-04-04 Thread Andre Przywara
On Thu, 17 Mar 2022 23:52:33 -0500 Samuel Holland wrote: Hi, > Chips attached to the P2WI bus require an initialization command before > they can be used. (Specifically, this switches the chip from I2C mode > to P2WI mode.) The driver does this in its .probe_chip hook, under the > assumption

Re: [PATCH 4/4] i2c: sun8i_rsb: Add support for DM clocks and resets

2022-04-04 Thread Andre Przywara
On Thu, 17 Mar 2022 23:52:36 -0500 Samuel Holland wrote: > Currently, clock/reset setup for this device is handled by a > platform-specific function and is intermixed with non-DM pinctrl > setup. Use the devicetree to get clocks/resets, which disentagles > it from the pinctrl setup in

Re: [PATCH 3/4] i2c: sun8i_rsb: Initialize chips in .child_pre_probe

2022-04-04 Thread Andre Przywara
On Thu, 17 Mar 2022 23:52:35 -0500 Samuel Holland wrote: Hi, > Chips attached to the RSB bus require an initialization command before > they can be used. (Specifically, this command programs the chip's > runtime address.) The driver does this in its .probe_chip hook, under > the assumption that

Cannot add the EFI Loader to a 64-bit EFI stubbed U-Boot

2022-04-04 Thread Nicklas Larsson
Dear U-Boot community, I have a default configuration based on 'efi-x86_payload64_defconfig' (64-bit EFI stub), to which I want to add the EFI_LOADER. In order to do so I also have to enable X86-64 to fulfill the "depends on" criterias in EFI_LOADER Kconfig. I'm doing this by setting

Re: The contradictory nature of spl_nand_fit_read

2022-04-04 Thread Tim Harvey
On Mon, Apr 4, 2022 at 9:26 AM Sean Anderson wrote: > > > > On 4/3/22 11:56 AM, Dario Binacchi wrote: > > Hi Sean, > > > >> Il 01/04/2022 23:43 Michael Nazzareno Trimarchi > >> ha scritto: > >> > >> > >> Hi Sean > >> > >> On Fri, Apr 1, 2022 at 8:53 PM Sean Anderson > >> wrote: > >> > > >> >

[PATCH v2 09/11] test: Load mac address with i2c eeprom

2022-04-04 Thread Sean Anderson
This uses an i2c eeprom to load a mac address using the nvmem interface. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) arch/sandbox/dts/test.dts | 9 - drivers/misc/i2c_eeprom_emul.c | 4 2 files changed, 12 insertions(+), 1 deletion(-)

[PATCH v2 10/11] test: Load mac address using RTC

2022-04-04 Thread Sean Anderson
This uses the nvmem API to load a mac address from an RTC. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) arch/sandbox/dts/test.dts | 9 - drivers/rtc/i2c_rtc_emul.c | 10 ++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git

[PATCH v2 11/11] test: Load mac address using misc device

2022-04-04 Thread Sean Anderson
This loads a mac address using a misc device using the nvmem interface. Signed-off-by: Sean Anderson --- (no changes since v1) arch/sandbox/dts/test.dts | 9 - drivers/misc/misc_sandbox.c | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git

[PATCH 3/4] test: serial: Add test for putc/puts

2022-04-04 Thread Sean Anderson
This adds a test to ensure that puts is equivalent to putc called in a loop. We don't verify the contents of the message to avoid having to record console output a second time (though that could be added in the future). The globals are initialized to non-zero values to avoid a warning; in

[PATCH 2/4] serial: sandbox: Implement puts

2022-04-04 Thread Sean Anderson
This implements puts for sandbox. It is fairly straightforward, except that we break out the shared color printing functionality into its own function. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- drivers/serial/Kconfig | 1 + drivers/serial/sandbox.c | 21

[PATCH 0/4] serial: Finish adding puts support

2022-04-04 Thread Sean Anderson
This series has the remaining patches to [1] which were not applied due to a build error. That error is addressed in patch 1. The remaining patches are unmodified, except for 3 which incorperates Simon's feedback. [1]

[PATCH 1/4] serial: Fix _serial_puts using \n\r instead of \r\n

2022-04-04 Thread Sean Anderson
A string like "test\n" would be broken up into the following sequence of prints by _serial_puts: puts("test\n") putc('\r') Although functionally this is the same as \r\n, it is not the standard sequence and caused tests to fail. Fix this by excluding the '\n' from the initial

Re: [PATCH 2/2] usb: dwc3: Implement .glue_configure for i.MX8MP

2022-04-04 Thread Tim Harvey
On Fri, Apr 1, 2022 at 5:48 PM Marek Vasut wrote: > > On 4/1/22 23:28, Tim Harvey wrote: > > On Fri, Apr 1, 2022 at 7:32 AM Marek Vasut wrote: > >> > >> The i.MX8MP glue needs to be configured based on a couple of DT > >> properties, implement .glue_configure callback to parse those DT > >>

Re: [PATCH 2/2] usb: dwc3: Implement .glue_configure for i.MX8MP

2022-04-04 Thread Marek Vasut
On 4/4/22 20:51, Tim Harvey wrote: On Fri, Apr 1, 2022 at 5:48 PM Marek Vasut wrote: On 4/1/22 23:28, Tim Harvey wrote: On Fri, Apr 1, 2022 at 7:32 AM Marek Vasut wrote: The i.MX8MP glue needs to be configured based on a couple of DT properties, implement .glue_configure callback to parse

[PATCH 0/2] sandbox: error output

2022-04-04 Thread Heinrich Schuchardt
U-Boot's printf() cannot write to the console before the serial console driver is set up. We need a function writing to the OS console. Provide a new function os_printf() to print to the OS console. Use the funciton to implement the error messages related to loading the device-tree. For sure

[PATCH 1/2] sandbox: add function os_printf()

2022-04-04 Thread Heinrich Schuchardt
Before setting up the devices U-Boot's printf() function cannot be used for console output. Provide function os_printf() to print to stderr. Signed-off-by: Heinrich Schuchardt --- arch/sandbox/cpu/os.c | 13 + include/os.h | 7 +++ 2 files changed, 20 insertions(+)

[PATCH 2/2] sandbox: show error if the device-tree cannot be loaded

2022-04-04 Thread Heinrich Schuchardt
U-Boot's printf() used before setting up U-Boot's serial driver does not create any output. Use os_printf() for error messages related to loading the device-tree. Signed-off-by: Heinrich Schuchardt --- arch/sandbox/cpu/cpu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

Re: [PATCH v5 2/3] sunxi: Support SPL in both eGON and TOC0 images

2022-04-04 Thread Andre Przywara
On Fri, 18 Mar 2022 00:00:44 -0500 Samuel Holland wrote: Hi, > SPL uses the image header to detect the boot device and to find the > offset of the next U-Boot stage. Since this information is stored > differently in the eGON and TOC0 image headers, add code to find the > correct value based on

Re: [PATCH v3 27/29] serial: sandbox: Implement puts

2022-04-04 Thread Sean Anderson
On 4/1/22 6:39 PM, Tom Rini wrote: > On Tue, Mar 22, 2022 at 04:59:35PM -0400, Sean Anderson wrote: > >> This implements puts for sandbox. It is fairly straightforward, except >> that we break out the shared color printing functionality into its own >> function. >> >> Signed-off-by: Sean

[PATCH v2 06/11] misc: Add support for nvmem cells

2022-04-04 Thread Sean Anderson
This adds support for "nvmem cells" as seen in Linux. The nvmem device class in Linux is used for various assorted ROMs and EEPROMs. In this sense, it is similar to UCLASS_MISC, but also includes UCLASS_I2C_EEPROM, UCLASS_RTC, and UCLASS_MTD. New drivers corresponding to a Linux-style nvmem device

[PATCH v2 07/11] sandbox: Enable NVMEM

2022-04-04 Thread Sean Anderson
This enables NVMEM for all sandbox defconfigs, enabling it to be used in unit tests in the next few commits. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) configs/sandbox64_defconfig| 1 + configs/sandbox_defconfig | 1 +

[PATCH v2 05/11] misc: i2c_eeprom: Make i2c_eeprom_write use a const buf

2022-04-04 Thread Sean Anderson
i2c_eeprom_ops->write uses a const buf, so use one for the wrapper function as well. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) drivers/misc/i2c_eeprom.c | 3 ++- include/i2c_eeprom.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff

[PATCH v2 04/11] sandbox: Move some mac addresses to device tree

2022-04-04 Thread Sean Anderson
This prevents some conflicts when running sandbox with -D, since the "rom" mac address will be random and won't match the environment. We still need to keep addresses for eth1 and eth6 in the environment, because dm_test_eth_rotate expects to be able to disable them by removing their envaddr

[PATCH v2 08/11] net: Add support for reading mac addresses from nvmem cells

2022-04-04 Thread Sean Anderson
This adds support for reading mac addresses from the "mac-address" nvmem cell. If there is no (local-)mac-address property, then we will try reading from an nvmem cell. For some existing examples of this property, refer to imx8mn.dtsi and imx8mp.dtsi. Unfortunately, fuse drivers have not yet been

Re: [PATCH 2/2] usb: dwc3: Implement .glue_configure for i.MX8MP

2022-04-04 Thread Tim Harvey
On Mon, Apr 4, 2022 at 12:11 PM Marek Vasut wrote: > > On 4/4/22 20:51, Tim Harvey wrote: > > On Fri, Apr 1, 2022 at 5:48 PM Marek Vasut wrote: > >> > >> On 4/1/22 23:28, Tim Harvey wrote: > >>> On Fri, Apr 1, 2022 at 7:32 AM Marek Vasut wrote: > > The i.MX8MP glue needs to be

[PATCH 4/4] serial: smh: Implement puts for DM

2022-04-04 Thread Sean Anderson
This adds an implementation of puts for DM. The implementation is not as clean as for the non-DM puts because we have to handle non-nul-terminated string. We also handle short writes (though these are probably very unusual). Signed-off-by: Sean Anderson --- drivers/serial/Kconfig

Re: [PATCH 1/2] ram: k3-ddrss: Fix register name and explain its usage

2022-04-04 Thread Tom Rini
On Tue, Mar 22, 2022 at 01:11:17PM +0100, Dominic Rath wrote: > The k3-ddrss driver wants to configure the DDRSS_V2A_CTL_REG to reflect > the maximum possible SDRAM of 2 GB for AM64x (instead of the register's > default that says 8 GB, which the AM64x DDR controller wouldn't support). > > The

Re: [RFC PATCH 2/3] mx6: ddr: Wait before issuing the first MRS cmd

2022-04-04 Thread Marek Vasut
On 4/4/22 16:53, Francesco Dolcini wrote: Hello Marek, thanks for your review. On Mon, Apr 04, 2022 at 03:39:35PM +0200, Marek Vasut wrote: On 4/4/22 10:51, Francesco Dolcini wrote: Wait 1ms before issuing the first MRS command to write DDR3 Mode registers. There is a requirement to wait

Re: Cannot add the EFI Loader to a 64-bit EFI stubbed U-Boot

2022-04-04 Thread Heinrich Schuchardt
On 4/4/22 18:41, Nicklas Larsson wrote: Dear U-Boot community, I have a default configuration based on 'efi-x86_payload64_defconfig' (64-bit EFI stub), to which I want to add the EFI_LOADER. In order to do so I also have to enable X86-64 to fulfill the "depends on" criterias in EFI_LOADER

Re: [PATCH 2/4] i2c: sun6i_p2wi: Add support for DM clocks and resets

2022-04-04 Thread Andre Przywara
On Thu, 17 Mar 2022 23:52:34 -0500 Samuel Holland wrote: Hi, > Currently, clock/reset setup for this device is handled by a > platform-specific function and is intermixed with non-DM pinctrl > setup. Use the devicetree to get clocks/resets, which disentagles > it from the pinctrl setup in

[PATCH] Remove duplication of table_compute_checksum function

2022-04-04 Thread Tom Rini
It seems like there was some merge error when first cleaning up and sharing this function. We have both an inline version of the function in include/tables_csum.h and a non-inline version in lib/tables_csum.c. Rework things so that we only have the non-inline version (due to number of calls, we

[PATCH v2 01/11] sandbox: net: Remove fake-host-hwaddr

2022-04-04 Thread Sean Anderson
Instead of reading a pseudo-rom mac address from the device tree, just use whatever we get from write_hwaddr. This has the effect of using the mac address from the environment (or from the device tree, if it is specified). Signed-off-by: Sean Anderson Reviewed-by: Simon Glass Acked-by: Ramon

[PATCH v2 02/11] sandbox: Remove eth2addr from environment

2022-04-04 Thread Sean Anderson
DSA interfaces use the same mac address for each interface, unless instructed otherwise. Just set eth4addr and let eth2addr and eth7addr be set automatically. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1) board/sandbox/sandbox.env | 1 - 1 file changed, 1

[PATCH v2 00/11] Add support for NVMEM API

2022-04-04 Thread Sean Anderson
This adds support for the nvmem-cells properties cropping up in manyb device trees. This is an easy way to load configuration, version information, or calibration data from a non-volatile memory source. For more information, refer to patch 6 ("misc: Add support for nvmem cells"). For the moment I

[PATCH v2 03/11] test: eth: Add test for ethernet addresses

2022-04-04 Thread Sean Anderson
This adds a test to make sure that all the ethernet interfaces have their addresses read properly. At the moment everything is read from the environment, but the next few commits will add additional sources. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- (no changes since v1)

Re: [PATCH 2/2] usb: dwc3: Implement .glue_configure for i.MX8MP

2022-04-04 Thread Marek Vasut
On 4/4/22 22:15, Tim Harvey wrote: On Mon, Apr 4, 2022 at 12:11 PM Marek Vasut wrote: On 4/4/22 20:51, Tim Harvey wrote: On Fri, Apr 1, 2022 at 5:48 PM Marek Vasut wrote: On 4/1/22 23:28, Tim Harvey wrote: On Fri, Apr 1, 2022 at 7:32 AM Marek Vasut wrote: The i.MX8MP glue needs to be

Re: [PATCH v4 06/11] efi_loader: bootmgr: add booting from removable media

2022-04-04 Thread Heinrich Schuchardt
On 4/4/22 08:48, Masahisa Kojima wrote: On Sat, 2 Apr 2022 at 15:12, Heinrich Schuchardt wrote: On 3/24/22 14:54, Masahisa Kojima wrote: From: AKASHI Takahiro Under the current implementation, booting from removable media using a architecture-specific default image name, say BOOTAA64.EFI,

Re: [PATCH v4 10/11] bootmenu: add removable media entries

2022-04-04 Thread Heinrich Schuchardt
On 3/31/22 10:48, Ilias Apalodimas wrote: On Thu, Mar 24, 2022 at 10:54:42PM +0900, Masahisa Kojima wrote: UEFI specification requires booting from removal media using a architecture-specific default image name such as BOOTAA64.EFI. This commit adds the removable media entries into bootmenu, so

Fwd: ELDK for Armv8.2

2022-04-04 Thread Ron Eggler
sending this emial again, did not receive an admin response about this. Please clarify or post to list. Thank you Hi, I'm working on a BSP that features the Reesas RZ/G2L & RZ/V2L CPUs which have a Cortex-A55 core onthe Arm8.2 architecture. I don't see it listed under

Re: [PATCH 4/4] i2c: sun8i_rsb: Add support for DM clocks and resets

2022-04-04 Thread Samuel Holland
Hi Andre, On 4/4/22 12:30 PM, Andre Przywara wrote: > On Thu, 17 Mar 2022 23:52:36 -0500 > Samuel Holland wrote: > >> Currently, clock/reset setup for this device is handled by a >> platform-specific function and is intermixed with non-DM pinctrl >> setup. Use the devicetree to get