Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD134C0218F for ; Tue, 4 Feb 2025 05:59:55 +0000 (UTC) Subject: iMX6ULL Ethernet on Scarthgap 6.6.52 #bitbake #scarthgap To: openembedded-core@lists.openembedded.org From: rashaadxavant@gmail.com X-Originating-Location: Johannesburg, Gauteng, ZA (197.245.205.96) X-Originating-Platform: Mac Firefox 134 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Mon, 03 Feb 2025 21:59:53 -0800 Message-ID: Content-Type: multipart/alternative; boundary="qtbp8g6ewGCmggJc024Y" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 04 Feb 2025 05:59:55 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/210750 --qtbp8g6ewGCmggJc024Y Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I have migrated over to a Yocto build with the 6.6.52 kernel, and I am stru= ggling to get the Ethernet to work. When migrating, I have noticed that the= TX_CLK line is a constant value and not a sinusoidal clock. I have tried b= uilding multiple boards from the meta-3rd-party layer, however I have not b= een able to see a clock signal. Please advise if something needs to change in my config: pinctrl_enet2 : enet2grp { fsl,pins =3D < MX6UL_PAD_GPIO1_IO07__ENET2_MDC 0x1b0b0 MX6UL_PAD_GPIO1_IO06__ENET2_MDIO 0x1b0b0 MX6UL_PAD_ENET2_RX_EN__ENET2_RX_EN 0x1b0b0 MX6UL_PAD_ENET2_RX_ER__ENET2_RX_ER 0x1b0b0 MX6UL_PAD_ENET2_RX_DATA0__ENET2_RDATA00 0x1b0b0 MX6UL_PAD_ENET2_RX_DATA1__ENET2_RDATA01 0x1b0b0 MX6UL_PAD_ENET2_TX_EN__ENET2_TX_EN 0x1b0b0 MX6UL_PAD_ENET2_TX_DATA0__ENET2_TDATA00 0x1b0b0 MX6UL_PAD_ENET2_TX_DATA1__ENET2_TDATA01 0x1b0b0 MX6UL_PAD_ENET2_TX_CLK__ENET2_REF_CLK2 0x4001b031 >; }; &fec2 { pinctrl-names =3D "default" ; pinctrl-0 =3D < &pinctrl_enet2 >; phy-mode =3D "rmii" ; phy-handle =3D < ðphy1 >; // phy-reset-gpios =3D <&gpio5 8 GPIO_ACTIVE_LOW>; // phy-reset-duration =3D <200>; status =3D "okay" ; mdio { #address-cells =3D < 1 >; #size-cells =3D < 0 >; ethphy1 : ethernet-phy@1 { compatible =3D "ethernet-phy-ieee802.3-c22" ; clocks =3D < &clks IMX6UL_CLK_ENET2_REF >; clock-names =3D "rmii-ref" ; reg =3D < 0 >; }; }; }; The same config worked on version 5.5.15 without these lines: clocks =3D <&clks IMX6UL_CLK_ENET2_REF>; clock-names =3D "rmii-ref"; Further, when reviewing the changes, I noticed that the following changed i= n the imx6ul.dtsi file between the Yocto releases: fec2: ethernet@20b4000 { compatible =3D "fsl,imx6ul-fec", "fsl,imx6q-fec"; reg =3D <0x020b4000 0x4000>; interrupt-names =3D "int0", "pps"; interrupts =3D , ; clocks =3D <&clks IMX6UL_CLK_ENET>, <&clks IMX6UL_CLK_ENET_AHB>, <&clks IMX6UL_CLK_ENET_PTP>, <&clks IMX6UL_CLK_ENET2_REF_125M>, <&clks IMX6UL_CLK_ENET2_REF_125M>; clock-names =3D "ipg", "ahb", "ptp", "enet_clk_ref", "enet_out"; fsl,num-tx-queues =3D <1>; fsl,num-rx-queues =3D <1>; fsl,stop-mode =3D <&gpr 0x10 4>; fsl,magic-packet; fsl,wakeup_irq =3D <0>; status =3D "disabled"; }; Became: fec2: ethernet@20b4000 { compatible =3D "fsl,imx6ul-fec", "fsl,imx6q-fec"; reg =3D <0x020b4000 0x4000>; interrupt-names =3D "int0", "pps"; interrupts =3D , ; clocks =3D <&clks IMX6UL_CLK_ENET>, <&clks IMX6UL_CLK_ENET_AHB>, <&clks IMX6UL_CLK_ENET_PTP>, <&clks IMX6UL_CLK_ENET2_REF_SEL>; clock-names =3D "ipg", "ahb", "ptp", "enet_clk_ref"; fsl,num-tx-queues =3D <1>; fsl,num-rx-queues =3D <1>; fsl,stop-mode =3D <&gpr 0x10 4>; fsl,magic-packet; fsl,wakeup_irq =3D <0>; status =3D "disabled"; }; Thank you for any assistance in advance. --qtbp8g6ewGCmggJc024Y Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

I have migrated over to a Yocto build with the 6.6.52 kernel, and I am s= truggling to get the Ethernet to work. When migrating, I have noticed that = the TX_CLK line is a constant value and not a sinusoidal clock. I have trie= d building multiple boards from the meta-3rd-party layer, however I have no= t been able to see a clock signal.

Please advise if something ne= eds to change in my config:

pinctrl_enet2: enet2grp {
fsl,pins =3D <
0x1b0b0
<= /span>0x1b0b0
= 0x1b0b0
= 0x1b0b0
0x1b0b0
0x1b0b0
= 0x1b0b0
0x1b0b0
0x1b0b0
0x4001b031
>;
};



&fec2 {
pinctrl-names =3D "default";
pinctrl-0 =3D <&pinctrl_enet2>;
phy-mode =3D "rmii";
phy-handle =3D <&ethphy1>= ;;
status =3D "okay";
{
#address-cells =3D <1>;
#size-cells =3D <0>;<= /div>
: ethernet-phy@1 {
compatible =3D "ethernet-phy-ieee802.3-c22";
clocks =3D <&clks IMX6UL_CLK_ENET2_REF>;
clock-names =3D "rmii-ref";=
reg =3D <0>;
};
};
};



The same config worked on version 5.5.15 without these lines= :

clocks =3D <&clks IMX6UL_CLK_ENET2_REF>;
clock-= names =3D "rmii-ref";

Further, when reviewing the changes, I not= iced that the following changed in the imx6ul.dtsi file between the Yocto r= eleases:

fec2: ethernet@20b4000 {
compatible =3D "fsl,imx6u= l-fec", "fsl,imx6q-fec";
reg =3D <0x020b4000 0x4000>;
inter= rupt-names =3D "int0", "pps";
interrupts =3D <GIC_SPI 120 IRQ_TYPE_= LEVEL_HIGH>,
<GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
clocks = =3D <&clks IMX6UL_CLK_ENET>,
<&clks IMX6UL_CLK_ENET_A= HB>,
<&clks IMX6UL_CLK_ENET_PTP>,
<&clks IMX6= UL_CLK_ENET2_REF_125M>,
<&clks IMX6UL_CLK_ENET2_REF_125M>= ;
clock-names =3D "ipg", "ahb", "ptp",
"enet_clk_ref", "enet_out"= ;
fsl,num-tx-queues =3D <1>;
fsl,num-rx-queues =3D <1>= ;;
fsl,stop-mode =3D <&gpr 0x10 4>;
fsl,magic-packet;fsl,wakeup_irq =3D <0>;
status =3D "disabled";
};
=
Became:

fec2: ethernet@20b4000 {
compatible =3D "fsl,= imx6ul-fec", "fsl,imx6q-fec";
reg =3D <0x020b4000 0x4000>;
= interrupt-names =3D "int0", "pps";
interrupts =3D <GIC_SPI 120 IRQ_= TYPE_LEVEL_HIGH>,
<GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
clo= cks =3D <&clks IMX6UL_CLK_ENET>,
<&clks IMX6UL_CLK_EN= ET_AHB>,
<&clks IMX6UL_CLK_ENET_PTP>,
<&clks = IMX6UL_CLK_ENET2_REF_SEL>;
clock-names =3D "ipg", "ahb", "ptp",
"enet_clk_ref";
fsl,num-tx-queues =3D <1>;
fsl,num-rx-que= ues =3D <1>;
fsl,stop-mode =3D <&gpr 0x10 4>;
fsl= ,magic-packet;
fsl,wakeup_irq =3D <0>;
status =3D "disabled= ";
};

Thank you for any assistance in advance.

--qtbp8g6ewGCmggJc024Y--