> >> Humm, if that's the problem we want to solve, we could introduce a > >> helper function which tries to locate the phy using a 'phy-handle' > >> property > > > > I don't follow you. Where do you get a phandle from to use with > > phy-handle? > > >From the caller of the function: the consumer of that phy-handle and/or > fixed-link property which is either an Ethernet MAC driver or a DSA's > switch port node.
I still don't get it. Lets take a real example. I currently have this in one of my dts files: &fec1 { phy-mode = "rmii"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec1>; status = "okay"; fixed-link { speed = <100>; full-duplex; }; }; and we now want to use a phy-handle: &fec1 { phy-mode = "rmii"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec1>; status = "okay"; phy-handle = <XZY>; }; What do i use as XZY, so that it somehow resolves to a fixed-phy? Thanks Andrew