Re: [PATCH] ARM: dts: stm32: Reinstate card detect behavior on DHSOM

2020-06-19 Thread Marek Vasut
On 6/19/20 9:41 AM, Patrick DELAUNAY wrote: > Hi Marek, > >> From: Marek Vasut >> Sent: jeudi 18 juin 2020 20:35 >> >> The cd-gpios with (GPIO_ACTIVE_LOW | GPIO_PULL_UP) gpio is thus far >> unsupported, reinstate the old cd-gpios behavior until this handling is fully >> implemented. This permits

[RFC PATCH] sunxi: support asymmetric dual rank DRAM on A64/R40

2020-06-19 Thread Icenowy Zheng
Previously we have known that R40 has a configuration register for its rank 1, which allows different configuration than rank 0. Reverse engineering of newest libdram of A64 from Allwinner shows that A64 has this register too. It's bit 0 (which enables dual rank in rank 0 configuration register)

RE: [PATCH v3 0/4] update clock handler and proper cpu features

2020-06-19 Thread Sagar Kadam
Hello Rick, > -Original Message- > From: Rick Chen > Sent: Friday, June 19, 2020 1:26 PM > To: Sagar Kadam > Cc: U-Boot Mailing List ; Lukasz Majewski > ; Bin Meng ; Jagan Teki > ; Pragnesh Patel > ; Anup Patel ; Simon > Glass ; Sean Anderson ; rick > ; ycli...@andestech.com; Alan Kao >

[PATCH] armv8: MMU: Mark code memory Executable, any other Non-Executable

2020-06-19 Thread marek . bykowski
From: Marek Bykowski If the location the ARM CPU is accessing is executable (translation table descriptor Execute-Never attribute bit cleared) then the ARM CPU fetches a number of instructions from that location all at the same time. For example, Cortex-A57 can source up to 128 bits per fetch

[PATCH] ARM: dts: stm32: Reinstate card detect behavior on ST boards

2020-06-19 Thread Patrick Delaunay
The cd-gpios with (GPIO_ACTIVE_LOW | GPIO_PULL_UP) gpio is thus far unsupported, reinstate the old cd-gpios behavior until this handling is fully implemented. This avoid potential issue for SDCard boot: the card detect fails with floating gpio. Hi, I don't have boot issue on my boards (DK2 and

[U-boot, V2, 1/2] eth: mtk-eth: enable mt7629 sgmii mode support in mediatek eth driver

2020-06-19 Thread MarkLee
The sgmii mode init flow is almost the same for all mediatek SoC, the only difference is the register offset(SGMSYS_GEN2_SPEED) is 0x2028 in the old chip(mt7622) but changed to 0x128 for the newer chip(mt7629 and the following chips). Signed-off-by: MarkLee --- V2: use driver private data from

[U-boot, V2, 2/2] arm: dts: mediatek: enable sgmii mode and mt7531 switch for mt7629

2020-06-19 Thread MarkLee
This patch enable sgmii mode and mt7531 switch support in mt7629 ethernet dts node Signed-off-by: MarkLee --- V2: no changes --- arch/arm/dts/mt7629-rfb.dts | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/mt7629-rfb.dts

[U-boot,V2,0/2] Enable mt7531 switch support for MT7629

2020-06-19 Thread MarkLee
This patch series enable MT7629 sgmii mode with mt7531 switch support, 1. enable mt7629 sgmii mode support in mediatek eth driver 2. enable mt7629 ethernet dts node with sgmii mode and mt7531 switch support Change since V1: - use driver private data from dts to decide

[PATCH v5 1/5] stm32mp1: use the command env info in env_check

2020-06-19 Thread Patrick Delaunay
Activate CMD_NVEDIT_INFO and use the new command "env info -d -p -q" to automatically save the environment on first boot. This patch allows to remove the env_default variable. Previously sent in serie cmd: env: add option for quiet output on env info

[PATCH v5 2/5] cmd: env: add option for quiet output on env info

2020-06-19 Thread Patrick Delaunay
The "env info" can be use for test with -d and -p parameter, in scripting case the output of the command is not needed. This patch allows to deactivate this output with a new option "-q". For example, we can save the environment if default environment is used and persistent storage is managed

[PATCH v5 3/5] cmd: env: check real location for env info command

2020-06-19 Thread Patrick Delaunay
Check the current ENV location, dynamically provided by the weak function env_get_location to be sure that the environment can be persistent. The compilation flag ENV_IS_IN_DEVICE is not enough when the board dynamically select the available storage location (according boot device for example).

[PATCH v5 0/5] cmd: env: add option for quiet output on env info

2020-06-19 Thread Patrick Delaunay
Hi, It is a V5 for [1] serie. I add the -q option for 'env info' command and I also add pytest for this command. Test for ENV_IS_IN_DEVICE is included in separate serie [2] (I will activate ENV_IS_IN_EXT4 support in sandbox) To avoid compilation warning, I add prototype for env_get_location

[PATCH v5 5/5] test: env: add test for env info sub-command

2020-06-19 Thread Patrick Delaunay
Add a pytest for testing the env info sub-command: test_env_info: test command with several option that can be executed on real hardware device without assumption test_env_info_sandbox: test the result on sandbox with a known ENV configuration: ready & default & persistent The quiet option '-q'

[PATCHv2] armv8: MMU: Mark code memory Executable, any other Non-Executable

2020-06-19 Thread marek . bykowski
From: Marek Bykowski If the location the ARM CPU is accessing is executable (translation table descriptor Execute-Never attribute bit cleared) then the ARM CPU fetches a number of instructions from that location all at the same time. For example, Cortex-A57 can source up to 128 bits per fetch

[RESEND PATCH v5 2/4] cmd: env: check real location for env info command

2020-06-19 Thread Patrick Delaunay
Check the current ENV location, dynamically provided by the weak function env_get_location to be sure that the environment can be persistent. The compilation flag ENV_IS_IN_DEVICE is not enough when the board dynamically select the available storage location (according boot device for example).

[RESEND PATCH v5 4/4] test: env: add test for env info sub-command

2020-06-19 Thread Patrick Delaunay
Add a pytest for testing the env info sub-command: test_env_info: test command with several option that can be executed on real hardware device without assumption test_env_info_sandbox: test the result on sandbox with a known ENV configuration: ready & default & persistent The quiet option '-q'

RE: [EXT] Re: [RESEND][Patch v4] net: pfe_eth: Use spi_flash_read API to access flash memory

2020-06-19 Thread Kuldeep Singh
> -Original Message- > From: Schrempf Frieder > Sent: Thursday, May 28, 2020 1:46 PM > To: Kuldeep Singh ; Joe Hershberger > ; u-boot@lists.denx.de > Cc: Priyanka Jain ; Tom Rini > Subject: [EXT] Re: [RESEND][Patch v4] net: pfe_eth: Use spi_flash_read API to > access flash memory > >

Re: Mainlining advice for new (MStar/SigmaStar) ARMv7 SoC family

2020-06-19 Thread Daniel Palmer
Hi Tom > Well, lets see. It would be good to get the DTS stuff sorted out > upstream first, but so long a you keep U-Boot in sync, that's fine. That's good to know. Getting the DTS parts accepted seems like it'll be harder than the actual code. > aiming to start with UART and initramfs, UART

[PATCH v4 2/6] mkimage: fit_image: handle multiple errors when writing signatures

2020-06-19 Thread Heiko Stuebner
From: Heiko Stuebner fit_image_write_sig() contains mostly functions from libfdt that return FDT_ERR_foo errors but also a call to fit_set_timestamp() which returns a regular error. When handling the size increase via multiple iterations, check for both -FDT_ERR_NOSPACE but also for -ENOSPC.

[PATCH v4 6/6] rockchip: make_fit_atf: add signature handling

2020-06-19 Thread Heiko Stuebner
From: Heiko Stuebner If the newly added fit-generator key-options are found, append needed signature nodes to all generated image blocks, so that they can get signed when mkimage later compiles the .itb from the generated .its. Signed-off-by: Heiko Stuebner ---

[PATCH v4 3/6] spl: fit: dont set U_BOOT_ITS var if not build SPL_FIT support

2020-06-19 Thread Heiko Stuebner
From: Heiko Stuebner Both CONFIG_SPL_FIT_SOURCE and CONFIG_SPL_FIT_GENERATOR depend on CONFIG_SPL_FIT, so U_BOOT_ITS should only be defined if one of them is set. When undefined, the ifneq ($(CONFIG_SPL_FIT_SOURCE),"") seems to evaluate to true all the time though, setting U_BOOT_ITS to

[PATCH v4 4/6] spl: fit: enable signing a generated u-boot.itb

2020-06-19 Thread Heiko Stuebner
From: Heiko Stuebner With SPL_FIT_SIGNATURE enabled we will likely want a generated u-boot.itb to be signed and the key stores so that the spl can reach it. So add a SPL_FIT_SIGNATURE_KEY_DIR option and suitable hooks into the Makefile to have mkimage sign the .itb and store the used key into

[PATCH v5 4/5] configs: sandbox: Enable sub command 'env info'

2020-06-19 Thread Patrick Delaunay
Enable support for sub command 'env info' in sandbox with CONFIG_CMD_NVEDIT_INFO. This is aimed primarily at adding unit test. Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - activate env info command in sandbox (new)

[PATCH v4 0/6] rockchip: make it possible to sign the u-boot.itb

2020-06-19 Thread Heiko Stuebner
From: Heiko Stuebner This series makes it possible to sign a generated u-boot.itb automatically even if the its-source got created by a generator script. To let the SPL know about the key, the -K option for mkimage points to the dts/dt-spl.dtb which can then get included into the spl binary.

Re: [PATCH v3 2/5] mkimage: fit_image: handle multiple errors when writing signatures

2020-06-19 Thread Heiko Stuebner
Am Sonntag, 31. Mai 2020, 16:07:56 CEST schrieb Simon Glass: > Hi Heiko, > > On Tue, 26 May 2020 at 04:44, Heiko Stuebner wrote: > > > > From: Heiko Stuebner > > > > fit_image_write_sig() contains mostly functions from libfdt that > > return FDT_ERR_foo errors but also a call to

Re: [PATCH v3 0/5] rockchip: make it possible to sign the u-boot.itb

2020-06-19 Thread Heiko Stuebner
Hi Kever, Am Sonntag, 31. Mai 2020, 10:28:45 CEST schrieb Kever Yang: > This patch set make rk3288 series board build fail. Could you help > to check again? the additional patch in v4 adding the ifdef CONFIG_SPL_FIT clamp, should hopefully fix this Heiko > On 2020/5/26 下午6:44, Heiko

[PATCH v4 5/6] spl: fit: add Kconfig option to specify key-hint for fit_generator

2020-06-19 Thread Heiko Stuebner
From: Heiko Stuebner The u-boot.itb can be generated either from a static .its that can simply include the needed signature nodes with key-hints or from a fit-generator script referenced in CONFIG_SPL_FIT_GENERATOR. In the script-case it will need to know what key to include for the key-hint

[PATCH v4 1/6] imx: mkimage_fit_atf: Fix FIT image if BL31.bin missing

2020-06-19 Thread Heiko Stuebner
From: Heiko Stuebner Right now if its bl31.bin is missing, the imx make_fit_atf.sh does return "sucessful" without generating an .its source file, which makes autobuilders unhappy. So this change is similar to Tom Rini's commit 4c78028737c3 ("mksunxi_fit_atf.sh: Allow for this to complete when

Re: [PATCH v3 0/4] spi: kirkwood: dm-conversion (part4)

2020-06-19 Thread Chris Packham
Hi Jagan, On Fri, 19 Jun 2020, 5:45 AM Jagan Teki, wrote: > Series of kirkwood boards to switch DM_SPI and drop > which are not DM enabled still. > > Any inputs? > Jagan. > I had a quick glance over the series and it looks good to me. I'm fortunate enough to be able to get into the office so

Re: [PATCH] ARM: dts: stm32: Reinstate card detect behavior on ST boards

2020-06-19 Thread Patrice CHOTARD
Hi Patrick On 6/19/20 11:19 AM, Patrick Delaunay wrote: > The cd-gpios with (GPIO_ACTIVE_LOW | GPIO_PULL_UP) gpio is thus far > unsupported, reinstate the old cd-gpios behavior until this handling > is fully implemented. This avoid potential issue for SDCard boot: > the card detect fails with

[PATCH] pinctrl: mediatek: add PUPD/R0/R1 support for MT7623

2020-06-19 Thread David Woodhouse
The pins for the MMC controller weren't being set up correctly because the pinctrl driver only sets the GPIO pullup/pulldown config and doesn't handle the special cases with PUPD/R0/R1 control. Signed-off-by: David Woodhouse --- And now the eMMC on my Banana Pi R2 actually works, even when

[PATCH] common/board_f: Respect original FDT size while relocating

2020-06-19 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko While relocating FDT we reserve some memory for the new FDT and set the size of the FDT with that respect. But FDT may be placed at the end of the RAM leading to memory access beyond it. Fix this by copying exact FDT size bytes, not the reserved size.

[RESEND PATCH v5 1/4] cmd: env: add option for quiet output on env info

2020-06-19 Thread Patrick Delaunay
The "env info" can be use for test with -d and -p parameter, in scripting case the output of the command is not needed. This patch allows to deactivate this output with a new option "-q". For example, we can save the environment if default environment is used and persistent storage is managed

[RESEND PATCH v5 3/4] configs: sandbox: Enable sub command 'env info'

2020-06-19 Thread Patrick Delaunay
Enable support for sub command 'env info' in sandbox with CONFIG_CMD_NVEDIT_INFO. This is aimed primarily at adding unit test. Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - activate env info command in sandbox (new)

[RESEND PATCH v5 0/4] cmd: env: add option for quiet output on env info

2020-06-19 Thread Patrick Delaunay
Hi, It is a V5 for [1] serie. RESEND without "stm32mp1: use the command env info -q in env_check" sent in separate serie [4]. I add the -q option for 'env info' command and I also add pytest for this command. Test for ENV_IS_IN_DEVICE is included in separate serie [2] (I will activate

Re: [PATCH 1/1] Dockerfile: add missing package efitools

2020-06-19 Thread Tom Rini
On Wed, Jun 17, 2020 at 03:30:24PM +0200, Heinrich Schuchardt wrote: > Package efitools is needed to run the tests in > test/py/tests/test_efi_secboot/. > > Signed-off-by: Heinrich Schuchardt Applied to gitlab-ci-runner/master, thanks! -- Tom signature.asc Description: PGP signature

Re: Please pull u-boot-video

2020-06-19 Thread Tom Rini
On Thu, Jun 18, 2020 at 11:12:46PM +0200, Anatolij Gustschin wrote: > Hi Tom, > > please pull some fixes for v2020.07-rc4. Thanks! > > gitlab CI: > https://gitlab.denx.de/u-boot/custodians/u-boot-video/pipelines/3720 > > The following changes since commit

Re: Please pull u-boot-video/next

2020-06-19 Thread Tom Rini
On Thu, Jun 18, 2020 at 10:54:03PM +0200, Anatolij Gustschin wrote: > Hi Tom, > > please pull first video updates for -next. Thanks! > > gitlab CI: > https://gitlab.denx.de/u-boot/custodians/u-boot-video/pipelines/3716 > > The following changes since commit

Re: [PATCH 1/1] Dockerfile: add libguestfs-tools package

2020-06-19 Thread Tom Rini
On Sun, May 31, 2020 at 12:16:58AM +0200, Heinrich Schuchardt wrote: > In some of our Python tests we build disk images. Currently this involves > using the sudo command for losetup and mount. For some tests sudo is > not necessary if the command guestmount of package libguestfs-tools is >

Re: [PATCH] Azure/GitLab: Move to latest Docker image

2020-06-19 Thread Tom Rini
On Thu, Jun 18, 2020 at 04:59:07PM -0400, Tom Rini wrote: > - Add guestfstools, efitools > - Latest Ubuntu/bionic snapshot > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] video: ipuv3: remove some useless code to reduce binary size

2020-06-19 Thread Anatolij Gustschin
On Mon, 25 May 2020 14:34:17 +0200 Anatolij Gustschin ag...@denx.de wrote: > To enable DM_VIDEO we must decrease binary size to fix build > breakage for some boards, so drop not needed code. Also add > !DM_VIDEO guards which can be later removed when last non DM > users will be converted. > >

Re: [PATCH V2 3/5] clk: renesas: Add R8A774A1 clock tables

2020-06-19 Thread Marek Vasut
On 6/19/20 3:58 PM, Adam Ford wrote: > This sync's the clock tables with the official release from > Renesas' repo based on U-Boot 2018.09 and modified to build into > the latest version of U-Boot. Can you import the clock table from Linux too ? [...] > +static const struct mstp_stop_table

Re: [PATCH 6/6] ARM: rmobile: Add Beacon EmbeddedWorks RZG2M Dev Kit

2020-06-19 Thread Marek Vasut
On 6/19/20 3:58 PM, Adam Ford wrote: [...] > diff --git a/board/beacon/beacon-rzg2m/beacon-rzg2m.c > b/board/beacon/beacon-rzg2m/beacon-rzg2m.c > new file mode 100644 > index 00..88702958e0 > --- /dev/null > +++ b/board/beacon/beacon-rzg2m/beacon-rzg2m.c > @@ -0,0 +1,112 @@ > +//

Re: [PATCH V2 5/5] mmc: renesas-sdhi: Enable support for R8A774A1

2020-06-19 Thread Marek Vasut
On 6/19/20 3:58 PM, Adam Ford wrote: > The renesas-shdi controller can drive the r8a774a1 and shares its > quirks with R8A7796. This patch adds the compatibilty flag, to > support the SDHI controller. > > Signed-off-by: Adam Ford > --- > V2: No Change > > diff --git

Re: [PATCH V2 4/5] pinctrl: renesas: Enable R8A774A1 PFC tables

2020-06-19 Thread Marek Vasut
On 6/19/20 3:58 PM, Adam Ford wrote: > The PFC tables for the R8A774A1 are already available, but they > not enabled. > > This patch adds the Kconfig option and builds the corresponding file > when PINCTRL_PFC_R8A774A1 is enabled. [...] > diff --git a/drivers/pinctrl/renesas/sh_pfc.h >

Re: [PATCH V2 4/5] pinctrl: renesas: Enable R8A774A1 PFC tables

2020-06-19 Thread Adam Ford
On Fri, Jun 19, 2020 at 9:18 AM Marek Vasut wrote: > > On 6/19/20 3:58 PM, Adam Ford wrote: > > The PFC tables for the R8A774A1 are already available, but they > > not enabled. > > > > This patch adds the Kconfig option and builds the corresponding file > > when PINCTRL_PFC_R8A774A1 is enabled. >

[PATCH v2 00/14] improve OF_PLATDATA support

2020-06-19 Thread Walter Lozano
When using OF_PLATDATA dtbs are converted to C structs in order to save space as we can remove both dtbs and libraries from TPL/SPL binaries. This patchset tries to improve its support by overcoming some limitations in the current implementation First, the support for scan and check for valid

[PATCH v2 01/14] drivers: rename drivers to match compatible string

2020-06-19 Thread Walter Lozano
When using OF_PLATDATA, the bind process between devices and drivers is performed trying to match compatible string with driver names. However driver names are not strictly defined, and also there are different names used when declaring a driver with U_BOOT_DRIVER, the name of the symbol used in

[PATCH v2 03/14] dtoc: add support to scan drivers

2020-06-19 Thread Walter Lozano
Currently dtoc scans dtbs to convert them to struct platdata and to generate U_BOOT_DEVICE entries. These entries need to be filled with the driver name, but at this moment the information used is the compatible name present in the dtb. This causes that only nodes with a compatible name that

[PATCH v2 06/14] core: drop const for struct driver_info

2020-06-19 Thread Walter Lozano
In order to prepare for a new support of phandle when OF_PLATDATA is used drop the const for struct driver_info as this struct will need to be updated on runtime. Signed-off-by: Walter Lozano --- drivers/core/device.c| 2 +- drivers/core/root.c | 2 +-

[PATCH v2 07/14] core: extend struct driver_info to point to device

2020-06-19 Thread Walter Lozano
Currently when creating an U_BOOT_DEVICE entry a struct driver_info is declared, which contains the data needed to instantiate the device. However, the actual device is created at runtime and there is no proper way to get the device based on its struct driver_info. This patch extends struct

[PATCH v2 04/14] dtoc: add option to disable warnings

2020-06-19 Thread Walter Lozano
As dtoc now performs checks for valid driver names, when running dtoc tests several warnings arise as these tests don't use valid driver names. This patch adds an option to disable those warning, which is only intended for running tests. Signed-off-by: Walter Lozano ---

[PATCH v2 08/14] dtoc: extend dtoc to use struct driver_info when linking nodes

2020-06-19 Thread Walter Lozano
In the current implementation, when dtoc parses a dtb to generate a struct platdata it converts the information related to linked nodes as pointers to struct platdata of destination nodes. By doing this, it makes difficult to get pointer to udevices created based on these information. This patch

[PATCH v2 05/14] dm: doc: update of-plat with the support for driver aliases

2020-06-19 Thread Walter Lozano
Update the documentation with the support for driver aliases using U_BOOT_DRIVER_ALIAS. Signed-off-by: Walter Lozano --- doc/driver-model/of-plat.rst | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/driver-model/of-plat.rst b/doc/driver-model/of-plat.rst

[PATCH v2 09/14] dm: doc: update of-plat with new phandle support

2020-06-19 Thread Walter Lozano
Update documentation to reflect the new phandle support when OF_PLATDATA is used. Now phandles are implemented as pointers to U_BOOT_DEVICE, which makes it possible to get a pointer to the actual device. Signed-off-by: Walter Lozano --- doc/driver-model/of-plat.rst | 24

Aw: [PATCH] pinctrl: mediatek: add PUPD/R0/R1 support for MT7623

2020-06-19 Thread Frank Wunderlich
Hi, Problem seems to be board-specific, on my bananapi-r2 v1.0 i had no problems with accessing emmc if booted from sdcard. but with the Patch i can still access any mmc-device (tried booting from emmc and sd) Tested-By: Frank Wunderlich regards Frank

Re: [PATCH v2 5/6] crypto/fsl: instantiate the RNG with prediciton resistance

2020-06-19 Thread Horia Geantă
On 6/17/2020 11:48 PM, Michael Walle wrote: > Am 2020-06-17 21:15, schrieb Horia Geantă: >> On 6/4/2020 6:48 PM, Michael Walle wrote: >>> + >>> + desc = memalign(ARCH_DMA_MINALIGN, desc_size); >>> + if (!desc) { >>> + debug("cannot allocate RNG init descriptor memory\n"); >>> +

[PULL] Pull request: u-boot-stm32 for v2020.07= u-boot-stm32-20200619

2020-06-19 Thread Patrick DELAUNAY
Hi Tom, Please pull the STM32 related patches for v2020.07: u-boot-stm32-20200619 With the following changes: - fix SD card cart detect on DHCOM and STMicroelectronics boards CI status: https://gitlab.denx.de/u-boot/custodians/u-boot-stm/pipelines/3731 Thanks, Patrick The following

Re: [PATCH 2/8] imx: convert pico-imx6 to DM_VIDEO

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 01:41:31 +0200 Anatolij Gustschin ag...@denx.de wrote: > Update defconfig to enable usage of converted ipuv3 > driver DM configuration. > > Signed-off-by: Anatolij Gustschin > Cc: Fabio Estevam > --- > configs/pico-imx6_defconfig | 8 +++- > 1 file changed, 7

Re: [PATCH 1/8] imx: convert embest boards to DM_VIDEO

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 01:41:30 +0200 Anatolij Gustschin ag...@denx.de wrote: > Migration to DM_VIDEO driver is long overdue. Update defconfigs > to enable usage of converted ipuv3 driver DM configuration. > > Signed-off-by: Anatolij Gustschin > --- > configs/marsboard_defconfig | 9 +++--

[PATCH v3 0/4] mips: Add initial Octeon MIPS64 base support

2020-06-19 Thread Stefan Roese
This patch adds very basic support for the Octeon III SoCs. Only CFI parallel UART, reset and NOR flash are supported for now. Please note that the basic Octeon port does not include the DDR3/4 initialization yet. This will be added in some follow-up patches later. To still use U-Boot on with

Re: [PATCH] video: ipuv3: fix building with disabled panel driver

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 00:09:22 +0200 Anatolij Gustschin ag...@denx.de wrote: > Panel code might be disabled for some boards, make this > driver code optional. > > Signed-off-by: Anatolij Gustschin > --- > drivers/video/imx/mxc_ipuv3_fb.c | 11 +++ > 1 file changed, 7 insertions(+), 4

Re: [PATCH] video: make backlight and panel drivers optional

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 00:20:49 +0200 Anatolij Gustschin ag...@denx.de wrote: > Not all boards use these drivers, so allow to disable them to fix > building boards with U-Boot binary image size restrictions. > > Signed-off-by: Anatolij Gustschin > --- > drivers/video/Kconfig | 27

[PATCH V2 2/5] ARM: dts: r8a774a1: Import DTS from Linux 5.8-rc1

2020-06-19 Thread Adam Ford
This patch imports the device tree and required bindings to permit the device tree to build for the R8Z774A1 (RZ/G2M). Signed-off-by: Adam Ford --- V2: No Change diff --git a/arch/arm/dts/r8a774a1.dtsi b/arch/arm/dts/r8a774a1.dtsi new file mode 100644 index 00..a603d94797 --- /dev/null

Re: [PATCH V2 4/5] pinctrl: renesas: Enable R8A774A1 PFC tables

2020-06-19 Thread Marek Vasut
On 6/19/20 4:25 PM, Adam Ford wrote: > On Fri, Jun 19, 2020 at 9:18 AM Marek Vasut wrote: >> >> On 6/19/20 3:58 PM, Adam Ford wrote: >>> The PFC tables for the R8A774A1 are already available, but they >>> not enabled. >>> >>> This patch adds the Kconfig option and builds the corresponding file

[PATCH v2 02/14] dtoc: add missing code comments

2020-06-19 Thread Walter Lozano
Add missing information about internal class members in order to make the code easier to follow. Signed-off-by: Walter Lozano --- tools/dtoc/dtb_platdata.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/dtoc/dtb_platdata.py b/tools/dtoc/dtb_platdata.py index

Re: [PATCH 7/8] imx: convert mx51evk board to DM_VIDEO

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 01:41:36 +0200 Anatolij Gustschin ag...@denx.de wrote: > Migration to DM_VIDEO driver is long overdue. Update defconfig > to enable usage of converted ipuv3 driver DM configuration. > > Signed-off-by: Anatolij Gustschin > Cc: Stefano Babic > --- > configs/mx51evk_defconfig

Re: [PATCH 6/8] imx: convert gwventana board to DM_VIDEO

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 01:41:35 +0200 Anatolij Gustschin ag...@denx.de wrote: > Migration to DM_VIDEO driver is long overdue. Update defconfigs > to enable usage of converted ipuv3 driver DM configuration. > > Signed-off-by: Anatolij Gustschin > Cc: Tim Harvey > --- >

Re: [PATCH 8/8] imx: convert mx53loco board to DM_VIDEO

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 01:41:37 +0200 Anatolij Gustschin ag...@denx.de wrote: > Migration to DM_VIDEO driver is long overdue. Update defconfig > to enable usage of converted ipuv3 driver DM configuration. > > Signed-off-by: Anatolij Gustschin > Cc: Jason Liu > --- > configs/mx53loco_defconfig |

RE: [PATCH] ARM: dts: stm32: Reinstate card detect behavior on DHSOM

2020-06-19 Thread Patrick DELAUNAY
Dear Marek > From: Marek Vasut > Sent: jeudi 18 juin 2020 20:35 > > The cd-gpios with (GPIO_ACTIVE_LOW | GPIO_PULL_UP) gpio is thus far > unsupported, reinstate the old cd-gpios behavior until this handling is fully > implemented. This permits the DHSOM to boot from SD again, without this patch

Re: [PATCH 3/8] imx: convert dms-ba16 boards to DM_VIDEO

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 01:41:32 +0200 Anatolij Gustschin ag...@denx.de wrote: > Migration to DM_VIDEO driver is long overdue. Update defconfigs > to enable usage of converted ipuv3 driver DM configuration. > > Signed-off-by: Anatolij Gustschin > Cc: Akshay Bhat > Cc: Ken Lin > --- >

Re: [PATCH 4/8] imx: convert cgtqmx6eval board to DM_VIDEO

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 01:41:33 +0200 Anatolij Gustschin ag...@denx.de wrote: > Migration to DM_VIDEO driver is long overdue. Update defconfig > to enable usage of converted ipuv3 driver DM configuration. > > Signed-off-by: Anatolij Gustschin > Cc: Otavio Salvador > --- >

Re: [PATCH 5/8] imx: convert mx6cuboxi board to DM_VIDEO

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 01:41:34 +0200 Anatolij Gustschin ag...@denx.de wrote: > Migration to DM_VIDEO driver is long overdue. Update defconfig > to enable usage of converted ipuv3 driver DM configuration. > > Signed-off-by: Anatolij Gustschin > Cc: Baruch Siach > Cc: Fabio Estevam > --- >

[PATCH v2 12/14] arm: dts: include gpio nodes for card detect

2020-06-19 Thread Walter Lozano
Several MMC drivers use GPIO for card detection with cd-gpios property in the MMC node pointing to a GPIO node. However, as U-Boot tries to save space by keeping only required nodes using u-boot* properties, several devices tree result in having only in the MMC node but not the GPIO node

[PATCH v2 10/14] dtoc: update tests to match new platdata

2020-06-19 Thread Walter Lozano
After using a new approach to link nodes when OF_PLATDATA is enabled the test cases need to be update. This patch updates the tests based on this new implementation. Signed-off-by: Walter Lozano --- tools/dtoc/test_dtoc.py | 103 +++- 1 file changed, 60

[PATCH v2 14/14] dtoc add test for cd-gpios

2020-06-19 Thread Walter Lozano
Add a test for dtoc taking into account the cd-gpios property. Signed-off-by: Walter Lozano --- tools/dtoc/dtoc_test_phandle_cd_gpios.dts | 42 ++ tools/dtoc/test_dtoc.py | 67 +++ 2 files changed, 109 insertions(+) create mode 100644

[PATCH v2 11/14] sandbox: Move section u_boot_list to make it RW

2020-06-19 Thread Walter Lozano
In order to be able to update data in u_boot_list, move this section to make it RW. Signed-off-by: Walter Lozano --- arch/sandbox/cpu/u-boot-spl.lds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/cpu/u-boot-spl.lds b/arch/sandbox/cpu/u-boot-spl.lds index

[PATCH v2 13/14] dtoc: update dtb_platdata to support cd-gpios

2020-06-19 Thread Walter Lozano
Currently dtoc does not support the property cd-gpios used to declare the gpios for card detect in mmc. This patch adds support to cd-gpios property. Signed-off-by: Walter Lozano --- tools/dtoc/dtb_platdata.py | 13 - tools/dtoc/test_dtoc.py| 2 +- 2 files changed, 9

Re: [PATCH v2] apalis_imx6: fix video stdout in default environment

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 22:52:14 +0200 Anatolij Gustschin ag...@denx.de wrote: > After migration to DM 'vga' name is not longer supported, > change it to 'vidconsole' in the default environment. > > Signed-off-by: Anatolij Gustschin > Cc: Igor Opaniuk Applied to u-boot-video/master, thanks! --

[PATCH V2 3/5] clk: renesas: Add R8A774A1 clock tables

2020-06-19 Thread Adam Ford
This sync's the clock tables with the official release from Renesas' repo based on U-Boot 2018.09 and modified to build into the latest version of U-Boot. Signed-off-by: Adam Ford --- V2: No Change diff --git a/drivers/clk/renesas/Kconfig b/drivers/clk/renesas/Kconfig index

[PATCH 6/6] ARM: rmobile: Add Beacon EmbeddedWorks RZG2M Dev Kit

2020-06-19 Thread Adam Ford
The Beacon EmbeddedWorks kit is based on the R8A774A1 SoC also known as the RZ/G2M. The kit consists of a SOM + Baseboard and supports microSD, eMMC, Ethernet, a couple celular radios, two CAN interfaces, Bluetooth and WiFi. Signed-off-by: Adam Ford --- V2: New to series diff --git

[PATCH V2 4/5] pinctrl: renesas: Enable R8A774A1 PFC tables

2020-06-19 Thread Adam Ford
The PFC tables for the R8A774A1 are already available, but they not enabled. This patch adds the Kconfig option and builds the corresponding file when PINCTRL_PFC_R8A774A1 is enabled. Signed-off-by: Adam Ford --- V2: Use tables already build into pfc-r8a7796 instead of creating a new file

[PATCH V2 1/5] ARM: renesas: Add basic R8A774A1 Support

2020-06-19 Thread Adam Ford
In order to build boards based on the R8A774A1, there needs to be a config option from which to enable other drivers and/or flags for this SoC. Signed-off-by: Adam Ford --- V2: No Change diff --git a/arch/arm/mach-rmobile/Kconfig.64 b/arch/arm/mach-rmobile/Kconfig.64 index

[PATCH V2 5/5] mmc: renesas-sdhi: Enable support for R8A774A1

2020-06-19 Thread Adam Ford
The renesas-shdi controller can drive the r8a774a1 and shares its quirks with R8A7796. This patch adds the compatibilty flag, to support the SDHI controller. Signed-off-by: Adam Ford --- V2: No Change diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c index

[PATCH V2 0/5] Add Basic support for R8A774A1 (RZ/G2M)

2020-06-19 Thread Adam Ford
The R8A774A1 (RZ/G2M) a commercial SoC based off the automotive R8A7796 SoC. This series will start the foundation to support this SoC by importing porting the device tree and bindings from Linux 5.8-rc1, then porting the clock driver, pinctrl driver, and sdhi drivers from Renesas' RZG2M repo

Re: [PATCH] cm_fx6: fix video stdout in default environment

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 12:03:19 +0200 Anatolij Gustschin ag...@denx.de wrote: > After migration to DM 'vga' name is not longer supported, > change it to 'vidconsole' in the default environment. > > Signed-off-by: Anatolij Gustschin > Cc: Nikita Kiryanov Applied to u-boot-video/master, thanks!

Re: [PATCH v2] colibri_imx6: fix video stdout in default environment

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 22:54:29 +0200 Anatolij Gustschin ag...@denx.de wrote: > After migration to DM 'vga' name is not longer supported, > change it to 'vidconsole' in the default environment. > > Signed-off-by: Anatolij Gustschin > Cc: Igor Opaniuk Applied to u-boot-video/master, thanks! --

Re: [PATCH] nitrogen6x: update video console name

2020-06-19 Thread Anatolij Gustschin
On Tue, 26 May 2020 12:03:21 +0200 Anatolij Gustschin ag...@denx.de wrote: > After migration to DM 'vga' name is not longer supported, > Update the upgrade script to use 'vidconsole' instead. > > Signed-off-by: Anatolij Gustschin > Cc: Troy Kisky > --- >

Re: [PATCH] video: make vidconsole commands optional

2020-06-19 Thread Anatolij Gustschin
On Mon, 25 May 2020 21:47:19 +0200 Anatolij Gustschin ag...@denx.de wrote: > Converting some boards to DM_VIDEO results in build breakage due > to increased code size. Make video console specific commands > optional to recude binary size. > > Signed-off-by: Anatolij Gustschin > --- >

repurposing dhcp command

2020-06-19 Thread Ramon Fried
Hi. Basically, bootp command and dhcp command have the same logic, no difference whatsoever. Also, sometimes, It's needed to just acquire an IP address using dhcp and boot in some other way (NFS). I'm suggesting repurposing the dhcp command to only do DHCP IP address acquisition. Users could use

Re: [PATCH V2 4/5] pinctrl: renesas: Enable R8A774A1 PFC tables

2020-06-19 Thread Adam Ford
On Fri, Jun 19, 2020 at 9:27 AM Marek Vasut wrote: > > On 6/19/20 4:25 PM, Adam Ford wrote: > > On Fri, Jun 19, 2020 at 9:18 AM Marek Vasut wrote: > >> > >> On 6/19/20 3:58 PM, Adam Ford wrote: > >>> The PFC tables for the R8A774A1 are already available, but they > >>> not enabled. > >>> > >>>

Re: [PATCH] video: extend stdout video console work-around for 'vga'

2020-06-19 Thread Anatolij Gustschin
On Sat, 23 May 2020 17:11:20 +0200 Anatolij Gustschin ag...@denx.de wrote: > cfb_console driver use 'vga' console name and we still have board > environments defining this name. Re-use existing DM_VIDEO work- > around for console name to support 'vga' name in stdout environment. > >

RE: [EXT] Re: [RESEND][Patch v4] net: pfe_eth: Use spi_flash_read API to access flash memory

2020-06-19 Thread Priyanka Jain
>-Original Message- >From: Kuldeep Singh >Sent: Friday, June 19, 2020 3:40 PM >To: Joe Hershberger ; u-boot@lists.denx.de; >Priyanka Jain >Cc: Tom Rini ; Schrempf Frieder > >Subject: RE: [EXT] Re: [RESEND][Patch v4] net: pfe_eth: Use spi_flash_read API >to access flash memory > > >>

RE: [PATCH v2 3/9] env: correctly handle result in env_init

2020-06-19 Thread Patrick DELAUNAY
Hi Tom and Marek, > From: Tom Rini > Sent: jeudi 18 juin 2020 21:16 > > On Tue, Jun 16, 2020 at 09:40:42AM +0200, Patrick Delaunay wrote: > > > Don't return error with ret=-ENOENT when the optional ops drv->init is > > absent but only if env_driver_lookup doesn't found driver. > > > > This

Re: [EXT] Re: [RESEND][Patch v4] net: pfe_eth: Use spi_flash_read API to access flash memory

2020-06-19 Thread Tom Rini
On Fri, Jun 19, 2020 at 02:13:37PM +, Priyanka Jain wrote: > >-Original Message- > >From: Kuldeep Singh > >Sent: Friday, June 19, 2020 3:40 PM > >To: Joe Hershberger ; u-boot@lists.denx.de; > >Priyanka Jain > >Cc: Tom Rini ; Schrempf Frieder > > > >Subject: RE: [EXT] Re:

Re: repurposing dhcp command

2020-06-19 Thread Tom Rini
On Fri, Jun 19, 2020 at 06:32:57PM +0300, Ramon Fried wrote: > Hi. > Basically, bootp command and dhcp command have the same logic, no > difference whatsoever. > Also, sometimes, It's needed to just acquire an IP address using dhcp > and boot in some other way (NFS). > > I'm suggesting

Re: [PATCH v2 5/6] crypto/fsl: instantiate the RNG with prediciton resistance

2020-06-19 Thread Horia Geantă
On 6/19/2020 7:37 PM, Horia Geanta wrote: > On 6/17/2020 11:48 PM, Michael Walle wrote: >> Am 2020-06-17 21:15, schrieb Horia Geantă: >>> On 6/4/2020 6:48 PM, Michael Walle wrote: + + desc = memalign(ARCH_DMA_MINALIGN, desc_size); + if (!desc) { + debug("cannot

Re: [PATCH v3 02/15] arm: cpu: armv8: add L3 memory flush support

2020-06-19 Thread Rayagonda Kokatanur
Hi Simon, On Wed, Jun 17, 2020 at 8:42 AM Simon Glass wrote: > > On Wed, 10 Jun 2020 at 04:41, Rayagonda Kokatanur > wrote: > > > > Add L3 memory flush support for NS3. > > > > Signed-off-by: Rayagonda Kokatanur > > --- > > arch/arm/cpu/armv8/Makefile | 1 + > >

Re: [PATCH] common/board_f: Respect original FDT size while relocating

2020-06-19 Thread Tom Rini
On Fri, Jun 19, 2020 at 11:22:18AM +0300, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > While relocating FDT we reserve some memory for the new FDT and > set the size of the FDT with that respect. But FDT may be placed > at the end of the RAM leading to memory access beyond

RE: [PATCH] ARM: dts: stm32: Reinstate card detect behavior on ST boards

2020-06-19 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > Sent: vendredi 19 juin 2020 11:20 > > The cd-gpios with (GPIO_ACTIVE_LOW | GPIO_PULL_UP) gpio is thus far > unsupported, reinstate the old cd-gpios behavior until this handling is fully > implemented. This avoid potential issue for SDCard boot: > the card detect

  1   2   >