devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* JSON schema and conditions
@ 2019-01-16 14:59 Maxime Ripard
  2019-01-16 20:50 ` Rob Herring
  0 siblings, 1 reply; 7+ messages in thread
From: Maxime Ripard @ 2019-01-16 14:59 UTC (permalink / raw)
  To: Rob Herring, devicetree

Hi,

I've started playing a bit with the schemas, and one thing I cannot
wrap my head around at the moment is how to express things like one
property being required only by one compatible over a couple expressed
in the binding document.

Things like a reset property only being required for one particular SoC
for example.

Looking at the current examples, I could see two solutions, one where
we could condition a dependency on a propery value, and the other
where we could inherit another schema and just add more constraints.

I haven't found a way to find either though. Is it covered currently?

Thanks!
Maxime

-- 
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-02-04 15:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-16 14:59 JSON schema and conditions Maxime Ripard
2019-01-16 20:50 ` Rob Herring
2019-01-17 14:35   ` Maxime Ripard
2019-01-18 17:57     ` Rob Herring
2019-01-29 21:19       ` Maxime Ripard
2019-01-29 22:25         ` Rob Herring
2019-02-04 15:45           ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).