Re: [PATCH] efi_loader: allow disabling EFI secure boot in User Mode

2020-12-03 Thread Heinrich Schuchardt
On 11/30/20 7:22 PM, Paulo Alcantara wrote: Hi Heinrich, Heinrich Schuchardt writes: On 11/30/20 3:58 PM, Paulo Alcantara wrote: Introduce a new config option CONFIG_EFI_SECURE_BOOT_VAR_DISABLE to allow disabling EFI secure boot when the platform is operating in User Mode and there is an NV+

[PATCH 9/9] checkpatch: Add warnings for unexpected struct names

2020-12-03 Thread Simon Glass
As a way of keeping the driver declarations more consistent, add a warning if the struct used does not end with _priv or _plat. Signed-off-by: Simon Glass --- scripts/checkpatch.pl | 38 + tools/patman/test_checkpatch.py | 28 2

[PATCH 7/9] dm: treewide: Update 'auto' declarations to be on one line

2020-12-03 Thread Simon Glass
Fix up the code style for those declarations that should now fit onto one line, which is all of them that currently do not. This is needed for dtoc to detect the structs correctly, at present. Signed-off-by: Simon Glass --- arch/x86/cpu/intel_common/p2sb.c | 3 +-- drivers/i2c/i2c-em

[PATCH 4/9] dm: Rename 'platdata_size' to 'plat_size'

2020-12-03 Thread Simon Glass
Rename this to be consistent with the change from 'platdata'. Signed-off-by: Simon Glass --- doc/driver-model/of-plat.rst | 2 +- drivers/core/device.c| 15 include/dm/platdata.h| 4 +-- tools/dtoc/dtb_platdata.py | 2 +- tools/dtoc/test_dtoc.py | 66 +

[PATCH 0/9] dm: treewide: Tidy up and adjust driver model naming

2020-12-03 Thread Simon Glass
There are several naming problems in driver model which I think are worth sorting out. FIrstly, the _auto_alloc_size suffix is widely used but is quite long-winded. In earlier days it made some sense since auto allocation was a strange concept. But with driver model now used pretty universally, we

[PATCH 1/9] dtoc: Tidy up more Python style in dtb_platdata

2020-12-03 Thread Simon Glass
Update this file to reduce the number of pylint warnings. Also add a few missing comments while we are here. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 91 +++--- 1 file changed, 46 insertions(+), 45 deletions(-) diff --git a/tools/dtoc/dtb_plat

[PATCH] arm: dts: k3-j721e: ddr: Update to 0.5.0 version of DDR config tool

2020-12-03 Thread praneeth
From: Praneeth Bajjuri Update the ddr settings to use the DDR reg config tool rev 0.5.0. This enables 4266MTs DDR configuration. Signed-off-by: Praneeth Bajjuri Signed-off-by: Kevin Scholz --- ...33.dtsi => k3-j721e-ddr-evm-lp4-4266.dtsi} | 436 +- .../arm/dts/k3-j721e-r5-comm

Re: [PATCH 29/34] configs: sama7g5: add mmc config for sdmmc0

2020-12-03 Thread Jaehoon Chung
Hi, On 12/3/20 8:20 PM, eugen.hris...@microchip.com wrote: > On 03.12.2020 13:11, Jaehoon Chung wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you know the >> content is safe >> >> On 12/3/20 7:47 PM, eugen.hris...@microchip.com wrote: >>> On 03.12.2020 12:38, Jaehoon Chu

[PATCH] mmc: initialize an err variable

2020-12-03 Thread Jaehoon Chung
Initialize an err variable to 0. Signed-off-by: Jaehoon Chung --- drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index a6394bcf308f..5151339d3aa3 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -2062,7 +2062,7

Pull request for UEFI sub-system for NEXT

2020-12-03 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit a2c832471115d382d6dd60697be5bc74d2636eea: Merge branch '2020-12-01-next-imports' into next (2020-12-02 11:35:02 -0500) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-next for you to fetc

[u-boot,v2019.04-aspeed, v1 0/1] Common:fdt: Check for error return

2020-12-03 Thread Hongwei Zhang
Thanks Joel, > From: Joel Stanley > Sent: Wednesday, December 2, 2020 9:17 PM > To: Hongwei Zhang > > Hello Hongwei, > > On Wed, 2 Dec 2020 at 19:48, Hongwei Zhang wrote: > > > > Hello Reviewer, > > > > Check for negative return value of fdt_noffset from calling > > boot_get_fdt_fit(). Other

Re: [SPECIFICATION RFC] The firmware and bootloader log specification

2020-12-03 Thread Andy Shevchenko
On Sat, Nov 14, 2020 at 2:01 AM Daniel Kiper wrote: ... > The log specification should be as much as possible platform agnostic > and self contained. The final version of this spec should be merged into > existing specifications, e.g. UEFI, ACPI, Multiboot2, or be a standalone > spec, e.g. as a

Re: [PATCH v2] common: update: fix an "unused" warning against update_flash()

2020-12-03 Thread Heinrich Schuchardt
On 12/3/20 5:59 PM, Tom Rini wrote: On Thu, Nov 19, 2020 at 09:37:19AM +0900, AKASHI Takahiro wrote: Since update_flash() is used only in update_tftp(), it should be guarded with appropriate config options. After the commit 3149e524fc1e, common/update.c will be built under either CONFIG_UDATE_

Re: Please convert last remaining file to UTF-8 encoding

2020-12-03 Thread Tom Rini
On Thu, Dec 03, 2020 at 06:06:16PM +, Andre Przywara wrote: > From: Tom Rini > Sent: Thursday, December 03, 2020 17:22 > To: Nicolas Boulenguez > Cc: U-Boot mailing list; Andre Przywara > Subject: Re: Please convert last remaining file to UTF-8 encoding > > Sorry if that looks weird, my Thunde

Re: Please convert last remaining file to UTF-8 encoding

2020-12-03 Thread Andre Przywara
From: Tom Rini Sent: Thursday, December 03, 2020 17:22 To: Nicolas Boulenguez Cc: U-Boot mailing list; Andre Przywara Subject: Re: Please convert last remaining file to UTF-8 encoding Sorry if that looks weird, my Thunderbird (68.x) suddenly refused to display some emails (I guess S/MIME is to bl

[PATCH v2 4/6] net: macb: add support for sama7g5 gmac

2020-12-03 Thread Claudiu Beznea
Add support for SAMA7G5 GMAC. Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 241b42a6e9d3..234d85a94d34 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb

[PATCH v2 5/6] net: macb: add support for sama7g5 emac

2020-12-03 Thread Claudiu Beznea
Add support for SAMA7G5 EMAC. Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 234d85a94d34..827f34bb172d 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -1374,12 +1374,20 @@

[PATCH v2 3/6] net: macb: check clk_set_rate return value to be negative

2020-12-03 Thread Claudiu Beznea
clk_set_rate() returns the set rate in case of success and a negative number in case of failure. Consider failure only the negative numbers. Fixes: 3ef6de157 ("dm: net: macb: Implement link speed change callback") Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 2 +- 1 file changed, 1

[PATCH v2 6/6] net: macb: take into account all RGMII interface types

2020-12-03 Thread Claudiu Beznea
Take into account all RGMII interface types. Depending on it the RGMII PHY's timings are setup. Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 827f34bb172d..fe299af4d5d3 10

[PATCH v2 1/6] net: macb: use dummy descriptor for RBQP

2020-12-03 Thread Claudiu Beznea
In case of multiple queues on RX side the queue scheduler will try to use all the available configured queues (with descriptors having TX_USED bit cleared). If at least one RBQP points to a descriptor with a valid used bit configuration then the reception may block as this may point to any memory.

[PATCH v2 2/6] net: macb: add user io config data structure

2020-12-03 Thread Claudiu Beznea
Different implementation of USER IO register needs different mapping for bit fields of this register. Add implementation for this and, since clken is part of USER IO and it needs to be activated based on per SoC capabilities, add caps in macb_config where clken specific information needs to be fill

[PATCH v2 0/6] add support for sama7g5 ethernet interfaces

2020-12-03 Thread Claudiu Beznea
Hi, This series add support for SAMA7G5 ethernet interfaces: one gigabit interface and one 10/100Mbps interface. Thank you, Claudiu Beznea Changes in v2: - fix compilation error on patch 6/6 for wb50n_defconfig Claudiu Beznea (6): net: macb: use dummy descriptor for RBQP net: macb: add user

[PATCH v2 2/2] x86: edison: Switch to DM_USB_GADGET

2020-12-03 Thread Andy Shevchenko
DM is the modern default approach for the drivers in U-Boot. It also allows to configure code via Device Tree. Move Intel Edison to use DM_USB_GADGET and drop hard coded values. Signed-off-by: Andy Shevchenko --- v2: cleaned up arch/x86/cpu/tangier/Kconfig as well arch/x86/cpu/tangier/Kconfig

[PATCH v2 1/2] x86: edison: Use dwc3-generic driver for Intel Edison

2020-12-03 Thread Andy Shevchenko
Use generic Synopsys DesignWare 3 driver on Intel Edison. For now it's just a stub which allows future refactoring. Signed-off-by: Andy Shevchenko --- v2: no changes arch/x86/cpu/tangier/Kconfig| 3 +++ arch/x86/dts/edison.dts | 4 drivers/usb/dwc3/dwc3-generic.c | 1 + 3 files

[PATCH] sunxi: dram: h6: Improve DDR3 config detection

2020-12-03 Thread Jernej Skrabec
It turns out that in rare cases, current analytical approach to detect correct DRAM bus width and rank on H6 doesn't work. On some TV boxes with DDR3, incorrect DRAM configuration triggers write leveling error which immediately stops initialization process. Exact reason why this error appears isn't

Re: [PATCH v1 2/2] x86: edison: Switch to DM_USB_GADGET

2020-12-03 Thread Andy Shevchenko
On Thu, Dec 3, 2020 at 6:26 PM Andy Shevchenko wrote: > > DM is the modern default approach for the drivers in U-Boot. > It also allows to configure code via Device Tree. > > Move Intel Edison to use DM_USB_GADGET and drop hard coded values. Missed one more file to be slightly cleaned up. I'll s

[scan-ad...@coverity.com: New Defects reported by Coverity Scan for Das U-Boot]

2020-12-03 Thread Tom Rini
This latest run also closed a number of open defects (the CIDs of which are sadly not in the summary). - Forwarded message from scan-ad...@coverity.com - Date: Mon, 30 Nov 2020 18:33:34 + (UTC) From: scan-ad...@coverity.com To: tom.r...@gmail.com Subject: New Defects reported by Cover

Re: Please convert last remaining file to UTF-8 encoding

2020-12-03 Thread Tom Rini
On Thu, Dec 03, 2020 at 03:27:44PM +0100, Nicolas Boulenguez wrote: > Hello. > Please convert last remaining file to UTF-8 encoding > A trivial patch is attached. > Thanks. > From 38cde811be6878d9a6d10ae88980e0af55a31418 Mon Sep 17 00:00:00 2001 > From: Nicolas Boulenguez > Date: Thu, 3 Dec 2020

Re: [PATCH] mtd: spi-nor-ids: add Winbond W25Q32JW-IM flash

2020-12-03 Thread Tom Rini
On Tue, Dec 01, 2020 at 12:12:39AM +0100, Michael Walle wrote: > The Kontron SMARC-sAL28 board uses that flash. > > This is the same change as in the linux commit f3418718c0ec ("mtd: > spi-nor: Add support for w25q32jwm"). > > Signed-off-by: Michael Walle > Reported-by: Leo Krueger Applied to

Re: [PATCH 2/2] global_data: Fix comment for dm_driver_rt

2020-12-03 Thread Tom Rini
On Sun, Nov 29, 2020 at 05:07:05PM -0700, Simon Glass wrote: > This comment is in the wrong format, so reports an error with > 'make htmldocs'. Fix it. > > Fixes: a294ead8d25 ("dm: Use an allocated array for run-time device info") > Signed-off-by: Simon Glass > Reviewed-by: Heinrich Schuchardt

Re: [PATCH 1/1] MAINTAINERS: assign include/log.h

2020-12-03 Thread Tom Rini
On Mon, Nov 30, 2020 at 09:08:12AM +0100, Heinrich Schuchardt wrote: > include/log.h belongs to LOGGING. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/1] log: typos in include/log.h

2020-12-03 Thread Tom Rini
On Mon, Nov 30, 2020 at 09:04:48AM +0100, Heinrich Schuchardt wrote: > Correct several typos. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/2] log: Fix comment for LOGC_BOOT

2020-12-03 Thread Tom Rini
On Sun, Nov 29, 2020 at 05:07:04PM -0700, Simon Glass wrote: > This comment is in the wrong format, so reports an error with > 'make htmldocs'. Fix it. > > Fixes: b73d61a5565 ("x86: zimage: Add a little more logging") > Signed-off-by: Simon Glass > Reviewed-by: Heinrich Schuchardt Applied to u

Re: [PATCH] watchdog: sbsa: timeout should be in "millisecond"

2020-12-03 Thread Tom Rini
On Wed, Nov 25, 2020 at 12:55:47PM +0800, Qiang Zhao wrote: > From: Zhao Qiang > > timeout should be in "millisecond" instead of second, > so divided it by 1000 when calculate the load value. > > Signed-off-by: Zhao Qiang Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [PATCH] fs/squashfs: sqfs_close/sqfs_read_sblk: set ctxt.sblk to NULL after free

2020-12-03 Thread Tom Rini
On Tue, Nov 24, 2020 at 06:07:52PM +0100, Richard Genoud wrote: > This will prevent a double free error if sqfs_close() is called twice. > > Signed-off-by: Richard Genoud Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v1] linux/compat.h: Remove debug() from spin_lock_irqsave()

2020-12-03 Thread Tom Rini
On Thu, Nov 19, 2020 at 09:26:20PM +0200, Andy Shevchenko wrote: > It seems nobody tested the debug() option in spin_lock_irqsave(). > Currently, when #define DEBUG, it spoils the compiler with > > In file included from drivers/usb/dwc3/gadget.c:18: > drivers/usb/dwc3/gadget.c: In function ‘dwc3_

Re: [PATCH v2] common: update: fix an "unused" warning against update_flash()

2020-12-03 Thread Tom Rini
On Thu, Nov 19, 2020 at 09:37:19AM +0900, AKASHI Takahiro wrote: > Since update_flash() is used only in update_tftp(), it should be > guarded with appropriate config options. > > After the commit 3149e524fc1e, common/update.c will be built under > either CONFIG_UDATE_TFTP, CONFIG_DFU_TFTP or CONF

Re: [PATCH] km/common: remove CONFIG_MTD_CONCAT

2020-12-03 Thread Tom Rini
On Thu, Nov 05, 2020 at 10:28:51AM +0100, Holger Brunck wrote: > This was used for a board which is not supproted anymore and can > therefore be dropped. > > CC: Stefan Roese > Signed-off-by: Holger Brunck > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH] remove obsolete option CONFIG_JFFS2_CMDLINE

2020-12-03 Thread Tom Rini
On Thu, Nov 05, 2020 at 10:15:37AM +0100, Holger Brunck wrote: > This option is obsolete since 2009 and can be removed globally. > > CC: Stefan Roese > Signed-off-by: Holger Brunck > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signatur

Re: [PATCH 4/4] arm: mvebu: Espressobin: Detect presence of emmc at runtime

2020-12-03 Thread Stefan Roese
On 03.12.20 16:56, Pali Rohár wrote: On Wednesday 02 December 2020 15:35:08 Andre Heider wrote: On 25/11/2020 19:20, Pali Rohár wrote: Try to initialize emmc in board_late_init() and if it fails then we know that emmc device is not connected. This allows to use in U-Boot just one DTS file for

[PATCH v1 2/2] x86: edison: Switch to DM_USB_GADGET

2020-12-03 Thread Andy Shevchenko
DM is the modern default approach for the drivers in U-Boot. It also allows to configure code via Device Tree. Move Intel Edison to use DM_USB_GADGET and drop hard coded values. Signed-off-by: Andy Shevchenko --- arch/x86/dts/edison.dts | 8 board/intel/edison/edison.c | 35 --

[PATCH v1 1/2] x86: edison: Use dwc3-generic driver for Intel Edison

2020-12-03 Thread Andy Shevchenko
Use generic Synopsys DesignWare 3 driver on Intel Edison. For now it's just a stub which allows future refactoring. Signed-off-by: Andy Shevchenko --- arch/x86/cpu/tangier/Kconfig| 3 +++ arch/x86/dts/edison.dts | 4 drivers/usb/dwc3/dwc3-generic.c | 1 + 3 files changed, 8 inse

[PATCH] Missing regulator-init-microvolt in rk3399-firefly-u-boot.dtsi

2020-12-03 Thread Piotr Lobacz
Missing of this regulator caused the kernel to stop on loading pwm-regulator and rk808-regulator modules. --- ../u-boot-master.orig/arch/arm/dts/rk3399-firefly-u-boot.dtsi 2020-11-26 15:30:37.972005178 +0100 +++ ../u-boot-master/arch/arm/dts/rk3399-firefly-u-boot.dtsi2020-12-03 16:39:42

Re: [PATCH 4/4] arm: mvebu: Espressobin: Detect presence of emmc at runtime

2020-12-03 Thread Pali Rohár
On Wednesday 02 December 2020 15:35:08 Andre Heider wrote: > On 25/11/2020 19:20, Pali Rohár wrote: > > Try to initialize emmc in board_late_init() and if it fails then we know > > that emmc device is not connected. > > > > This allows to use in U-Boot just one DTS file for all Espressobin variant

[PATCH v1] x86: edison: BINMAN selection is specific to the board

2020-12-03 Thread Andy Shevchenko
The platforms based on Intel Tangier may have different requirements how to create bootloader bundle to supply to a device. Currently the BINMAN approach is for Intel Edison only. Signed-off-by: Andy Shevchenko --- arch/x86/cpu/tangier/Kconfig | 1 - board/intel/edison/Kconfig | 1 + 2 files c

[PATCH v1 3/3] f_fastboot: Avoid use-after-free in the global pointer variable

2020-12-03 Thread Andy Shevchenko
In case of usb_add_function() failure the error path has an issue, i.e the global pointer variable is assigned to garbage Fix the above mentioned issue by assigning pointer to NULL. Signed-off-by: Andy Shevchenko --- drivers/usb/gadget/f_fastboot.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH v1 2/3] f_rockusb: Avoid use-after-free in the global pointer variable

2020-12-03 Thread Andy Shevchenko
In case of usb_add_function() failure the error path has two issues: - the potentially allocated structure isn't getting freed - the global pointer variable is assigned to garbage Fix the above mentioned issues by freeing memory and assigning NULL. Signed-off-by: Andy Shevchenko --- drivers/u

[PATCH v1 1/3] f_rockusb: Use NULL instead of 0 for pointers

2020-12-03 Thread Andy Shevchenko
get_rkusb() mistakenly uses integers without cast. Convert them to proper type. Signed-off-by: Andy Shevchenko --- drivers/usb/gadget/f_rockusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/f_rockusb.c b/drivers/usb/gadget/f_rockusb.c index 9ae02ae7

Re: [PATCH 29/34] configs: sama7g5: add mmc config for sdmmc0

2020-12-03 Thread Eugen.Hristev
On 03.12.2020 13:11, Jaehoon Chung wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On 12/3/20 7:47 PM, eugen.hris...@microchip.com wrote: >> On 03.12.2020 12:38, Jaehoon Chung wrote: >>> Hi, >>> >>> On 12/3/20 6:28 PM, Eugen Hristev wrote:

Please convert last remaining file to UTF-8 encoding

2020-12-03 Thread Nicolas Boulenguez
Hello. Please convert last remaining file to UTF-8 encoding A trivial patch is attached. Thanks. >From 38cde811be6878d9a6d10ae88980e0af55a31418 Mon Sep 17 00:00:00 2001 From: Nicolas Boulenguez Date: Thu, 3 Dec 2020 15:22:58 +0100 Subject: [PATCH] Convert last remaining file to UTF-8 encoding ---

Re: [PATCH 29/34] configs: sama7g5: add mmc config for sdmmc0

2020-12-03 Thread Eugen.Hristev
On 03.12.2020 12:38, Jaehoon Chung wrote: > Hi, > > On 12/3/20 6:28 PM, Eugen Hristev wrote: >> Add new config for storing environment from sdmmc0. >> Also clean-up sama7g5ek_emmc1 to point to the proper mmc device. > > Just one question, Sorry, i didn't check entire patchset. > > What is differ

[PATCH 32/34] board: atmel: sama7g5ek: add support for MAC address retreival

2020-12-03 Thread Eugen Hristev
Obtain two MAC addresses from the two EEPROMs and configure the two available Ethernet interfaces accordingly. Signed-off-by: Eugen Hristev --- board/atmel/sama7g5ek/sama7g5ek.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/board/atmel/sama7g5ek/sama7g5e

[PATCH 33/34] configs: sama7g5ek: add i2c and eeprom

2020-12-03 Thread Eugen Hristev
Add drivers for flexcom, i2c and eeproms Signed-off-by: Eugen Hristev --- configs/sama7g5ek_mmc1_defconfig | 3 +++ configs/sama7g5ek_mmc_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/sama7g5ek_mmc1_defconfig b/configs/sama7g5ek_mmc1_defconfig index b6d2f4dd05..af362

[PATCH 31/34] ARM: dts: sama7g5ek: add i2c1 bus and eeproms

2020-12-03 Thread Eugen Hristev
Add node for flx1 i2c1 subnode (and alias to bus 0) This bus has two eeprom devices connected. Signed-off-by: Eugen Hristev --- arch/arm/dts/sama7g5ek.dts | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/dts/sama7g5ek.dts b/arch/arm/dts/sama7g5ek.dts i

[PATCH 34/34] ARM: dts: sama7g5ek: fix TXC pin configuration

2020-12-03 Thread Eugen Hristev
From: Nicolas Ferre TXC line is directly connected from the SoC to the KSZ9131 PHY. There is a transient state on this signal, before configuring it to RGMII, which leads to packet transmit being blocked. Keeping a pull-up when muxing this pin as function A (G0_TXCK) fixes the issue. Signed-off-

[PATCH 30/34] ARM: dts: at91: sama7g5: add flexcom1 and i2c subnode

2020-12-03 Thread Eugen Hristev
Add flexcom1 and i2c subnode. Signed-off-by: Eugen Hristev --- arch/arm/dts/sama7g5.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi index 4c571befad..4846778ed9 100644 --- a/arch/arm/dts/sama7g5.dtsi +++ b/arch/arm

[PATCH 28/34] board: atmel: sama7g5ek: clean-up header bootcommand

2020-12-03 Thread Eugen Hristev
Clean-up boot command to use the predefined device and part for FAT environment. According to this device and partition, select the proper boot media. Signed-off-by: Eugen Hristev --- include/configs/sama7g5ek.h | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/incl

[PATCH 29/34] configs: sama7g5: add mmc config for sdmmc0

2020-12-03 Thread Eugen Hristev
Add new config for storing environment from sdmmc0. Also clean-up sama7g5ek_emmc1 to point to the proper mmc device. Signed-off-by: Eugen Hristev --- board/atmel/sama7g5ek/MAINTAINERS | 1 + configs/sama7g5ek_mmc1_defconfig | 7 ++-- configs/sama7g5ek_mmc_defconfig | 67

[PATCH 27/34] ARM: dts: at91: sama7g5ek: enable sdmmc0 with pinctrl

2020-12-03 Thread Eugen Hristev
Enable sdmmc0 on this board. A non-removable eMMC is connected on this block. Configure pincontrol accordingly. Signed-off-by: Eugen Hristev --- arch/arm/dts/sama7g5ek.dts | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/dts/sama7g5ek.dts b/arch/arm/dt

[PATCH 25/34] ARM: dts: at91: sama7g5: add assigned clocks for sdmmc1

2020-12-03 Thread Eugen Hristev
SDMMC1 requires clock specification with assigned-clocks, such that the PMC will know which parent to assign and the initial start-up frequency. Signed-off-by: Eugen Hristev --- arch/arm/dts/sama7g5.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/

[PATCH 26/34] ARM: dts: at91: sama7g5: add node for sdmmc0

2020-12-03 Thread Eugen Hristev
Add node for sdmmc0 block. Signed-off-by: Eugen Hristev --- arch/arm/dts/sama7g5.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi index 826828bb17..4c571befad 100644 --- a/arch/arm/dts/sama7g5.dtsi +++ b/arch/arm/dts/sama

[PATCH 24/34] configs: sama7g5ek: enable CCF

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Enable CCF for SAMA7G5. Signed-off-by: Claudiu Beznea --- configs/sama7g5ek_mmc1_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sama7g5ek_mmc1_defconfig b/configs/sama7g5ek_mmc1_defconfig index 7e3cf49da0..fa4c88ffa6 100644 --- a/configs/sama7g5ek_mm

[PATCH 21/34] ARM: dts: sama7g5: add GMAC1

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Add GMAC1. Signed-off-by: Claudiu Beznea --- arch/arm/dts/sama7g5.dtsi | 8 arch/arm/dts/sama7g5ek.dts | 27 +++ 2 files changed, 35 insertions(+) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi index 33589f3ad9..43fac

[PATCH 22/34] board: atmel: sama7g5ek: increase arp timeout and retry count

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Increase ARP timeout and retry count as this will increase the speed of communication. Signed-off-by: Claudiu Beznea --- include/configs/sama7g5ek.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/sama7g5ek.h b/include/configs/sama7g5ek.h index fbf02

[PATCH 23/34] configs: sama7g5ek: enable support for KSZ9131

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Enable support for KSZ9131. Signed-off-by: Claudiu Beznea --- configs/sama7g5ek_mmc1_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/sama7g5ek_mmc1_defconfig b/configs/sama7g5ek_mmc1_defconfig index 176f4f3000..7e3cf49da0 100644 --- a/configs/sama7g

[PATCH 18/34] ARM: dts: at91: sama7g5ek: add pinctrl for sdmmc1 and flx3

2020-12-03 Thread Eugen Hristev
Add pinctrl for sdmmc1 and flx3. Signed-off-by: Eugen Hristev --- arch/arm/dts/sama7g5ek-u-boot.dtsi | 4 arch/arm/dts/sama7g5ek.dts | 30 ++ 2 files changed, 34 insertions(+) diff --git a/arch/arm/dts/sama7g5ek-u-boot.dtsi b/arch/arm/dts/sama7g5ek-u-b

[PATCH 20/34] ARM: dts: sama7g5: add GMAC0

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Add GMAC0. Signed-off-by: Claudiu Beznea --- arch/arm/dts/sama7g5.dtsi | 11 +++ arch/arm/dts/sama7g5ek.dts | 32 2 files changed, 43 insertions(+) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi index d9208d68d

[PATCH 17/34] ARM: dts: at91: sama7g5: add pinctrl node

2020-12-03 Thread Eugen Hristev
Add pioA pinctrl node. Signed-off-by: Eugen Hristev --- arch/arm/dts/sama7g5.dtsi | 13 + arch/arm/dts/sama7g5ek-u-boot.dtsi | 8 2 files changed, 21 insertions(+) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi index f633c2f81e..d9208d68d5 1006

[PATCH 19/34] configs: sama7g5ek: enable mii command

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Enable mii command as ethernet's PHY specific programming is based on it. Signed-off-by: Claudiu Beznea --- configs/sama7g5ek_mmc1_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sama7g5ek_mmc1_defconfig b/configs/sama7g5ek_mmc1_defconfig index 99e243

[PATCH 16/34] ARM: dts: sama7g5: add pit64b support

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Add DT bindings for PIT64B driver. Signed-off-by: Claudiu Beznea --- arch/arm/dts/sama7g5.dtsi | 8 arch/arm/dts/sama7g5ek-u-boot.dtsi | 4 2 files changed, 12 insertions(+) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi index a2

[PATCH 15/34] ARM: dts: sama7g5: enable autoboot

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Enable autoboot. Signed-off-by: Claudiu Beznea --- configs/sama7g5ek_mmc1_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/sama7g5ek_mmc1_defconfig b/configs/sama7g5ek_mmc1_defconfig index 7d4d409532..99e2439516 100644 --- a/configs/sama7g5ek_mmc1_defco

[PATCH 14/34] configs: sama7g5: use PIT64B

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Use PIT64B driver. ATMEL_PIT is not available for SAMA7G5. Signed-off-by: Claudiu Beznea --- configs/sama7g5ek_mmc1_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sama7g5ek_mmc1_defconfig b/configs/sama7g5ek_mmc1_defconfig index 936d9cd73f..7d4d40953

[PATCH 13/34] ARM: dts: sama7g5: add CPU bindings

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Add CPU DT bindings. Signed-off-by: Claudiu Beznea --- arch/arm/dts/sama7g5.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi index 94e0b535cc..a2554dcfff 100644 --- a/arch/arm/dts/sama7g5.dtsi +++

[PATCH 11/34] ARM: dts: sama7g5: switch to PMC bindings

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Get rid of software defined MCK and switch to PMC bindings for IPs currently present in device tree. Signed-off-by: Claudiu Beznea --- arch/arm/dts/sama7g5.dtsi | 13 - arch/arm/dts/sama7g5ek-u-boot.dtsi | 4 2 files changed, 4 insertions(+), 13

[PATCH 12/34] configs: sama7g5: enable CONFIG_CPU

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Enable CONFIG_CPU. Signed-off-by: Claudiu Beznea --- configs/sama7g5ek_mmc1_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sama7g5ek_mmc1_defconfig b/configs/sama7g5ek_mmc1_defconfig index d43d07da78..936d9cd73f 100644 --- a/configs/sama7g5ek_mmc1_de

[PATCH 10/34] ARM: dts: sama7g5: add PMC bindings

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Add DT bindings for PMC driver. Signed-off-by: Claudiu Beznea --- arch/arm/dts/sama7g5.dtsi | 9 + arch/arm/dts/sama7g5ek-u-boot.dtsi | 4 2 files changed, 13 insertions(+) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi index 9d39

[PATCH 07/34] ARM: dts: sama7g5: add slow rc and main rc oscillators

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Add slow rc and main rc oscillators to dtsi. Signed-off-by: Claudiu Beznea --- arch/arm/dts/sama7g5.dtsi | 12 arch/arm/dts/sama7g5ek-u-boot.dtsi | 8 2 files changed, 20 insertions(+) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/s

[PATCH 08/34] ARM: dts: sama7g5: add u-boot, dm-pre-reloc bindings for xtals

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Add dm-pre-reloc DT binding property for cristals. Signed-off-by: Claudiu Beznea --- arch/arm/dts/sama7g5ek-u-boot.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/sama7g5ek-u-boot.dtsi b/arch/arm/dts/sama7g5ek-u-boot.dtsi index 06af2f74ee..d1

[PATCH 06/34] ARM: dts: sama7g5: move clock frequencies for xtals in board file

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Move clock frequencies for crystals on board specific files. Signed-off-by: Claudiu Beznea --- arch/arm/dts/sama7g5.dtsi | 2 -- arch/arm/dts/sama7g5ek.dts | 10 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/a

[PATCH 05/34] configs: sama7g5ek: enable pll driver

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Enable PLL driver for SAMA7G5. Signed-off-by: Claudiu Beznea --- configs/sama7g5ek_mmc1_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/sama7g5ek_mmc1_defconfig b/configs/sama7g5ek_mmc1_defconfig index 2da766d4e2..d43d07da78 100644 -

[PATCH 09/34] ARM: dts: sama7g5: add slow clock bindings

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Add DT bindings for slow clock driver. Signed-off-by: Claudiu Beznea --- arch/arm/dts/sama7g5.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi index c2410959ed..9d390db5ff 100644 --- a/arch/arm/dts/sama7g

[PATCH 04/34] configs: sama7g5ek: set malloc pool to 68K

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Set malloc pool to 68K for sama7g5ek. Signed-off-by: Claudiu Beznea --- configs/sama7g5ek_mmc1_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sama7g5ek_mmc1_defconfig b/configs/sama7g5ek_mmc1_defconfig index d54af0ccbf..2da766d4e2 100644 --- a/config

[PATCH 02/34] board: atmel: sama7g5ek: add initial support for sama7g5ek

2020-12-03 Thread Eugen Hristev
Add initial support for sama7g5 evaluation kit board. Signed-off-by: Eugen Hristev --- arch/arm/dts/Makefile | 3 ++ arch/arm/dts/sama7g5ek-u-boot.dtsi | 33 +++ arch/arm/dts/sama7g5ek.dts | 39 + arch/arm/mach-at91/Kconfig | 8 boa

[PATCH 03/34] board: atmel: sama7g5ek: add SYS_MALLOC_F_LEN to SYS_INIT_SP_ADDR

2020-12-03 Thread Eugen Hristev
From: Claudiu Beznea Heap base address is computed based on SYS_INIT_SP_ADDR by subtracting the SYS_MALLOC_F_LEN value in board_init_f_init_reserve(). Signed-off-by: Claudiu Beznea --- include/configs/sama7g5ek.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/con

[PATCH 00/34] Sama7g5 Evaluation Kit support

2020-12-03 Thread Eugen Hristev
Hello, This series adds support for sama7g5 SoC DT and the sama7g5ek board. I kept the original incremental development for this board, with each commit's author and designated change, for traceability and for easier reviewing. The series starts from a basic devicetree and ends with a fully funct

[PATCH 01/34] ARM: dts: sama7g5: add initial DT for sama7g5 SoC

2020-12-03 Thread Eugen Hristev
Add initial basic devicetree for sama7g5 SoC Signed-off-by: Eugen Hristev --- arch/arm/dts/sama7g5.dtsi | 65 +++ 1 file changed, 65 insertions(+) create mode 100644 arch/arm/dts/sama7g5.dtsi diff --git a/arch/arm/dts/sama7g5.dtsi b/arch/arm/dts/sama7g5.dtsi

[PATCH 6/6] net: macb: take into account all RGMII interface types

2020-12-03 Thread Claudiu Beznea
Take into account all RGMII interface types. Depending on it the RGMII PHY's timings are setup. Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index e3003cb4a619..127d6e899bad

[PATCH 5/6] net: macb: add support for sama7g5 emac

2020-12-03 Thread Claudiu Beznea
Add support for SAMA7G5 EMAC. Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 8039a53d4f4c..e3003cb4a619 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -1374,12 +1374,20 @@

[PATCH 4/6] net: macb: add support for sama7g5 gmac

2020-12-03 Thread Claudiu Beznea
Add support for SAMA7G5 GMAC. Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 439d1706485c..8039a53d4f4c 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb

[PATCH 3/6] net: macb: check clk_set_rate return value to be negative

2020-12-03 Thread Claudiu Beznea
clk_set_rate() returns the set rate in case of success and a negative number in case of failure. Consider failure only the negative numbers. Fixes: 3ef6de157 ("dm: net: macb: Implement link speed change callback") Signed-off-by: Claudiu Beznea --- drivers/net/macb.c | 2 +- 1 file changed, 1

[PATCH 1/6] net: macb: use dummy descriptor for RBQP

2020-12-03 Thread Claudiu Beznea
In case of multiple queues on RX side the queue scheduler will try to use all the available configured queues (with descriptors having TX_USED bit cleared). If at least one RBQP points to a descriptor with a valid used bit configuration then the reception may block as this may point to any memory.

[PATCH 2/6] net: macb: add user io config data structure

2020-12-03 Thread Claudiu Beznea
Different implementation of USER IO register needs different mapping for bit fields of this register. Add implementation for this and, since clken is part of USER IO and it needs to be activated based on per SoC capabilities, add caps in macb_config where clken specific information needs to be fill

[PATCH 0/6] add support for sama7g5 ethernet interfaces

2020-12-03 Thread Claudiu Beznea
Hi, This series add support for SAMA7G5 ethernet interfaces: one gigabit interface and one 10/100Mbps interface. Thank you, Claudiu Beznea Claudiu Beznea (6): net: macb: use dummy descriptor for RBQP net: macb: add user io config data structure net: macb: check clk_set_rate return value to

[PATCH 0/2] add support for dll setup on ksz9131

2020-12-03 Thread Claudiu Beznea
Hi, KSZ9131 has an internal DLL used to add proper delay on TX/RX lines to confirm with RGMII timings. The series add support for this. Along with this I included a typo patch. Thank you, Claudiu Beznea Claudiu Beznea (2): net: phy: micrel: add support for DLL setup on ksz9131 net: phy: micr

[PATCH 2/2] net: phy: micrel: fix typo

2020-12-03 Thread Claudiu Beznea
Fix typo. Signed-off-by: Claudiu Beznea --- drivers/net/phy/micrel_ksz90x1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/micrel_ksz90x1.c b/drivers/net/phy/micrel_ksz90x1.c index d6694c5cd88f..77fad4a8fc9e 100644 --- a/drivers/net/phy/micrel_ksz90x1.c +++

[PATCH 1/2] net: phy: micrel: add support for DLL setup on ksz9131

2020-12-03 Thread Claudiu Beznea
Add support for DLL setup on KSZ9131. Signed-off-by: Claudiu Beznea --- drivers/net/phy/micrel_ksz90x1.c | 63 +++- 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/micrel_ksz90x1.c b/drivers/net/phy/micrel_ksz90x1.c index f0032e8c

Re: [PATCH 29/34] configs: sama7g5: add mmc config for sdmmc0

2020-12-03 Thread Jaehoon Chung
On 12/3/20 7:47 PM, eugen.hris...@microchip.com wrote: > On 03.12.2020 12:38, Jaehoon Chung wrote: >> Hi, >> >> On 12/3/20 6:28 PM, Eugen Hristev wrote: >>> Add new config for storing environment from sdmmc0. >>> Also clean-up sama7g5ek_emmc1 to point to the proper mmc device. >> >> Just one questi

Re: [PATCH 29/34] configs: sama7g5: add mmc config for sdmmc0

2020-12-03 Thread Jaehoon Chung
Hi, On 12/3/20 6:28 PM, Eugen Hristev wrote: > Add new config for storing environment from sdmmc0. > Also clean-up sama7g5ek_emmc1 to point to the proper mmc device. Just one question, Sorry, i didn't check entire patchset. What is different between sama7g5ek_mmc1 and sama7g5ek_mmc? Best Regard

Re: [PATCH v7 4/4] mmc: renesas-sdhi: Add SDHI quirks for R-Car H3 and RZ/G2H

2020-12-03 Thread Jaehoon Chung
On 11/27/20 11:53 PM, Biju Das wrote: > Add SDHI quirks for R-Car H3 and RZ/G2H SoC. > > Signed-off-by: Biju Das > Reviewed-by: Lad Prabhakar Reviewed-by: Jaehoon chung Best Regards, Jaehoon Chung > --- > v7: > * No Change. > v6: > * New patch. quirks using soc_device_match. > --- > dri

Re: [PATCH v7 3/4] mmc: renesas-sdhi: Add SDHI quirks for R-Car M3-N and RZ/G2N

2020-12-03 Thread Jaehoon Chung
On 11/27/20 11:52 PM, Biju Das wrote: > Add SDHI quirks for R-Car M3-N and RZ/G2N SoC. > > Signed-off-by: Biju Das > Reviewed-by: Lad Prabhakar Reviewed-by: Jaehoon chung Best Regards, Jaehoon Chung > --- > v7: > * No Change. > v6: > * New patch. quirks using soc_device_match. > --- > dr

  1   2   >