[Linux-stm32] [net-next v3 3/5] dt-bindings: net: starfive, jh7110-dwmac: Add jhb100 sgmii rx clk

Minda Chen minda.chen at starfivetech.com
Tue May 12 11:11:20 UTC 2026



> 
> > +
> > +        clock-names:
> > +          oneOf:
> > +            - items:
> > +                - const: stmmaceth
> > +                - const: pclk
> > +                - const: ptp_ref
> > +                - const: tx
> > +                - const: gtx
> > +            - items:
> > +                - const: stmmaceth
> > +                - const: pclk
> > +                - const: ptp_ref
> > +                - const: tx
> > +                - const: gtx
> > +                - const: sgmii_rx
> 
> Can't you just leave this list outside the conditional section, and add the extra
> item to the end? The only difference appears to be the sgmii_rx clock, and it's at
> the end.
> 
> I'm also not really convinced that this flexibility is required, unless there are
> some controllers on the platform that do not support sgmii.
> 
> pw-bot: changes-requested
> 
> Cheers,
> Conor.
> 

Thanks. Yes, can do it more simple . I think change the clocks-names in properties like this is Okay.

   clock-names:
+    minItems: 5
     items:
       - const: stmmaceth
       - const: pclk
       - const: ptp_ref
       - const: tx
       - const: gtx
+      - enum:
+          - sgmii_rx

 
> >        if:
> >          properties:
> >            compatible:
> > --
> > 2.17.1
> >



More information about the Linux-stm32 mailing list