+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
+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
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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:
> ===
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
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
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
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
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
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
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
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
> > >
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
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
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-
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
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
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
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
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
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
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 |
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
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
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/
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
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
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
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
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 +++---
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 +++
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.
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
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
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
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
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
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 |
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,
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
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-
70 matches
Mail list logo