Re: [PATCH] dt-bindings: net: dsa: realtek-smi: convert to YAML schema

From: Luiz Angelo Daros de Luca
Date: Wed Feb 09 2022 - 03:38:12 EST


> If there
> are properties that only apply to SPI or MDIO, you can make use of
> conditionals within the YAML file to enforce those. Having a single
> binding file would be very helpful to make sure all eggs are in the same
> basket.

Sorry Florian but I failed to find a way to test the parent node
(platform or mdio) and conditionally offer properties.
What I did was to guess if it is an mdio driver or not by checking the
"reg" property. Is there a better way to solve it?

Luiz

PS: I might post the merged v2 doc soon.