[PATCH 0/6] Add u-boot splash screen support for AM62x

2023-01-23 Thread Nikhil M Jain
Enable TI Display Subsystem(TIDSS) driver as UCLASS_VIDEO. Enable splash screen support, to display TI logo during boot-up. Tested on microtips panel (Model No: 13-101HIEBCAF0-S) supported by AM62x. The changes in patch 4 depends on the patch sent for addition of am62x.env file to set environment

[PATCH 4/6] board: ti: am62x: am62x: Add splash screen env variables

2023-01-23 Thread Nikhil M Jain
Set splash screen related env variables. Default splash source is set to mmc where user is expected to keep bmp in compressed format with name ti.gz on first partition of mmc. Splash file will be uncompressed to DDR at address 0x8200 and splash position is set to middle of screen. Signed-off-

[PATCH 1/6] drivers: core: ofnode: Add panel timing decode.

2023-01-23 Thread Nikhil M Jain
ofnode_decode_display_timing supports reading timing parameters from subnode of display-timings node, for displays supporting multiple resolution, in case if a display supports single resolution, it fails reading directly from display-timings node, to support it ofnode_decode_panel_timing is added.

[PATCH 5/6] board: ti: am62x: evm: Add splash screen support

2023-01-23 Thread Nikhil M Jain
Splash screen function needs splash source information to load image and display it, splash_location provides the necessary info, Set default_splash_location to MMC at partition 1:1. Probe DSS for splash screen display. Signed-off-by: Nikhil M Jain --- board/ti/am62x/evm.c | 31 +

[PATCH 2/6] drivers: video: simple_panel: make simple panel independent of backlight

2023-01-23 Thread Nikhil M Jain
To support boards which don't need backlight control for displays, uclass_get_device_by_phandle(UCLASS_PANEL_BACKLIGHT, dev, "backlight", &priv->backlight); returns ENOENT which can be overlooked. Signed-off-by: Nikhil M Jain --- drivers/video/simple_panel.c | 7 +-- 1 file changed, 5 insert

[PATCH 3/6] drivers: video: tidss: TIDSS video driver support for AM62x

2023-01-23 Thread Nikhil M Jain
Added tidss video driver support which enables display on oldi panel using AM62x, it creates a simple pipeline framebuffer==>vidl1==>ovr1==>vp1==>oldi_panel and calculates clock rates for panel from panel node in device tree. To compile TIDSS when user sets CONFIG_VIDEO_TIDSS add rule in Makefile.

[PATCH 6/6] tools: logos: Add TI logo files

2023-01-23 Thread Nikhil M Jain
The default splashfile name saved is ti.gz. User can use these logos to test splash screen. Signed-off-by: Nikhil M Jain --- tools/logos/ti.bmp | Bin 0 -> 447258 bytes tools/logos/ti.gz | Bin 0 -> 19604 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 tools/logos/ti.

Re: [RFC PATCH 1/1] efi_loader: get rid of ad-hoc EFI subsystem init

2023-01-23 Thread Ilias Apalodimas
Hi Simon, Heinrich On Fri, Jan 20, 2023 at 03:11:13PM -0700, Simon Glass wrote: > Hi Heinrich, > > On Fri, 20 Jan 2023 at 13:36, Heinrich Schuchardt wrote: > > > > On 1/20/23 20:19, Simon Glass wrote: > > > Hi, > > > > > > On Fri, 20 Jan 2023 at 06:03, Heinrich Schuchardt > > > wrote: > > >> >

[PATCH 00/41] imx: i.MX9 update

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan This patchset includes updates mainly for i.MX9, such as Clock, Memory, Parts, Low drive mode, DDR, ELE, Container. Jacky Bai (1): ddr: imx8ulp: Update the ddr init flow Peng Fan (29): power: pmic: pca9450: support pca9451a imx9: imx93_evk: drop unused macro imx9: imx93_e

[PATCH 01/41] power: pmic: pca9450: support pca9451a

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Support NXP pca9451a Signed-off-by: Peng Fan --- drivers/power/pmic/pca9450.c | 1 + include/power/pca9450.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/power/pmic/pca9450.c b/drivers/power/pmic/pca9450.c index a186edc08da..3c4f5207e14 100644 --- a/drivers

[PATCH 02/41] imx9: imx93_evk: drop unused macro

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Drop unused macro Signed-off-by: Peng Fan --- include/configs/imx93_evk.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/imx93_evk.h b/include/configs/imx93_evk.h index 7b7bef3ca75..2705587a015 100644 --- a/include/configs/imx93_evk.h +++ b/include/configs/

[PATCH 03/41] imx9: imx93_evk: enable CONFIG_WDT

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Without this config, there is boot error: Error binding ulp_wdt driver Signed-off-by: Peng Fan --- 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 64da123c372..53ab

[PATCH 04/41] arm: dts: imx93: add tmu

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Add tmu nodes and thermal zone Signed-off-by: Peng Fan --- arch/arm/dts/imx93.dtsi | 47 + 1 file changed, 47 insertions(+) diff --git a/arch/arm/dts/imx93.dtsi b/arch/arm/dts/imx93.dtsi index 28026ccecc8..852fd02cd70 100644 --- a/arch/ar

[PATCH 07/41] imx9: use parameter freq when set_arm_clk

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan The freq parameter was ignored, should use it when configuring ARM PLL Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx9/clock.c b/arch/arm/mach-imx/imx9/clock.c index 7d3a4c01333

[PATCH 09/41] imx9: simplify clk settings

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Simplify the clk root settings with an array Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/clock.h | 6 arch/arm/mach-imx/imx9/clock.c | 38 +++--- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/arch/arm/include/as

[PATCH 18/41] imx9: allow to bootaux Mcore with input address

2023-01-23 Thread Peng Fan (OSS)
From: Ye Li Currently bootaux only supports to boot M33 core from TCM. Since ATF has changed to use x2 parameter for M33 image address, update the bootaux command to use input address, so we can support boot from any possilbe address like TCM, DDR, Flexspi NOR. Reviewed-by: Peng Fan Signed-off-

[PATCH 19/41] imx8ulp: build ahab

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan The ahab was missed to be compiled, so add it back. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8ulp/Kconfig | 5 + arch/arm/mach-imx/imx8ulp/Makefile | 1 + 2 files changed, 6 insertions(+) diff --git a/arch/arm/mach-imx/imx8ulp/Kconfig b/arch/arm/mach-imx/imx8ulp/K

[PATCH 17/41] imx9: imx93_evk: add low drive mode support on 11x11 EVK

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Add a static u-boot config for i.MX93 low drive mode support. When low drive mode is enabled, VDD_SOC is set to 0.75V. Bus clocks, A55 core clock (900Mhz), DDR clock (1866MTS), and some peripherals clocks (USDHC/FLEXSPI/PDM/DISP_PIX/CAM_PIX) must decrease to meet max frequencies in

[PATCH 22/41] imx: ele_api: Add get_events API

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Add get_events API to retrieve any singular events that has occurred since the FW has started from sentinel Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/ele_api.h | 2 ++ drivers/misc/sentinel/ele_api.c | 45 + 2 files changed, 47 in

[PATCH 23/41] imx: ahab: Get and decode AHAB events

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan For ahab_status command, support to get and decode AHAB events Also update code to use new macros Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/ele_api.h | 114 +++-- arch/arm/mach-imx/ele_ahab.c| 295 +--- ar

[PATCH 08/41] imx9: correct getting LPI2C clk

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan LPI2C_CLK_ROOT should be used instead of LPUART_CLK_ROOT for i2c Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx9/clock.c b/arch/arm/mach-imx/imx9/clock.c index f6021502b3d..a0ef

[PATCH 25/41] imx: ele_ahab: Add ahab_sec_fuse_prog command

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Add ahab_sec_fuse_prog command to support burn secure fuse. Before running the command, user needs to sign the fuse container in format mentioned in ELE API and have loaded the container to specified address passed to ahab_sec_fuse_prog Signed-off-by: Ye Li Signed-off-by: Peng Fa

[PATCH 27/41] imx: s4mu: Update MU TR registers count

2023-01-23 Thread Peng Fan (OSS)
From: Ye Li According to SRM, the Sentinel MU has 8 TR and 4 RR registers. All of them are used for ELE message. So update TR count to 8 and fix a typo in receive msg Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/misc/sentinel/ele_mu.c | 4 ++-- 1 file change

[PATCH 29/41] imx: spl_imx_romapi: Workaround loading to OCRAM ECC region

2023-01-23 Thread Peng Fan (OSS)
From: Ye Li ROM API has a limitation that ROM valid access range does not include the OCRAM ECC 64KB on i.MX8MP. When loading image from nand, the spl_load_fit_image will handle the page unaligned access. In worst case, it requires to read to more 2 pages. For ATF on iMX8MP, it default address is

[PATCH 31/41] ddr: imx8m: Fix DDR inline ECC scruber configuration

2023-01-23 Thread Peng Fan (OSS)
From: Ye Li The ECC scruber setting is incorrect and decreases the DDR performance in ECC enabled mode. Detail changes: -Before, scrub_burst was 0; this is not allowed per SNPS umctl2 spec. Set to "2" to align with DXL whichw as found to be most optimal setting -Before, scrub_interval was set t

[PATCH 32/41] ddr: imx8ulp: Update the ddr init flow

2023-01-23 Thread Peng Fan (OSS)
From: Jacky Bai Update the ddr init flow to support LPDDR3 and PLL bypass mode. Reviewed-by: Ye Li Signed-off-by: Jacky Bai Signed-off-by: Peng Fan --- drivers/ddr/imx/imx8ulp/ddr_init.c | 55 +++--- 1 file changed, 43 insertions(+), 12 deletions(-) diff --git a/driv

[PATCH 33/41] ddr: imx9: Add workaround for DDRPHY rank-to-rank errata

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan According to DDRPHY errata, the Rank-to-Rank Spacing and tphy_rdcsgap specification does not include the Critical Delay Difference (CDD) to properly define the required rank-to-rank read command spacing after executing PHY training firmware. Following the errata workaround, at the

[PATCH 20/41] imx: rename s400 api to ele

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan The NXP Public API Name is ele, not AHAB, AHAB is for secure boot or ELE AHAB for ELE secure boot. So update code to reflect that. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/ele_api.h | 60 +++ arch/arm/include/asm/mach-imx/s400_api.h | 60 ---

[PATCH 35/41] thermal: imx_tmu: Update TMU driver to support iMX93

2023-01-23 Thread Peng Fan (OSS)
From: Ye Li The TMU used on iMX93 is IP revision 2.1 which is different with previous revision used on iMX8MQ. So add a new FLAG V4 for this revision to distinguish the operations. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/thermal/Kconfig | 6 +-- driv

[PATCH 37/41] imx9: print temperature

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Print tempeature for i.MX93 Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 17 + configs/imx93_11x11_evk_defconfig| 2 ++ configs/imx93_11x11_evk_ld_defconfig | 2 ++ 3 files changed, 21 insertions(+) diff --git a/arch/arm/mach-imx/imx9

[PATCH 41/41] imx9: support i.MX93 9x9 QSB board

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Support i.MX93 9x9 Quick Start Board, UART/SD/MMC/I2C supported. Boot Log as below: U-Boot SPL 2023.01-rc3-00069-g7c3dea52355-dirty (Dec 14 2022 - 11:46:43 +0800) SOC: 0xa0009300 LC: 0x40010 M33 prepare ok Normal Boot Trying to boot from BOOTROM Boot Stage: Primary boot image offs

[PATCH 39/41] imx8: ahab: use common code

2023-01-23 Thread Peng Fan (OSS)
From: Ye Li Use common interfaces for AHAB authentication operations. Because i.MX8/8ULP/93 could share some common codes for AHAB and SPL container authentication Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/ahab.c | 129 ++-- arch/arm

[PATCH 40/41] imx: parse_container: use malloc for container processing

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan The container may have image which conflicts with spl_get_load_buffer address, then there are processing failures. So use malloc instead of spl_get_load_buffer. Signed-off-by: Peng Fan --- arch/arm/mach-imx/parse-container.c | 37 +++-- 1 file changed, 24

[PATCH 06/41] imx9: add more PLL settings

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Add more PLL settings for A55 and Display Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/clock.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/imx9/clock.c b/arch/arm/mach-imx/imx9/clock.c index 51aa259aa05..7d3a4c01333 100644 --- a/arch/arm/mach-

[PATCH 26/41] imx9: Print ELE FW version

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Print ELE FW version in uboot log Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c index 30361ccecd1..9ce4abf43e1 100644 --- a/ar

Re: [PATCH] odroid: add CROS_EC to odroid_defconfig

2023-01-23 Thread Peter Robinson
On Fri, Jan 20, 2023 at 11:17 PM Joost van Zwieten wrote: > > As of commit e44d7e73fe ("dm: core: Switch uclass_*_device_err to use > uclass_*_device_check") U-Boot built with `odroid_defconfig` fails to > initialize on an Odroid U2: `board_late_init()` > (board/samsung/common/board.c) > returns w

[PATCH 13/41] imx9: clock: add CONFIG_IMX9_LOW_DRIVE_MODE support

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Add CONFIG_IMX9_LOW_DRIVE_MODE in imx9 clk, later we will add board support Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 5 arch/arm/mach-imx/imx9/clock.c | 55 +++--- 2 files changed, 56 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] microblaze: spl: drop boot_linux and disable falcon mode by default

2023-01-23 Thread Michal Simek
On 1/22/23 19:02, Ovidiu Panait wrote: Make spl_start_uboot() available only if CONFIG_SPL_OS_BOOT is enabled this is one patch and drop boot_linux, as the variable is not assigned anywhere. This is another patch. Also, disable CONFIG_SPL_OS_BOOT in defconfig so that a microblaze-gene

[PATCH 24/41] imx: update pin header file for i.MX93

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Update pin header file for i.MX93 Signed-off-by: Peng Fan --- arch/arm/dts/imx93-pinfunc.h| 194 ++-- arch/arm/include/asm/arch-imx9/imx93_pins.h | 44 ++--- 2 files changed, 118 insertions(+), 120 deletions(-) diff --git a/arch/arm/dts/imx93-pi

[PATCH 16/41] imx9: correct coding style

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan The end brace should be in a new line Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c index 96e485e23cf..e857a3dc663 100644 --- a/arch/arm/m

[PATCH 30/41] imx: spl_imx_romapi: Get and print boot stage

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Get and print boot stage through ROM API in SPL Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 7 +++ arch/arm/mach-imx/spl_imx_romapi.c| 22 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff

[PATCH] arm: kirkwood: Use Kirkwood common early malloc area for various Kirkwood boards

2023-01-23 Thread Tony Dinh
For Kirkwood boards, it is necessary to have early malloc in DRAM area when Driver Model for Serial is enabled. This patch removes individual board settings for early malloc in various Kirkwood boards, and uses the Kirkwood commonly defined settings in arch/arm/mach-kirkwood/Kconfig. Signed-off-by

[PATCH 10/41] imx9: cut off OPTEE memory region from U-Boot

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan OPTEE memory region is set secure access only in ATF with configuration to TRDC, and need to remove it from U-Boot, otherwise U-Boot and Kernel may crash when accessing the memory Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 150 ++-

[PATCH 11/41] imx9: Change hard coded MAC to read from fuse

2023-01-23 Thread Peng Fan (OSS)
From: Ye Li The MAC addresses are hard coded for bring up. Change it to support reading from fuse. Reviewed-by: Jacky Bai Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 49 +++- 1 file changed, 43 insertions(+), 6 deletions(-)

[PATCH 15/41] imx9: add i.MX93 variants support

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan According to datasheet, iMX93 has fused parts with CORE1 or NPU or both disabled. So update code to support it, the kernel device tree runtime update will be added in future patches. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx/cpu.h | 7 +++ arch/arm/include

[PATCH 14/41] imx9: add reset cause print

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Add reset cause print to u-boot log on i.MX93. Since the SRC GENERAL registers are read only for non-secure mode. We have to clear SRSR in secure mode (SPL) and pass the value to non-secure mode via GPR1 register. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-i

[PATCH 38/41] imx8: ahab: fix 'end address' parameter of rm_find_memreg

2023-01-23 Thread Peng Fan (OSS)
From: Seb Fagard parameter 'end address' must be inclusive of address range. And include cpu_func.h header file Reviewed-by: Ye Li Signed-off-by: Seb Fagard Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx8/ahab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/

[PATCH 36/41] i2c: imx_lpi2c: Fix misuse the IS_ENABLED for DM clock

2023-01-23 Thread Peng Fan (OSS)
From: Ye Li The IS_ENABLED, which does not consider SPL build, should be replaced by CONFIG_IS_ENABLED. For the case that we only enable DM CLK for u-boot but not in SPL, the IS_ENABLED(CONFIG_CLK) still returns true, then cause clock failure. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-

[PATCH 21/41] imx: ahab: unify imx9 and imx8ulp AHAB support

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan Use common file ele_ahab.c for i.MX9 and iMX8ULP AHAB support, since both of them use same ELE APIs Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/imx-regs.h | 2 + arch/arm/include/asm/arch-imx9/imx-regs.h | 2 + arch/arm/include/as

[PATCH 05/41] imx9: configure M33 systick to 24M

2023-01-23 Thread Peng Fan (OSS)
From: Peng Fan The M33 systick should be 24M per reference mannual, so correct it. Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/imx9/clock.c b/arch/arm/mach-imx/imx9/clock.c index 04f3116fd1

[PATCH 34/41] ddr: imx9: Add DDR inline ECC support

2023-01-23 Thread Peng Fan (OSS)
From: Ye Li Support DDR inline ECC feature for i.MX9 DDR driver. It uses top 1/8 DDR size for ECC data. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/ddr.h | 5 drivers/ddr/imx/imx9/Kconfig | 6 + drivers/ddr/imx/imx9

[PATCH 28/41] imx9: imx93_evk: Update DDR timing config

2023-01-23 Thread Peng Fan (OSS)
From: Ye Li Improve the DDR bandwidth by changing to auto precharge, setting RD_TO_PRE to 0xe, REFREC_PB and REFTOREF_PB to 0x15b, set RD/WR_CNT, and improve RWT/WRT frequency Also reduce debug message to Stage completion only. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fa

Re: [PATCH] arm: kirkwood: Use Kirkwood common early malloc area for various Kirkwood boards

2023-01-23 Thread Stefan Roese
On 1/23/23 09:39, Tony Dinh wrote: For Kirkwood boards, it is necessary to have early malloc in DRAM area when Driver Model for Serial is enabled. This patch removes individual board settings for early malloc in various Kirkwood boards, and uses the Kirkwood commonly defined settings in arch/arm/

Re: [PATCH] odroid: add CROS_EC to odroid_defconfig

2023-01-23 Thread Joost van Zwieten
On Mon, Jan 23, 2023 at 08:33, Peter Robinson wrote: On Fri, Jan 20, 2023 at 11:17 PM Joost van Zwieten wrote: As of commit e44d7e73fe ("dm: core: Switch uclass_*_device_err to use uclass_*_device_check") U-Boot built with `odroid_defconfig` fails to initialize on an Odroid U2: `boar

Re: [PATCH v1 1/3] fdt: validate/fix cells count on mtdpart fixup

2023-01-23 Thread Miquel Raynal
Hi Francesco, Thanks for your work. ma...@denx.de wrote on Tue, 17 Jan 2023 01:59:54 +0100: > On 1/16/23 19:00, Francesco Dolcini wrote: > > On Mon, Jan 16, 2023 at 06:54:44PM +0100, Marek Vasut wrote: > >> On 1/16/23 15:20, Francesco Dolcini wrote: > >>> On Sun, Jan 15, 2023 at 03:35:25PM +

Re: [PATCH] common: avb_verify: prevent opening incorrect session

2023-01-23 Thread Jens Wiklander
On Sun, Jan 22, 2023 at 3:41 AM Ivan Khoronzhuk wrote: > > The arg->session is not valid if arg->ret != NULL, so can't be > assigned. Leave retry for just "ret" error to save same behaviour. > > Signed-off-by: Ivan Khoronzhuk > --- > common/avb_verify.c | 12 > 1 file changed, 8 ins

Re: [PATCH v1 0/3] fdt: Fix mtparts fixup

2023-01-23 Thread Miquel Raynal
Hi Tom, tr...@konsulko.com wrote on Fri, 13 Jan 2023 14:34:11 -0500: > On Fri, Jan 13, 2023 at 07:45:44PM +0100, Francesco Dolcini wrote: > > > From: Francesco Dolcini > > > > Recently we had a boot regression on colibri-imx7 because of a cleanup > > change > > on Linux imx7.dtsi setting nand

Re: [PATCH v1 2/3] colibri-imx7: specify MTD partitions on command line

2023-01-23 Thread Miquel Raynal
Hi Francesco, france...@dolcini.it wrote on Mon, 16 Jan 2023 14:58:28 +0100: > On Sun, Jan 15, 2023 at 03:33:25PM +0100, Marek Vasut wrote: > > On 1/13/23 19:45, Francesco Dolcini wrote: > > > From: Francesco Dolcini > > > > > > Disable fdt_fixup_mtdparts(), instead pass MTD partition on the

Re: [PATCH v2] mtd: parsers: ofpart: add workaround for #size-cells 0

2023-01-23 Thread Francesco Dolcini
On Mon, Jan 23, 2023 at 11:28:08AM +0100, Miquel Raynal wrote: > france...@dolcini.it wrote on Fri, 13 Jan 2023 19:45:56 +0100: > > > From: Francesco Dolcini > > > > Add a mechanism to handle the case in which partitions are present as > > direct child of the nand controller node and #size-cells

Re: [PATCH v2] mtd: parsers: ofpart: add workaround for #size-cells 0

2023-01-23 Thread Miquel Raynal
Hi Francesco, france...@dolcini.it wrote on Fri, 13 Jan 2023 19:45:56 +0100: > From: Francesco Dolcini > > Add a mechanism to handle the case in which partitions are present as > direct child of the nand controller node and #size-cells is set to <0>. > > This could happen if the nand-controlle

Re: [PATCH v2] mtd: parsers: ofpart: add workaround for #size-cells 0

2023-01-23 Thread Miquel Raynal
Hi Francesco, france...@dolcini.it wrote on Mon, 23 Jan 2023 11:35:37 +0100: > On Mon, Jan 23, 2023 at 11:28:08AM +0100, Miquel Raynal wrote: > > france...@dolcini.it wrote on Fri, 13 Jan 2023 19:45:56 +0100: > > > > > From: Francesco Dolcini > > > > > > Add a mechanism to handle the case in

[PATCH 1/1] doc: rework doc/mkeficapsule.1

2023-01-23 Thread Heinrich Schuchardt
* Indicate the location of the directory for EFI capsules. * Improve the readability. Signed-off-by: Heinrich Schuchardt --- doc/mkeficapsule.1 | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/doc/mkeficapsule.1 b/doc/mkeficapsule.1 index 6fb2dd0810..1c

Re: [PATCH v2] usb: gadget: ether: split start/stop from init/halt

2023-01-23 Thread Niel Fourie
Hi Marek On 20/01/2023 19:42, Marek Vasut wrote: On 1/20/23 18:15, Niel Fourie wrote: [...] Same question as in V1 below. +static int _usb_eth_start(struct ether_priv *priv) +{ +    unsigned long timeout = USB_CONNECT_TIMEOUT; +    struct eth_dev *dev = &priv->ethdev; +    unsigned long ts;

Re: [PATCH 00/21] Migration to using binman to generate bootloader

2023-01-23 Thread Neha Malcom Francis
Hi Simon On 21/01/23 01:16, Simon Glass wrote: Hi Neha, On Fri, 20 Jan 2023 at 03:19, Neha Malcom Francis wrote: This series aims to eliminate the use of additional custom repositories such as k3-image-gen (K3 Image Generation) repo that was plumbed into the U-Boot build flow to generate boo

Re: [RFC PATCH 1/1] efi_loader: get rid of ad-hoc EFI subsystem init

2023-01-23 Thread AKASHI Takahiro
On Mon, Jan 23, 2023 at 10:15:40AM +0200, Ilias Apalodimas wrote: > Hi Simon, Heinrich > > On Fri, Jan 20, 2023 at 03:11:13PM -0700, Simon Glass wrote: > > Hi Heinrich, > > > > On Fri, 20 Jan 2023 at 13:36, Heinrich Schuchardt > > wrote: > > > > > > On 1/20/23 20:19, Simon Glass wrote: > > > > H

Re: [PATCH v4 1/4] eficonfig: refactor eficonfig_process_common function

2023-01-23 Thread Ilias Apalodimas
On Fri, Jan 20, 2023 at 05:43:55PM +0900, Masahisa Kojima wrote: > Current change boot order implementation does not call > eficonfig_process_common() and call own menu functions > for display_statusline, item_data_print and item_choice. > Change boot order functionality should call > eficonfig_pro

[PATCH] elf: add Elf64_Sym

2023-01-23 Thread KaDiWa
Required as Elf_Sym in tools/prelink-riscv.inc. I assume people have been using an OS-supplied elf.h, but macOS doesn't have that. Taken from https://github.com/torvalds/linux/blob/v6.1/include/uapi/linux/elf.h Signed-off-by: KaDiWa --- include/elf.h | 9 + 1 file changed, 9 insertions(

Re: [PATCH 36/41] i2c: imx_lpi2c: Fix misuse the IS_ENABLED for DM clock

2023-01-23 Thread Heiko Schocher
Hello Peng Fan, On 23.01.23 10:16, Peng Fan (OSS) wrote: > From: Ye Li > > The IS_ENABLED, which does not consider SPL build, should be replaced > by CONFIG_IS_ENABLED. > For the case that we only enable DM CLK for u-boot but not in SPL, the > IS_ENABLED(CONFIG_CLK) still returns true, then caus

[RFC][PATCH] usb: dwc3: gadget: workaround for Netconsole hang

2023-01-23 Thread Niel Fourie
In dwc3_remove_requests(), the while loops clearing out request lists req_queued and request_list may loop infinitely as the last remaining elements in these lists end up not pointing to their respective list_head structures. This workaround detects and replaces the last element with the expected l

[PATCH v2] common: avb_verify: prevent opening incorrect session

2023-01-23 Thread Ivan Khoronzhuk
The arg->session is not valid if arg->ret != NULL, so can't be assigned. Leave retry for just "ret" error to save same behaviour. Signed-off-by: Ivan Khoronzhuk --- common/avb_verify.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/common/avb_verify.c b/common/a

Re: [PATCH v2 17/17] configs: starfive: add starfive_visionfive2_defconfig

2023-01-23 Thread Andreas Schwab
On Jan 18 2023, Yanhong Wang wrote: > This is the initial basic config for StarFive VisionFive v2 board. It > includes consol, Norflash, sdio, ddr etc. Please enable CONFIG_DISTRO_DEFAULTS. > +CONFIG_DEFAULT_FDT_FILE="starfive/starfive_visionfive2.dtb" That should match the name the kernel is u

Re: [PATCH v4 2/4] eficonfig: refactor change boot order implementation

2023-01-23 Thread Ilias Apalodimas
On Fri, Jan 20, 2023 at 05:43:56PM +0900, Masahisa Kojima wrote: > This commit removes the change boot order specific > menu implementation. The change boot order implementation > calls eficonfig_process_common() same as other menus. > > The change boot order menu requires own item_data_print > and

Re: [PATCH v4 3/4] eficonfig: add vertical scroll support

2023-01-23 Thread Ilias Apalodimas
On Fri, Jan 20, 2023 at 05:43:57PM +0900, Masahisa Kojima wrote: > The current eficonfig menu does not support vertical scroll, > so it can not display the menu entries greater than > the console row size. > > This commit add the vertial scroll support. > The console size is retrieved by > SIMPLE_T

Re: [PATCH v4 4/4] eficonfig: increase the number of menu entries

2023-01-23 Thread Ilias Apalodimas
On Fri, Jan 20, 2023 at 05:43:58PM +0900, Masahisa Kojima wrote: > Current eficonfig has the maximum number of menu entries and > it is 99. If there are more EFI load options and files in the > system, eficonfig can not handle it. > > This commit increases this maximum number of menu entries > to I

Re: [PATCH v8 03/10] arm_ffa: introduce Arm FF-A low-level driver

2023-01-23 Thread Rob Herring
On Fri, Jan 20, 2023 at 4:04 PM Simon Glass wrote: > > Hi Rob, > > On Thu, 19 Jan 2023 at 11:11, Rob Herring wrote: > > > > On Thu, Jan 19, 2023 at 10:41 AM Simon Glass wrote: > > > > > > Hi Abdellatif, > > > > > > On Thu, 19 Jan 2023 at 09:32, Abdellatif El Khlifi > > > wrote: > > > > > > > >

Re: [PATCH v2] common: avb_verify: prevent opening incorrect session

2023-01-23 Thread Jens Wiklander
On Mon, Jan 23, 2023 at 04:51:29PM +0200, Ivan Khoronzhuk wrote: > The arg->session is not valid if arg->ret != NULL, so can't be > assigned. Leave retry for just "ret" error to save same behaviour. > > Signed-off-by: Ivan Khoronzhuk > --- > common/avb_verify.c | 12 > 1 file change

Re: [PATCH 3/5] usb: dwc3-generic: Add dependency on SIMPLE_BUS

2023-01-23 Thread Marek Vasut
On 1/23/23 06:01, Kunihiko Hayashi wrote: Hi Marek, Hello Hayashi-san, [...] On the other hand, the PXS2 controller for example is not a bus: arch/arm/dts/uniphier-pxs2.dtsi: 596 _usb0: usb@65a0 { 597 compatible = "socionext,uniphier-dwc3", "snps,dwc3"; 598 status = "disabled";

Re: [PATCH v2] common: avb_verify: prevent opening incorrect session

2023-01-23 Thread Ivan Khoronzhuk
On Mon, Jan 23, 2023 at 04:34:33PM +0100, Jens Wiklander wrote: On Mon, Jan 23, 2023 at 04:51:29PM +0200, Ivan Khoronzhuk wrote: The arg->session is not valid if arg->ret != NULL, so can't be assigned. Leave retry for just "ret" error to save same behaviour. Signed-off-by: Ivan Khoronzhuk ---

Re: [PATCH v8 03/10] arm_ffa: introduce Arm FF-A low-level driver

2023-01-23 Thread Simon Glass
Hi Sudeep, On Fri, 20 Jan 2023 at 04:17, Sudeep Holla wrote: > > On Thu, Jan 19, 2023 at 10:22:07AM -0700, Simon Glass wrote: > > Hi Sudeep, > > > > On Thu, 19 Jan 2023 at 10:09, Sudeep Holla wrote: > > > > > > On Thu, Jan 19, 2023 at 11:57:44AM -0500, Tom Rini wrote: > > > > > > > > But it's al

Re: [PATCH v8 03/10] arm_ffa: introduce Arm FF-A low-level driver

2023-01-23 Thread Simon Glass
Hi Rob, On Mon, 23 Jan 2023 at 08:13, Rob Herring wrote: > > On Fri, Jan 20, 2023 at 4:04 PM Simon Glass wrote: > > > > Hi Rob, > > > > On Thu, 19 Jan 2023 at 11:11, Rob Herring wrote: > > > > > > On Thu, Jan 19, 2023 at 10:41 AM Simon Glass wrote: > > > > > > > > Hi Abdellatif, > > > > > > >

[PATCH] ddr: imx: Handle both 3733 and 3732 MTps rates

2023-01-23 Thread Marek Vasut
The DDR calibration tool for i.MX8M currently produces 3732 MTps rate in lpddr4_timing.c , while the PHY code expects 3733 MTps rate. Support both variants to avoid surprises where the system fails to boot. Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Ye

Re: [PATCH v2 1/5] net: sun8i-emac: Add a structure for variant data

2023-01-23 Thread Andre Przywara
On 22/01/2023 22:51, Samuel Holland wrote: Currently, EMAC variants are distinguished by their identity, but this gets unwieldy as more overlapping variants are added. Add a structure so we can describe the individual feature differences between the variants. Signed-off-by: Samuel Holland Loo

Re: [PATCH v2 2/5] net: sun8i-emac: Add a flag for RMII support

2023-01-23 Thread Andre Przywara
On 22/01/2023 22:51, Samuel Holland wrote: Describe this feature instead of using the SoC ID. Looks alright, also compared against the kernel driver. Signed-off-by: Samuel Holland Reviewed-by: Andre Przywara Cheers, Andre --- Changes in v2: - New patch for v2 drivers/net/sun8i_em

Re: [PATCH v2 3/5] net: sun8i-emac: Add a flag for the internal PHY switch

2023-01-23 Thread Andre Przywara
On 22/01/2023 22:51, Samuel Holland wrote: Describe this feature instead of using the SoC ID. Signed-off-by: Samuel Holland Reviewed-by: Andre Przywara Cheers, Andre --- Changes in v2: - New patch for v2 drivers/net/sun8i_emac.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

Re: [PATCH v2 4/5] net: sun8i-emac: Use common syscon setup for R40

2023-01-23 Thread Andre Przywara
On 22/01/2023 22:51, Samuel Holland wrote: While R40 puts the EMAC syscon register at a different address from other variants, the relevant portion of the register's layout is the same. Factor out the register offset so the same code can be shared by all variants. This matches what the Linux driv

Re: [PATCH v2 5/5] net: sun8i-emac: Remove the SoC variant ID

2023-01-23 Thread Andre Przywara
On 22/01/2023 22:51, Samuel Holland wrote: Hi, Now that all differences in functionality are covered by individual flags, remove the enumeration of SoC variants. My favourite patch of this series ;-) Signed-off-by: Samuel Holland Reviewed-by: Andre Przywara Cheers, Andre --- Change

Re: [PATCH 02/21] tools: sysfw: Add script for generating configuration blobs

2023-01-23 Thread Neha Malcom Francis
Hi Simon, On 20/01/23 15:48, Neha Malcom Francis wrote: Certain devices in the K3 architecture such as AM64x require board configuration binaries packed along with their descriptions into a sysfw_data binary. The final binary is required to be packed into the final system firmware images. Signe

[PATCH] binman: Fix a test-coverage regression

2023-01-23 Thread Simon Glass
Unfortunately a recent patch snuck through without the require test coverage. Fix it. Signed-off-by: Simon Glass Fixes: 571bc4e67d3 ("binman: Support positioning an entry by and ELF symbol") --- tools/binman/elf_test.py | 13 - tools/binman/entry_test.py | 19 +

Re: [PATCH 1/1] doc: rework doc/mkeficapsule.1

2023-01-23 Thread Simon Glass
Hi Heinrich, On Mon, 23 Jan 2023 at 04:24, Heinrich Schuchardt wrote: > > * Indicate the location of the directory for EFI capsules. > * Improve the readability. > > Signed-off-by: Heinrich Schuchardt > --- > doc/mkeficapsule.1 | 21 +++-- > 1 file changed, 11 insertions(+), 10

Re: [PATCH v2 1/2] clk: Allow clk_get_by_name() with NULL name

2023-01-23 Thread Simon Glass
On Sat, 21 Jan 2023 at 17:02, Samuel Holland wrote: > > This allows devm_clock_get(dev, NULL) to work and get the first clock, > which is common in code ported from Linux. > > Signed-off-by: Samuel Holland > --- > > Changes in v2: > - Move index error check inside if statement > - Update functi

Re: [PATCH v3 4/5] dm: button: add support for linux_code in button-gpio.c driver

2023-01-23 Thread Simon Glass
On Sun, 22 Jan 2023 at 08:22, Dzmitry Sankouski wrote: > > Linux event code must be used in input devices, using buttons. > > Signed-off-by: Dzmitry Sankouski > --- > Changes for v2: > - fail, if linux,code not found > Changes for v3: > - add test for linux,code > - change linux,code type to int

Re: [PATCH] dm: core: Use full printf() format when possible

2023-01-23 Thread Simon Glass
On Sat, 21 Jan 2023 at 16:30, Samuel Holland wrote: > > Use a more accurate check for determining if the full format string will > be handled correctly, since SPL_USE_TINY_PRINTF can be disabled. > > Signed-off-by: Samuel Holland > --- > > drivers/core/dump.c | 2 +- > 1 file changed, 1 insertio

Re: [PATCH 37/41] imx9: print temperature

2023-01-23 Thread Simon Glass
Hi Peng, On Mon, 23 Jan 2023 at 01:36, Peng Fan (OSS) wrote: > > From: Peng Fan > > Print tempeature for i.MX93 > > Signed-off-by: Peng Fan > --- > arch/arm/mach-imx/imx9/soc.c | 17 + > configs/imx93_11x11_evk_defconfig| 2 ++ > configs/imx93_11x11_evk_ld_defconfi

Re: [PATCH 19/41] imx8ulp: build ahab

2023-01-23 Thread Simon Glass
Hi Peng, On Mon, 23 Jan 2023 at 01:32, Peng Fan (OSS) wrote: > > From: Peng Fan > > The ahab was missed to be compiled, so add it back. > > Signed-off-by: Peng Fan > --- > arch/arm/mach-imx/imx8ulp/Kconfig | 5 + > arch/arm/mach-imx/imx8ulp/Makefile | 1 + > 2 files changed, 6 insertions(

Re: [PATCH v2 2/9] test: Add test for IOMMU uclass map/unmap ops

2023-01-23 Thread Simon Glass
On Sat, 21 Jan 2023 at 12:28, Mark Kettenis wrote: > > Test that the map and unmap operations work for devices that > have DMA translated by an IOMMU and devices that don't have > DMA translated by an IOMMU. > > Signed-off-by: Mark Kettenis > --- > drivers/iommu/sandbox_iommu.c | 58

Re: [PATCH 6/6] tools: logos: Add TI logo files

2023-01-23 Thread Simon Glass
Hi Nikhil, On Mon, 23 Jan 2023 at 01:08, Nikhil M Jain wrote: > > The default splashfile name saved is ti.gz. User can use these > logos to test splash screen. > > Signed-off-by: Nikhil M Jain > --- > tools/logos/ti.bmp | Bin 0 -> 447258 bytes > tools/logos/ti.gz | Bin 0 -> 19604 bytes > 2 f

Re: [PATCH] elf: add Elf64_Sym

2023-01-23 Thread Simon Glass
On Mon, 23 Jan 2023 at 07:40, KaDiWa wrote: > > Required as Elf_Sym in tools/prelink-riscv.inc. I assume people have > been using an OS-supplied elf.h, but macOS doesn't have that. > > Taken from > https://github.com/torvalds/linux/blob/v6.1/include/uapi/linux/elf.h > > Signed-off-by: KaDiWa > --

Re: [PATCH v3 5/5] dm: input: add button_kbd driver

2023-01-23 Thread Simon Glass
On Sun, 22 Jan 2023 at 08:21, Dzmitry Sankouski wrote: > > Bootmenu requires an input device with arrows and enter key. > A common smartphone luckily has power, volume up/down buttons, > which may be used for controlling bootmenu. > To use driver, add 'button-kbd' to stdin. > > Signed-off-by: Dzmi

Re: [PATCH 1/6] drivers: core: ofnode: Add panel timing decode.

2023-01-23 Thread Simon Glass
Hi Nikhil, On Mon, 23 Jan 2023 at 01:07, Nikhil M Jain wrote: > > ofnode_decode_display_timing supports reading timing parameters from > subnode of display-timings node, for displays supporting multiple > resolution, in case if a display supports single resolution, it fails > reading directly fro

Re: [PATCH 5/6] board: ti: am62x: evm: Add splash screen support

2023-01-23 Thread Simon Glass
Hi Nikhil, On Mon, 23 Jan 2023 at 01:07, Nikhil M Jain wrote: > > Splash screen function needs splash source information > to load image and display it, splash_location provides > the necessary info, Set default_splash_location to MMC > at partition 1:1. Probe DSS for splash screen display. > > S

  1   2   3   >