[PATCH 0/3] video: seps525: Add new driver for seps525 OLED display

2020-12-03 Thread Michal Simek
Hi, This driver is connected via spi on one ZynqMP board. Only 8bit SPI connection is supported now. Spi zynq driver was used for testing this driver. We have tested load image via BMP command and also using it as console as is visible from log in the last patch. Thanks, Michal Michal Simek (2)

[PATCH 1/3] video: Introduce video_sync call

2020-12-03 Thread Michal Simek
Some drivers like LCD connected via SPI requires explicit sync function which copy framebuffer content over SPI to controller to display. This hook doesn't exist yet that's why introduce it via video operations. Signed-off-by: Michal Simek --- Simon: Please review this. I didn't find existing wa

[PATCH 2/3] video: seps525: Add dt binding description

2020-12-03 Thread Michal Simek
From: Vikhyat Goyal Added dt binding for seps525 display driver. Signed-off-by: Vikhyat Goyal Signed-off-by: Michal Simek --- MAINTAINERS | 1 + .../video/syncoam,seps525.txt | 24 +++ 2 files changed, 25 insertions(+) creat

[PATCH 3/3] video: seps525: Add seps525 SPI driver

2020-12-03 Thread Michal Simek
Add support for the WiseChip Semiconductor Inc. (UG-6028GDEBF02) display using the SEPS525 (Syncoam) LCD Controller. Syncoam Seps525 PM-Oled is RGB 160x128 display. This driver has been tested through zynq-spi driver. ZynqMP> load mmc 1 10 rainbow.bmp 61562 bytes read in 20 ms (2.9 MiB/s) Zynq

[PATCH 2/6] peach-pit: configs: remove VIDCONSOLE_AS_LCD

2020-12-03 Thread Patrick Delaunay
Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in ./include/configs/peach-pit.h => configs/exynos5-dt-common.h since the commit bb5930d5c97f ("exynos: video: Convert several boards to driver model for video") Signed-off-by: Patrick Delaunay --- configs/peach-pit_defconfig |

[PATCH 1/6] tbs2910: configs: remove VIDCONSOLE_AS_LCD

2020-12-03 Thread Patrick Delaunay
Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in ./include/configs/tbs2910.h since commit 513acd04452f ("tbs2910: migrate to DM_VIDEO"). Signed-off-by: Patrick Delaunay --- configs/tbs2910_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/tbs2910_defconfi

[PATCH 3/6] snow: configs: remove VIDCONSOLE_AS_LCD

2020-12-03 Thread Patrick Delaunay
Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in ./include/configs/snow.h => configs/exynos5-dt-common.h since the commit bb5930d5c97f ("exynos: video: Convert several boards to driver model for video") Signed-off-by: Patrick Delaunay --- configs/snow_defconfig | 1 - 1 fil

[PATCH 4/6] peach-pi: configs: remove VIDCONSOLE_AS_LCD

2020-12-03 Thread Patrick Delaunay
Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in ./include/configs/peach-pi.h => configs/exynos5-dt-common.h since the commit bb5930d5c97f ("exynos: video: Convert several boards to driver model for video") Signed-off-by: Patrick Delaunay --- configs/peach-pi_defconfig | 1

[PATCH 5/6] spring: configs: remove VIDCONSOLE_AS_LCD

2020-12-03 Thread Patrick Delaunay
Remove the obsolete CONFIG_VIDCONSOLE_AS_LCD as vidconsole is used in ./include/configs/spring.h => configs/exynos5-dt-common.h since the commit bb5930d5c97f ("exynos: video: Convert several boards to driver model for video") Signed-off-by: Patrick Delaunay --- configs/spring_defconfig | 1 - 1

[PATCH 0/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME

2020-12-03 Thread Patrick Delaunay
I propose this serie to remove the vidconsole work-around, activated with the 2 options VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME and cleanup the associated code in console.c (under #ifdef CONFIG_VIDCONSOLE_AS_LCD) This options are now obsolete and they was planned to be removed around the end of

[PATCH 6/6] video: remove VIDCONSOLE_AS_LCD and VIDCONSOLE_AS_NAME

2020-12-03 Thread Patrick Delaunay
Remove as planned (option will be removed around the end of 2020) the workaround for boards which have 'lcd' or 'vga' in their stdout environment variable. These options are no more used in any defconfig and this patch simplify the code in console.c file. Signed-off-by: Patrick Delaunay --- co

[PATCH 0/4] console: remove #ifdef CONFIG when it is possible

2020-12-03 Thread Patrick Delaunay
Use 'if (IS_ENABLED(CONFIG...))' instead of '#if or #ifdef' where possible This patchset can applied on master branch after the serie [1] (for the new order of test in function putc() and puts() done in "console: allow to record console output before ready" ) I will push a separate serie to re

[PATCH 1/4] console: remove #ifdef CONFIG when it is possible

2020-12-03 Thread Patrick Delaunay
Remove #ifdef or #ifndef for CONFIG when it is possible to simplify the console.c code and respect the U-Boot coding rules. Signed-off-by: Patrick Delaunay --- common/console.c | 149 +++ 1 file changed, 61 insertions(+), 88 deletions(-) diff --git a

[PATCH 4/4] console: add console_tstc_check helper function for CONSOLE_MUX

2020-12-03 Thread Patrick Delaunay
Add the helper function console_tstc_check() and replace the test #if CONFIG_IS_ENABLED(CONSOLE_MUX) to a simple if to respect the U-Boot coding rule. No functional change. Signed-off-by: Patrick Delaunay --- common/console.c | 36 1 file changed, 24 insert

[PATCH 3/4] console: remove #ifdef CONFIG_CONSOLE_RECORD

2020-12-03 Thread Patrick Delaunay
Add helper functions to access to gd->console_out and gd->console_in with membuff API and replace the #ifdef CONFIG_CONSOLE_RECORD test by if (IS_ENABLED(CONFIG_CONSOLE_RECORD)) to respect the U-Boot coding rule. Signed-off-by: Patrick Delaunay # Conflicts: # common/console.c --- common/c

[PATCH 2/4] console: add function console_devices_set

2020-12-03 Thread Patrick Delaunay
Add a new function to access to console_devices only defined if CONFIG_IS_ENABLED(CONSOLE_MUX). This path allows to remove #if CONFIG_IS_ENABLED(CONSOLE_MUX) in console_getc function. Signed-off-by: Patrick Delaunay --- common/console.c | 20 +--- 1 file changed, 13 insertions(

Re: [PATCH v7 2/4] mmc: renesas-sdhi: Add SDHI quirks for R-Car M3-W and RZ/G2M

2020-12-03 Thread Jaehoon Chung
On 11/27/20 11:52 PM, Biju Das wrote: > Add SDHI quirks for R-Car M3-W and RZ/G2M SoC. > > Signed-off-by: Biju Das > Reviewed-by: Lad Prabhakar Reviewed-by: Jaehoon chung Best Regards, Jaehoon Chung > --- > v7: > * Incorporated Jaehoon Chung's review comments. > * Fixed the build error on

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

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 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 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

[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

[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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

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

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 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:

[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

[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 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] 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

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] 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

[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 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 --

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

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] 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 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 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] 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] 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 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 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/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 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] 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: 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

[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: [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

[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

[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 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/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 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

  1   2   >