Re: [PATCH 0/9] Enable splash screen

2023-03-13 Thread Devarsh Thakkar
Hi Nikhil, Thanks for the series. On 14/03/23 10:20, Nikhil M Jain wrote: To enable splash screen at SPL stage move video driver and splash screen framework at SPL, which will bring up image on display very quickly and thus have early display support in SPL. Change in V2 - Removed artifacts

Re: [ANN] U-Boot v2023.04-rc4 released

2023-03-13 Thread Christophe Leroy
Hi Tom, Le 14/03/2023 à 01:53, Tom Rini a écrit : > Hey all, > > It's the scheduled day for -rc4, and once again it's the end of my day. > The delta between -rc3 and -rc4 is about what I would hope for. I still > hope to see a PR to fix m68k, and to address some mpc8xx problems as > well, but

[PATCH 9/9] board: ti: am62x: evm: OSPI support for splash screen

2023-03-13 Thread Nikhil M Jain
Add ospi boot media support to load splash image from OSPI memory, add offset to read image from ospi and necessary flags defininig type of storage and storage device. Signed-off-by: Nikhil M Jain --- board/ti/am62x/evm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 8/9] drivers: video: video-uclass: Disable u-boot logo at SPL

2023-03-13 Thread Nikhil M Jain
Enable displaying of u-boot video logo as default at SPL stage to if splash screen is disabled at SPL stage. Use CONFIG_IS_ENABLED for checking on splash screen macro both at SPL stage or u-boot proper depending upon where it is enabled. Signed-off-by: Nikhil M Jain --- drivers/video/Kconfig

[PATCH 7/9] common: splash: Enable splash_display at SPL stage

2023-03-13 Thread Nikhil M Jain
CONFIG_SPLASH_SCREEN and CONFIG_CMD_BMP enables splash screen at u-boot proper. To enable splash screen at SPL, separate macros i.e. SPL_SPLASH_SCREEN and SPL_CMD_BMP are used instead. Use CONFIG_IS_ENABLED(#) to check for splash screen and bmp related macros, so that it checks for either u-boot

[PATCH 6/9] cmd: Makefile: Add rules to build bmp.c and read.c at SPL

2023-03-13 Thread Nikhil M Jain
Splash support requires functions which are in bmp.c and read.c to enable display of bmp image and reading image from boot media. Enable their compilation at SPL stage, using Kconfigs SPL_CMD_BMP, SPL_CMD_READ. Signed-off-by: Nikhil M Jain --- cmd/Makefile | 2 ++ 1 file changed, 2

[PATCH 5/9] drivers: video: tidss: Makefile: Add condition to compile TIDSS at SPL

2023-03-13 Thread Nikhil M Jain
To enable TIDSS driver only at SPL stage add rule to compile the TIDSS video driver, for SPL stage only if CONFIG_SPL_VIDEO_TIDSS is defined. Signed-off-by: Nikhil M Jain --- drivers/video/Makefile | 1 + drivers/video/tidss/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH 4/9] drivers: video: Makefile: Compile video driver files at SPL

2023-03-13 Thread Nikhil M Jain
To enable splash screen at SPL we need to add video driver at SPL stage. To support video driver and splash display function compile video_uclass.c, video_console.c and video_bmp.c, thus add rules to compile these files at SPL stage when CONFIG_SPL_VIDEO is defined. Signed-off-by: Nikhil M Jain

[PATCH 3/9] cmd: Kconfig: Add necessary configs for splash screen at SPL

2023-03-13 Thread Nikhil M Jain
CONFIG_CMD_BMP and CONFIG_SPLASH_SCREEN enable's splash display at only u-boot proper. To enable splash display at SPL stage add SPL specific configs, which are SPL_CMD_BMP and SPL_SPLASH_SCREEN. Signed-off-by: Nikhil M Jain --- cmd/Kconfig | 17 + 1 file changed, 17

[PATCH 2/9] drivers: video: tidss: Kconfig: Configs to enable TIDSS at SPL

2023-03-13 Thread Nikhil M Jain
To enable tidss video driver only at SPL stage, add necessary config, CONFIG_SPL_VIDEO_TIDSS. Signed-off-by: Nikhil M Jain --- drivers/video/tidss/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/video/tidss/Kconfig b/drivers/video/tidss/Kconfig index

[PATCH 1/9] drivers: video: Kconfig: Necessary configs for video at SPL

2023-03-13 Thread Nikhil M Jain
Add necessary Kconfigs to enable video driver and enable splash screen at spl stage. CONFIG_SPL_VIDEO enables all necessary configs enabled by CONFIG_VIDEO at spl stage. CONFIG_SPL_SYS_WHITE_ON_BLACK allows displaying on black background at spl stage. These configs are specific to SPL and will

[PATCH 0/9] Enable splash screen

2023-03-13 Thread Nikhil M Jain
To enable splash screen at SPL stage move video driver and splash screen framework at SPL, which will bring up image on display very quickly and thus have early display support in SPL. Change in V2 - Removed artifacts from bad patch apply. Nikhil M Jain (9): drivers: video: Kconfig: Necessary

Re: [PATCH v3] binman: bintool: Add support for tool directories

2023-03-13 Thread Neha Malcom Francis
Hi Simon On 11/03/23 07:17, Simon Glass wrote: Hi Neha, On Fri, 24 Feb 2023 at 03:51, Neha Malcom Francis wrote: Currently, bintool supports external compilable tools as single executable files. Adding support for git repos that can be used to run non-compilable scripting tools that cannot

Re: [RFC PATCH] binman: bintool: etype: Add support for ti-secure entry

2023-03-13 Thread Neha Malcom Francis
Hi Simon On 11/03/23 02:19, Simon Glass wrote: Hi, On Thu, 9 Mar 2023 at 21:35, Neha Malcom Francis wrote: Hi Andrew, Simon On 01/03/23 22:41, Andrew Davis wrote: On 2/28/23 9:10 AM, Simon Glass wrote: Hi Neha, On Tue, 28 Feb 2023 at 02:50, Neha Malcom Francis wrote: Hi Simon, On

Re: [PATCH] mmc: dw_mmc: reset controller after data error

2023-03-13 Thread Kever Yang
On 2023/3/13 22:58, Eugen Hristev wrote: From: Ziyuan Xu Per dw_mmc databook, it's recommended to reset the host controller if some data-related error occurred. Implement a reset mechanism. Signed-off-by: Ziyuan Xu Co-developed-by: Jason Zhu Signed-off-by: Jason Zhu

Re: [PATCH 11/12] rockchip: include: configs: Remove unused SDRAM_BANK_SIZE

2023-03-13 Thread Kever Yang
On 2023/3/14 08:38, Jonas Karlman wrote: Remove unused SDRAM_BANK_SIZE define. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- include/configs/evb_rk3328.h | 2 -- include/configs/evb_rk3399.h | 2 -- include/configs/pinebook-pro-rk3399.h

Re: [PATCH 10/12] rockchip: include: configs: Remove dangling comments

2023-03-13 Thread Kever Yang
On 2023/3/14 08:38, Jonas Karlman wrote: This removes dangling comments that no longer serve a purpose and has been left after conversion of defines to Kconfig option. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- include/configs/rk3128_common.h | 4

Re: [PATCH 08/12] rockchip: tinker-rk3288: Use common BOOT_TARGET_DEVICES

2023-03-13 Thread Kever Yang
On 2023/3/14 08:38, Jonas Karlman wrote: Building U-Boot for Tinker Board with USB or NET Kconfig option disabled result in the following build error: In file included from include/configs/rk3288_common.h:29, from include/configs/tinker_rk3288.h:14,

Re: [PATCH 09/12] mmc: rockchip_dw_mmc: Fix get_mmc_clk return value

2023-03-13 Thread Kever Yang
On 2023/3/14 08:38, Jonas Karlman wrote: The get_mmc_clk ops is expected to set a clock rate and return the configured rate as an unsigned value. However, if clk_set_rate fails, e.g. using a fixed rate clock, a negative error value is returned. The mmc core will treat this as a valid unsigned

Re: [PATCH 07/12] rockchip: rk3588: Add boot device detection

2023-03-13 Thread Kever Yang
On 2023/3/14 08:38, Jonas Karlman wrote: Enable SPL on RK3588 to detect which device it was booted from. Fixes use of same-as-spl in u-boot,spl-boot-order prop. Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/mach-rockchip/rk3588/rk3588.c | 7 +++

Re: [PATCH 06/12] rockchip: rk3588-rock-5b: Fix sdmmc boot

2023-03-13 Thread Kever Yang
On 2023/3/14 08:38, Jonas Karlman wrote: Running U-Boot from a SD-card on ROCK 5 Model B fails to load atf using DMA and prints debug_uart messages. U-Boot SPL 2023.04-rc3 (Mar 12 2023 - 00:30:16 +) Trying to boot from MMC1 ## Checking hash(es) for config config-1 ...

Re: [PATCH 05/12] clk: rockchip: rk3588: Fix clk_aux16m in clock driver

2023-03-13 Thread Kever Yang
On 2023/3/14 08:38, Jonas Karlman wrote: The rate and error value is not returned for aux16m clocks, fix this. Fixes: 7a474df74023 ("clk: rockchip: Add rk3588 clk support") Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever --- drivers/clk/rockchip/clk_rk3588.c | 4

Re: [PATCH 03/12] rockchip: rk3568-rock-3a: Sync device tree from linux

2023-03-13 Thread Kever Yang
On 2023/3/14 08:38, Jonas Karlman wrote: Running U-Boot from eMMC on a ROCK 3 Model A result in the following: U-Boot SPL 2023.04-rc3 (Mar 11 2023 - 17:24:48 +) Trying to boot from MMC1 Card did not respond to voltage select! : -110 spl: mmc init failed with error: -95 SPL:

Re: [PATCH 02/12] rockchip: rk3568: Fix boot device detection

2023-03-13 Thread Kever Yang
On 2023/3/14 08:38, Jonas Karlman wrote: The boot source node path for emmc is using the old sdhci name. Replace with correct mmc name and also add same-as-spl to boot order. Fixes: 0d61f8e5f1c0 ("rockchip: rk3568: add boot device detection") Signed-off-by: Jonas Karlman Reviewed-by: Kever

Re: [PATCH 01/12] rockchip: Fix early use of bootph props

2023-03-13 Thread Kever Yang
Hi Jonas, On 2023/3/14 08:38, Jonas Karlman wrote: Running U-Boot on a ROCK 3 Model A result in the following: No serial driver found resetting ... no sysreset ### ERROR ### Please RESET the board ### Replace bootph- props with u-boot,dm- props to fix this. Signed-off-by: Jonas

Re: [PATCH] rockchip: sdhci: rk3568: bypass DLL when clk <= 52 MHz

2023-03-13 Thread Kever Yang
On 2023/3/9 09:28, Vasily Khoruzhick wrote: For Rockchip platform, DLL bypass bit and start bit need to be set if DLL is not locked. With this change applied eMMC in my NanoPi R5S can run at 52 MHz. Based on linux commit b75a52b0dda3 ("mmc: sdhci-of-dwcmshc: Update DLL and pre-change delay

RE: [PATCH 1/3] dm: adc: add iMX93 ADC support

2023-03-13 Thread Bough Chen
> -Original Message- > From: Luca Ellero > Sent: 2023年3月13日 21:06 > To: u-boot@lists.denx.de; sba...@denx.de; feste...@gmail.com; dl-uboot-imx > ; luca.ell...@brickedbrain.com; Ye Li ; > Peng Fan ; Bough Chen > Cc: Luca Ellero > Subject: [PATCH 1/3] dm: adc: add iMX93 ADC support > >

[ANN] U-Boot v2023.04-rc4 released

2023-03-13 Thread Tom Rini
Hey all, It's the scheduled day for -rc4, and once again it's the end of my day. The delta between -rc3 and -rc4 is about what I would hope for. I still hope to see a PR to fix m68k, and to address some mpc8xx problems as well, but other than that I do hope for a quiet cycle. The next branch

[PATCH 09/12] mmc: rockchip_dw_mmc: Fix get_mmc_clk return value

2023-03-13 Thread Jonas Karlman
The get_mmc_clk ops is expected to set a clock rate and return the configured rate as an unsigned value. However, if clk_set_rate fails, e.g. using a fixed rate clock, a negative error value is returned. The mmc core will treat this as a valid unsigned rate and tries to configure a divider based

[PATCH 11/12] rockchip: include: configs: Remove unused SDRAM_BANK_SIZE

2023-03-13 Thread Jonas Karlman
Remove unused SDRAM_BANK_SIZE define. Signed-off-by: Jonas Karlman --- include/configs/evb_rk3328.h | 2 -- include/configs/evb_rk3399.h | 2 -- include/configs/pinebook-pro-rk3399.h | 2 -- include/configs/pinephone-pro-rk3399.h | 2 -- include/configs/puma_rk3399.h

[PATCH 12/12] rockchip: Convert rk35xx to use standard boot

2023-03-13 Thread Jonas Karlman
Imply use of BOOTSTD and OF_LIBFDT_OVERLAY on RK3568 and RK3588. Drop the use of scripts and rely on standard boot for all operation. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/Kconfig | 6 ++ include/configs/rk3568_common.h | 9 +++-- include/configs/rk3588_common.h | 9

[PATCH 10/12] rockchip: include: configs: Remove dangling comments

2023-03-13 Thread Jonas Karlman
This removes dangling comments that no longer serve a purpose and has been left after conversion of defines to Kconfig option. Signed-off-by: Jonas Karlman --- include/configs/rk3128_common.h | 4 include/configs/rk3188_common.h | 5 - include/configs/rk3288_common.h | 2 --

[PATCH 06/12] rockchip: rk3588-rock-5b: Fix sdmmc boot

2023-03-13 Thread Jonas Karlman
Running U-Boot from a SD-card on ROCK 5 Model B fails to load atf using DMA and prints debug_uart messages. U-Boot SPL 2023.04-rc3 (Mar 12 2023 - 00:30:16 +) Trying to boot from MMC1 ## Checking hash(es) for config config-1 ... OK ## Checking hash(es) for Image atf-1 ...

[PATCH 08/12] rockchip: tinker-rk3288: Use common BOOT_TARGET_DEVICES

2023-03-13 Thread Jonas Karlman
Building U-Boot for Tinker Board with USB or NET Kconfig option disabled result in the following build error: In file included from include/configs/rk3288_common.h:29, from include/configs/tinker_rk3288.h:14, from include/config.h:3, from

[PATCH 05/12] clk: rockchip: rk3588: Fix clk_aux16m in clock driver

2023-03-13 Thread Jonas Karlman
The rate and error value is not returned for aux16m clocks, fix this. Fixes: 7a474df74023 ("clk: rockchip: Add rk3588 clk support") Signed-off-by: Jonas Karlman --- drivers/clk/rockchip/clk_rk3588.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 07/12] rockchip: rk3588: Add boot device detection

2023-03-13 Thread Jonas Karlman
Enable SPL on RK3588 to detect which device it was booted from. Fixes use of same-as-spl in u-boot,spl-boot-order prop. Signed-off-by: Jonas Karlman --- arch/arm/mach-rockchip/rk3588/rk3588.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3588/rk3588.c

[PATCH 04/12] clk: rockchip: rk3568: Fix reset handler

2023-03-13 Thread Jonas Karlman
From: Peter Geis The reset handler for rk3568 is missing its private data. This leads to an abort when a reset is triggered. => reset resetting ... "Synchronous Abort" handler, esr 0x9645 elr: 00a2bc04 lr : 00a2bbd4 (reloc) elr: eff9bc04 lr :

[PATCH 03/12] rockchip: rk3568-rock-3a: Sync device tree from linux

2023-03-13 Thread Jonas Karlman
Running U-Boot from eMMC on a ROCK 3 Model A result in the following: U-Boot SPL 2023.04-rc3 (Mar 11 2023 - 17:24:48 +) Trying to boot from MMC1 Card did not respond to voltage select! : -110 spl: mmc init failed with error: -95 SPL: failed to boot from all boot devices ### ERROR

[PATCH 02/12] rockchip: rk3568: Fix boot device detection

2023-03-13 Thread Jonas Karlman
The boot source node path for emmc is using the old sdhci name. Replace with correct mmc name and also add same-as-spl to boot order. Fixes: 0d61f8e5f1c0 ("rockchip: rk3568: add boot device detection") Signed-off-by: Jonas Karlman --- arch/arm/dts/rk356x-u-boot.dtsi| 2 +-

[PATCH 01/12] rockchip: Fix early use of bootph props

2023-03-13 Thread Jonas Karlman
Running U-Boot on a ROCK 3 Model A result in the following: No serial driver found resetting ... no sysreset ### ERROR ### Please RESET the board ### Replace bootph- props with u-boot,dm- props to fix this. Signed-off-by: Jonas Karlman --- arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi

[PATCH 00/12] rockchip: Fixes for RK3568 and RK3588 and cleanup

2023-03-13 Thread Jonas Karlman
This series includes fixes mainly targeted at RK3568 and RK3588: Patch 1 reverts early use of new bootph props in master branch. Patch 2-3 fixes emmc boot on rk3568-rock-3a. Patch 4 fixes reset handler on rk3568. Patch 5 fixes missing return value in rk3588 clk driver. Patch 6-7 fixes sdmmc boot

[PATCH v3 00/23] CONFIG_IS_ENABLED vs IS_ENABLED

2023-03-13 Thread Troy Kisky
This patch set gets ready to checks the usage of CONFIG_IS_ENABLED/IS_ENABLED. After the set has been applied, you can delete test/usage_of_is_enabled_todo.txt and run test/usage_of_is_enabled_commit.sh The script test/usage_of_is_enabled_check.sh checks for new questionable uses of

[PATCH v3 20/23] arm: mach-imx: use CONFIG_$(SPL_)SATA instead of CONFIG_SATA

2023-03-13 Thread Troy Kisky
This avoid an error with enable_sata_clock when defined(CONFIG_SATA) is changed to CONFIG_IS_ENABLED(SATA). Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v1) arch/arm/mach-imx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v3 23/23] CI: add test/usage_of_is_enabled_check.sh

2023-03-13 Thread Troy Kisky
Add script usage_of_is_enabled_check to print any configs that use CONFIG_IS_ENABLED instead of IS_ENABLED and vice versa. Add usage_of_is_enabled_commit.sh to generate commits to fix the above issues. You can remove entries from test/usage_of_is_enabled_todo.txt or the entire file and then run

[PATCH v3 21/23] x86: cpu: i386: cpu: only set pci_ram_top if CONFIG_IS_ENABLED(PCI)

2023-03-13 Thread Troy Kisky
This avoids an error when ifdef CONFIG_PCI is changed to if CONFIG_IS_ENABLED(PCI) Signed-off-by: Troy Kisky --- (no changes since v2) Changes in v2: - use an accessor function gd_set_pci_ram_top arch/x86/cpu/i386/cpu.c | 2 +- include/asm-generic/global_data.h | 6 ++ 2 files

[PATCH v3 22/23] power: pmic: add dm style definitions if not CONFIG_IS_ENABLED(POWER_LEGACY)

2023-03-13 Thread Troy Kisky
This avoids an error in converting to CONFIG_IS_ENABLED(DM_PMIC). Many boards SPL code needs these definitions to compile, even if the functions are not linked. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v1) include/power/pmic.h | 2 +- 1 file changed, 1

[PATCH v3 19/23] wandboard: use CONFIG_IS_ENABLED(SATA) instead of ifdef CONFIG_SATA

2023-03-13 Thread Troy Kisky
Prepare for linking setup_sata only when CONFIG_SATA/CONFIG_SPL_SATA is defined. Signed-off-by: Troy Kisky --- (no changes since v2) Changes in v2: - new in series board/wandboard/wandboard.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/board/wandboard/wandboard.c

[PATCH v3 18/23] solidrun: mx6cuboxi: use CONFIG_IS_ENABLED(SATA) instead of ifdef CONFIG_SATA

2023-03-13 Thread Troy Kisky
Prepare for linking setup_sata only when CONFIG_SATA/CONFIG_SPL_SATA is defined. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- Changes in v3: - Rebase on Simon's s/CMD_SATA/SATA/ change - commit message updated Changes in v2: - use normal if, not preprocessor

[PATCH v3 17/23] ns16550: match when to define bdf with uart code

2023-03-13 Thread Troy Kisky
When switching defined(CONFIG_PCI) to CONFIG_IS_ENABLED(PCI) bdf is no longer accessible. So add preprocessor protection to avoid access. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - changed condition of when to include field bdf - added

[PATCH v3 16/23] freescale: common: pfuze: define pfuze_mode_init only if defined(CONFIG_DM_PMIC)

2023-03-13 Thread Troy Kisky
pfuze_mode_init calls pmic_reg_read which is only available from obj-$(CONFIG_$(SPL_TPL_)DM_PMIC) += pmic-uclass.o Prepare for conversion of defined(CONFIG_DM_PMIC) to CONFIG_IS_ENABLED(DM_PMIC). Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v1)

[PATCH v3 14/23] fdt_support: always define fdt_fixup_mtdparts

2023-03-13 Thread Troy Kisky
SPL code wants fdt_fixup_mtdparts defined as a NOP when the function isn't linked in. Prepare for ifdef CONFIG_OF_LIBFDT being converted to if CONFIG_IS_ENABLED(OF_LIBFDT) Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v1) include/fdt_support.h | 23

[PATCH v3 15/23] m53menlo: define ft_board_setup only if CONFIG_IS_ENABLED(OF_LIBFDT)

2023-03-13 Thread Troy Kisky
The function ft_board_setup calls do_fixup_by_path_string which is only available on CONFIG_IS_ENABLED(OF_LIBFDT). This prepares for the conversion. ft_board_setup is only called from image-fdt which is linked by obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += image-fdt.o Signed-off-by: Troy Kisky

[PATCH v3 13/23] ofnode: fdt_support definitions needed if OF_CONTROL is enabled

2023-03-13 Thread Troy Kisky
With the use of CONFIG_IS_ENABLED in code, instead of at the preprocessor level, these defines are still needed if OF_CONTROL is enabled. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v1) include/fdt_support.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v3 12/23] config_distro_bootcmd: remove booting environment variables from SPL environment

2023-03-13 Thread Troy Kisky
SPL environments don't need commands that they can never use. Avoid errors with CONFIG_IS_ENABLED conversions by skipping them now. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v1) include/config_distro_bootcmd.h | 23 +++ 1 file changed, 23

[PATCH v3 11/23] x86: cpu: qemu: qemu: remove SPL use with CONFIG_IS_ENABLED

2023-03-13 Thread Troy Kisky
CONFIG_IS_ENABLED(SPL_X86_32BIT_INIT) would check for CONFIG_SPL_SPL_X86_32BIT_INIT for SPL builds Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v1) arch/x86/cpu/qemu/qemu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v3 09/23] tools: prevent CONFIG_IS_ENABLED errors by including linux/kconfig.h

2023-03-13 Thread Troy Kisky
We need to include in order to include files that use CONFIG_IS_ENABLED. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- (no changes since v2) Changes in v2: - include linux/kconfig.h from tools/Makefile - as suggested by Simon tools/Makefile | 1 + 1 file

[PATCH v3 10/23] tools: Makefile: prepare for CONFIG_IS_ENABLED changes by adding CONFIG_TOOLS_xxx

2023-03-13 Thread Troy Kisky
CONFIG_IS_ENABLED(FIT_SIGNATURE) will check for CONFIG_TOOLS_FIT_SIGNATURE. So define it now in preparation. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v1) tools/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/Makefile b/tools/Makefile index

[PATCH v3 08/23] watchdog: add and use Kconfig HAS_WATCHDOG_RUNNING

2023-03-13 Thread Troy Kisky
defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) is a common pattern. Create an new config symbol HAS_WATCHDOG_RUNNING to express it. Signed-off-by: Troy Kisky --- Changes in v3: new patch to address Tom's concerns arch/arm/mach-omap2/boot-common.c | 5 ++---

[PATCH v3 06/23] lib: sha256: prepare for CONFIG_IS_ENABLED changes

2023-03-13 Thread Troy Kisky
We need to include in order to include files that use CONFIG_IS_ENABLED. TO prepare for that don't pet the watchdog when USE_HOSTCC is defined. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - delay include of linux/kconfig.h to do from Makefile -

[PATCH v3 07/23] lib: sha512: prepare for CONFIG_IS_ENABLED changes

2023-03-13 Thread Troy Kisky
We need to include in order to include files that use CONFIG_IS_ENABLED. TO prepare for that don't pet the watchdog when USE_HOSTCC is defined. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - delay include of linux/kconfig.h to do from Makefile -

[PATCH v3 05/23] lib: sha1: prepare for CONFIG_IS_ENABLED changes

2023-03-13 Thread Troy Kisky
We need to include in order to include files that use CONFIG_IS_ENABLED. TO prepare for that don't pet the watchdog when USE_HOSTCC is defined. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - delay include of linux/kconfig.h to do from Makefile -

[PATCH v3 04/23] lib: md5: prepare for CONFIG_IS_ENABLED changes

2023-03-13 Thread Troy Kisky
We need to include in order to include files that use CONFIG_IS_ENABLED. TO prepare for that don't pet the watchdog when USE_HOSTCC is defined. Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - delay include of linux/kconfig.h to do from Makefile -

[PATCH v3 02/23] cmd: nvedit: remove error check, handle with Kconfig

2023-03-13 Thread Troy Kisky
Avoid error messages when SPL,TPL,VPL build don't have the environment options of the main build. This is needed when defined(CONFIG_ENV_IS_IN_xxx) is changed to CONFIG_IS_ENABLED(ENV_IS_IN_xxx). Signed-off-by: Troy Kisky --- Changes in v3: remove error entirely and prevent with Kconfig

[PATCH v3 03/23] lib: crc32: prepare for CONFIG_IS_ENABLED changes

2023-03-13 Thread Troy Kisky
We need to include in order to include files that use CONFIG_IS_ENABLED. TO prepare for that be more direct with using defined(USE_HOSTCC). Signed-off-by: Troy Kisky Reviewed-by: Simon Glass --- (no changes since v2) Changes in v2: - delay include of linux/kconfig.h to do from Makefile - as

[PATCH v3 01/23] kconfig: add IS_ENABLED_NOCHECK to bypass usage_of_is_enabled_check

2023-03-13 Thread Troy Kisky
This is for use when a config with an SPL version needs to always check the non-spl verion of the config. It avoids error messages from CI test script usage_of_is_enabled_check.sh Signed-off-by: Troy Kisky --- (no changes since v2) Changes in v2: - new patch include/linux/kconfig.h | 5 +

Re: [PATCH v8 13/24] rockchip: rk3288: syscon_rk3288: store syscon platdata in regmap

2023-03-13 Thread Johan Jonker
On 3/13/23 18:46, John Keeping wrote: > On Mon, Mar 13, 2023 at 05:53:20PM +0100, Johan Jonker wrote: >> On 3/13/23 14:26, John Keeping wrote: >>> On Mon, Mar 13, 2023 at 01:30:57AM +0100, Johan Jonker wrote: The Rockchip SoC rk3288 has 2 types of device trees floating around. A 64bit

Re: Please pull u-boot-dm/next

2023-03-13 Thread Tom Rini
On Sun, Mar 12, 2023 at 09:10:19PM -0600, Simon Glass wrote: > Hi Tom, > > This is for the -next branch > > > https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/15568 > > The following changes since commit bcf343146ff365a88481b9a80920ed146c6dee5b: > > Merge tag 'dm-next-9mar23'

Re: [RFC PATCH 00/16] arm: Add Rockchip RK3588 support

2023-03-13 Thread Jonas Karlman
On 2023-03-13 16:49, Eugen Hristev wrote: > On 3/13/23 17:34, Mark Kettenis wrote: >>> Date: Mon, 13 Mar 2023 17:21:05 +0200 >>> From: Eugen Hristev >>> >>> On 3/13/23 17:07, Mark Kettenis wrote: > Date: Mon, 13 Mar 2023 16:21:36 +0200 > From: Eugen Hristev > > On 3/13/23 12:00,

Re: [PATCH 1/1] compulab: imx8mm-cl-iot-gate: Fix some function declarations in ddr.h

2023-03-13 Thread Fabio Estevam
On Mon, Mar 13, 2023 at 3:26 PM Ying-Chun Liu (PaulLiu) wrote: > > We have a few places here that the function declarations do not > match their prototypes, correct them. > > Signed-off-by: Ying-Chun Liu (PaulLiu) > Cc: Tom Rini > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: NXP i.MX U-Boot

Re: [PATCH 1/1] compulab: imx8mm-cl-iot-gate: Fix some function declarations in ddr.h

2023-03-13 Thread Tom Rini
On Tue, Mar 14, 2023 at 02:26:20AM +0800, Ying-Chun Liu (PaulLiu) wrote: > We have a few places here that the function declarations do not > match their prototypes, correct them. > > Signed-off-by: Ying-Chun Liu (PaulLiu) > Cc: Tom Rini > Cc: Stefano Babic > Cc: Fabio Estevam > Cc: NXP i.MX

[PATCH 1/1] compulab: imx8mm-cl-iot-gate: Fix some function declarations in ddr.h

2023-03-13 Thread Ying-Chun Liu (PaulLiu)
We have a few places here that the function declarations do not match their prototypes, correct them. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- board/compulab/imx8mm-cl-iot-gate/ddr/ddr.h | 4 ++-- 1 file changed, 2

[PATCH 0/1] compulab: imx8mm-cl-iot-gate: Fix some function declarations in ddr.h

2023-03-13 Thread Ying-Chun Liu (PaulLiu)
We have a few places here that the function declarations do not match their prototypes, correct them. This bug was found by Tom. https://lists.denx.de/pipermail/u-boot/2023-March/511786.html And we fixes this bug by modifying ddr.h instead. Ying-Chun Liu (PaulLiu) (1): compulab:

Re: [PATCH v8 13/24] rockchip: rk3288: syscon_rk3288: store syscon platdata in regmap

2023-03-13 Thread John Keeping
On Mon, Mar 13, 2023 at 05:53:20PM +0100, Johan Jonker wrote: > On 3/13/23 14:26, John Keeping wrote: > > On Mon, Mar 13, 2023 at 01:30:57AM +0100, Johan Jonker wrote: > >> The Rockchip SoC rk3288 has 2 types of device trees floating around. > >> A 64bit reg size when synced from Linux and a 32bit

Re: Pull request for efi-2023-04-rc4

2023-03-13 Thread Tom Rini
On Mon, Mar 13, 2023 at 03:31:01PM +0100, Heinrich Schuchardt wrote: > The following changes since commit 6c1cdf158c4f3ccc8c5f9552f049a3386899dcd2: > > Merge tag 'dm-pull-10mar23' of > https://source.denx.de/u-boot/custodians/u-boot-dm (2023-03-10 16:01:52 > -0500) > > are available in the

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

2023-03-13 Thread Tom Rini
On Sat, Mar 11, 2023 at 12:01:21AM +0100, Marek Vasut wrote: > Two minimal Kconfig/Makefile fixes for USB below. > > The following changes since commit b08ffdffdce95e267e782366f4a77bf6b5537b28: > > Merge https://source.denx.de/u-boot/custodians/u-boot-marvell (2023-03-06 > 14:56:05 -0500) >

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

2023-03-13 Thread Tom Rini
On Sat, Mar 11, 2023 at 12:00:07AM +0100, Marek Vasut wrote: > Assorted Renesas fixes below, namely MMC clocking breakage fix, clock > Kconfig fix, pin control unused symbols removal, and sysinfo fix and > enablement on now fixed platforms. > > The following changes since commit

Re: [PATCH v8 13/24] rockchip: rk3288: syscon_rk3288: store syscon platdata in regmap

2023-03-13 Thread Johan Jonker
On 3/13/23 14:26, John Keeping wrote: > On Mon, Mar 13, 2023 at 01:30:57AM +0100, Johan Jonker wrote: >> The Rockchip SoC rk3288 has 2 types of device trees floating around. >> A 64bit reg size when synced from Linux and a 32bit for U-boot. >> A pre-probe function in the syscon class driver

Re: [PATCH 5/5] configs: ls208x: enable DM_SERIAL

2023-03-13 Thread Vladimir Oltean
On Tue, Feb 28, 2023 at 06:32:12PM +0200, Ioana Ciornei wrote: > Now that the DT nodes for the serial devices are in place for these > boards, enable DM_SERIAL in the associated configs. > > Signed-off-by: Ioana Ciornei > --- > configs/ls2088aqds_tfa_defconfig | 5 +++-- >

Re: [PATCH] watchdog: ftwdt010: return a previously deleted driver now ported to DM

2023-03-13 Thread Tom Rini
On Mon, Mar 13, 2023 at 06:26:01PM +0300, Sergei Antonov wrote: > On Mon, 13 Feb 2023 at 16:52, Sergei Antonov wrote: > > > > The ftwdt010 watchdog driver was deleted by > > commit 11232139e399 ("nds32: Remove the architecture") > > > > Return it to the codebase in a DM compatible form. Enable it

Re: [PATCH 3/5] arch: arm: dst: fsl-ls2080a.dts: sync serial nodes with Linux

2023-03-13 Thread Vladimir Oltean
On Tue, Feb 28, 2023 at 06:32:10PM +0200, Ioana Ciornei wrote: > Sync the serial nodes of the LS208XA RDB/QDS boards with their > representation in Linux. We also imported the clockgen and sysclk nodes > which are dependencies. > > Signed-off-by: Ioana Ciornei > --- Reviewed-by: Vladimir Oltean

Re: [PATCH 2/5] arch: arm: dst: fsl-ls2080a.dtsi: move the serial nodes under soc

2023-03-13 Thread Vladimir Oltean
On Tue, Feb 28, 2023 at 06:32:09PM +0200, Ioana Ciornei wrote: > Move the serial nodes under the soc node. No changes are made to the > nodes, just their location is changed. > > Signed-off-by: Ioana Ciornei > --- Small typo in the commit message here and in other patches: "dst" instead of

Re: [RFC PATCH 00/16] arm: Add Rockchip RK3588 support

2023-03-13 Thread Eugen Hristev
On 3/13/23 17:34, Mark Kettenis wrote: Date: Mon, 13 Mar 2023 17:21:05 +0200 From: Eugen Hristev On 3/13/23 17:07, Mark Kettenis wrote: Date: Mon, 13 Mar 2023 16:21:36 +0200 From: Eugen Hristev On 3/13/23 12:00, Jonas Karlman wrote: On 2023-03-13 09:42, Eugen Hristev wrote: On 3/13/23

Re: [PATCH 1/5] arch: arm: dst: fsl-ls2080a.dtsi: add an 'soc' node

2023-03-13 Thread Vladimir Oltean
On Tue, Feb 28, 2023 at 06:32:08PM +0200, Ioana Ciornei wrote: > The u-boot dts for these boards do not have an soc node, unlike its > Linux counterpart. This patch just adds the soc node as seen in Linux, > the next patches will move some nodes under it. > > Signed-off-by: Ioana Ciornei > ---

Re: [RFC PATCH 00/16] arm: Add Rockchip RK3588 support

2023-03-13 Thread Mark Kettenis
> Date: Mon, 13 Mar 2023 17:21:05 +0200 > From: Eugen Hristev > > On 3/13/23 17:07, Mark Kettenis wrote: > >> Date: Mon, 13 Mar 2023 16:21:36 +0200 > >> From: Eugen Hristev > >> > >> On 3/13/23 12:00, Jonas Karlman wrote: > >>> On 2023-03-13 09:42, Eugen Hristev wrote: > On 3/13/23 00:34,

Re: [PATCH] watchdog: ftwdt010: return a previously deleted driver now ported to DM

2023-03-13 Thread Sergei Antonov
On Mon, 13 Feb 2023 at 16:52, Sergei Antonov wrote: > > The ftwdt010 watchdog driver was deleted by > commit 11232139e399 ("nds32: Remove the architecture") > > Return it to the codebase in a DM compatible form. Enable it in > sandbox_defconfig to test compilability. > Another platform using

Re: [PATCH] sysinfo: gpio: fix loop over DT "revisions" array

2023-03-13 Thread Sean Anderson
On 3/10/23 05:58, Rasmus Villemoes wrote: > There can certainly be a lot more elements in the "revisions" (and > "names") arrays than there are gpios used to form the trinary number > we're searching for; we simply don't know the array size up-front. > > Nor do we need to, because the loop body

Re: [RFC PATCH 00/16] arm: Add Rockchip RK3588 support

2023-03-13 Thread Eugen Hristev
On 3/13/23 17:07, Mark Kettenis wrote: Date: Mon, 13 Mar 2023 16:21:36 +0200 From: Eugen Hristev On 3/13/23 12:00, Jonas Karlman wrote: On 2023-03-13 09:42, Eugen Hristev wrote: On 3/13/23 00:34, Jonas Karlman wrote: Hi Eugen, On 2023-03-08 09:57, Eugen Hristev wrote: On 1/29/23 11:04,

Re: [RFC PATCH 00/16] arm: Add Rockchip RK3588 support

2023-03-13 Thread Mark Kettenis
> Date: Mon, 13 Mar 2023 16:21:36 +0200 > From: Eugen Hristev > > On 3/13/23 12:00, Jonas Karlman wrote: > > On 2023-03-13 09:42, Eugen Hristev wrote: > >> On 3/13/23 00:34, Jonas Karlman wrote: > >>> Hi Eugen, > >>> > >>> On 2023-03-08 09:57, Eugen Hristev wrote: > On 1/29/23 11:04, Jonas

[PATCH] mmc: dw_mmc: reset controller after data error

2023-03-13 Thread Eugen Hristev
From: Ziyuan Xu Per dw_mmc databook, it's recommended to reset the host controller if some data-related error occurred. Implement a reset mechanism. Signed-off-by: Ziyuan Xu Co-developed-by: Jason Zhu Signed-off-by: Jason Zhu [eugen.hris...@collabora.com: modified a bit the variables

Re: [RFC PATCH 00/16] arm: Add Rockchip RK3588 support

2023-03-13 Thread Eugen Hristev
On 3/13/23 16:21, Eugen Hristev wrote: On 3/13/23 12:00, Jonas Karlman wrote: On 2023-03-13 09:42, Eugen Hristev wrote: On 3/13/23 00:34, Jonas Karlman wrote: Hi Eugen, On 2023-03-08 09:57, Eugen Hristev wrote: On 1/29/23 11:04, Jonas Karlman wrote: On 2023-01-27 14:21, Jagan Teki wrote:

next: Pull request efi-next-20230313

2023-03-13 Thread Heinrich Schuchardt
-efi.git tags/efi-next-20230313 for you to fetch changes up to 61a621054194216eefc1a6f5af0a63aa265bbaef: video: Add a note about the broken implementation (2023-03-13 13:53:01 +0100) Gitlab CI showed no issues: https://source.denx.de/u-boot/custodians/u-boot-efi/-/pipelines/15571

Re: [PATCH] apple_m1_defconfig: Bump CONFIG_LMB_MAX_REGIONS to 64

2023-03-13 Thread Mark Kettenis
is not set > +CONFIG_LMB_MAX_REGIONS=64 > > --- > base-commit: 6c1cdf158c4f3ccc8c5f9552f049a3386899dcd2 > change-id: 20230313-apple_m1_defconfig_lmb_max_regions-a18f5612d3c3 > > Best regards, > -- > Janne Grunau > >

Pull request for efi-2023-04-rc4

2023-03-13 Thread Heinrich Schuchardt
The following changes since commit 6c1cdf158c4f3ccc8c5f9552f049a3386899dcd2: Merge tag 'dm-pull-10mar23' of https://source.denx.de/u-boot/custodians/u-boot-dm (2023-03-10 16:01:52 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git

Re: [PATCH] pci: apple: Initialize only enabled ports

2023-03-13 Thread Mark Kettenis
node(of_port)) { > + if (!ofnode_is_enabled(of_port)) > + continue; > ret = apple_pcie_setup_port(pcie, of_port); > if (ret) { > dev_err(pcie->dev, "Port %d setup fail: %d\n", i, ret); > > --- > b

Re: [RFC PATCH 00/16] arm: Add Rockchip RK3588 support

2023-03-13 Thread Eugen Hristev
On 3/13/23 12:00, Jonas Karlman wrote: On 2023-03-13 09:42, Eugen Hristev wrote: On 3/13/23 00:34, Jonas Karlman wrote: Hi Eugen, On 2023-03-08 09:57, Eugen Hristev wrote: On 1/29/23 11:04, Jonas Karlman wrote: On 2023-01-27 14:21, Jagan Teki wrote: On Fri, 27 Jan 2023 at 05:13, Jonas

[PATCH 3/3] imx93_evk: defconfig: add adc support

2023-03-13 Thread Luca Ellero
iMX93 ADC features: - 4 channels - 12 bit resolution Signed-off-by: Luca Ellero --- configs/imx93_11x11_evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imx93_11x11_evk_defconfig b/configs/imx93_11x11_evk_defconfig index 477fb25807..fa929dd4ec 100644 ---

[PATCH 2/3] imx93_evk: add adc node to dts file

2023-03-13 Thread Luca Ellero
This node uses imx93_adc driver under drivers/adc. The node is added keeping dts file in sync with iMX9 evk Linux devicetree. Signed-off-by: Luca Ellero --- arch/arm/dts/imx93-11x11-evk.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx93-11x11-evk.dts

[PATCH 1/3] dm: adc: add iMX93 ADC support

2023-03-13 Thread Luca Ellero
This commit adds driver for iMX93 ADC. The driver is implemented using driver model and provides ADC uclass's methods for ADC single channel operations: - adc_start_channel() - adc_channel_data() - adc_stop() ADC features: - channels: 4 - resolution: 12-bit Signed-off-by:

[PATCH v3 0/3 RESEND] imx93: add ADC support

2023-03-13 Thread Luca Ellero
Add ADC support for NXP iMX93 Changes for v2: - add "static" to functions - enable ADC in iMX93 EVK Changes for v3: - split in 3 commits - keep dts file in sync with Linux devicetree - add comments to commits Luca Ellero (3): dm: adc: add iMX93 ADC support imx93_evk: add adc node to dts

RE: EXTERNAL - [PATCH v1 2/2] colibri_imx6: add default config with watchdog enabled

2023-03-13 Thread Aegerter Andreas LCPF-CH
Francesco Dolcini wrote: > On Fri, Mar 10, 2023 at 02:43:33PM +0100, Andreas Aegerter wrote: > > This config is based on colibri_imx6_defconfig and enables > > additionally the watchdog. The intend of the new config is that > > distros can use this in the future and the behaviour will not be

  1   2   >