Skip to content

RFC Add support for applications of overlays in SPL

Michal Simek u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 9 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 9 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [RFC PATCH v1 0/9] Add support for applications of overlays in SPL
Quoted 25 lines · Jean-Jacques Hiblot
Quoted 23 lines · Michal Simek
Quoted 22 lines · Jean-Jacques Hiblot
Quoted 21 lines · Michal Simek
Quoted 20 lines · Michal Simek
Quoted 6 lines · Jean-Jacques Hiblot

The purpose of this series is to provide the SPL with ability to apply
overlays for u-boot. this is only a RFC so far, to get a feedback on the
approach.

Quoted 9 lines

Our use-case is the support of the daughter boards of the AM65x EVM. In
Linux, each board is supported by a unique overlay. The presence of the
boards is detected at runtime, and some useful features (like USB) are
implemented on those daughter boards. Instead of providing multiple dtbs
and fall in a combinatorial pit, we propose to use DT overlays.

Not sure if you have it on these boards too but I expect you are able to
detect base board with this code board/ti/common/board_detect.c

Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines

How do you detect these daughter cards? Is there additional I2C connection to them and they have on board eeprom with any format for detection?

Yes. There is EEPROM and GPIOs involved in the detection process.

Does that mean that you use gpio bitbanging i2c eeprom to read information?

no, on am65 we use GPIOs and a true I2C to detect the daughter boards

ok.

Quoted 6 lines
Quoted 6 lines

x

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Something similar what it is part of FMC standard/VITA 57.1 with using FRU spec for daughter card description?
Anyway we are working on FRU parser exactly for this purpose.

Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

Do you also need to apply that overlays in SPL?

We need to apply in SPL so that u-boot has the right information in the DT.

Quoted 1 line
Quoted 1 line

Isn't it enough to apply them as the part of board_fdt_blob_setup()?

No it's possible to do that in board_fdt_blob_setup().

A little bit confused by your response. yes/no?

I forgot a key word here. it is not possible. board_fdt_blob_setup is used to provide a DTB blob

ok. Will play with this and will see.

Thanks,
Michal