[net-next PATCH v11 4/9] dt-bindings: mfd: Document support for Airoha AN8855 Switch SoC
Christian Marangi
ansuelsmth at gmail.com
Tue Dec 10 13:03:09 PST 2024
On Tue, Dec 10, 2024 at 10:55:44PM +0200, Vladimir Oltean wrote:
> On Mon, Dec 09, 2024 at 02:44:21PM +0100, Christian Marangi wrote:
> > +properties:
> > + compatible:
> > + const: airoha,an8855-mfd
>
> After assisting dt-binding reviews in the past, I get the impression
> that "mfd" in a compatible string name is not going to be accepted.
> The bindings should be OS-independent, MFD is a Linux implementation.
> In principle this could be just "airoha,an8855" for the entire SoC.
>
Ok I will use an8855. The DSA switch has the suffix so it's not a
problem being that generic.
> > +examples:
> > + - |
> > + #include <dt-bindings/gpio/gpio.h>
> > +
> > + mdio {
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > +
> > + mfd at 1 {
>
> And the node name could be just "soc at 1".
>
I tought there was a constraint with node name but this is not the case,
will change to soc.
> > + compatible = "airoha,an8855-mfd";
> > + reg = <1>;
> > +
> > + efuse {
> ...
> > + };
> > +
> > + ethernet-switch {
> ...
> > + };
> > +
> > + mdio {
> ...
> > + };
> > + };
> > + };
>
> I hope it's not mandatory to duplicate in the example also the bindings
> of the children, especially since you link to their own schemas.
I checked other example and some duplicate the example and some
doesn't... My idea here is to try to add the most complete example
possible. Especially to how to define efuse and how phy makes use of it.
--
Ansuel
More information about the linux-arm-kernel
mailing list