ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
vup2 has joined #armlinux
vup2 has quit [Read error: Connection reset by peer]
CrashTestDummy2 has quit [Ping timeout: 244 seconds]
CrashTestDummy2 has joined #armlinux
CrashTestDummy3 has quit [Ping timeout: 268 seconds]
CrashTestDummy3 has joined #armlinux
CrashTestDummy2 has quit [Ping timeout: 268 seconds]
apritzel has joined #armlinux
apritzel has quit [Ping timeout: 240 seconds]
guillaume_g has joined #armlinux
sszy has joined #armlinux
matthias_bgg has joined #armlinux
iivanov has joined #armlinux
<mwalle>
geertu: actually, I guess compatible = "everspin,mr25h256"; won't produce a dtb check error because no binding is matching (unless there is a check for undefined compatible strings)
mvaittin has joined #armlinux
<geertu>
mwalle: Doesn't it match "everspin,mr25h(10|40|128|256)" in Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml? And yes, "make dtbs_check" recently gained a check for undocumented compatible values.
<mwalle>
geertu: not if jedec,spi-nor is not there
<mwalle>
(or I missed something when I tried it myself)
prabhakarlad has joined #armlinux
<geertu>
mwalle: You're right.
<geertu>
If I change the compatible value slightly, it does complain:
<geertu>
failed to match any schema with compatible: ['everspin,mr25h257']
<geertu>
So the warning is suppressed incorrectly if there's a partial match?
<geertu>
robher: ^
<mripard_>
geertu: the way that is used to determine is relevant for a given node is through a "select" clause
<mripard_>
which contains a schema, and if that sub-schema applies, then the rest of the schema applies to that node
<mripard_>
it's fairly redundant, so the tools usually generate it from the compatible list unless it's been already set
<mripard_>
in your case, the schema will only be applied if the compatible is what is under properties/compatible
<mripard_>
which is basically: does it contain jedec,spi-nor or not
<geertu>
mripard_: If I use "mxicy,mx25r1635f", it does complain:
<mripard_>
if it doesn't, then the schema will not be applied, and thus would be silently ignored
<geertu>
flash@0: compatible: 'oneOf' conditional failed, one must be fixed: ['mxicy,mx25r1635f'] is too short