Re: Board revision dependent settings in device tree/override tree?

Nico Huber via coreboot <[email protected]>
Newsgroups gmane.linux.bios
Message-ID <[email protected]>
Hi Paul,

On 02.04.24 11:38, Paul Menzel wrote:
> Change-set *mb/google/nissa/var/craaskov: Disable external fivr* [1]
> moves the settings for the external fully integrated voltage regulator
> (FIVR) out of device tree/override tree to only apply it to board
> revision with an external FIVR.
>
> Is there a way to support conditions in device tree?

as others pointed out this is about runtime conditions in particular.
There's actually one runtime mechanism implemented currently: the
`probe` statement. It does a simple comparison and if that fails, the
device with the probe gets disabled. This doesn't seem to be imple-
mented for the board_id values atm. But extending the mechanism should
be easy.

However there's a bigger problem in [1], that a monolithic, FSP-style
struct is used instead of modeling individual devices. Even with a
mechanism to disable an FIVR device at runtime, it would need more
changes to configure FSP with an actual device*tree*.

Nico

> [1]: https://review.coreboot.org/c/coreboot/+/81607

_______________________________________________
coreboot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.