[PATCH v2 5/5] configs: j721e_evm_a72_defconfig: Enable I2C and EEPROM support

2020-01-06 Thread Lokesh Vutla
From: Vignesh Raghavendra Enable I2C and EEPROM related configs for A72 SPL/U-Boot. Signed-off-by: Vignesh Raghavendra Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla --- configs/j721e_evm_a72_defconfig | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 3/5] board: ti: j721e: Print board name and version during boot

2020-01-06 Thread Lokesh Vutla
Print the board name and ver along with the DT Model. Signed-off-by: Lokesh Vutla --- board/ti/j721e/evm.c | 13 + 1 file changed, 13 insertions(+) diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c index 7327c96b31..aa2240b852 100644 --- a/board/ti/j721e/evm.c +++

[PATCH v2 4/5] arm64: dts: k3-j721e-common-proc-board: Fully enable wkup_i2c0 use

2020-01-06 Thread Lokesh Vutla
From: Andreas Dannenberg Make the wkup_i2c0 module usable across all stages of U-Boot by adding the needed definitions including the associated pinmux definitions. Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla --- .../dts/k3-j721e-common-proc-board-u-boot.dtsi| 8

[PATCH v2 0/5] board: ti: j721e: Enable I2C and EEPROM

2020-01-06 Thread Lokesh Vutla
This series enable I2C and EEPROM support on J721e common processor board. Logs: https://pastebin.ubuntu.com/p/HTrQk3VnZm/ Changes since v1: - Fixed board_is_j721e_som() to use the right apis. Andreas Dannenberg (3): ti: common: board_detect: Handle EEPROM probe more gracefully board: ti:

[PATCH v2 1/5] ti: common: board_detect: Handle EEPROM probe more gracefully

2020-01-06 Thread Lokesh Vutla
From: Andreas Dannenberg Use dm_i2c_probe() rather than i2c_get_chip() when trying to access board-detection EEPROM devices. This has the advantage of more gracefully handling the case when the EEPROM is not present by allowing to exit the function early rather than failing and outputting an

[PATCH v2 2/5] board: ti: j721e: Use EEPROM-based board detection

2020-01-06 Thread Lokesh Vutla
From: Andreas Dannenberg The TI J721E EVM system on module (SOM), the common processor board, and the associated daughtercards have on-board I2C-based EEPROMs containing board config data. Use the board detection infrastructure to do the following: 1) Parse the J721E SOM EEPROM and populate

Re: [ANN] U-Boot v2020.01 released

2020-01-06 Thread Eugen.Hristev
On 06.01.2020 22:58, Tom Rini wrote: > The next thing I'd like to point out is that as part of this release > we've re-synced with upstream for libfdt Hello Tom, Regarding the DTC parser (/scripts/dtc/version_gen.h) #define DTC_VERSION "DTC 1.4.6-gaadd0b65" Is this compatible with the

Re: [ANN] U-Boot v2020.01 released

2020-01-06 Thread Eugen.Hristev
On 06.01.2020 22:58, Tom Rini wrote: > The next thing I'd like to point out is that as part of this release > we've re-synced with upstream for libfdt Hello Tom, Regarding the DTC parser (/scripts/dtc/version_gen.h) #define DTC_VERSION "DTC 1.4.6-gaadd0b65" Is this compatible with the

[PATCH 2/3] ram: rk3328: add support ddr4 init

2020-01-06 Thread Kever Yang
From: YouMin Chen Add rk3328-sdram-ddr4-666.dtsi for support ddr4 init. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- arch/arm/dts/rk3328-sdram-ddr4-666.dtsi | 216 1 file changed, 216 insertions(+) create mode 100644

[PATCH 1/3] ram: rk3328: only do data traning for cs0

2020-01-06 Thread Kever Yang
No need to do twice data training for rk3328 ddr sdram, we re-use the setting for both channel. And adjust the sdram_init properly for correct init flow. Signed-off-by: Kever Yang Signed-off-by: YouMin Chen --- drivers/ram/rockchip/sdram_rk3328.c | 10 +++--- 1 file changed, 3

[PATCH 3/3] ram: rk3328: update lpddr3 setting

2020-01-06 Thread Kever Yang
From: YouMin Chen update lpddr3 setting for fix init fail about "col error". Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- arch/arm/dts/rk3328-sdram-lpddr3-666.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH 1/1] efi_loader remove __packed from struct efi_configuration_table

2020-01-06 Thread Heinrich Schuchardt
On 12/28/19 3:54 PM, Heinrich Schuchardt wrote: struct efi_configuration_table is naturally packed. There is no need for a __packed attribute. Hence remove it. This holds true only on 64bit systems as we defined efi_guid_t to be 8-byte aligned. Instead adjust guidcpy to accept void *. See

[PATCH v5 1/1] efi_loader: Add guidcpy function

2020-01-06 Thread Heinrich Schuchardt
From: Sughosh Ganu Add guidcpy function to copy the source guid to the destination guid. Use this function instead of memcpy for copying to the destination guid. Signed-off-by: Sughosh Ganu Use void * instead of efi_guid_t * for arguments to allow copying unaligned GUIDs. The GUIDs of

[PATCH 1/2] cmd: efidebug: simplify get_guid_text()

2020-01-06 Thread Heinrich Schuchardt
When we hit a matching GUID we can directly return the text. There is no need for a check after the loop. efi_guid_t is defined as 8 byte aligned but GUIDs in packed structures do not follow this alignment. Do not require the argument of get_guid_text() to be correctly aligned. Signed-off-by:

[PATCH 2/2] cmd: efidebug: new sub-command tables

2020-01-06 Thread Heinrich Schuchardt
Provide sub-command for efidebug to list configuration tables. Signed-off-by: Heinrich Schuchardt --- cmd/efidebug.c | 47 ++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index 45ed5be885..78fc649782

[PATCH 0/2] cmd: efidebug: new sub-command tables

2020-01-06 Thread Heinrich Schuchardt
Provide sub-command for efidebug to list configuration tables. Adjust get_guid_text() to accept unaligned GUIDs of configuration tables. Heinrich Schuchardt (2): cmd: efidebug: simplify get_guid_text() cmd: efidebug: new sub-command tables cmd/efidebug.c | 72

[PATCH RESEND] usbtty: fix possible alignment issues

2020-01-06 Thread Seung-Woo Kim
With gcc9, below warnings are shown: drivers/serial/usbtty.c: In function 'usbtty_init_strings': drivers/serial/usbtty.c:590:44: warning: taking address of packed member of 'struct usb_string_descriptor' may result in an unaligned pointer value [-Waddress-of-packed-member] 590 |

[PATCH] usbtty: fix possible alignment issues

2020-01-06 Thread Seung-Woo Kim
With gcc9, below warnings are shown: drivers/serial/usbtty.c: In function 'usbtty_init_strings': drivers/serial/usbtty.c:590:44: warning: taking address of packed member of 'struct usb_string_descriptor' may result in an unaligned pointer value [-Waddress-of-packed-member] 590 |

Re: fitImage align 8-byte for ARM64【请注意,邮件由u-boot-boun...@lists.denx.de代发】

2020-01-06 Thread Kever Yang
Hi Tom, Simon, On 2020/1/6 下午10:20, Tom Rini wrote: On Mon, Jan 06, 2020 at 01:47:25PM +0100, Matthias Schoepfer wrote: Hi! I have had trouble booting a fitImage packed kernel for dragonboard410c, which is an ARM64 platform. After days and days of debugging, I found that the fdt is 4-byte

RE: [PATCH 1/3] imx8mn: evk: add README

2020-01-06 Thread Peng Fan
> Subject: Re: [PATCH 1/3] imx8mn: evk: add README > > Hi Peng, > > On Mon, Jan 6, 2020 at 5:04 AM Peng Fan wrote: > > > +Quick Start > > +=== > > +- Build the ARM Trusted firmware binary > > +- Get ddr firmware > > I prefer you write "Get firmware-imx package" instead because this is

RE: [PATCH 1/3] imx8mn: evk: add README

2020-01-06 Thread Peng Fan
> Subject: Re: [PATCH 1/3] imx8mn: evk: add README > > On 06/01/20 09:04, Peng Fan wrote: > > Add a README for users to build a workable image. > > > > Signed-off-by: Peng Fan > > --- > > board/freescale/imx8mn_evk/README | 37 > > + > > 1 file changed, 37

Re: [PATCH] mx6ul_14x14_evk: Fix SPL hang

2020-01-06 Thread Fabio Estevam
Hi Tom, On Mon, Jan 6, 2020 at 12:20 PM Fabio Estevam wrote: > I don't have the U-Boot proper fix yet, so I think this patch can wait > and go into 2020.04. I managed to fix the card detection problem in U-Boot proper and have just sent a patch series. Thanks

Re: [U-Boot] [PATCH] net: eth-uclass: Remove warning about ROM MAC address

2020-01-06 Thread Fabio Estevam
Hi Joe, On Wed, Dec 11, 2019 at 8:54 AM Schrempf Frieder wrote: > > On 11.10.19 01:00, Soeren Moch wrote: > > Using a MAC address from ROM storage is the normal case for most > > ethernet hardware. Why should we warn about this? > > > > Signed-off-by: Soeren Moch > > Some months ago I came up

Re: i.MX8QXP MEK does not boot with latest U-Boot

2020-01-06 Thread Fabio Estevam
Hi Peng, On Tue, Dec 17, 2019 at 12:46 PM Fabio Estevam wrote: > > Hi Peng, > > I am trying to boot the latest U-Boot mainline on a imx8qxp mek board > and this is what I get: > > U-Boot SPL 2020.01-rc5-1-g3dd6a9300b-dirty (Dec 17 2019 - 12:33:57 -0300) > Normal Boot > WDT: Not found! >

[PATCH 1/2] mmc: fsl_esdhc_imx: Handle the "broken-cd" property

2020-01-06 Thread Fabio Estevam
When no GPIO is used to read the card detect status the following error is seen: MMC: FSL_SDHC: 0, FSL_SDHC: 1 Loading Environment from MMC... MMC: no card present *** Warning - No block device, using default

[PATCH 2/2] ARM: dts: imx6ul-14x14-evk: Pass the "broken-cd" property

2020-01-06 Thread Fabio Estevam
imx6ul-14x14-evk does not have a GPIO dedicated for reading the card detect pin on the eSDHC2 port. In such cases the "broken-cd" property must be passed, otherwise the card cannot be detected. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx6ul-14x14-evk.dtsi | 1 + 1 file changed, 1

[PATCH] video: fix Coverity missing break issue

2020-01-06 Thread Anatolij Gustschin
Fix: >>> CID 280902: Control flow issues (MISSING_BREAK) >>> The case for value "VIDEO_BPP32" is not terminated >>> by a 'break' statement. Reported-by: Tom Rini Signed-off-by: Anatolij Gustschin --- drivers/video/vidconsole-uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH v1 0/1] arm: Add support for SoC S5P4418

2020-01-06 Thread Tom Rini
On Mon, Jan 06, 2020 at 09:58:47PM +0100, Stefan Bosch wrote: > This patch adds support for SAMSUNG's ARM Cortex-A9 based S5P4418 SoC, > especially FriendlyARM's NanoPi2 and NanoPC-T2 boards. It is based on > https://github.com/friendlyarm/u-boot/tree/nanopi2-v2016.01. For v2016.01 I > have also

[PATCH v1 0/1] arm: Add support for SoC S5P4418

2020-01-06 Thread Stefan Bosch
This patch adds support for SAMSUNG's ARM Cortex-A9 based S5P4418 SoC, especially FriendlyARM's NanoPi2 and NanoPC-T2 boards. It is based on https://github.com/friendlyarm/u-boot/tree/nanopi2-v2016.01. For v2016.01 I have also made a working SPL (FriendlyARM U-Boot is using a closed source

[ANN] U-Boot v2020.01 released

2020-01-06 Thread Tom Rini
Hey all, It's once again release day. While we've had a few things pop up near the end of the cycle I think we've got things handled well enough. In fact, I'm going to be open to doing, if needed, a v2020.01.y, with a fairly strict set of rules, if we have problems arise that can be safely

RE: [PATCH] stm32mp: remove redundant SYS_TEXT_BASE prompt

2020-01-06 Thread Patrick DELAUNAY
Hi Thomas, > From: Thomas Hebb > Sent: samedi 21 décembre 2019 03:04 > > The main prompt for this (defined in /Kconfig) is visible at all times, which > means > there's no reason to have an additional, machine-specific prompt to set the > same > option. > > Signed-off-by: Thomas Hebb Yes,

Re: [RFC PATCH] Revert "arm: Show cache warnings in U-Boot proper only"

2020-01-06 Thread Tom Rini
On Thu, Dec 19, 2019 at 12:32:09PM +, Andre Przywara wrote: > On Thu, 19 Dec 2019 12:43:35 +0100 > Marek Vasut wrote: > > Hi Marek, > > > On 12/19/19 12:36 PM, Andre Przywara wrote: > > > On Thu, 19 Dec 2019 09:04:32 +0100 > > > Marek Vasut wrote: > > >> On 12/19/19 2:23 AM, André Przywara

Re: Formal upstream support of Cortina Access ARM Based SoCs

2020-01-06 Thread Tom Rini
On Thu, Dec 26, 2019 at 12:18:31AM +, Alex Nemirovsky wrote: > Hi Tom, > > Hope you are doing well and enjoying the holiday season. > > Cortina Access management has decided that we want to add formal upstream > support of u-boot > going forward for our line of SoCs and evaluation boards

[PATCH v2] mx6ul_14x14_evk: Fix SPL boot hang

2020-01-06 Thread Fabio Estevam
Currently the following SPL hang is observed: U-Boot SPL 2020.01-rc5-00079-g797eee36a1 (Jan 06 2020 - 11:24:09 -0300) Trying to boot from MMC1 Card did not respond to voltage select! spl: mmc

Re: fitImage align 8-byte for ARM64

2020-01-06 Thread Tom Rini
On Mon, Jan 06, 2020 at 04:22:02PM +0100, Matthias Schoepfer wrote: > Hi Tom, > > thanks for your reply. As far as I can understand this code, only if > fdt_high is set to 0x (which is the very case for > dragonboard410c) a not aligned mapping of the fdt can happen. > In this

Re: fitImage align 8-byte for ARM64

2020-01-06 Thread Matthias Schoepfer
Hi Tom, thanks for your reply. As far as I can understand this code, only if fdt_high is set to 0x (which is the very case for dragonboard410c) a not aligned mapping of the fdt can happen. In this case, the address is images->ft_addr, which I *think* comes from the fitImage

Re: [PATCH] mx6ul_14x14_evk: Fix SPL hang

2020-01-06 Thread Fabio Estevam
Hi Tom, On Mon, Jan 6, 2020 at 12:06 PM Tom Rini wrote: > Should this come in for the 2020.01 release then? Thanks! I don't have the U-Boot proper fix yet, so I think this patch can wait and go into 2020.04. Thanks

Re: [PATCH] mx6ul_14x14_evk: Fix SPL hang

2020-01-06 Thread Tom Rini
On Mon, Jan 06, 2020 at 11:26:06AM -0300, Fabio Estevam wrote: > Currently the following SPL hang is observed: > > U-Boot SPL 2020.01-rc5-00079-g797eee36a1 (Jan 06 2020 - 11:24:09 -0300) > > Trying to boot from MMC1 > > Card did

Re: [PATCH v4 1/3] spi: nxp_fspi: new driver for the FlexSPI controller

2020-01-06 Thread Michael Walle
Hi Jagan, Am 2019-12-18 15:47, schrieb Jagan Teki: On Wed, Dec 18, 2019 at 4:40 AM Michael Walle wrote: This is a port of the kernel's spi-nxp-fspi driver. It uses the new spi-mem interface and does not expose the more generic spi-xfer interface. The source was taken from the v5.3-rc3 tag.

[PATCH] mx6ul_14x14_evk: Fix SPL hang

2020-01-06 Thread Fabio Estevam
Currently the following SPL hang is observed: U-Boot SPL 2020.01-rc5-00079-g797eee36a1 (Jan 06 2020 - 11:24:09 -0300) Trying to boot from MMC1 Card did not respond to voltage select! spl: mmc

[PATCH V4 4/4] aes: add test unit for aes196 and aes256

2020-01-06 Thread Philippe Reynes
This commit add test unit for aes196 and aes256. Signed-off-by: Philippe Reynes --- test/lib/test_aes.c | 4 1 file changed, 4 insertions(+) Changelog: v4: - no change v3: - new patch in this serie (in the previous version, the test to aes was added to pytest, now, we add test unit for

[PATCH V4 2/4] aes: add support of aes192 and aes256

2020-01-06 Thread Philippe Reynes
Until now, we only support aes128. This commit add the support of aes192 and aes256. Signed-off-by: Philippe Reynes --- arch/arm/mach-tegra/tegra20/crypto.c | 41 ++- cmd/aes.c| 38 -- include/uboot_aes.h | 34

[PATCH V4 3/4] aes: add test unit for aes128

2020-01-06 Thread Philippe Reynes
This commit add test unit for aes128. Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_aes.c | 162 2 files changed, 163 insertions(+) create mode 100644 test/lib/test_aes.c Changelog: v4: - Put test/ headers at

[PATCH V4 1/4] aes: add a define for the size of a block

2020-01-06 Thread Philippe Reynes
In the code, we use the size of the key for the size of the block. It's true when the key is 128 bits, but it become false for key of 192 bits and 256 bits. So to prepare the support of aes192 and 256, we introduce a constant for the iaes block size. Signed-off-by: Philippe Reynes ---

[PATCH V4 0/4] aes: add support for aes192 and aes256

2020-01-06 Thread Philippe Reynes
This serie add the support of aes192 and aes256. This first commit clean a bit the code, and introduce a constant for the block (instead of using the key size). The second commit add the support of aes192 and aes256 to the lib and the cmd and update the code of crypto for tegra20. The third add a

Re: fitImage align 8-byte for ARM64

2020-01-06 Thread Tom Rini
On Mon, Jan 06, 2020 at 01:47:25PM +0100, Matthias Schoepfer wrote: > Hi! > > I have had trouble booting a fitImage packed kernel for dragonboard410c, > which is an ARM64 platform. After days and days of debugging, I found that > the fdt is 4-byte aligned. But within the linux kernel, >

Re: [PATCH V2 2/3] watchdog: designware: Convert to DM and DT probing

2020-01-06 Thread Marek Vasut
On 12/27/19 8:53 AM, Jagan Teki wrote: > Hi Marek, > > On Thu, Oct 3, 2019 at 6:30 PM Marek Vasut wrote: >> >> Convert the designware watchdog timer driver to DM and add DT probing >> support. Perform minor coding style clean up, like drop superfluous >> braces. There ought to be no functional

[PATCH V3 1/3] watchdog: designware: Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig

2020-01-06 Thread Marek Vasut
Migrate CONFIG_DESIGNWARE_WATCHDOG to Kconfig and update the headers accordingly, no functional change. The S10 enables the WDT only in SPL, but does not enable it in U-Boot itself, hence disable it in the config again. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dalon Westergreen Cc:

[PATCH V3 2/3] watchdog: designware: Convert to DM and DT probing

2020-01-06 Thread Marek Vasut
Convert the designware watchdog timer driver to DM and add DT probing support. Perform minor coding style clean up, like drop superfluous braces. These ought to be no functional change. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dalon Westergreen Cc: Dinh Nguyen Cc: Jagan Teki Cc: Ley

[PATCH V3 3/3] watchdog: designware: Optionally fetch clock and reset from DT

2020-01-06 Thread Marek Vasut
Add optional support for fetching watchdog clock rate from DT and ungating reset via reset framework. This is optional as not all platforms using DW WDT support the clock and reset frameworks yet. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dalon Westergreen Cc: Dinh Nguyen Cc: Jagan

[PATCH 4/4] mpc8xxx_spi: implement real ->set_speed

2020-01-06 Thread Rasmus Villemoes
Not all boards have the same CSB frequency, nor do every SPI slave necessarily support running at 16.7 MHz. So implement ->set_speed; that also allows using a smaller PM (i.e., 0) for slaves that do support a higher speed. Based on work by Klaus H. Sørensen. Cc: Klaus H. Sorensen Signed-off-by:

[PATCH 3/4] mpc8xxx_spi: always use 8-bit characters, don't read or write garbage

2020-01-06 Thread Rasmus Villemoes
There are a few problems with the current driver. First, it unconditionally reads from dout/writes to din whether or not those pointers are NULL. So for example a simple "sf probe" ends up writing four bytes at address 0: => md.l 0x0 8 : 45454545 45454545 05050505 05050505

[PATCH 1/4] gazerbeam: add clocks property to SPI node

2020-01-06 Thread Rasmus Villemoes
Prepare for supporting setting different speeds in mpc8xxx_spi.c. Signed-off-by: Rasmus Villemoes --- arch/powerpc/dts/gdsys/mpc8308.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/dts/gdsys/mpc8308.dtsi b/arch/powerpc/dts/gdsys/mpc8308.dtsi index

[PATCH 0/4] spi: mpc8xxx_spi: bug fixes and real ->set_speed

2020-01-06 Thread Rasmus Villemoes
Patch 3/4 is the important one. Without it, reads and writes of certain lengths from spi-nor fails, and stuff at physical address 0x0 gets overwritten even if no input buffer is supplied (e.g. when sending a command). Tested on an mpc8309-derived board. It would be nice if someone with access to

[PATCH 2/4] mpc8xxx_spi: put max_cs to use

2020-01-06 Thread Rasmus Villemoes
Currently, max_cs is write-only; it's just set in mpc8xxx_spi_ofdata_to_platdata and not otherwise used. My mpc8309 was always resetting during an "sf probe 0". It turns out dm_gpio_set_dir_flags() was being called with garbage, since nothing had initialized priv->gpios[0] - our device tree used

Re: [PATCH 1/3] imx8mn: evk: add README

2020-01-06 Thread Stefano Babic
On 06/01/20 09:04, Peng Fan wrote: > Add a README for users to build a workable image. > > Signed-off-by: Peng Fan > --- > board/freescale/imx8mn_evk/README | 37 + > 1 file changed, 37 insertions(+) > create mode 100644 board/freescale/imx8mn_evk/README >

Re: [PATCH v2 03/19] i2c: designware_i2c: Include clk.h in the header file

2020-01-06 Thread pt
Reviewed-by: Jun Chen Simon Glass 於 2020年1月4日 週六 上午6:27寫道: > We use struct clk here so really should include this header file to avoid > build errors. Also switch the order of clk.h in the C file to match the > required code style. > > Signed-off-by: Simon Glass > Reviewed-by: Ley Foon Tan >

Re: [PATCH v2 04/19] i2c: designware_i2c: Rename 'max' speed to 'high' speed

2020-01-06 Thread pt
Reviewed-by: Jun Chen Simon Glass 於 2020年1月4日 週六 上午6:27寫道: > Some SoCs support a higher speed than what is currently called 'max' in > this driver. Rename it to 'high' speed, which is the official name of the > 3.4MHz speed. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > >

[PATCH 0/1 v1] cmd: gpio: Correct do_gpio() return value

2020-01-06 Thread Luka Kovacic
Hi, The U-Boot gpio command always returns the value of the pin, which is confusing if you are debugging, since calling the command gpio set pin always results in failure. The patch modifies the GPIO command to return CMD_RET_SUCCESS on success and CMD_RET_FAILURE on command failure and

Re: [PATCH v2 19/19] i2c: Update drivers to use enum for speed

2020-01-06 Thread pt
Hi Simon, I found this commit has style problems reported by checkpatch.pl, is it better to fix it? Simon Glass 於 2020年1月4日 週六 上午6:27寫道: > Convert the obvious uses of i2c bus speeds to use the enum. > > Use livetree access for code changes. > > Signed-off-by: Simon Glass > --- > > Changes

[PATCH 1/1 v1] cmd: gpio: Correct do_gpio() return value

2020-01-06 Thread Luka Kovacic
Use the correct return value in function do_gpio() and update commands documentation with the return values from command_ret_t enum. CMD_RET_SUCCESS is returned on command success and CMD_RET_FAILURE is returned on command failure. The command was returning the pin value, which caused confusion

Re: [PATCH v2 05/19] i2c: designware_i2c: Use an enum for selected speed mode

2020-01-06 Thread pt
Reviewed-by: Jun Chen Simon Glass 於 2020年1月4日 週六 上午6:27寫道: > Group these #defines into an enum to make it easier to understand the > relationship between them. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > drivers/i2c/designware_i2c.c | 2 +- >

[PATCH] arm64: zynqmp: Correct the type of eeprom for zcu216 boards

2020-01-06 Thread Michal Simek
From: Raviteja Narayanam Corrected the type of eeprom in device tree for zcu216 boards according to schematic. Signed-off-by: Raviteja Narayanam Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu216-revA.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] arm64: zynqmp: Fix ina226 shunt resistor value

2020-01-06 Thread Michal Simek
Fix shunt resistor value for ina226 vccint_ams and vccint_io_bram_ps. 2mOhm shunt was only in early board revision schematics but never got to real revA board. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu216-revA.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

fitImage align 8-byte for ARM64

2020-01-06 Thread Matthias Schoepfer
Hi! I have had trouble booting a fitImage packed kernel for dragonboard410c, which is an ARM64 platform. After days and days of debugging, I found that the fdt is 4-byte aligned. But within the linux kernel, Documentation/arm64/booting.txt says, fdt must be 8 byte aligned. If I change the

Re: [PATCH] scripts/get_default_envs.sh: preserve order of multiple entries for same variable

2020-01-06 Thread Lukasz Majewski
Hi Rasmus, > It's possible that the default_environment[] array contains multiple > entries for the same variable, e.g. a setting from env_default.h based > on some CONFIG_* variable, and another from > CONFIG_EXTRA_ENV_SETTINGS. In such a case, the last setting takes > effect. > > Hence, in

Re: [PATCH V2 2/2] pico-imx7d: Convert to DM_ETH

2020-01-06 Thread Stefano Babic
On 06/01/20 00:22, Joris Offouga wrote: > Signed-off-by: Joris Offouga > --- > Change v1 -> v2 > Disable usb ethernet support with patch : pico-imx7d: Disable USB_ETHER > support for bl33 > > board/technexion/pico-imx7d/pico-imx7d.c | 46 >

Re: [PATCH V2 1/2] pico-imx7d: Disable USB_ETHER support for bl33 defconfig

2020-01-06 Thread Stefano Babic
On 06/01/20 00:22, Joris Offouga wrote: > For DM_ETH support , it's require to disable this config. > When this config is enable, This generate a error with spl in linker script > > Signed-off-by: Joris Offouga > --- > configs/pico-imx7d_bl33_defconfig | 3 --- > 1 file changed, 3 deletions(-)

[PATCH v4 3/4] pci: layerscape: device tree fixup based on SoC and

2020-01-06 Thread Wasim Khan
lx2160a rev1 requires layerscape_gen4 device tree fixup and lx2160a rev2 requires layerscape device tree fixup. Add device tree fixup for lx2160a based on SoC and Version. Signed-off-by: Wasim Khan --- Changes in v4: remove num-lanes fixup Changes in v3: Updated patch subject and description

[PATCH v4 4/4] configs: lx2160a: enable CONFIG_OF_BOARD_FIXUP for SECURE_BOOT defconfig

2020-01-06 Thread Wasim Khan
lx2160a rev1 and rev2 SoC has different pcie controller. The pcie controller device tree node fields "compatible" and registers names needs to be updated accordingly. Enable CONFIG_OF_BOARD_FIXUP to apply board_fix_fdt which updates the "compatible" and registers names. Signed-off-by: Wasim Khan

[PATCH v4 1/4] pci: layerscape: Common device tree fixup for NXP SoCs

2020-01-06 Thread Wasim Khan
Add Common device tree fixup for NXP SoCs. Based on SoC and revision call pcie_layerscape or pcie_layerscape_gen4 fixup. Signed-off-by: Wasim Khan --- Changes in v4: 1-fix compilation warning with pcie_layerscape_fixup_common.c file 2-Updated NXP copyright Changes in v3: fix compilation

[PATCH v4 2/4] pci: layerscape: Move streamId allocation to common device tree fixup

2020-01-06 Thread Wasim Khan
Move streamId allocation to layerscape common device tree fixup. Calculate streamId based on SoC variant. Signed-off-by: Wasim Khan --- Changes in v4:None Changes in v3:None Changes in v2:None drivers/pci/pcie_layerscape_fixup.c| 15 +++

[PATCH v4 0/4] Enablement of PCIe controller for lx2160a rev2

2020-01-06 Thread Wasim Khan
lx2160a rev1 PCIe controller uses pcie_layerscape_gen4 driver and lx2160a rev2 PCIe controller uses pcie_layerscape driver. This patch set enables support for lx2160a rev2 and uses pcie_layerscape or pcie_layerscape_gen4 driver based on SoC. Also organize the device tree fixup in common,

Re: [PATCH 1/3] imx8mn: evk: add README

2020-01-06 Thread Fabio Estevam
On Mon, Jan 6, 2020 at 7:40 AM Fabio Estevam wrote: > but here you use the firmware-imx-8.0 version. > > According to the "Rev. L4.19.35_1.1.0, 11/2019" i.MX Linux® Release > Notes the firmware-imx version in this release is > "firmware-imx-8.5.bin" instead. Also, in the Yocto recipe the

[PATCH] scripts/get_default_envs.sh: preserve order of multiple entries for same variable

2020-01-06 Thread Rasmus Villemoes
It's possible that the default_environment[] array contains multiple entries for the same variable, e.g. a setting from env_default.h based on some CONFIG_* variable, and another from CONFIG_EXTRA_ENV_SETTINGS. In such a case, the last setting takes effect. Hence, in order to be able to use the

RE: [Patch v3 1/7] spi: Transform the FSL QuadSPI driver to use the SPI MEM API

2020-01-06 Thread Kuldeep Singh
Hi Jagan and Vignesh, Could you please review this driver. Actually, I don't want to miss this merge window. Moreover, Frieder's suggestions are already incorporated and this version of driver is almost identical to linux version apart from the changes already mentioned in commit message. You

Re: [PATCH V2 4/4] pytest: aes: add test for aes192 and aes256

2020-01-06 Thread Philippe REYNES
Hi Simon, > Hi Philippe, > > On Thu, 31 Oct 2019 at 07:33, Philippe REYNES > wrote: >> >> Hi Simonn >> >> > Hi Philippe, >> > >> > On Tue, 29 Oct 2019 at 11:29, Philippe Reynes >> > wrote: >> >> >> >> This commit update the aes tests to check the >> >> aes192 and aes256. >> >> >> >>

Re: [PATCH 1/3] imx8mn: evk: add README

2020-01-06 Thread Fabio Estevam
Hi Peng, On Mon, Jan 6, 2020 at 5:04 AM Peng Fan wrote: > +Quick Start > +=== > +- Build the ARM Trusted firmware binary > +- Get ddr firmware I prefer you write "Get firmware-imx package" instead because this is the real package name and it contains not only DDR related firmware. As

Re: [PATCH] spl_fit.c: enable loading compressed u-boot from fit image

2020-01-06 Thread Rasmus Villemoes
On 30/12/2019 02.21, Simon Glass wrote: > Hi Rasmus, > > On Wed, 11 Dec 2019 at 04:03, Rasmus Villemoes > wrote: >> >> From: "Klaus H. Sorensen" >> >> Allow reading compressed content from fit image, even if >> CONFIG_SPL_OS_BOOT is not set. >> >> This allow booting compressed 2nd stage u-boot

RE: [PATCH 3/3] riscv: sifive: fu540: add SPL configuration

2020-01-06 Thread Pragnesh Patel
>-Original Message- >From: Jagan Teki >Sent: 02 January 2020 10:29 >To: Pragnesh Patel >Cc: U-Boot-Denx ; Palmer Dabbelt ( Sifive) >; Atish Patra ; Alexander Graf >; Boris Brezillon ; Rick Chen >; Anup Patel >Subject: Re: [PATCH 3/3] riscv: sifive: fu540: add SPL configuration > >+

Re: [PATCH v3 0/4] arm64: sun50i: Add support for Orange Pi 3

2020-01-06 Thread Maxime Ripard
On Tue, Dec 10, 2019 at 04:56:04PM +0100, Andre Heider wrote: > On 03/12/2019 09:45, Andre Heider wrote: > > Changes since v2: > > * drop "sunxi: board: Use eth_env_set_enetaddr_by_index()" as it breaks > >compilation without CONFIG_NET > > * add "sunxi: board: extract creating a unique sid

Re: [PATCH] ram: rk3399: don't assume phy_io_config() uses real regs

2020-01-06 Thread Kever Yang
On 2019/12/21 上午4:28, Thomas Hebb wrote: In the RK3399 DRAM driver, the function set_ds_odt() supports operating in two different modes, selected by the ctl_phy_reg argument: when true, the function reads and writes directly from the DRAM registers, accessed through "chan->pctl->denali_*";

RE: [PATCH 2/3] riscv: Add FU540 specific includes

2020-01-06 Thread Pragnesh Patel
>-Original Message- >From: Bin Meng >Sent: 03 January 2020 20:22 >To: Pragnesh Patel >Cc: U-Boot Mailing List >Subject: Re: [PATCH 2/3] riscv: Add FU540 specific includes > >Hi Pragnesh, > >On Tue, Dec 31, 2019 at 10:00 PM Pragnesh Patel > wrote: >> >> Added headers needed by upcoming

[PATCH] ARM: zynq: Remove unused QSPI and USB addresses

2020-01-06 Thread Michal Simek
All drivers should be converted to DM already that's why these hardcoded base addresses are not needed anymore. Signed-off-by: Michal Simek --- arch/arm/mach-zynq/include/mach/hardware.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-zynq/include/mach/hardware.h

[PATCH 2/2] zynq: mtd: nand: Remove hardcoded base addresses

2020-01-06 Thread Michal Simek
From: Ashok Reddy Soma Remove hardcoded base addresses of smc controller and nand controller. Get those addresses from dt and replace wherever they are used. Remove smc and nand base address from header file too. Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek ---

[PATCH 1/2] zynq: mtd: nand: Move zynq nand driver to driver model

2020-01-06 Thread Michal Simek
From: Ashok Reddy Soma Move the zynq nand driver to driver model. Select DM_MTD if zynq nand controller (NAND_ZYNQ) is selected. Signed-off-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- drivers/mtd/nand/raw/Kconfig | 1 + drivers/mtd/nand/raw/zynq_nand.c | 44

[PATCH 0/2] mtd: nand: Move zynq nand driver to driver model

2020-01-06 Thread Michal Simek
Hi, This series is moving Xilinx Zynq NAND driver to driver model. It allows us to remove hardcoded base address of smc and nand controller and get base addresses from device tree. Thanks, Michal Ashok Reddy Soma (2): zynq: mtd: nand: Move zynq nand driver to driver model zynq: mtd: nand:

Re: [PATCH v3 0/4] arm64: sun50i: Add support for Orange Pi 3

2020-01-06 Thread Andre Heider
On 10/12/2019 16:56, Andre Heider wrote: On 03/12/2019 09:45, Andre Heider wrote: Changes since v2: * drop "sunxi: board: Use eth_env_set_enetaddr_by_index()" as it breaks    compilation without CONFIG_NET * add "sunxi: board: extract creating a unique sid into a helper function"    and use

[PATCH v3] arm64: zynqmp: Add support for u-boot.itb generation with ATF

2020-01-06 Thread Michal Simek
Follow i.MX, Sunxi, RISC-V and Rockchip to generate u-boot.itb which includes U-Boot proper, ATF and DTBs in FIT format. ZynqMP supports FIT for quite a long time but with using out of tree solution. The patch is filling this gap. Tested on zcu102, zcu104 and zcu100/Ultra96. zcu100/Ultra96 v2.2

Re: [PATCH v3 5/5] rockchip: rk3399: Add bootcount support

2020-01-06 Thread Kever Yang
On 2019/12/30 上午3:07, Jagan Teki wrote: Add bootcount support for Rockchip rk3399. The bootcount value is preserved in PMU_SYS_REG0 register, this would help to support redundent boot. Once the redundant boot triggers, the altboot command will look for extlinux-rollback.conf on particular

Re: [PATCH v3 4/5] rockchip: Add common reset cause

2020-01-06 Thread Kever Yang
On 2019/12/30 上午3:07, Jagan Teki wrote: Add cpu reset cause in common cpu-info file. This would help to print the reset cause for various resets. Right now it support rk3288, rk3399. rest of rockchip platforms doesn't have reset cause support ye but this code is more feasible to extend the

Re: [PATCH v3 3/5] arm: rockchip: Add common cru.h

2020-01-06 Thread Kever Yang
On 2019/12/30 上午3:07, Jagan Teki wrote: Few of the rockchip family SoC atleast rk3288, rk3399 are sharing some cru register bits so adding common code between these SoC families would require to include both cru include files that indeed resulting function declarations error. So, create a

Re: [PATCH v3 2/5] rockchip: rk3399: Enable DISPLAY_CPUINFO

2020-01-06 Thread Kever Yang
On 2019/12/30 上午3:07, Jagan Teki wrote: RK3288, RK3399 are now support cpu-info, so enable DISPLAY_CPUINFO by default. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang Thanks, - Kever --- configs/evb-rk3288_defconfig | 1 - configs/evb-rk3399_defconfig

[PATCH v2] arm64: versal: Enable board_late_init calling

2020-01-06 Thread Michal Simek
Qemu v4.2.0 maps bootmode registers to address space which was the reason why board_late_init() was disabled and accesses were failing. With new Qemu board_late_init() can be called without any issue. Signed-off-by: Michal Simek --- Changes in v2: - Remove QEMU version just for versal_virt

[PATCH v2] test/py: hush_if_test: Add tests to cover octal/hex values

2020-01-06 Thread Michal Simek
Extend test suite to cover also automatic octal/hex converstions which haven't been implemented in past. Signed-off-by: Michal Simek Acked-by: Stephen Warren Reviewed-by: Simon Goldschmidt --- Changes in v2: - Based on discussion with Simon add TODO Depends on

RE: [PATCH 1/3] riscv: Add place-holder for FU540 clk and gpio

2020-01-06 Thread Pragnesh Patel
>-Original Message- >From: Bin Meng >Sent: 03 January 2020 20:18 >To: Pragnesh Patel >Cc: U-Boot Mailing List ; Rick Chen >; Paul Walmsley ( Sifive) ; >Palmer Dabbelt ( Sifive) ; Anup Patel >; Atish Patra ; Sagar Kadam > >Subject: Re: [PATCH 1/3] riscv: Add place-holder for FU540 clk and

[PATCH v2 1/2] arm64: zynqmp: Rename fw_dtb variable to fdt_blob

2020-01-06 Thread Michal Simek
The reason for this change is just get in sync with board_fdt_blob_setup() available at lib/fdtdec.c. Signed-off-by: Michal Simek --- Changes in v2: None board/xilinx/common/board.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/board/xilinx/common/board.c

[PATCH v2 2/2] arm64: zynqmp: Add support for OF_SEPARATE with board DTB

2020-01-06 Thread Michal Simek
OF_BOARD and OF_SEPARATE can use board specific board_fdt_blob_setup(). OF_BOARD option is mostly used for picking up DTB from certain location. OF_SEPARATE option is used when DTB is appended after u-boot binary. This board specific function is aligned with current version in lib/fdtdec.c with

[PATCH v2 0/2] Extend board_fdt_blob_setup() to support OF_SEPARATE

2020-01-06 Thread Michal Simek
Hi, it is simply series which align board_fdt_blob_setup() with fdtdec with highest priority on default location where external DTB can be found. Thanks, Michal Changes in v2: - Fix print messages not to generate compilation warnings on arm32 - Silent all prints Michal Simek (2): arm64:

Re: [PATCH] travis: Setup latest qemu version for Versal

2020-01-06 Thread Michal Simek
Hi, On 30. 12. 19 16:14, Tom Rini wrote: > On Tue, Dec 17, 2019 at 03:41:40PM +0100, Michal Simek wrote: >> Qemu v4.2.0 maps bootmode registers to address space which was the reason >> why board_late_init() was disabled and accesses were failing. >> >> With new Qemu board_late_init() can be

  1   2   >