RE: [PATCH] mmc: fsl_esdhc: Fix 'Internal clock never stabilised.' error

2022-05-08 Thread Bough Chen
+Yangbo > -Original Message- > From: Peng Fan (OSS) > Sent: 2022年5月9日 13:37 > To: Pali Rohár ; Peng Fan ; Priyanka Jain > ; Jaehoon Chung ; Sinan > Akman ; Bough Chen > Cc: u-boot@lists.denx.de > Subject: Re: [PATCH] mmc: fsl_esdhc: Fix 'Internal clock never stabilised.' > error > > +H

Re: [PATCH] mmc: fsl_esdhc: Fix 'Internal clock never stabilised.' error

2022-05-08 Thread Peng Fan (OSS)
+Haibo On 2022/4/30 2:27, Pali Rohár wrote: Only newer eSDHC controllers set PRSSTAT_SDSTB flag. So do not wait until flag PRSSTAT_SDSTB is set on old pre-2.2 controllers. Instead sleep for fixed amount of time like it was before commit 6f883e501b65 ("mmc: fsl_esdhc: Add emmc hs200 support"). T

Re: [PATCH] efi_loader: disk: allow blk devices even without UCLASS_PARTITION

2022-05-08 Thread AKASHI Takahiro
Simon, On Thu, Apr 28, 2022 at 12:43:03PM +0200, Heinrich Schuchardt wrote: > On 4/28/22 06:49, AKASHI Takahiro wrote: > > While GPT partition is mandated in UEFI specification, CONFIG_PARTITION is > > seen optional under the current implementation. > > So modify efi_disk_rw_blocks() to allow acce

[PATCH 7/7] reset: sunxi: Reuse the platform data from the clock driver

2022-05-08 Thread Samuel Holland
The clock and reset drivers use the exact same platform data. Simplify them by sharing the object. This is safe because the parent device (the clock device) always gets its driver model callbacks run first. Signed-off-by: Samuel Holland --- drivers/clk/sunxi/clk_sunxi.c | 7 +- drivers/res

[PATCH 6/7] reset: sunxi: Convert driver private data to platform data

2022-05-08 Thread Samuel Holland
The reason here is the same as the reason for changing the clock driver: platform data can be provided when binding the driver. Signed-off-by: Samuel Holland --- drivers/reset/reset-sunxi.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git

[PATCH 4/7] clk: sunxi: Use a single driver for all variants

2022-05-08 Thread Samuel Holland
Now that all of the variants use the same bind/probe functions and ops, there is no need to have a separate driver for each variant. Since most SoCs contain two variants (the main CCU and PRCM CCU), this saves a bit of firmware size and RAM. Signed-off-by: Samuel Holland --- drivers/clk/sunxi/c

[PATCH 5/7] clk: sunxi: Convert driver private data to platform data

2022-05-08 Thread Samuel Holland
All of the driver private data should really be platform data since it is determined statically (selected by the compatible string or extracted from the devicetree). Move everything to platform data, so it can be provided when binding the driver. This is useful for SPL, or for instantiating the dri

[PATCH 3/7] reset: sunxi: Get the reset count from the CCU descriptor

2022-05-08 Thread Samuel Holland
This allows all of the clock drivers to use a common bind function. Signed-off-by: Samuel Holland --- drivers/clk/sunxi/clk_a10.c | 7 +-- drivers/clk/sunxi/clk_a10s.c | 7 +-- drivers/clk/sunxi/clk_a23.c | 7 +-- drivers/clk/sunxi/clk_a31.c | 7 +-- drivers/clk/sunxi

[PATCH 1/7] clk: sunxi: Store the array sizes in the CCU descriptor

2022-05-08 Thread Samuel Holland
The reset array size is currently used for bounds checking in the reset driver. The same bounds check should really be done in the clock driver. Currently, the array size is provided to the reset driver separately from the CCU descriptor, which is a bit strange. Let's do this the usual way, with t

[PATCH 2/7] clk: sunxi: Prevent out-of-bounds gate array access

2022-05-08 Thread Samuel Holland
Because the gate arrays are not given explicit sizes, the arrays are only as large as the highest-numbered gate described in the driver. However, only a subset of the CCU clocks are needed by U-Boot. So there are valid clock specifiers with indexes greater than the size of the arrays. Referencing a

[PATCH 0/7] clk: sunxi: Out-of-bounds access fix and driver cleanup

2022-05-08 Thread Samuel Holland
This series fixes an issue with out-of-bounds access to the gate array (patches 1-2), uses the rearranged array size information to remove a bunch of duplicate code (patches 3-4), and then simplifies how the reset driver is bound (patches 5-7). The original motivation for these changes was adding

Re: [PATCH 1/1] test: fix some pylint problems in test_capsule_firmware_raw.py

2022-05-08 Thread AKASHI Takahiro
On Sat, Apr 30, 2022 at 03:55:41PM +0200, Heinrich Schuchardt wrote: > * improve doc-string formatting > * remove unused imports Similar changes should be applied to test_capsule_firmware_fit.py and test_capsule_firmware_signed.py as well. -Takahiro Akashi > Signed-off-by: Heinrich Schuchardt >

[PATCH 1/1] Add mmc_set_env_dev to TI AM33xx, using the scratch reg of UART port

2022-05-08 Thread Da Shi Cao
Signed-off-by: Dashi Cao --- board/ti/am335x/board.c | 40 common/spl/spl.c| 6 ++ drivers/mmc/mmc.c | 4 include/mmc.h | 1 + 4 files changed, 51 insertions(+) diff --git a/board/ti/am335x/board.c b/board/ti/am335x/boa

[PATCH 2/2] serial: Remove obsolete CONS_INDEX_n Kconfig options

2022-05-08 Thread Samuel Holland
These were only ever implied by sunxi platforms, and that usage has been removed. Current practice is to specify CONFIG_CONS_INDEX in each board's defconfig. Signed-off-by: Samuel Holland --- drivers/serial/Kconfig | 26 -- 1 file changed, 26 deletions(-) diff --git a/d

[PATCH 1/2] sunxi: Remove obsolete Kconfig selections

2022-05-08 Thread Samuel Holland
ARCH_SUNXI selects DM_SERIAL, so the condition can never be satisfied. Signed-off-by: Samuel Holland --- arch/arm/mach-sunxi/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 1f43b25324..ee606c5bbc 100644 --- a/arch/arm

Re: [PATCH] sunxi: board: Fix UART PortF pinmux setup

2022-05-08 Thread Samuel Holland
On 5/5/22 7:37 PM, Andre Przywara wrote: > When CONFIG_UART0_PORT_F is defined, we try to configure two PortF pins > (usually used for the SD card) as UART0. Some SoCs use the mux value of > 3 for this, while others use 4. > > The combination of Kconfig symbols we currently use was not quite right

Re: [PATCH 2/2] clk: sunxi: add and use dummy gate clocks

2022-05-08 Thread Samuel Holland
On 5/5/22 7:33 PM, Andre Przywara wrote: > Some devices enumerate various clocks in their DT, and many drivers > just blanketly try to enable all of them. This creates problems > since we only model a few gate clocks, and the clock driver outputs > a warning when a clock is not described: > ===

Re: [PATCH 6/9] dm: core: Support accessing core tags

2022-05-08 Thread AKASHI Takahiro
Hi Simon, On Sun, May 08, 2022 at 04:39:24AM -0600, Simon Glass wrote: > At present tag numbers are only allocated for non-core data, meaning that > the 'core' data, like priv and plat, are accessed through dedicated > functions. > > For debugging and consistency it is convenient to use tags for

Re: Pull request for efi-2022-07-rc3-2

2022-05-08 Thread Tom Rini
On Sun, May 08, 2022 at 09:37:04AM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit 145921bdbdcfc24f18ce21d570ff86cc7e1fa3ba: > > Merge https://source.denx.de/u-boot/custodians/u-boot-usb (2022-05-06 > 08:57:15 -0400) > > are available in the Git repository

Re: [PATCH 2/3] phy: stm32-usbphyc: usbphyc is a clock provider of ck_usbo_48m clock

2022-05-08 Thread Sean Anderson
On 4/26/22 8:37 AM, Patrick Delaunay wrote: ck_usbo_48m is generated by usbphyc PLL and used by OTG controller for Full-Speed use cases with dedicated Full-Speed transceiver. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Patrick Delaunay --- drivers/phy/phy-stm32-us

Re: [PATCH 1/3] phy: stm32-usbphyc: add counter of PLL consumer

2022-05-08 Thread Sean Anderson
On 4/26/22 8:37 AM, Patrick Delaunay wrote: Add the counter of the PLL user n_pll_cons managed by the 2 functions stm32_usbphyc_pll_enable / stm32_usbphyc_pll_disable. This counter allow to remove the function stm32_usbphyc_is_init and it is a preliminary step for ck_usbo_48m introduction. Is

[PATCH 2/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2022-05-08 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc

[PATCH 1/2] dts: imx8mp: assign binman_configuration node name to config-SEQ

2022-05-08 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" assign a node name for config-SEQ so that the board dts can modify the configuration more easily. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- arch/arm/dts/imx8mp-u-boot.dtsi | 2 +- 1 file changed, 1

[PATCH 0/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2022-05-08 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Ying-Chun Liu (PaulLiu) (2): dts: imx8mp: assign binman_con

Re: [PATCH 1/1 v2] add support for mws4 board

2022-05-08 Thread Tom Rini
On Sun, May 08, 2022 at 05:47:58PM +0200, Marian Ulbricht wrote: > Am 08.05.22 um 16:21 schrieb Tom Rini: > > On Sun, May 08, 2022 at 03:46:55PM +0200, Marian Ulbricht wrote: > > > > > mws4 is an arm based nuclear probe hardware used from german government to > > > monitor nuclear activity > > >

Re: [PATCH 1/1 v2] add support for mws4 board

2022-05-08 Thread Marian Ulbricht
Am 08.05.22 um 16:21 schrieb Tom Rini: On Sun, May 08, 2022 at 03:46:55PM +0200, Marian Ulbricht wrote: mws4 is an arm based nuclear probe hardware used from german government to monitor nuclear activity Signed-off-by: Marian Ulbricht Thanks for the submission. Have you submitted the board

Re: [PATCH 3/3] test: py: tests: test_gpt.py: add a simple test for the command gpt repair

2022-05-08 Thread Tom Rini
On Fri, Apr 22, 2022 at 05:46:50PM +0200, Philippe Reynes wrote: > Adds a simple test for the command gpt repair. > > Signed-off-by: Philippe Reynes Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/3] cmd: gpt: add subcommand repair

2022-05-08 Thread Tom Rini
On Fri, Apr 22, 2022 at 05:46:49PM +0200, Philippe Reynes wrote: > Adds a sub-command repair to the command gpt > that allow to repair a corrupted gpt table. If > the both gpt table (primary and backup) are > valid, then the command does nothing. > > Signed-off-by: Philippe Reynes Applied to u-

Re: [PATCH 1/3] disk: part_efi: add support to repair gpt table

2022-05-08 Thread Tom Rini
On Fri, Apr 22, 2022 at 05:46:48PM +0200, Philippe Reynes wrote: > If a gpt table is corrupted (after a power cut > for example), then the gpt table should repaired. > The function gpt_repair_headers check if at least > one gpt table is valid, and then only write the > corrupted gpt table. > > Si

Re: [PATCH] fdt: don't set linux,phandle

2022-05-08 Thread Tom Rini
On Wed, Apr 20, 2022 at 11:31:11AM +0100, John Keeping wrote: > This has been deprecated for over 10 years and everything now uses the > plain "phandle" property in preference. There's no need to set > linux,phandle when creating phandles for nodes that do not have one. > > dtc changed the defau

Re: [PATCH V2 7/7] binman_sym: guard with CONFIG_SPL_BINMAN_SYMBOLS

2022-05-08 Thread Tom Rini
On Sat, May 07, 2022 at 07:04:01PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > There is case that CONFIG_BINMAN is defined, but > CONFIG_SPL_BINMAN_SYMBOLS is not defined. In that case, there will be > build failure. So use CONFIG_SPL_BINMAN_SYMBOLS to guard the macros, and > define CONFIG

Re: [PATCH] boot: image-pre-load: drop unused CONFIG_SYS_BOOTM_LEN

2022-05-08 Thread Tom Rini
On Sat, May 07, 2022 at 09:23:05PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > CONFIG_SYS_BOOTM_LEN is not used in this file, drop it. > > Signed-off-by: Peng Fan Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [PATCH V2 4/7] tools: binman: section: replace @ with -

2022-05-08 Thread Tom Rini
On Sat, May 07, 2022 at 07:03:58PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > In arch/arm/dts/imx8mp-u-boot.dtsi, there are blob-ext@1, blob-ext@2 and > etc which is for packing ddr phy firmware. However we could not declare > symbol name such as 'binman_sym_declare(ulong, blob_ext@1, ima

Re: [PATCH] devres: Use the correct devres implementation in SPL builds

2022-05-08 Thread Tom Rini
On Tue, Apr 19, 2022 at 10:14:04AM +0200, Alban Bedel wrote: > When CONFIG_DEVRES is set, but CONFIG_SPL_DM is not set devres code is > not included in the SPL. But dm/devres.h only check for CONFIG_DEVRES > to select if the full implementation should be used. So if any devres > function is used i

[PATCH v1 16/17] rockchip: rk3066: add recovery mode in spl

2022-05-08 Thread Johan Jonker
Add a recovery button test as condition to enter the recovery mode in spl. Run the rockusb gadget for MMC while connected to a USB host. Allow external user defined functions by labeling these functions as "__weak". Signed-off-by: Johan Jonker --- .../arm/include/asm/arch-rockchip/f_rockusb.h |

Re: Bug in p1_p2_rdb_pc? Caching-inhibited bit for initial L2 SRAM entry in TLB

2022-05-08 Thread Pali Rohár
On Thursday 14 April 2022 23:05:39 Pali Rohár wrote: > + Sinan > > On Wednesday 13 April 2022 11:26:33 Pali Rohár wrote: > > On Tuesday 05 April 2022 10:57:37 Pali Rohár wrote: > > > Hello! > > > > > > I suspect that there is a bug in board/freescale/p1_p2_rdb_pc/tlb.c code > > > which configures

[PATCH v1 17/17] rockchip: configs: mk808: enable usb support

2022-05-08 Thread Johan Jonker
Enable usb support in the mk808_defconfig. Add adc button in full and spl mode to do an action on user demand. Signed-off-by: Johan Jonker --- configs/mk808_defconfig | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/configs/mk808_defconfig b/configs/mk808

[PATCH v1 15/17] rockchip: rk3066: config nand data pins in spl

2022-05-08 Thread Johan Jonker
From: Paweł Jarosz The rk3066 grf_soc_con0 allows interchangeable data pin configuration for emmc and nand. Use rockchip_nand_board_early_init function to config nand data pins in spl as bootrom leaves it in default state. Signed-off-by: Paweł Jarosz Signed-off-by: Johan Jonker --- arch/arm/

[PATCH v1 12/17] rockchip: adc: fix the hangups

2022-05-08 Thread Johan Jonker
The Rockchip saradc behaves strange when doing an "adc scan" with hang ups. Fix by adding an adc power down before the settings are made. Similair to what TRM recommands follow this flow below: Power-down A/D Converter in SARADC_CTRL[3] Power-up A/D Converter in SARADC_CTRL[3] and select input cha

[PATCH v1 13/17] rockchip: adc: make adc branch compile in SPL

2022-05-08 Thread Johan Jonker
Make the ADC branch compile in SPL. Signed-off-by: Johan Jonker --- drivers/Makefile | 3 ++- drivers/adc/Kconfig | 29 + drivers/adc/Makefile | 4 ++-- 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index 4e

[PATCH v1 14/17] rockchip: adc: move config items in a sub menu

2022-05-08 Thread Johan Jonker
There are multiple ADC config items in the main menu. Move them out of sight in a sub menu. Signed-off-by: Johan Jonker --- drivers/adc/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/drivers/adc/Kconfig b/drivers/adc/Kconfig index 68e0d2d3..ba07754a 100644 --- a/drivers/adc/Kcon

[PATCH v1 11/17] rockchip: adc: fix adc timer

2022-05-08 Thread Johan Jonker
Replace adc timer counter by SoC timer to prevent EBUSY notifications. Signed-off-by: Johan Jonker --- drivers/adc/adc-uclass.c | 10 ++ drivers/adc/rockchip-saradc.c | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/adc/adc-uclass.c b/drivers/adc/adc-u

[PATCH v1 10/17] rockchip: adc: enable spl compile rockchip-saradc driver

2022-05-08 Thread Johan Jonker
Enable spl compile rockchip-saradc driver. When OF_PLATDATA is selected the "vdd-microvolts" property is used instead of vref from regulator to reduze size from the regulator and the gpio class. Signed-off-by: Johan Jonker --- drivers/adc/rockchip-saradc.c | 64 +++---

[PATCH v1 08/17] rockchip: adc: enable spl compile class driver

2022-05-08 Thread Johan Jonker
Enable spl compile of the class driver for other compile modes then OF_REAL, so that at least it doesn't break the process. Use #if because code review shows that IS_ENABLED() and device_get_supply_regulator() results in probe failure. Signed-off-by: Johan Jonker --- drivers/adc/adc-uclass.c | 3

[PATCH v1 09/17] rockchip: adc: reduce error notifications from class driver

2022-05-08 Thread Johan Jonker
The adc class driver reads optional "vss-supply" and "vdd-supply" properties. The SoC adc driver can parse for vref, so reduce error notifications when not found. Signed-off-by: Johan Jonker --- drivers/adc/adc-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driv

[PATCH v1 07/17] arm: dts: rockchip: mk808: add adc usb required properties for spl

2022-05-08 Thread Johan Jonker
Add adc and usb required properties for spl to rk3066a-mk808-u-boot.dtsi Signed-off-by: Johan Jonker --- arch/arm/dts/rk3066a-mk808-u-boot.dtsi | 29 ++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/dts/rk3066a-mk808-u-boot.dtsi b/arch/arm/dts/rk3066a-mk808-u-b

[PATCH v1 06/17] rockchip: configs: mk808: add spl usb configs

2022-05-08 Thread Johan Jonker
Add usb spl configs for mk808. Signed-off-by: Johan Jonker --- include/configs/mk808.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/mk808.h b/include/configs/mk808.h index e2ab2b51..5a0c7fbc 100644 --- a/include/configs/mk808.h +++ b/include/configs/mk808.h @@ -6,4 +6,7

[PATCH v1 03/17] rockchip: spl-boot-order: add usb boot option

2022-05-08 Thread Johan Jonker
Add usb boot option to spl-boot-order.c Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/spl-boot-order.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/spl-boot-order.c b/arch/arm/mach-rockchip/spl-boot-order.c index 93b8e7de..c4ba369b 100644 --- a/arch/arm

[PATCH v1 04/17] rockchip: board: allow spl compile for usb init functions

2022-05-08 Thread Johan Jonker
The usb init functions in board.c are needed in SPL during boot, so allow SPL compile for board.c Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/Makefile b/arch/arm/mach-rockchip/Makefil

[PATCH v1 05/17] rockchip: usb: gadget: rockusb: enable spl compile

2022-05-08 Thread Johan Jonker
Enable spl compile for rockusb. Signed-off-by: Johan Jonker --- drivers/usb/gadget/Kconfig | 10 ++ drivers/usb/gadget/Makefile | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 8c6cf474..b10f1956 100644

[PATCH v1 01/17] rockchip: spl: fix reloc gd and FDT blob pointer

2022-05-08 Thread Johan Jonker
When the Rockchip function dram_init() is called in the spl.c board_init_f() the variable gd->ram_base returns 0. This is problematic for functions after the gd relocation. Fix by adding ram.base to gd->ram_base in sdram.c. After the function spl_relocate_stack_gd is called in crt0.S the pointer g

[PATCH v1 02/17] rockchip: spl: allow more boot devices

2022-05-08 Thread Johan Jonker
Rockchip SoCs have more boot device options then currently included in the function spl_boot_device(). Make this function generic for SPI and NAND. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/spl.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-r

[PATCH v1 00/17] Add rk3066 ADC and USB support

2022-05-08 Thread Johan Jonker
Add rk3066 ADC and USB support. The Rockchip SoC rk3066 has no support for MMC and USB in the BootROM. The TPL/SPL parts are mostly stored on NAND. With U-boot stored on an external media the moment a user wants to start a recovery action it has to be done in SPL. Some boards only have one ADC swi

Re: [PATCH 1/1] add support for mws4 board

2022-05-08 Thread Tom Rini
On Sun, May 08, 2022 at 03:46:55PM +0200, Marian Ulbricht wrote: > mws4 is an arm based nuclear probe hardware used from german government to > monitor nuclear activity > > Signed-off-by: Marian Ulbricht Thanks for the submission. Have you submitted the board dts files to upstream Linux? Also

[PATCH 1/1] add support for mws4 board

2022-05-08 Thread Marian Ulbricht
mws4 is an arm based nuclear probe hardware used from german government to monitor nuclear activity Signed-off-by: Marian Ulbricht --- arch/arm/dts/Makefile | 3 + arch/arm/dts/omap3-mws4-u-boot.dtsi | 14 ++ arch/arm/dts/omap3-mws4.dts | 137 ++ arch/arm/m

Re: [PATCH V2] ARM: imx: imx8m: Adjust thermal trip points for Industrial parts

2022-05-08 Thread Marek Vasut
On 5/8/22 04:59, Adam Ford wrote: On Sat, May 7, 2022 at 5:00 PM Marek Vasut wrote: On 5/7/22 14:04, Adam Ford wrote: If the thermal sensor is enabled in U-Boot, adjust the cpu-thermal trip points for industrial rated parts. This should apply to 8MQ, 8MM, 8MN, and 8MP. Signed-off-by: Adam F

[PATCH 9/9] dm: spl: Allow SPL to show memory usage

2022-05-08 Thread Simon Glass
Add an option to tell SPL to show memory usage for driver model just before it boots into the next phase. Signed-off-by: Simon Glass --- common/spl/spl.c | 9 + drivers/core/Kconfig | 10 ++ 2 files changed, 19 insertions(+) diff --git a/common/spl/spl.c b/common/spl/spl.c

[PATCH 8/9] dm: core: Add a command to show driver model statistics

2022-05-08 Thread Simon Glass
This command shows the memory used by driver model along with various hints as to what it might be if some 'core' tags were moved to use the tag list instead of a core (i.e. always-there) pointer. This may help with future work to reduce memory usage. Signed-off-by: Simon Glass --- cmd/dm.c

[PATCH 7/9] dm: core: Add a way to collect memory usage

2022-05-08 Thread Simon Glass
Add a function for collecting the amount of memory used by driver model, including devices, uclasses and attached data and tags. This information can provide insights into how to reduce the memory required by driver model. Future work may look at execution speed also. Signed-off-by: Simon Glass

[PATCH 5/9] dm: core: Switch the testbus driver to use a new struct

2022-05-08 Thread Simon Glass
At present this driver uses 'priv' struct to hold 'plat' data, which is confusing. The contents of the strct don't matter, since only dtoc is using it. Create a new struct with the correct name. Signed-off-by: Simon Glass --- drivers/misc/test_drv.c | 2 +- include/dm/test.h | 7 +++

[PATCH 4/9] dm: core: Add documentation for the dm command

2022-05-08 Thread Simon Glass
Add a description and examples for the dm subcommands. Signed-off-by: Simon Glass --- doc/usage/cmd/dm.rst | 487 +++ doc/usage/index.rst | 1 + 2 files changed, 488 insertions(+) create mode 100644 doc/usage/cmd/dm.rst diff --git a/doc/usage/cmd/dm.

[PATCH 6/9] dm: core: Support accessing core tags

2022-05-08 Thread Simon Glass
At present tag numbers are only allocated for non-core data, meaning that the 'core' data, like priv and plat, are accessed through dedicated functions. For debugging and consistency it is convenient to use tags for this 'core' data too. Add support for this, with new tag numbers and functions to

[PATCH 3/9] dm: core: Fix addresses in the dm static command

2022-05-08 Thread Simon Glass
This command converts pointers to addresses, but the pointers being converted are in the image's rodata region. For sandbox this means it is not in DRAM so it does not make sense to do this conversion. Fix this by showing a simple pointer instead. Drop the unnecessary @ and hex prefixes. Signed-o

[PATCH 2/9] dm: core: Sort dm subcommands

2022-05-08 Thread Simon Glass
Put these in alphabetic order, both in the help and in the implementation, as there are quite a few subcommands now. Tweak the help for 'dm tree' to better explain what it does. Signed-off-by: Simon Glass --- cmd/dm.c | 48 1 file changed, 24 ins

[PATCH 1/9] dm: core: Rename dm_dump_all()

2022-05-08 Thread Simon Glass
This is not a good name anymore as it does not dump everything. Rename it to dm_dump_tree() to avoid confusion. Signed-off-by: Simon Glass --- cmd/dm.c| 8 drivers/core/dump.c | 2 +- include/dm/util.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a

[PATCH 0/9] dm: core: Support collecting and reporting stats

2022-05-08 Thread Simon Glass
Driver model can use a lot of memory, as it is the core of all drivers and devices in U-Boot. Add a command to show how much is in use, along with the sizes of various data structures. This patch can be used to analyse the impact of various potential changes to driver model for SPL, none of which

[PATCH] cmd: dm: migrate dm command to use U_BOOT_CMD_WITH_SUBCMDS()

2022-05-08 Thread Ovidiu Panait
Migrate dm command to use U_BOOT_CMD_WITH_SUBCMDS() helper macro, to reduce duplicated code. We can also drop the CONFIG_NEEDS_MANUAL_RELOC exception, as the command list is updated post relocation in board_r.c initcall initr_manual_reloc_cmdtable(). Signed-off-by: Ovidiu Panait --- cmd/dm.c |

Re: [PATCH 1/5] phy: adin: remove broken support for adi,phy-mode-override

2022-05-08 Thread Josua Mayer
Hi Nate, Maintainers, This patch is now superseded by Nate's [PATCH] phy: adin: fix broken support for adi,phy-mode-override submitted yesterday. The remainder of this patchset cleanly applies on top of it though, so I won't roll v2. Let me know if there is any further feedback on this series,

Re: [PATCH] phy: adin: fix broken support for adi,phy-mode-override

2022-05-08 Thread Josua Mayer
Hi Nate, That was quick! I have rebased my changes on top of this patch, and can confirm that the adin phy driver compiles, and still works. I did not test setting adi,[rt]x-internal-delay-ps in dts though. So, I guess you can add my superficial Tested-By: Josua Mayer [PATCH 0/5] mx6cuboxi: a

Pull request for efi-2022-07-rc3-2

2022-05-08 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 145921bdbdcfc24f18ce21d570ff86cc7e1fa3ba: Merge https://source.denx.de/u-boot/custodians/u-boot-usb (2022-05-06 08:57:15 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2022-07-rc3-