[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f70deb0226581bf4f385a6d55ada3da1@walle.cc>
Date: Wed, 28 Dec 2022 16:00:01 +0100
From: Michael Walle <michael@...le.cc>
To: Rob Herring <robh@...nel.org>
Cc: Xu Liang <lxu@...linear.com>, Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
"David S . Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH net-next v1 3/4] dt-bindings: net: phy: add MaxLinear
GPY2xx bindings
>> +
>> + Affected PHYs (as far as known) are GPY215B and GPY215C.
>> + type: boolean
>> +
>> +dependencies:
>> + maxlinear,use-broken-interrupts: [ interrupts ]
Btw. I'd presume that the tools will also allow interrupts-extended, but
that
doesn't seem to be the case. Do I need some kind of anyOf here?
>> +
>> +unevaluatedProperties: false
>> +
>> +examples:
>> + - |
>> + ethernet {
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> +
>> + ethernet-phy@0 {
>> + reg = <0>;
>> + interrupts-extended = <&intc 0>;
>> + maxlinear,use-broken-interrupts;
>
> This is never actually checked by be schema because there is nothing to
> match on. If you want custom properties, then you need a compatible.
I can add an unwanted compatible here, or skip the example altogether.
But
what puzzles me is that this schema pulls in the ethernet-phy.yaml. The
latter
then has a custom select statement on the $nodename and even a comment:
# The dt-schema tools will generate a select statement first by using
# the compatible, and second by using the node name if any. In our
# case, the node name is the one we want to match on, while the
# compatible is optional.
Why doesn't that work?
-michael
Powered by blists - more mailing lists