Thread (13 messages) 13 messages, 5 authors, 2022-02-09

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

flat view

From: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Date: 2022-02-09 08:38:12
Also in: linux-devicetree, lkml

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help