Re: [PATCH] ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository

2023-01-17 Thread Pali Rohár
On Monday 16 January 2023 16:33:09 Tony Dinh wrote: > Hi all, > > On Sat, Jan 14, 2023 at 1:45 PM Tony Dinh wrote: > > > > Hi Pali & Tom, > > > > On Sat, Jan 14, 2023 at 12:06 PM Pali Rohár wrote: > > > > > > On Saturday 14 January 2023 15:03:41 Tom Rini wrote: > > > > On Sat, Jan 14, 2023 at 07

Re: [PATCH 0/2] mach-meson: port dwc2_otg usage to CONFIG_DM_USB_GADGET=y

2023-01-17 Thread Neil Armstrong
Hi, On Wed, 23 Nov 2022 16:42:48 +0100, Mattijs Korpershoek wrote: > While working on some USB bugs on the VIM3L board, we stumbled upon the fact > that mach-meson still uses legacy board_usb_*() functions instead of using DM > [1] > > This series aim to switch the g12a based boards to use CONFI

Re: [PATCH v2] ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository

2023-01-17 Thread Pali Rohár
Hello! Thank you for update. It is much better. On Monday 16 January 2023 21:34:39 Tony Dinh wrote: > This syncs drivers/ddr/marvell/a38x/ with the master branch of repository > https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git > > up to the commit "mv_ddr: a3700: Use th

Re: U-Boot: extlinux.conf boot menu support appears to be broken by commit 739e8361f3fe78038251216df6096a32bc2d5839

2023-01-17 Thread Manuel Traut
Hi Karsten, thanks for your report. Can you test with the attached patch? I do not have access to a hardware today, but I will test it tomorrow. Regards Manuel Am 16.01.2023 um 19:50 hat Karsten Merker geschrieben: > Hello, > > it looks like the following commit has broken the extlinux.conf >

[PATCH v1 0/3] add npcm845 function config and dts node

2023-01-17 Thread Jim Liu
1. Enable Nuvoton BMC npcm844 function config and add dts node. 2. Add header file for npcm8xx security key feature. Jim Liu (3): ARM: dts: npcm8xx: add npcm845 function node ARM: config: enable function for nuvoton npcm845 bmc arm: npcm8xx: add security feature header arch/arm/dts/nuvoto

[PATCH v1 1/3] ARM: dts: npcm8xx: add npcm845 function node

2023-01-17 Thread Jim Liu
Add functaion node list as below: 1. i2c 2. gmac 3. otp 4. aes 5. sha 6. rng 7. serial Signed-off-by: Jim Liu --- arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 358 +++ arch/arm/dts/nuvoton-npcm845-evb.dts | 198 + arch/arm/dts/nuvoton-npcm8xx-u-boot.dtsi | 134 +

[PATCH v1 2/3] ARM: config: enable function for nuvoton npcm845 bmc

2023-01-17 Thread Jim Liu
Enable npcm845 i2c、ethernet、REGULATOR and security feature Signed-off-by: Jim Liu --- configs/arbel_evb_defconfig | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index aa857661d9..8f8a603b50 100644

[PATCH v1 3/3] arm: npcm8xx: add security feature header

2023-01-17 Thread Jim Liu
The NPCM driver can use on npcm7xx/npcm8xx so add npcm8xx header for driver. Signed-off-by: Jim Liu --- arch/arm/include/asm/arch-npcm8xx/aes.h | 53 ++ arch/arm/include/asm/arch-npcm8xx/otp.h | 93 + arch/arm/include/asm/arch-npcm8xx/rng.h | 43

[PATCH 0/2] mach-meson: port GXL & AXG dwc2_otg usage to CONFIG_DM_USB_GADGET=y

2023-01-17 Thread Neil Armstrong
ers/usb/dwc3/dwc3-meson-gxl.c| 18 + 13 files changed, 28 insertions(+), 266 deletions(-) --- base-commit: b96640cbfb319071aea7915cfa2f7aefe08bbc08 change-id: 20230117-u-boot-usb-gxl-otg-dm-013ee8718190 Best regards, -- Neil Armstrong

[PATCH 1/2] usb: dwc3-meson-gxl: force mode on child add/removal

2023-01-17 Thread Neil Armstrong
arch/mach-meson has some custom usb logic, in particular: * on board_usb_init(), we force USB_DR_MODE_PERIPHERAL * on board_usb_cleanup(), we force USB_DR_MODE_HOST With DM_USB_GADGET=y, board_usb_init/cleanup() are no longer used when we call usb_gadget_initialize(). Instead, the generic (from ud

[PATCH 2/2] ARM: meson: switch AXG & GX dwc2 otg to DM

2023-01-17 Thread Neil Armstrong
With CONFIG_DM_USB_GADGET=y, we no longer need any board_usb_*() logic because: * the dwc2 driver is DM compatible, and handles its own clock enabling * the dwc3-meson-gxl glue drivers handles "force mode switching" Remove all mach-meson gx & axg usb code and enable CONFIG_DM_USB_GADGET. Note: On

Re: [PATCH] ARM: dts: imx8mm-evk: Fix wrong PMIC device for new EVK board

2023-01-17 Thread Marcel Ziswiler
Hi Ye Li On Tue, 2023-01-17 at 13:34 +0800, Ye Li wrote: > In commit 48ddafd (imx8mm_evk: Switch to new imx8mm evk board), > the iMX8MM EVK support was updated to new EVK board which is > using PCA9450A PMIC. > But the commit 24a7a3c (imx8mm: synchronise device tree with linux) > changed DTS node

[PATCH v2 1/4] dt-bindings: rockchip: Sync rockchip, vop2.h from Linux

2023-01-17 Thread Jagan Teki
Sync rockchip,vop2.h from linux-next, and the last commit is commit <604be85547ce> ("drm/rockchip: Add VOP2 driver") Reviewed-by: Kever Yang Signed-off-by: Jagan Teki --- Changes for v2: - collect Kever RB include/dt-bindings/soc/rockchip,vop2.h | 14 ++ 1 file changed, 14 inserti

[PATCH v2 2/4] arm64: dts: rockchip: rk3566: Add Radxa Compute Module 3

2023-01-17 Thread Jagan Teki
Radxa Compute Module 3(CM3) is one of the modules from a series System On Module based on the Radxa ROCK 3 series and is compatible with Raspberry Pi CM4 pinout and form factor. Specification: - Rockchip RK3566 - up to 8GB LPDDR4 - up to 128GB high performance eMMC - Optional wireless LAN, 2.4GHz

[PATCH v2 3/4] arm64: dts: rockchip: rk3566: Add Radxa Compute Module 3 IO

2023-01-17 Thread Jagan Teki
Radxa Compute Module 3(CM3) IO board an application board from Radxa and is compatible with Raspberry Pi CM4 IO form factor. Specification: - 1x HDMI, - 2x MIPI DSI - 2x MIPI CSI2 - 1x eDP - 1x PCIe card - 2x SATA - 2x USB 2.0 Host - 1x USB 3.0 - 1x USB 2.0 OTG - Phone jack - microSD slot - 40-pin

[PATCH v2 4/4] board: rockchip: Add Radxa Compute Module 3 IO Board

2023-01-17 Thread Jagan Teki
Radxa Compute Module 3(CM3) IO board an application board from Radxa and is compatible with Raspberry Pi CM4 IO form factor. Radxa CM3 needs to mount on top of this IO board in order to create complete Radxa CM3 IO board platform. Add support for Radxa CM3 IO Board defconfig and -u-boot.dtsi Rev

Re: [PATCH] dm: pinctrl: Revert "pinctrl: probe pinctrl drivers during post-bind"

2023-01-17 Thread Robert Marko
On Fri, Jan 13, 2023 at 12:43 AM Simon Glass wrote: > > Hi, > > On Tue, 3 Jan 2023 at 10:05, Simon Glass wrote: > > > > Hi Robert, > > > > On Fri, 30 Dec 2022 at 13:26, Robert Marko wrote: > > > > > > > > > > > > On Fri, Dec 30, 2022 at 8:02 PM Simon Glass wrote: > > >> > > >> Hi Pali, > > >> >

Re: [PATCH 1/2] usb: dwc3-meson-gxl: force mode on child add/removal

2023-01-17 Thread Mattijs Korpershoek
On Tue, Jan 17, 2023 at 10:11, Neil Armstrong wrote: > arch/mach-meson has some custom usb logic, in particular: > * on board_usb_init(), we force USB_DR_MODE_PERIPHERAL > * on board_usb_cleanup(), we force USB_DR_MODE_HOST > > With DM_USB_GADGET=y, board_usb_init/cleanup() are no > longer used w

Re: [PATCH 2/2] ARM: meson: switch AXG & GX dwc2 otg to DM

2023-01-17 Thread Mattijs Korpershoek
On Tue, Jan 17, 2023 at 10:11, Neil Armstrong wrote: > With CONFIG_DM_USB_GADGET=y, we no longer need any board_usb_*() logic > because: > * the dwc2 driver is DM compatible, and handles its own clock enabling > * the dwc3-meson-gxl glue drivers handles "force mode switching" > > Remove all mach-

Re: [PATCH v1] arm: dts: rockchip: sync rk3066/rk3188 DT files from linux-next v6.2-rc4

2023-01-17 Thread Quentin Schulz
Hi Johan, On 1/16/23 20:45, Johan Jonker wrote: Sync rk3066/rk3188 DT files from Linux. This is the state as of linux-next v6.2-rc4. New nfc node for MK808 rk3066a. CRU nodes now have a clock property. To prefend dtoc errors a fixed clock must also be included for tpl/spl in the rk3xxx-u-boot.dt

Re: [PATCH 1/2] usb: dwc3-meson-gxl: force mode on child add/removal

2023-01-17 Thread Marek Vasut
On 1/17/23 10:43, Mattijs Korpershoek wrote: On Tue, Jan 17, 2023 at 10:11, Neil Armstrong wrote: arch/mach-meson has some custom usb logic, in particular: * on board_usb_init(), we force USB_DR_MODE_PERIPHERAL * on board_usb_cleanup(), we force USB_DR_MODE_HOST With DM_USB_GADGET=y, board_us

[PATCH] cmd: event: Remove additional event description

2023-01-17 Thread Michal Simek
The first name is taken from command name that's why shouldn't be listed in help. The similar change was also done by commit a84d3b6c5634 ("cmd: pwm: Remove additional pwm description"). Also remove additional spaces in help message. Before: event event list - list event spies After: event list

Re: [PATCH] timer: orion-timer: Fix problem in early_init_done()

2023-01-17 Thread Stefan Roese
On 1/16/23 18:54, Pali Rohár wrote: On Monday 16 January 2023 16:34:45 Stefan Roese wrote: It was noticed that Clearfog is currently broken with this newly introduced early_init_done() function. Apparently the timer is enabled here when U-Boot is run but not configured - at least not correctly.

Re: [PATCH] arm: kirkwood: Convert to DM Serial for various Kirkwood boards

2023-01-17 Thread Stefan Roese
On 12/30/22 06:45, Tony Dinh wrote: For Kirkwood boards, it is necessary to have early malloc in DRAM area when Driver Model for Serial is enabled. Please see Michael's patch here: https://lore.kernel.org/u-boot/20220817193809.1059688-20-mich...@walle.cc/ This patch enables the early malloc in D

Please pull u-boot-marvell/master

2023-01-17 Thread Stefan Roese
Hi Tom, please pull this small batch of Marvell related patches: - kirkwood: Convert to DM Serial for various Kirkwood boards (Tony) - orion-timer: Fix problem in early_init_done() (Stefan) -

[PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-17 Thread Andre Przywara
Commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig") moved some NS16550 configuration variables into Kconfig. Among those there is CONFIG_SYS_NS16550_REG_SIZE, which used to be only defined for SPL build runs, but now is always set (thanks for Kconfig). However this breaks the

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-17 Thread Sergei Antonov
On Tue, 17 Jan 2023 at 15:10, Andre Przywara wrote: > -#if CONFIG_IS_ENABLED(DM_SERIAL) && !defined(CONFIG_SYS_NS16550_REG_SIZE) > +#if CONFIG_IS_ENABLED(DM_SERIAL) > /* > * For driver model we always use one byte per register, and sort out the > * differences in the driver > */ > +#undef

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-17 Thread Tom Rini
On Tue, Jan 17, 2023 at 12:09:38PM +, Andre Przywara wrote: > Commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig") > moved some NS16550 configuration variables into Kconfig. > Among those there is CONFIG_SYS_NS16550_REG_SIZE, which used to be only > defined for SPL build r

Re: [EXTERNAL] Re: [PATCH 3/9] arm: dts: k3-am62-main: Add device tree node for TIDSS

2023-01-17 Thread Tom Rini
On Tue, Jan 17, 2023 at 10:09:00AM +0530, Nikhl M Jain wrote: > Hi, Tom > > On 13/01/23 20:13, Tom Rini wrote: > > On Fri, Jan 13, 2023 at 01:59:21PM +0530, Nikhil M Jain wrote: > > > >> Add device tree node which includes the register > >> regions to write properties of planes (vidl1 and vid1),

Re: Pull request: u-boot-rockchip-20230117

2023-01-17 Thread Tom Rini
source.denx.de/u-boot/custodians/u-boot-sh (2023-01-15 > 10:31:17 -0500) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-rockchip.git > tags/u-boot-rockchip-20230117 > > for you to fetch changes up to c925be73a0a8b1d90060

Re: Please pull u-boot-marvell/master

2023-01-17 Thread Tom Rini
On Tue, Jan 17, 2023 at 12:49:04PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull this small batch of Marvell related patches: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 00/71] bootstd: Allow migration from distro_bootcmd scripts

2023-01-17 Thread Tom Rini
On Sat, Jan 07, 2023 at 07:49:36PM -0700, Simon Glass wrote: > So far, standard boot does not replicate all the of the functionality > of the distro_bootcmd scripts. In particular it lacks some bootdevs and > some of the bootmeths are incomplete. > > Also there is currently no internal mechanism

Re: [PATCH v3 00/25] bootstd: Add a boot menu

2023-01-17 Thread Tom Rini
On Fri, Jan 06, 2023 at 08:52:18AM -0600, Simon Glass wrote: > So far standard boot lacks a boot menu, although it is possible to create > a rudimentary one using the existing 'bootmenu' command. > > Even then, this text-based menu offer only basic functionality and does > not take full advantage

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

2023-01-17 Thread Tom Rini
On Mon, Jan 16, 2023 at 01:23:53PM +, Abdellatif El Khlifi wrote: > On Fri, Jan 13, 2023 at 11:00:28AM -0700, Simon Glass wrote: > > Hi Abdellatif, > > > > On Fri, 13 Jan 2023 at 03:44, Abdellatif El Khlifi > > wrote: > > > > > > On Thu, Jan 12, 2023 at 04:43:32PM -0700, Simon Glass wrote: >

[PATCH] arm64: a37xx: pinctrl: probe after binding

2023-01-17 Thread Robert Marko
Currently, pinctrl drivers are getting probed during post-bind, however that is being reverted, and on A37XX pinctrl driver is the one that registers the GPIO driver during the probe. So, if the pinctrl driver doesn't get probed GPIO-s won't get registered and thus they cannot be used. This is a

[PATCH v1] board: apalis-imx8: add 2nd ethernet address

2023-01-17 Thread Francesco Dolcini
From: Andrejs Cainikovs All Apalis iMX8 variants have 2nd RGMII on SoC, so add the address for 2nd ethernet. Signed-off-by: Andrejs Cainikovs Signed-off-by: Francesco Dolcini --- board/toradex/apalis-imx8/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/toradex/apalis-imx8

Re: [PATCH v1] arm: dts: rockchip: sync rk3066/rk3188 DT files from linux-next v6.2-rc4

2023-01-17 Thread Johan Jonker
On 1/17/23 10:46, Quentin Schulz wrote: > Hi Johan, > > On 1/16/23 20:45, Johan Jonker wrote: >> Sync rk3066/rk3188 DT files from Linux. >> This is the state as of linux-next v6.2-rc4. >> New nfc node for MK808 rk3066a. >> CRU nodes now have a clock property. >> To prefend dtoc errors a fixed c

Re: [PATCH v1] arm: dts: rockchip: sync rk3066/rk3188 DT files from linux-next v6.2-rc4

2023-01-17 Thread John Keeping
Hi Johan, On Tue, Jan 17, 2023 at 03:44:07PM +0100, Johan Jonker wrote: > On 1/17/23 10:46, Quentin Schulz wrote: > > On 1/16/23 20:45, Johan Jonker wrote: > >> Sync rk3066/rk3188 DT files from Linux. > >> This is the state as of linux-next v6.2-rc4. > >> New nfc node for MK808 rk3066a. > >> CRU n

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-17 Thread Tom Rini
On Tue, Jan 17, 2023 at 08:15:18AM -0500, Tom Rini wrote: > On Tue, Jan 17, 2023 at 12:09:38PM +, Andre Przywara wrote: > > > Commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig") > > moved some NS16550 configuration variables into Kconfig. > > Among those there is CONFIG_S

Re: [PATCH v1] arm: dts: rockchip: sync rk3066/rk3188 DT files from linux-next v6.2-rc4

2023-01-17 Thread Quentin Schulz
Hi John, On 1/17/23 16:20, John Keeping wrote: Hi Johan, On Tue, Jan 17, 2023 at 03:44:07PM +0100, Johan Jonker wrote: On 1/17/23 10:46, Quentin Schulz wrote: On 1/16/23 20:45, Johan Jonker wrote: Sync rk3066/rk3188 DT files from Linux. This is the state as of linux-next v6.2-rc4. New nfc no

Re: [PATCH v2 00/71] bootstd: Allow migration from distro_bootcmd scripts

2023-01-17 Thread Simon Glass
Hi Tom, On Tue, 17 Jan 2023 at 06:57, Tom Rini wrote: > > On Sat, Jan 07, 2023 at 07:49:36PM -0700, Simon Glass wrote: > > > So far, standard boot does not replicate all the of the functionality > > of the distro_bootcmd scripts. In particular it lacks some bootdevs and > > some of the bootmeths

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-17 Thread Andre Przywara
On Tue, 17 Jan 2023 08:15:18 -0500 Tom Rini wrote: Hi Tom, > On Tue, Jan 17, 2023 at 12:09:38PM +, Andre Przywara wrote: > > > Commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig") > > moved some NS16550 configuration variables into Kconfig. > > Among those there is CONF

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-17 Thread Andre Przywara
On Tue, 17 Jan 2023 16:12:54 +0300 Sergei Antonov wrote: Hi Sergei, > On Tue, 17 Jan 2023 at 15:10, Andre Przywara wrote: > > > -#if CONFIG_IS_ENABLED(DM_SERIAL) && !defined(CONFIG_SYS_NS16550_REG_SIZE) > > +#if CONFIG_IS_ENABLED(DM_SERIAL) > > /* > > * For driver model we always use one by

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-17 Thread Tom Rini
On Tue, Jan 17, 2023 at 04:09:14PM +, Andre Przywara wrote: > On Tue, 17 Jan 2023 08:15:18 -0500 > Tom Rini wrote: > > Hi Tom, > > > On Tue, Jan 17, 2023 at 12:09:38PM +, Andre Przywara wrote: > > > > > Commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig") > > > move

Re: [PATCH] ns16550: Fix DM serial operation with non-DM SPL

2023-01-17 Thread Tom Rini
On Tue, Jan 17, 2023 at 04:12:54PM +0300, Sergei Antonov wrote: > On Tue, 17 Jan 2023 at 15:10, Andre Przywara wrote: > > > -#if CONFIG_IS_ENABLED(DM_SERIAL) && !defined(CONFIG_SYS_NS16550_REG_SIZE) > > +#if CONFIG_IS_ENABLED(DM_SERIAL) > > /* > > * For driver model we always use one byte per

Re: [PATCH v1] arm: dts: rockchip: sync rk3066/rk3188 DT files from linux-next v6.2-rc4

2023-01-17 Thread Quentin Schulz
Hi Johan, On 1/17/23 15:44, Johan Jonker wrote: On 1/17/23 10:46, Quentin Schulz wrote: Hi Johan, On 1/16/23 20:45, Johan Jonker wrote: Sync rk3066/rk3188 DT files from Linux. This is the state as of linux-next v6.2-rc4. New nfc node for MK808 rk3066a. CRU nodes now have a clock property. T

[PATCH v3 0/3] Re-Send Timer support for ARM Tegra

2023-01-17 Thread Svyatoslav Ryhel
- ARM: tegra: remap clock_osc_freq for all Tegra family Enum clock_osc_freq was designed to use only with T20. This patch remaps it to use additional frequencies, added in T30+ SoC while maintaining backwards compatibility with T20. - drivers: timer: add timer driver for ARMv7 based Tegra devices

[PATCH v3 2/3] drivers: timer: add timer driver for ARMv7 based Tegra devices

2023-01-17 Thread Svyatoslav Ryhel
Add timer support for T20/T30/T114 and T124 based devices. Driver is based on DM, has device tree support and can be used on SPL and early boot stage. Tested-by: Andreas Westman Dorcsak # ASUS TF600T T30 Tested-by: Jonas Schwöbel # Surface RT T30 Tested-by: Robert Eckelmann # ASUS TF101 T20 Tes

[PATCH v3 1/3] ARM: tegra: remap clock_osc_freq for all Tegra family

2023-01-17 Thread Svyatoslav Ryhel
Enum clock_osc_freq was designed to use only with T20. This patch remaps it to use additional frequencies, added in T30+ SoC while maintaining backwards compatibility with T20. Tested-by: Andreas Westman Dorcsak # ASUS TF600T T30 Tested-by: Jonas Schwöbel # Surface RT T30 Tested-by: Robert Eckel

[PATCH v3 3/3] ARM: tegra: include timer as default option

2023-01-17 Thread Svyatoslav Ryhel
Enable TIMER as default option for add Tegra devices and enable TEGRA_TIMER for TEGRA_ARMV7_COMMON. Additionally enable SPL_TIMER if build as SPL part and drop deprecated configs from common header. Signed-off-by: Svyatoslav Ryhel --- arch/arm/Kconfig | 1 + arch/arm/mach-tegra/Kco

[PATCH] mmc: rockchip_dw_mmc: fix DDR52 8-bit mode handling

2023-01-17 Thread John Keeping
The RK3288 TRM states that, for 8-bit DDR modes: The CLKDIV register should always be programmed with a value higher than zero (0); that is, a clock divider should always be used for 8-bit DDR mode. In Linux, the driver applies this logic for all SoCs using the driver and

[PATCH] rockchip: ringneck: fix SDRAM init fail

2023-01-17 Thread Quentin Schulz
y -CONFIG_RAM_PX30_DDR4=y +CONFIG_RAM_ROCKCHIP_DDR4=y CONFIG_DM_RESET=y CONFIG_DM_RNG=y CONFIG_RNG_ROCKCHIP=y --- base-commit: 5b958dea5c678dbdb2aeb6ac3c0c8cc8dfea065c change-id: 20230117-ringneck-defconfig-ddr-1fd7bca182f4 Best regards, -- Quentin Schulz

Re: [PATCH v1] arm: dts: rockchip: sync rk3066/rk3188 DT files from linux-next v6.2-rc4

2023-01-17 Thread John Keeping
Hi Quentin, On Tue, Jan 17, 2023 at 04:58:54PM +0100, Quentin Schulz wrote: > On 1/17/23 16:20, John Keeping wrote: > > Hi Johan, > > > > On Tue, Jan 17, 2023 at 03:44:07PM +0100, Johan Jonker wrote: > > > On 1/17/23 10:46, Quentin Schulz wrote: > > > > On 1/16/23 20:45, Johan Jonker wrote: > > >

[PATCH v3 00/70] bootstd: Allow migration from distro_bootcmd scripts

2023-01-17 Thread Simon Glass
So far, standard boot does not replicate all the of the functionality of the distro_bootcmd scripts. In particular it lacks some bootdevs and some of the bootmeths are incomplete. Also there is currently no internal mechanism to enumerate buses in order to discover bootdevs, e.g. with USB. This s

[PATCH v3 01/70] dm: core: Correct ordering of uclasses IDs

2023-01-17 Thread Simon Glass
A few of these are out of order. Fix them. Signed-off-by: Simon Glass --- (no changes since v1) include/dm/uclass-id.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h index 376f741cc2b..33e43c20db6 100644 --- a/include/dm/

[PATCH v3 02/70] dm: core: Support sorting devices with dm tree

2023-01-17 Thread Simon Glass
Add a -s flag to sort the top-level devices in order of uclass ID. Signed-off-by: Simon Glass --- (no changes since v1) cmd/dm.c | 10 +-- doc/usage/cmd/dm.rst | 5 +++- drivers/core/dump.c | 65 include/dm/util.h|

[PATCH v3 03/70] dm: test: Correct assertion in dm_test_part()

2023-01-17 Thread Simon Glass
This obscures the line number. Update the test to avoid make sure that the line which failed is displayed, so it is possible to diagnose the failure. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/part.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --g

[PATCH v3 04/70] lib: Add a function to split a string into substrings

2023-01-17 Thread Simon Glass
Some environment variables provide a space-separated list of strings. It is easier to process these when they are broken out into an array of strings. Add a utility function to handle this. Signed-off-by: Simon Glass --- (no changes since v1) include/vsprintf.h | 24 ++ lib/strto.

[PATCH v3 07/70] test: Fix the help for the ut command

2023-01-17 Thread Simon Glass
The font help has an incorrect newline. Fix it. Signed-off-by: Simon Glass Fixes: cdd964e3801 ("test: Tidy up help for ut command") --- (no changes since v1) test/cmd_ut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cmd_ut.c b/test/cmd_ut.c index 067bd0828a1..1713d

[PATCH v3 06/70] bootstd: Simplify locating existing bootdevs

2023-01-17 Thread Simon Glass
There is no point in trying to match the alias order for bootdevs, since build_order() either sorts them by priority, uses the boot_targets environment variable or the bootdev-order property. Just use the iterator instead, to simplify the code. Signed-off-by: Simon Glass --- (no changes since v

[PATCH v3 05/70] bootstd: Remove special-case code for boot_targets

2023-01-17 Thread Simon Glass
Rather than implement this as its own case in build_order(), process the boot_targets environment variable in the bootstd_get_bootdev_order() function. This allows build_order() to be simplified. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootdev-uclass.c | 32 +-

[PATCH v3 08/70] test: Drop duplicate restore of DM state

2023-01-17 Thread Simon Glass
This code is present twice. Fix it so that it is only executed once. Signed-off-by: Simon Glass --- (no changes since v1) test/test-main.c | 4 1 file changed, 4 deletions(-) diff --git a/test/test-main.c b/test/test-main.c index 5931e94a915..9ab090b7b33 100644 --- a/test/test-main.c +++

[PATCH v3 09/70] sandbox: mmc: Start off with a zeroed file

2023-01-17 Thread Simon Glass
When running multiple tests the mmc emulator calls malloc() to obtain the memory for its disk image. Since the memory is not cleared, it is possible that it happens to contain a partition table. The dm_test_part() test (for one) relies on mmc0 being empty on startup. Zero the memory to ensure that

[PATCH v3 10/70] vbe: Avoid a build failure when bloblist is not enabled

2023-01-17 Thread Simon Glass
This needs to be able to work (at least partially) without the bloblist active. Add a condition for this. Signed-off-by: Simon Glass --- (no changes since v1) cmd/vbe.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/vbe.c b/cmd/vbe.c index befaf07c64d..600690394

[PATCH v3 11/70] vbe: sandbox: Drop VBE node in chosen

2023-01-17 Thread Simon Glass
This is not needed anymore since VBE creates the node when it sets up the OS requests. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/dts/sandbox.dtsi | 13 - 1 file changed, 13 deletions(-) diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/

[PATCH v3 12/70] dm: part: Update test to use mmc2

2023-01-17 Thread Simon Glass
At present this test sets up a partition table on mmc1. But this is used by the bootstd tests, so it is not possible to run those after this test has run, without restarting the Python test harness. This is inconvenient when running tests repeatedly with 'ut dm'. Move the test to use mmc2, which i

[PATCH v3 13/70] dm: test: Correct ordering of DM setup

2023-01-17 Thread Simon Glass
We must call dm_scan_other() after devices from the device tree have been created, since that function behaves differently if there is no bootstd device. Adjust the logic to achieve this. Also fix the bootflow_system() test which was relying on this broken behaviour. Signed-off-by: Simon Glass

[PATCH v3 14/70] ide: Drop non-DM code for BLK

2023-01-17 Thread Simon Glass
We require CONFIG_BLK to be enabled now, so this code is unused. Drop it. Signed-off-by: Simon Glass --- (no changes since v1) drivers/block/ide.c | 42 +- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/

[PATCH v3 16/70] bootstd: Add a default method to get bootflows

2023-01-17 Thread Simon Glass
The code in these functions turns out to often be the same. Add a default get_bootflow() function and allow the drivers to select it by setting the method to NULL. This saves a little code space. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootdev-uclass.c | 27

[PATCH v3 17/70] sandbox: Allow ethernet to be disabled at runtime

2023-01-17 Thread Simon Glass
For bootstd tests it is seldom useful to have ethernet enabled. Add a way to disable it, so that ethernet operations like tftpboot do nothing. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/cpu/state.c | 16 arch/sandbox/include/asm/state.h | 1 + a

[PATCH v3 15/70] dm: mmc: Use bootdev_setup_sibling_blk()

2023-01-17 Thread Simon Glass
At present MMC uses the bootdev_setup_for_dev() function to set up the bootdev. This is because MMC only has one block-device child, so does not need to worry about naming of the bootdev. However this inconsistency with other bootdevs that use block devices is a bit annoying. The only real reason

[PATCH v3 18/70] sandbox: Allow ethernet bootdevs to be disabled for tests

2023-01-17 Thread Simon Glass
Most tests don't want these and can create a lot of noise. Add a way to disable them. Use that in tests, with a flag provided to enable them for tests that need this feature. Signed-off-by: Simon Glass --- (no changes since v1) include/net.h | 16 include/test/test.h | 1

[PATCH v3 19/70] sandbox: Enable the Ethernet bootdev

2023-01-17 Thread Simon Glass
This bootdev is disabled at present since it messes with the tests. Now that there is a way to disable networking at runtime, enable the driver. This allows running tests with it if necessary. Signed-off-by: Simon Glass --- (no changes since v1) configs/sandbox_defconfig | 1 - config

[PATCH v3 20/70] lib: Support printing an error string

2023-01-17 Thread Simon Glass
It is often useful to show an error code to give the user a clue as to what went wrong. When error strings are compiled into U-Boot it is possible to show a message as well. But at present it is not very convenient, since code must check if the error strings are present, then obtain the error stri

[PATCH v3 21/70] event: Correct duplicate log message in event_notify()

2023-01-17 Thread Simon Glass
Use a different one for each call. Signed-off-by: Simon Glass --- (no changes since v1) common/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/event.c b/common/event.c index 231b9e6ffdd..c312556490e 100644 --- a/common/event.c +++ b/common/event.c @@ -123,7 +

[PATCH v3 22/70] efi: Improve logging in efi_disk

2023-01-17 Thread Simon Glass
When this fails it can be time-consuming to debug. Add some debugging to help with this. Also try to return error codes instead of just using -1. Signed-off-by: Simon Glass --- (no changes since v1) lib/efi_loader/efi_disk.c | 30 +- 1 file changed, 21 insertions(+)

[PATCH v3 25/70] dm: usb: Mark the device name as alloced when binding

2023-01-17 Thread Simon Glass
Since usb_find_and_bind_driver() allocates the device name it should tell driver about that, to avoid memory leaks. Fix this. Signed-off-by: Simon Glass --- (no changes since v1) drivers/usb/host/usb-uclass.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/usb-uclass.c b

[PATCH v3 28/70] bootstd: Add an MMC hunter

2023-01-17 Thread Simon Glass
Add a hunter for MMC. This doesn't do anything at present, since MMC is currently set up when U-Boot starts. If MMC moves to lazy init then we can add a hunter function. Signed-off-by: Simon Glass --- (no changes since v1) drivers/mmc/mmc_bootdev.c | 6 ++ test/boot/bootdev.c | 16 +

[PATCH v3 24/70] bootstd: Support running bootdev hunters

2023-01-17 Thread Simon Glass
Add a way to run a bootdev hunter to find bootdevs of a certain type. Add this to the 'bootdev hunt' command. Test for this are added in a later patch, since a useful test needs some hunters to work with. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootdev-uclass.c | 61 +

[PATCH v3 23/70] bootstd: Add the concept of a bootdev hunter

2023-01-17 Thread Simon Glass
Some bootdevs must be enumerated before they appear. For example, USB bootdevs are not visible until USB is enumerated. With standard boot this needs to happen automatically, since we only want to enumerate a bus if it is needed. Add a way to define bootdev 'hunters' which can be used to hunt for

[PATCH v3 31/70] part: Add a function to find the first bootable partition

2023-01-17 Thread Simon Glass
If a disk has a bootable partition we are expected to use it to locate the boot files. Add a function to find it. To test this, update mmc1 to have two paritions, fixing up other tests accordingly. Signed-off-by: Simon Glass --- (no changes since v1) disk/part.c | 16 ++

[PATCH v3 30/70] bootstd: Add a hunter for ethernet

2023-01-17 Thread Simon Glass
Sometimes ethernet devices are attached to PCI. Since it is quick to scan, add this into the ethernet hunter. Run dhcp to establish the network connection. Drop this from the bootdev since that is not needed now. Update a log message for clarity. Signed-off-by: Simon Glass --- (no changes since

[PATCH v3 32/70] bootstd: Only scan bootable partitions

2023-01-17 Thread Simon Glass
At present all partitions are scanned, whether marked bootable or not. Use only bootable partitions, defaulting to partition 1 if none is found. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootdev-uclass.c | 10 +- include/bootflow.h| 2 ++ test/boot/bootdev.c | 37

[PATCH v3 36/70] bootstd: Add an IDE bootdev

2023-01-17 Thread Simon Glass
Add a bootdev for IDE so that these devices can be used with standard boot. Signed-off-by: Simon Glass --- (no changes since v1) configs/sandbox_flattree_defconfig | 8 ++ drivers/block/ide.c| 44 ++ test/boot/bootdev.c| 16 +

[PATCH v3 41/70] virtio: Add a block device

2023-01-17 Thread Simon Glass
The test code for virtio is fairly simplistic and does not actually create a block device. Add a way to specify the device type in the device tree. Add a block device so that we can do more testing. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/dts/test.dts | 6 ++

[PATCH v3 48/70] bootstd: Set the distro_bootpart env var with scripts

2023-01-17 Thread Simon Glass
This environment variable is supposed to be set so that the script knows which partition holds the script. Set it before invoking the script. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootmeth_script.c | 3 +++ include/bootflow.h | 3 +++ 2 files changed, 6 insertions(+) d

[PATCH v3 51/70] bootstd: Add a new bootmeth method to set the bootflow

2023-01-17 Thread Simon Glass
Normally the bootmeth driver reads the bootflow from the bootdev, since it knows the correct way to do it. However it is easier for some bootdevs to handle this themselves. For example, reading from SPI flash is quite different from other devices. Add a way for the bootdev to pass a bootflow to t

[PATCH v3 49/70] bootstd: Update docs on bootmeth_try_file() for sandbox

2023-01-17 Thread Simon Glass
Mention that this function is also used with a NULL block devices to access files on the host, when using sandbox. Update the comment on struct bootflow also. Signed-off-by: Simon Glass --- (no changes since v1) include/bootflow.h | 2 +- include/bootmeth.h | 2 +- 2 files changed, 2 insertio

[PATCH v3 42/70] bootstd: Add a virtio bootdev

2023-01-17 Thread Simon Glass
Add a bootdev for virtio so that these devices can be used with standard boot. Signed-off-by: Simon Glass --- (no changes since v1) drivers/virtio/virtio-uclass.c | 50 ++ test/boot/bootdev.c| 12 2 files changed, 57 insertions(+), 5 deletio

[PATCH v3 40/70] virtio: Avoid strange behaviour on removal

2023-01-17 Thread Simon Glass
This device does a check on removal which is better handled in the actual test. Move it. Signed-off-by: Simon Glass --- (no changes since v1) drivers/virtio/virtio_sandbox.c | 13 - test/dm/virtio_device.c | 3 +++ 2 files changed, 3 insertions(+), 13 deletions(-) diff --

[PATCH v3 37/70] bootstd: Add an NVMe bootdev

2023-01-17 Thread Simon Glass
Add a bootdev for NVMe so that these devices can be used with standard boot. Signed-off-by: Simon Glass --- (no changes since v1) drivers/nvme/nvme-uclass.c | 54 ++ drivers/nvme/nvme.c| 5 test/boot/bootdev.c| 15 ++- 3 files c

[PATCH v3 47/70] bootstd: Support reading the device tree with EFI

2023-01-17 Thread Simon Glass
With EFI booting the device tree is required but is not actually specified in any way. The normal method is to use a fdtfile environment variable to get the filename, then look for that file on the media. Implement this in the bootmeth. Signed-off-by: Simon Glass --- (no changes since v1) boo

[PATCH v3 46/70] bootstd: Include the device tree in the bootflow

2023-01-17 Thread Simon Glass
Some bootmeths provide a way to load a device tree as well as the base OS image. Add a way to store this in the bootflow. Update the 'bootflow info' command to show this information. Note that the device tree is not allocated, but instead is stored at an address provided by an environment variable

[PATCH v3 50/70] bootstd: Move label parsing into its own function

2023-01-17 Thread Simon Glass
This is complicated enough to merit its own function, particularly as we are about to add to it. Create a new label_to_uclass() function to decode a label. Also update the code to ignore an empty label or one consisting of just a number. Signed-off-by: Simon Glass --- (no changes since v1) bo

[PATCH v3 38/70] virtio: Avoid repeating a long expression

2023-01-17 Thread Simon Glass
Use a local variable to hold this name, to reduce the amount of code that needs to be read. Signed-off-by: Simon Glass --- (no changes since v1) drivers/virtio/virtio-uclass.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/virtio/virtio-uclass.c b/driver

[PATCH v3 43/70] ata: Don't try to use non-existent ports

2023-01-17 Thread Simon Glass
The controller indicates the number of ports but also has a port map which specifies which ports are actually valid. Make use of this to avoid trying to send commands to an invalid port. This avoids a crash on some controllers. Signed-off-by: Simon Glass --- (no changes since v1) drivers/ata/

[PATCH v3 57/70] bootstd: Allow hunting for bootdevs of a given priority

2023-01-17 Thread Simon Glass
Add a way to run the hunter function for a particular priority, so that new bootdevs can be found. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootdev-uclass.c | 25 + include/bootdev.h | 11 +++ test/boot/bootdev.c | 25 +

[PATCH v3 56/70] bootstd: Use hunters when scanning for bootflows

2023-01-17 Thread Simon Glass
Add a flag to control whether hunters are used when scanning for bootflows. Enable it by default and tidy up the flag comments a little. Fow now this has no effect, until a future patch enables this feature. Signed-off-by: Simon Glass --- (no changes since v1) cmd/bootflow.c | 5 - i

[PATCH v3 54/70] bootstd: Support reading a script from network or SPI flash

2023-01-17 Thread Simon Glass
At present this bootmeth only supports a block device and the sandbox host filesystem. Add support for obtaining the script from a network device. Also implement the set_bootflow() method so that it is easy for other bootdevs (such as enabling SPI flash to support scripts). Signed-off-by: Simon Gl

[PATCH v3 55/70] bootstd: Treat DHCP and PXE as bootdev labels

2023-01-17 Thread Simon Glass
These are associated with the ethernet boot device but do not match its uclass name, so handle them as special cases. Provide a way to pass flags through with the bootdev so that we know how to process it. The flags are checked by the bootmeths, to ensure that only the selected bootmeth is used.

  1   2   >