Date: Fri, 6 Sep 2024 18:03:39 +0000 From: Mike Belanger <mibelanger@blackberry.com> To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: Ethernet device with shared mdio Message-ID: <YQXPR01MB4198A8ED40891B0B51B5A4F6BC9E2@YQXPR01MB4198.CANPRD01.PROD.OUTLOOK.COM>
next in thread | raw e-mail | index | archive | help
--_000_YQXPR01MB4198A8ED40891B0B51B5A4F6BC9E2YQXPR01MB4198CANP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The following device tree specifies a shared mdio. The ffec driver uses miibus. When there is a shared mdio, one of the device instances will not be able t= o properly configure the PHY, as it needs to use the other devices resource= to read/write the PHY. &fec1 { pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_fec1>; phy-mode =3D "rgmii-id"; phy-handle =3D <ðphy0>; fsl,magic-packet; status =3D "okay"; mdio { #address-cells =3D <1>; #size-cells =3D <0>; ethphy0: ethernet-phy@0 { compatible =3D "ethernet-ph= y-ieee802.3-c22"; reg =3D <0>; }; ethphy1: ethernet-phy@1 { compatible =3D "ethernet-ph= y-ieee802.3-c22"; reg =3D <1>; }; }; }; &fec2 { pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_fec2>; phy-mode =3D "rgmii-txid"; phy-handle =3D <ðphy1>; phy-supply =3D <®_fec2_supply>; nvmem-cells =3D <&fec_mac1>; nvmem-cell-names =3D "mac-address"; rx-internal-delay-ps =3D <2000>; fsl,magic-packet; status =3D "okay"; }; Does FreeBSD have any plans for supporting hardware that specifies a shared= mdio in the dtb? Just knowing the general approach being considered would be helpful. ---------------------------------------------------------------------- This transmission (including any attachments) may contain confidential info= rmation, privileged material (including material protected by the solicitor= -client or other applicable privileges), or constitute non-public informati= on. Any use of this information by anyone other than the intended recipient= is prohibited. If you have received this transmission in error, please imm= ediately reply to the sender and delete this information from your system. = Use, dissemination, distribution, or reproduction of this transmission by u= nintended recipients is not authorized and may be unlawful. --_000_YQXPR01MB4198A8ED40891B0B51B5A4F6BC9E2YQXPR01MB4198CANP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc= hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of= fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"> <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Aptos; panose-1:2 11 0 4 2 2 2 2 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; font-size:12.0pt; font-family:"Aptos",sans-serif; mso-ligatures:standardcontextual;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt; mso-ligatures:none;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} --></style> </head> <body lang=3D"EN-CA" link=3D"#467886" vlink=3D"#96607D" style=3D"word-wrap:= break-word"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">The following devic= e tree specifies a shared mdio.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">The ffec driver use= s miibus.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">When there is a sha= red mdio, one of the device instances will not be able to properly configur= e the PHY, as it needs to use the other devices resource to read/write the = PHY.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> <o:p></o:p></= span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">&fec1 {<o:p></o= :p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; pin= ctrl-names =3D "default";<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; pin= ctrl-0 =3D <&pinctrl_fec1>;<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; phy= -mode =3D "rgmii-id";<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; phy= -handle =3D <&ethphy0>;<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; fsl= ,magic-packet;<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; sta= tus =3D "okay";<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> <o:p></o:p></= span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; mdi= o {<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; &nbs= p; &= nbsp; #address-cells =3D <1>;<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; &nbs= p; &= nbsp; #size-cells =3D <0>;<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> <o:p></o:p></= span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; &nbs= p; &= nbsp; ethphy0: ethernet-phy@0 {<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; compatible =3D "ethernet-phy-ie= ee802.3-c22";<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; reg =3D <0>;<o:p></o:p></span>= </p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; &nbs= p; &= nbsp; };<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> <o:p></o:p></= span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; &nbs= p; &= nbsp; ethphy1: ethernet-phy@1 {<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; compatible =3D "ethernet-phy-ie= ee802.3-c22";<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; reg =3D <1>;<o:p></o:p></span>= </p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; &nbs= p; &= nbsp; };<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; };<= o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">};<o:p></o:p></span= ></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> <o:p></o:p></= span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">&fec2 {<o:p></o= :p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; pin= ctrl-names =3D "default";<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; pin= ctrl-0 =3D <&pinctrl_fec2>;<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; phy= -mode =3D "rgmii-txid";<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; phy= -handle =3D <&ethphy1>;<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; phy= -supply =3D <&reg_fec2_supply>;<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; nvm= em-cells =3D <&fec_mac1>;<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; nvm= em-cell-names =3D "mac-address";<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; rx-= internal-delay-ps =3D <2000>;<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; fsl= ,magic-packet;<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> &= nbsp; sta= tus =3D "okay";<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">};<o:p></o:p></span= ></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"> <o:p></o:p></= span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">Does FreeBSD have a= ny plans for supporting hardware that specifies a shared mdio in the dtb?<o= :p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">Just knowing the ge= neral approach being considered would be helpful.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt"><o:p> </o:p></= span></p> </div> <HR>This transmission (including any attachments) may contain confidential = information, privileged material (including material protected by the solic= itor-client or other applicable privileges), or constitute non-public infor= mation. Any use of this information by anyone other than the intended recip= ient is prohibited. If you have received this transmission in error, please= immediately reply to the sender and delete this information from your syst= em. Use, dissemination, distribution, or reproduction of this transmission = by unintended recipients is not authorized and may be unlawful.<BR> </body> </html> --_000_YQXPR01MB4198A8ED40891B0B51B5A4F6BC9E2YQXPR01MB4198CANP_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YQXPR01MB4198A8ED40891B0B51B5A4F6BC9E2>