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