Re: [PATCH v4 1/3] dt-bindings: net: sophgo,sg2044-dwmac: add phy mode restriction
Conor Dooley <[email protected]>
| Newsgroups | dev.linux.lists.sophgo,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <20251028-parka-proud-265e5b342b8e@spud> |
On Tue, Oct 28, 2025 at 08:38:56AM +0800, Inochi Amaoto wrote: > As the ethernet controller of SG2044 and SG2042 only supports > RGMII phy. Add phy-mode property to restrict the value. > > Also, since SG2042 has internal rx delay in its mac, make > only "rgmii-txid" and "rgmii-id" valid for phy-mode. Should this have a fixes tag? Acked-by: Conor Dooley <[email protected]> > > Signed-off-by: Inochi Amaoto <[email protected]> > --- > .../bindings/net/sophgo,sg2044-dwmac.yaml | 20 +++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/sophgo,sg2044-dwmac.yaml b/Documentation/devicetree/bindings/net/sophgo,sg2044-dwmac.yaml > index ce21979a2d9a..916ef8f4838a 100644 > --- a/Documentation/devicetree/bindings/net/sophgo,sg2044-dwmac.yaml > +++ b/Documentation/devicetree/bindings/net/sophgo,sg2044-dwmac.yaml > @@ -70,6 +70,26 @@ required: > > allOf: > - $ref: snps,dwmac.yaml# > + - if: > + properties: > + compatible: > + contains: > + const: sophgo,sg2042-dwmac > + then: > + properties: > + phy-mode: > + enum: > + - rgmii-txid > + - rgmii-id > + else: > + properties: > + phy-mode: > + enum: > + - rgmii > + - rgmii-rxid > + - rgmii-txid > + - rgmii-id > + > > unevaluatedProperties: false > > -- > 2.51.1 >
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCaQEX/QAKCRB4tDGHoIJi 0j2LAP9HvD5s5HhSulkZQfpKk77nSCLRHuUpAGScnvLLJbI5JAD7Bc580Q4YP2oc NbiZmgJg4mN/5vfDxejV7+SeFM+7xgM= =uLPY -----END PGP SIGNATURE-----