JSON schema and conditions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux