public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/2] dm: core: Add support for filling script_offset_f/script_size_f from DT
@ 2023-08-03 13:36 Michal Simek
  2023-08-03 13:36 ` [PATCH 1/2] dm: core: ofnode: Add ofnode_read_bootscript_flash() Michal Simek
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Michal Simek @ 2023-08-03 13:36 UTC (permalink / raw)
  To: u-boot, git, Simon Glass
  Cc: Abdellatif El Khlifi, Dzmitry Sankouski, Ilias Apalodimas,
	Nikhil M Jain

Hi,

The commit https://github.com/devicetree-org/dt-schema/pull/105 added
support for reading memory location where bootscript should be loaded.
This is follow up series on reading information from DT where boot script
is placed in flash memory.

Patches are based on
https://lore.kernel.org/r/b37aec1460d93727a9065766aa5f50fa356ae5aa.1690873880.git.michal.simek@amd.com
and
https://lore.kernel.org/r/b77352af92102dfad2e12a49a7680f5f64f8ee31.1690873880.git.michal.simek@amd.com

I didn't send pull request to dt-schema yet because I want to check logic
around it and DT variable names bootscr-flash-offset and bootscr-flash-size
are correct.

Also there should be follow up patch to remove CONFIG_BOOT_SCRIPT_OFFSET
Kconfig symbol and remove variable script_size_f setup from config file.

Also keep in mind that this is pretty much just 1:1 conversion between DT
and variable. Upstream code is using it for QSPI only and we are also using
in for NAND devices too. But the same approach could be used for DISKs,
EEPROMs or SD RAW. That's why I pretty much think that DT description
should be done a little bit differently.
For example:
bootscr-location = <&nvmem offset size>;

Thanks,
Michal


Michal Simek (2):
  dm: core: ofnode: Add ofnode_read_bootscript_flash()
  xilinx: board: Add support to pick bootscr flash offset/size from DT

 arch/sandbox/dts/test.dts   |  2 ++
 board/xilinx/common/board.c | 13 +++++++++++--
 drivers/core/ofnode.c       | 34 ++++++++++++++++++++++++++++++++++
 include/dm/ofnode.h         | 27 +++++++++++++++++++++++++++
 test/dm/ofnode.c            |  9 +++++++--
 5 files changed, 81 insertions(+), 4 deletions(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-25  7:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03 13:36 [PATCH 0/2] dm: core: Add support for filling script_offset_f/script_size_f from DT Michal Simek
2023-08-03 13:36 ` [PATCH 1/2] dm: core: ofnode: Add ofnode_read_bootscript_flash() Michal Simek
2023-08-04  0:18   ` Simon Glass
2023-08-03 13:36 ` [PATCH 2/2] xilinx: board: Add support to pick bootscr flash offset/size from DT Michal Simek
2023-08-25  7:17 ` [PATCH 0/2] dm: core: Add support for filling script_offset_f/script_size_f " Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox