Re: [PATCH] lib: rsa: use actual OpenSSL 1.1.0 EVP MD API

2022-03-01 Thread Heinrich Schuchardt
On 3/2/22 02:10, Simon Glass wrote: Hi, On Tue, 1 Mar 2022 at 08:12, Yann Droneaud wrote: Since OpenSSL 1.1.0, EVP_MD_CTX_create() is EVP_MD_CTX_new() EVP_MD_CTX_destroy() is EVP_MD_CTX_free() EVP_MD_CTX_init() is EVP_MD_CTX_reset() As there's no n

[PATCH v<9>] arm: add initial support for the Phytium Pomelo Board

2022-03-01 Thread nicholas_zheng
From: weichangzheng This adds platform code and the device tree for the Phytium Pomelo Board. The initial support comprises the UART and the PCIE. Signed-off-by: weichangzheng Changes since v1: updated to DT Changes since v2: Modify some explicit types and macro Changes since v3

Re: [PATCH v2 10/10] cmd: rng: Add support for selecting RNG device

2022-03-01 Thread Sughosh Ganu
hi Simon, On Tue, 1 Mar 2022 at 20:29, Simon Glass wrote: > > Hi Sughosh, > > On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > > > The 'rng' u-boot command is used for printing a select number of > > random bytes on the console. Currently, the RNG device from which the > > random bytes are

Re: [PATCH v2 08/10] tpm: Add the RNG child device

2022-03-01 Thread Sughosh Ganu
hi Simon, On Tue, 1 Mar 2022 at 20:29, Simon Glass wrote: > > Hi Sughosh, > > On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > > > The TPM device comes with the random number generator(RNG) > > functionality which is built into the TPM device. Add logic to add the > > RNG child device in th

Re: [PATCH v2 06/10] configs: chromebook_coral: Build TPMV1 library routines

2022-03-01 Thread Sughosh Ganu
hi Simon, On Tue, 1 Mar 2022 at 20:29, Simon Glass wrote: > > Hi Sughosh, > > On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > > > The TPM code currently does a runtime detection of the TPM version and > > calls appropriate functions. Chromebook Coral is one of the platforms > > where the T

Re: [PATCH v2 04/10] tpm: Move the TPM version detection functions to the uclass driver

2022-03-01 Thread Sughosh Ganu
hi Simon, On Tue, 1 Mar 2022 at 20:29, Simon Glass wrote: > > On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > > > Make the TPM version detection functions as external symbols and move > > them to the TPM uclass driver. These are useful functions to check the > > TPM device version and shou

Re: [PATCH v2 07/10] tpm: rng: Move the TPM RNG functionality to driver model

2022-03-01 Thread Sughosh Ganu
hi Simon, On Tue, 1 Mar 2022 at 20:28, Simon Glass wrote: > > Hi Sughosh, > > On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > > > Currently, the TPM random number generator(RNG) functions are defined > > as part of the library functions under the corresponding tpm files for > > tpmv1 and t

Re: [PULL] u-boot-usb/master

2022-03-01 Thread Tom Rini
On Tue, Mar 01, 2022 at 01:16:51PM +0100, Marek Vasut wrote: > The following changes since commit f9a719e2954473f9be1f8c14a28288f943a00dd2: > > Prepare v2022.04-rc3 (2022-02-28 18:02:33 -0500) > > are available in the Git repository at: > > git://source.denx.de/u-boot-usb.git master > > fo

Re: [PATCH v4 2/2] efi_loader: Reset system after CapsuleUpdate on disk

2022-03-01 Thread Masami Hiramatsu
Hi Simon, 2022年3月1日(火) 23:58 Simon Glass : > > Hi Masami, > > On Mon, 28 Feb 2022 at 00:53, Masami Hiramatsu > wrote: > > > > Hi Simon, > > > > BTW, I saw the below code in the sysreset-uclass.c. It seems if I pass > > 0 to argc, it seems to do SYSRESET_COLD, isn't it? > > Yes, but we should use

Re: [PATCH 1/2] net: fec: prevent undesired de-assertion of phy-reset on request

2022-03-01 Thread Adam Ford
On Tue, Mar 1, 2022 at 2:38 PM Joe Hershberger wrote: > > On Tue, Mar 1, 2022 at 2:15 PM Tim Harvey wrote: > > > > When gpio_request_by_name allocates a gpio output it by default will > > de-assert the gpio which for phy-reset will take the PHY out of reset. > > As this occurs before fec_gpio_res

Re: [PATCH] lib: rsa: use actual OpenSSL 1.1.0 EVP MD API

2022-03-01 Thread Simon Glass
Hi, On Tue, 1 Mar 2022 at 08:12, Yann Droneaud wrote: > > Since OpenSSL 1.1.0, EVP_MD_CTX_create() is EVP_MD_CTX_new() > EVP_MD_CTX_destroy() is EVP_MD_CTX_free() > EVP_MD_CTX_init() is EVP_MD_CTX_reset() > > As there's no need to reset a newly created EV

Re: [PATCH v2 1/1] doc: describe generation of SMBIOS table

2022-03-01 Thread Simon Glass
Hi Heinrich, On Fri, 25 Feb 2022 at 23:45, Heinrich Schuchardt wrote: > > SMBIOS is not x86 specific. So we should have an architecture independent x86-specific architecture-independent > page describing it. So sad, but this is true. I'm not sure who to blame! > > Signed-off-by: Heinrich Schu

Re: [PATCH 2/2] net: eth-phy: prevent undesired de-assertion of phy-reset on request

2022-03-01 Thread Joe Hershberger
On Tue, Mar 1, 2022 at 2:15 PM Tim Harvey wrote: > > When gpio_request_by_name allocates a gpio output it by default will > de-assert the gpio which for phy-reset will take the PHY out of reset. > As this occurs before eth_phy_reset is called to assert the reset > line it can cause undesired affec

Re: [PATCH 1/2] net: fec: prevent undesired de-assertion of phy-reset on request

2022-03-01 Thread Joe Hershberger
On Tue, Mar 1, 2022 at 2:15 PM Tim Harvey wrote: > > When gpio_request_by_name allocates a gpio output it by default will > de-assert the gpio which for phy-reset will take the PHY out of reset. > As this occurs before fec_gpio_reset is called to assert the reset > line it can cause undesired affe

[PATCH v2] drivers: adc: fix return value if timeout occurs

2022-03-01 Thread Francois Berder
Because unsigned integers cannot be negative, timeout variable is never less than zero. Hence, checks in Amlogic Meson ADC driver to detect timeouts always evaluated to false. Fix that. Signed-off-by: Francois Berder --- Changes for v2: - Replace timeout handling logic by regmap_read_poll_time

[PATCH 1/2] net: fec: prevent undesired de-assertion of phy-reset on request

2022-03-01 Thread Tim Harvey
When gpio_request_by_name allocates a gpio output it by default will de-assert the gpio which for phy-reset will take the PHY out of reset. As this occurs before fec_gpio_reset is called to assert the reset line it can cause undesired affects if reset timings are not properly met. Configure the gp

[PATCH 0/2] prevent undesired de-assertion of phy-reset

2022-03-01 Thread Tim Harvey
Some PHY's have strict requirements on reset timings which can be violated if the PHY is taken out of reset before a proper reset pulse is performed. When gpio_request_by_name is used for reset gpios without GPIOD_IS_OUT_ACTIVE the GPIO will be de-asserted when requested taking the PHY out of rese

[PATCH 2/2] net: eth-phy: prevent undesired de-assertion of phy-reset on request

2022-03-01 Thread Tim Harvey
When gpio_request_by_name allocates a gpio output it by default will de-assert the gpio which for phy-reset will take the PHY out of reset. As this occurs before eth_phy_reset is called to assert the reset line it can cause undesired affects if reset timings are not properly met. Configure the gpi

Re: gpio_request_by_name for GPIOD_IS_OUT drives GPIO before specifically instructed to

2022-03-01 Thread Tim Harvey
On Tue, Mar 1, 2022 at 11:15 AM Sean Anderson wrote: > > > > On 3/1/22 2:12 PM, Tim Harvey wrote: > > On Tue, Mar 1, 2022 at 10:59 AM Sean Anderson > > wrote: > >> > >> Hi Tim, > >> > >> On 3/1/22 1:45 PM, Tim Harvey wrote: > >> > Greetings, > >> > > >> > I'm seeing an issue in U-Boot caused by

Re: gpio_request_by_name for GPIOD_IS_OUT drives GPIO before specifically instructed to

2022-03-01 Thread Sean Anderson
On 3/1/22 2:12 PM, Tim Harvey wrote: > On Tue, Mar 1, 2022 at 10:59 AM Sean Anderson wrote: >> >> Hi Tim, >> >> On 3/1/22 1:45 PM, Tim Harvey wrote: >> > Greetings, >> > >> > I'm seeing an issue in U-Boot caused by gpio_request_by_name driving a >> > GPIO output before it has been given an outp

Re: gpio_request_by_name for GPIOD_IS_OUT drives GPIO before specifically instructed to

2022-03-01 Thread Tim Harvey
On Tue, Mar 1, 2022 at 10:59 AM Sean Anderson wrote: > > Hi Tim, > > On 3/1/22 1:45 PM, Tim Harvey wrote: > > Greetings, > > > > I'm seeing an issue in U-Boot caused by gpio_request_by_name driving a > > GPIO output before it has been given an output level with > > {dm_}gpio_set_value. > > > > In

Re: gpio_request_by_name for GPIOD_IS_OUT drives GPIO before specifically instructed to

2022-03-01 Thread Sean Anderson
Hi Tim, On 3/1/22 1:45 PM, Tim Harvey wrote: > Greetings, > > I'm seeing an issue in U-Boot caused by gpio_request_by_name driving a > GPIO output before it has been given an output level with > {dm_}gpio_set_value. > > In my particular instance I have a network PHY that can encounter > errata i

gpio_request_by_name for GPIOD_IS_OUT drives GPIO before specifically instructed to

2022-03-01 Thread Tim Harvey
Greetings, I'm seeing an issue in U-Boot caused by gpio_request_by_name driving a GPIO output before it has been given an output level with {dm_}gpio_set_value. In my particular instance I have a network PHY that can encounter errata if it gets reset more than once (fun time with this one!) decla

Re: [PATCH] phy: nop-phy: Fix phy reset if no reset-gpio defined

2022-03-01 Thread Tim Harvey
On Tue, Mar 1, 2022 at 2:57 AM Adam Ford wrote: > > On Mon, Feb 28, 2022 at 4:53 PM Tim Harvey wrote: > > > > Ensure there is a valid reset-gpio defined before using it. > > > > Fixes: f9852acdce02 ("phy: nop-phy: Fix enabling reset") > > Cc: Adam Ford > > Signed-off-by: Tim Harvey > > Reviewed

Re: [PATCH v3 0/6] imx8mn-smm-s2/pro: Add iMX8MN BSH SMM S2 boards

2022-03-01 Thread Stefano Babic
Hi Michael, On 28.02.22 20:38, Michael Nazzareno Trimarchi wrote: Hi Stefano Any plan to get those boards in? Sure, but according how Tom has already set up. Merge window closed at 31th, January, and later patches (as these) if are not fixes, will go into -next. Best regards, Stefano O

[PATCH] lib: rsa: use actual OpenSSL 1.1.0 EVP MD API

2022-03-01 Thread Yann Droneaud
Since OpenSSL 1.1.0, EVP_MD_CTX_create() is EVP_MD_CTX_new() EVP_MD_CTX_destroy() is EVP_MD_CTX_free() EVP_MD_CTX_init() is EVP_MD_CTX_reset() As there's no need to reset a newly created EVP_MD_CTX, moreover EVP_DigestSignInit() does the reset, thus call t

Re: [PATCH] gpio: slg7xl45106: Add support for slg7xl45106 i2c gpo expander

2022-03-01 Thread Michal Simek
On 3/1/22 15:58, Simon Glass wrote: Hi Michal, On Wed, 23 Feb 2022 at 08:21, Michal Simek wrote: From: T Karthik Reddy slg7xl45106 is i2c based 8-bit gpo expander, gpo pins are set and get by writing and reading corresponding gpo bit value into its data register. Signed-off-by: T Karthi

Re: [PATCH] led: led_pwm: Add a driver for LEDs connected to PWM

2022-03-01 Thread Simon Glass
Hi Ivan, On Sun, 27 Feb 2022 at 11:16, Ivan Vozvakhov wrote: > > From: Ivan Vozvakhov > > Add a driver which allows to use of LEDs connected > to PWM (Linux compatible). > MAINTAINERS: add i.vozvakhov as a maintainer of leds-pwm > (required during new functionality adding). > > Signed-off-by: Iv

Re: [PATCH v3] binman: Include also subnodes in generator nodes

2022-03-01 Thread Simon Glass
On Mon, 28 Feb 2022 at 09:06, Jan Kiszka wrote: > > From: Jan Kiszka > > This allows to prefill fdt and config nodes with hash and signature > subnodes. It's just important to place the child nodes last so that > hashes do not come before the data - would be disliked by mkimage. > > Signed-off-by

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

2022-03-01 Thread Simon Glass
Hi Patrice, On Tue, 1 Mar 2022 at 03:44, Patrice CHOTARD wrote: > > Hi Simon > > On 2/26/22 19:36, Simon Glass wrote: > > Hi Patrice, > > > > On Mon, 31 Jan 2022 at 09:14, Patrice CHOTARD > > wrote: > >> > >> Hi Simon > >> > >> On 1/21/22 16:20, Simon Glass wrote: > >>> Hi Patrice, > >>> > >>> O

Re: [PATCH v2] core: devres: optionally build devres into the SPL

2022-03-01 Thread Simon Glass
On Mon, 28 Feb 2022 at 13:33, Angus Ainslie wrote: > > Add a CONFIG_SPL_DEVRES option > > Signed-off-by: Angus Ainslie > --- > > Changes since v1: > > Instead of gaurding the source add an SPL_DEVRES option > > drivers/core/Kconfig | 13 + > drivers/core/Makefile | 2 +- > 2 files

Re: [PATCH v2 02/10] tpm: rng: Change tpm_get_random to return an int

2022-03-01 Thread Simon Glass
On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > The tpm random number generation functionality will be moved to the > driver model. With that, the tpm_get_random function will call the > common driver model api instead of separate functions for tpmv1 and > tpmv2. Return an int instead of a u

Re: [PATCH 1/7] clk: Make rfree return void

2022-03-01 Thread Simon Glass
Hi Sean, On Sun, 27 Feb 2022 at 12:38, Sean Anderson wrote: > > On 2/26/22 1:36 PM, Simon Glass wrote: > > Hi Sean, > > > > On Tue, 1 Feb 2022 at 21:24, Sean Anderson wrote: > >> > >> On 2/1/22 10:59 PM, Simon Glass wrote: > >>> Hi Sean, > >>> > >>> On Tue, 1 Feb 2022 at 07:49, Sean Anderson wr

Re: [PATCH v2 10/10] cmd: rng: Add support for selecting RNG device

2022-03-01 Thread Simon Glass
Hi Sughosh, On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > The 'rng' u-boot command is used for printing a select number of > random bytes on the console. Currently, the RNG device from which the > random bytes are read is fixed. However, a platform can have multiple > RNG devices, one exa

Re: [PATCH v2 08/10] tpm: Add the RNG child device

2022-03-01 Thread Simon Glass
Hi Sughosh, On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > The TPM device comes with the random number generator(RNG) > functionality which is built into the TPM device. Add logic to add the > RNG child device in the TPM uclass post probe callback. > > The RNG device can then be used to pa

Re: [PATCH v2 04/10] tpm: Move the TPM version detection functions to the uclass driver

2022-03-01 Thread Simon Glass
On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > Make the TPM version detection functions as external symbols and move > them to the TPM uclass driver. These are useful functions to check the > TPM device version and should not be static functions. > > Signed-off-by: Sughosh Ganu > Reviewed-

Re: [PATCH v2 06/10] configs: chromebook_coral: Build TPMV1 library routines

2022-03-01 Thread Simon Glass
Hi Sughosh, On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > The TPM code currently does a runtime detection of the TPM version and > calls appropriate functions. Chromebook Coral is one of the platforms > where the TPMV1 code is disabled at build time. With this, calling TPM > api's from th

Re: [PATCH v2 03/10] tpm: Fix the return type of tpm_startup

2022-03-01 Thread Simon Glass
On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > The tpm_startup function returns negative values for error > conditions. Fix the return type of the function to a signed int > instead of a u32. > > Signed-off-by: Sughosh Ganu > --- > > Changes since V1: None > > include/tpm_api.h | 2 +- >

Re: [PATCH v2 01/10] tpm: Move tpm-utils header under the include directory

2022-03-01 Thread Simon Glass
Hi Sughosh, On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > The random number generation functions of TPM will be moved under a > dedicated driver. With this, the function declarations along with > some other relevant macro definitions need to be moved under a > common header file directory

Re: [PATCH v2 07/10] tpm: rng: Move the TPM RNG functionality to driver model

2022-03-01 Thread Simon Glass
Hi Sughosh, On Mon, 28 Feb 2022 at 05:07, Sughosh Ganu wrote: > > Currently, the TPM random number generator(RNG) functions are defined > as part of the library functions under the corresponding tpm files for > tpmv1 and tpmv2. Move the RNG functionality under TPM RNG drivers > complying with the

Re: [PATCH] gpio: slg7xl45106: Add support for slg7xl45106 i2c gpo expander

2022-03-01 Thread Simon Glass
Hi Michal, On Wed, 23 Feb 2022 at 08:21, Michal Simek wrote: > > From: T Karthik Reddy > > slg7xl45106 is i2c based 8-bit gpo expander, gpo pins are set and get by > writing and reading corresponding gpo bit value into its data register. > > Signed-off-by: T Karthik Reddy > Signed-off-by: Micha

Re: [PATCH 06/14] misc: Add support for nvmem cells

2022-03-01 Thread Simon Glass
Hi Sean, On Mon, 28 Feb 2022 at 09:43, Sean Anderson wrote: > > > > On 2/26/22 1:36 PM, Simon Glass wrote: > > Hi Sean, > > > > On Mon, 7 Feb 2022 at 16:42, Sean Anderson wrote: > >> > >> This adds support for "nvmem cells" as seen in Linux. The nvmem device > >> class in Linux is used for vario

Re: [PATCH v4 2/2] efi_loader: Reset system after CapsuleUpdate on disk

2022-03-01 Thread Simon Glass
Hi Masami, On Mon, 28 Feb 2022 at 00:53, Masami Hiramatsu wrote: > > Hi Simon, > > BTW, I saw the below code in the sysreset-uclass.c. It seems if I pass > 0 to argc, it seems to do SYSRESET_COLD, isn't it? Yes, but we should use the driver interface to do things, not the command-line interface

Re: [PATCH v2 0/3] Add SPI boot to SPL on SUNIV/F1C100s

2022-03-01 Thread Andre Przywara
On Mon, 28 Feb 2022 23:42:13 -0500 Jesse Taube wrote: Hi, > Hey just checking if you know about this set. Yeah, I saw that, and am planning on taking it ASAP, so still this release. However I wanted to have this tested, which is now easier since I got my LicheePi Nano on Friday. So SPI boot see

Re: [PATCH] drivers: adc: fix return value if timeout occurs

2022-03-01 Thread Neil Armstrong
Hi, On 01/03/2022 13:48, Michael Nazzareno Trimarchi wrote: Hi On Tue, Mar 1, 2022 at 1:38 PM Francois Berder wrote: Because unsigned integers cannot be negative, timeout variable is never less than zero. Hence, checks in Amlogic Meson ADC driver to detect timeouts always evaluated to false.

Re: [PATCH] drivers: adc: fix return value if timeout occurs

2022-03-01 Thread Michael Nazzareno Trimarchi
Hi On Tue, Mar 1, 2022 at 1:38 PM Francois Berder wrote: > > Because unsigned integers cannot be negative, > timeout variable is never less than zero. Hence, checks > in Amlogic Meson ADC driver to detect timeouts always > evaluated to false. Fix that. > > Signed-off-by: Francois Berder > --- >

[PATCH] drivers: adc: fix return value if timeout occurs

2022-03-01 Thread Francois Berder
Because unsigned integers cannot be negative, timeout variable is never less than zero. Hence, checks in Amlogic Meson ADC driver to detect timeouts always evaluated to false. Fix that. Signed-off-by: Francois Berder --- drivers/adc/meson-saradc.c | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH] sunxi: f1c100s: Fix FEL registers restore

2022-03-01 Thread Andre Przywara
Commit 88998f777531 ("arm: arm926ej-s: Add sunxi code") introduced the ARM926 version of the code to save and restore some FEL state, to be able to return to the BROM FEL code after the SPL has run. However during review a change was made, that happened to mess up the register restore part, so SCT

[PULL] u-boot-usb/master

2022-03-01 Thread Marek Vasut
The following changes since commit f9a719e2954473f9be1f8c14a28288f943a00dd2: Prepare v2022.04-rc3 (2022-02-28 18:02:33 -0500) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for you to fetch changes up to a41b88ec02ea1dbf4e5e6e895625a5fee96097c5: phy:

Re: [PATCH] arm: kirkwood: nas220: Add DM Ethernet, SATA, GPIO

2022-03-01 Thread Hajo Noerenberg
On 02/25/2022 00:19 Tony Dinh wrote: > Hi Hajo, > > I've added Stefan to the reviewers. And please see a couple of minor > comments below. > > On Thu, Feb 24, 2022 at 5:48 AM Hajo Noerenberg > wrote: >> >> Bring the NAS220 board up to current standards. This is basically an >> adaptation of the

[PATCH] .mailmap: Record all address for main U-Boot contributor

2022-03-01 Thread Michal Simek
Based on looking at top contributors it was seen that top statistics from top contributors don't include all contributions from different email addresses. That's why I checked all top contributors are checked it. git shortlog -n $START..$END -e -s The patch is adding mapping for Bin Meng, Marek V

Re: [PATCH] phy: nop-phy: Fix phy reset if no reset-gpio defined

2022-03-01 Thread Adam Ford
On Mon, Feb 28, 2022 at 4:53 PM Tim Harvey wrote: > > Ensure there is a valid reset-gpio defined before using it. > > Fixes: f9852acdce02 ("phy: nop-phy: Fix enabling reset") > Cc: Adam Ford > Signed-off-by: Tim Harvey Reviewed-by: Adam Ford > --- > drivers/phy/nop-phy.c | 12 +++- >

回复: [PATCH V8] arm: add initial support for the Phytium Pomelo Board

2022-03-01 Thread Nicholas zheng
First of all, thank you very much for your suggestions and help. With regard to the description of the CPU node of the current patch device tree, I hope "phytium, ftc663" will be added to uboot after Linux goes online. Thank! 发件人: Rob Herring 发送时间: 2022年2月28日 23:

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

2022-03-01 Thread Patrice CHOTARD
Hi Simon On 2/26/22 19:36, Simon Glass wrote: > Hi Patrice, > > On Mon, 31 Jan 2022 at 09:14, Patrice CHOTARD > wrote: >> >> Hi Simon >> >> On 1/21/22 16:20, Simon Glass wrote: >>> Hi Patrice, >>> >>> On Wed, 12 Jan 2022 at 03:59, Patrice Chotard >>> wrote: Add spi_flash_probe_bus_cs(

[PATCH V3] Makefile: Sort u-boot-initial-env output

2022-03-01 Thread Christoph Niedermaier
This will sort the default environment file generated by "make u-boot-initial-env", but won't sort the default environment in the compiled u-boot binary. The file u-boot-initial-env is considered to use for the userpace environment access tools [1] in case of that the environments is written the fi

Re: [PATCH v2 4/4] configs: am64x_evm_r5_defconfig: Add support for ESM

2022-03-01 Thread Christian Gmeiner
Am Mo., 28. Feb. 2022 um 05:56 Uhr schrieb Hari Nagalla : > > Enable ESM driver for AM64x R5 SPL/u-boot builds. > > Signed-off-by: Hari Nagalla Reviewed-by: Christian Gmeiner -- greets -- Christian Gmeiner, MSc https://christian-gmeiner.info/privacypolicy

Re: [PATCH v2 2/4] arm: dts: k3-am64: Add support for ESM device nodes

2022-03-01 Thread Christian Gmeiner
Am Mo., 28. Feb. 2022 um 05:56 Uhr schrieb Hari Nagalla : > > Enable access to ESM0 configuration space and add Main ESM0 and MCU ESM > nodes to the AM64 device tree. > > Signed-off-by: Hari Nagalla Reviewed-by: Christian Gmeiner -- greets -- Christian Gmeiner, MSc https://christian-gmeiner.i

Re: [PATCH v2 3/4] arch: arm: mach-k3: am642_init: Probe ESM nodes

2022-03-01 Thread Christian Gmeiner
Am Mo., 28. Feb. 2022 um 05:56 Uhr schrieb Hari Nagalla : > > On AM64x devices, it is possible to route Main ESM0 error events to MCU > ESM. MCU ESM high error output can trigger the reset logic to reset the > device. So, for these devices we expect two ESM device nodes in the > device tree, one fo

Re: [PATCH v2 1/4] misc: k3_esm: Add functionality to set and route error events within K3SoC

2022-03-01 Thread Christian Gmeiner
Am Mo., 28. Feb. 2022 um 05:56 Uhr schrieb Hari Nagalla : > > Add functionality to enable, set priority to the input events and to > route to MCU ESM. On AM64x/AM62x devices, it is possible to route Main > ESM0 error events to MCU ESM. When these error events are routed to MCU > ESM high output, it

[PATCH 3/3] i2c: i2c-cdns: Prevent early termination of write

2022-03-01 Thread Michal Simek
From: Sai Pavan Boddu During sequential loading of data, hold the bus to prevent controller from sending stop signal in case no data is available in fifo. Signed-off-by: Sai Pavan Boddu Reviewed-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- drivers/i2c/i2c-cdns.c | 10 ++ 1 f

[PATCH 1/3] i2c: i2c-cdns: Start read transaction after write to transfer_size reg

2022-03-01 Thread Michal Simek
From: Sai Pavan Boddu Avoid a race condition where read transaction is started keeping expected bytes as 0. Which sometimes would result in sending STOP signal as no data is expected. Observed on QEMU platform. Signed-off-by: Sai Pavan Boddu Reviewed-by: Ashok Reddy Soma Signed-off-by: Michal

[PATCH 2/3] i2c: i2c-cdns: Fix write transaction state

2022-03-01 Thread Michal Simek
From: Sai Pavan Boddu Start write transfer after loading data to FIFO. Signed-off-by: Sai Pavan Boddu Reviewed-by: Ashok Reddy Soma Signed-off-by: Michal Simek --- drivers/i2c/i2c-cdns.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/i2c/i2c-cdns.c b/drivers/i2c/i2c-cdns.

[PATCH 0/3] i2c: i2c-cdns: Driver fixes

2022-03-01 Thread Michal Simek
Hi, these 3 patches came from checking functionality on QEMU in connection to SOM program. Thanks, Michal Sai Pavan Boddu (3): i2c: i2c-cdns: Start read transaction after write to transfer_size reg i2c: i2c-cdns: Fix write transaction state i2c: i2c-cdns: Prevent early termination of writ

[PATCH] microblaze: Do not place u-boot to reserved memory location

2022-03-01 Thread Michal Simek
Microblaze can also have reserved space in DT which u-boot has to avoid to placing self to that location. The same change was done in Zynqmp by commit ce39ee28ec31 ("zynqmp: Do not place u-boot to reserved memory location"). This feature was tested with this memory description on kc705: m

[PATCH] power: zynqmp: Use zynqmp_pmufw_node() from firmware

2022-03-01 Thread Michal Simek
Remove private xpm_configobject[] and use zynqmp_pmufw_node() which provides the same functionality. Also add debug messages for easier debugging. Fixes: e0283cbdfd49 ("power: zynqmp: Add power domain driver for ZynqMP") Signed-off-by: Michal Simek --- drivers/power/domain/zynqmp-power-domain.c