[PATCH net-next RFC 0/5] net: phy: Introduce a port representation

Oleksij Rempel o.rempel at pengutronix.de
Tue Jan 7 06:53:57 PST 2025


On Tue, Jan 07, 2025 at 03:43:02PM +0100, Kory Maincent wrote:
> On Tue, 7 Jan 2025 15:02:46 +0100
> Oleksij Rempel <o.rempel at pengutronix.de> wrote:
> 
> > On Tue, Jan 07, 2025 at 02:26:05PM +0100, Kory Maincent wrote:
> > > On Thu, 2 Jan 2025 18:03:52 +0100
> > > Oleksij Rempel <o.rempel at pengutronix.de> wrote:
> > >   
> > > > On Thu, Jan 02, 2025 at 10:48:05AM +0000, Russell King (Oracle) wrote:  
> >  [...]  
> >  [...]  
> > > 
> > > Couldn't we begin with something simple like the following and add all the
> > > transformers and pairs information as you described later if the community
> > > feels we need it?
> > > 
> > > mdis {
> > > 
> > >     /* 1000BaseT Port with Ethernet and PoE */
> > >     mdi0: ethernet-mdi at 0 {
> > >         reg = <0>; /* Port index */
> > >         label = "ETH0"; /* Physical label on the device */
> > >         connector = "RJ45"; /* Connector type */
> > >         supported-modes = <10BaseT 100BaseTX 1000BaseT>; /* Supported modes
> > > */ lanes = <2>;
> > >         variant = "MDI-X"; /* MDI or MDI-X */
> > >         pse = <&pse1>;
> > >     };
> > > };  
> > This was only the pair swap. How to reflect the polarity swap withing
> > the pairs?
> 
> Indeed I see what you mean. Maybe we could add it later as optional binding and
> only focus for now on the current needs.
> According to Maxime proposition he wants the connector types and the
> supported modes (or number of lanes). On my side I am interested in the PSE
> phandle.
> 
> We could begin with this:
> mdis {
>     /* 1000BaseT Port with Ethernet and PoE */
>     mdi0: ethernet-mdi at 0 {
>         reg = <0>; /* Port index */
>         label = "ETH0"; /* Physical label on the device */
>         connector = "RJ45"; /* Connector type */
>         supported-modes = <10BaseT 100BaseTX 1000BaseT>; /* Supported modes */
>         pse = <&pse1>;
>     };
> };  
> 
> Your proposition will stay in our mind for future development on the subject.

Perfect :)

> I think we currently don't have enough time available to develop the full
> package.

Yes, no one do.

> What do you think?

Sounds good!

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the linux-arm-kernel mailing list