<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IMX7D MII Device Tree - DP83640 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX7D-MII-Device-Tree-DP83640/m-p/1320627#M178101</link>
    <description>&lt;P&gt;Hi James&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can look at dts file on link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Does-iMX7D-ENET2-support-MII-interface/td-p/1297656" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Does-iMX7D-ENET2-support-MII-interface/td-p/1297656&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;also recommended to check enet clock with oscilloscope, it is configured in uboot setup_fec()&lt;/P&gt;
&lt;P&gt;register IOMUXC_GPR_GPR1, described in sect.8.2.4.2 GPR1 General Purpose Register (IOMUXC_GPR_GPR1)&amp;nbsp; &lt;A id="relatedDocsClick_1" href="https://www.nxp.com/webapp/Download?colCode=IMX7DRM" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;i.MX 7Dual Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/mx7dsabresd/mx7dsabresd.c?h=imx_v2020.04_5.4.70_2.3.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/mx7dsabresd/mx7dsabresd.c?h=imx_v2020.04_5.4.70_2.3.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 23:27:18 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2021-08-09T23:27:18Z</dc:date>
    <item>
      <title>IMX7D MII Device Tree - DP83640</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX7D-MII-Device-Tree-DP83640/m-p/1320373#M178085</link>
      <description>&lt;P&gt;Good Afternoon,&lt;/P&gt;&lt;P&gt;I currently have a custom board with an iMX7d (On an EA iMX7d uCOM SOM) connected to a DP8360 PHY via MII and I don't seem to be able to get comms working properly over the MII interface. The PHY is discovered and configured correctly over the MDIO bus and I can see sent TX packets in wireshark from UBOOT. Hoping I've missed something in the device tree,&lt;/P&gt;&lt;P&gt;Schematic,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jameshall_0-1628517748688.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/152293i41EA765B5EBB1B50/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jameshall_0-1628517748688.png" alt="jameshall_0-1628517748688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jameshall_1-1628517808541.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/152294i90A9B228CDE04A0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jameshall_1-1628517808541.png" alt="jameshall_1-1628517808541.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Current Device Tree,&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;&amp;amp;fec1 {
	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_enet1&amp;gt;;

	clocks = &amp;lt;&amp;amp;clks IMX7D_ENET_AXI_ROOT_CLK&amp;gt;,
		&amp;lt;&amp;amp;clks IMX7D_ENET_AXI_ROOT_CLK&amp;gt;,
		&amp;lt;&amp;amp;clks IMX7D_ENET1_TIME_ROOT_CLK&amp;gt;,
		&amp;lt;&amp;amp;clks IMX7D_PLL_ENET_MAIN_25M_CLK&amp;gt;;
	clock-names = "ipg", "ahb", "ptp", "enet_clk_ref";

	assigned-clocks = &amp;lt;&amp;amp;clks IMX7D_ENET1_TIME_ROOT_SRC&amp;gt;,
			  &amp;lt;&amp;amp;clks IMX7D_ENET1_TIME_ROOT_CLK&amp;gt;;
	assigned-clock-parents = &amp;lt;&amp;amp;clks IMX7D_PLL_ENET_MAIN_25M_CLK&amp;gt;;
	assigned-clock-rates = &amp;lt;0&amp;gt;, &amp;lt;100000000&amp;gt;;
	phy-mode = "mii";
	phy-handle = &amp;lt;&amp;amp;ethphy0&amp;gt;;
	fsl,magic-packet;
	status = "okay";

	mdio {
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;0&amp;gt;;

		ethphy0: ethernet-phy@0 {
			compatible = "ethernet-phy-ieee802.3-c22";
			reg = &amp;lt;1&amp;gt;;
		};
	};
};&lt;/LI-CODE&gt;&lt;LI-CODE lang="cpp"&gt;pinctrl_enet1: enet1grp {
			fsl,pins = &amp;lt;

				MX7D_PAD_ENET1_COL__ENET1_COL		0x1
				MX7D_PAD_ENET1_CRS__ENET1_CRS		0x1

				MX7D_PAD_GPIO1_IO11__ENET1_MDC		0x3
				MX7D_PAD_GPIO1_IO10__ENET1_MDIO		0x3

				MX7D_PAD_ENET1_RX_CLK__ENET1_RX_CLK		0x1
				MX7D_PAD_ENET1_RGMII_RXC__ENET1_RX_ER	0x1

				MX7D_PAD_ENET1_TX_CLK__CCM_ENET_REF_CLK1	0x1
				
				MX7D_PAD_ENET1_RGMII_RD0__ENET1_RGMII_RD0	0x1
				MX7D_PAD_ENET1_RGMII_RD1__ENET1_RGMII_RD1	0x1
				MX7D_PAD_ENET1_RGMII_RD2__ENET1_RGMII_RD2	0x1
				MX7D_PAD_ENET1_RGMII_RD3__ENET1_RGMII_RD3	0x1

				MX7D_PAD_ENET1_RGMII_RX_CTL__ENET1_RGMII_RX_CTL 0x1
				MX7D_PAD_ENET1_RGMII_RXC__ENET1_RGMII_RXC 0x1

				MX7D_PAD_ENET1_RGMII_TD0__ENET1_RGMII_TD0	0x3
				MX7D_PAD_ENET1_RGMII_TD1__ENET1_RGMII_TD1	0x3
				MX7D_PAD_ENET1_RGMII_TD2__ENET1_RGMII_TD2	0x3
				MX7D_PAD_ENET1_RGMII_TD3__ENET1_RGMII_TD3	0x3
			&amp;gt;;
		};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 14:06:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX7D-MII-Device-Tree-DP83640/m-p/1320373#M178085</guid>
      <dc:creator>jameshall</dc:creator>
      <dc:date>2021-08-09T14:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: IMX7D MII Device Tree - DP83640</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX7D-MII-Device-Tree-DP83640/m-p/1320627#M178101</link>
      <description>&lt;P&gt;Hi James&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can look at dts file on link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Does-iMX7D-ENET2-support-MII-interface/td-p/1297656" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Does-iMX7D-ENET2-support-MII-interface/td-p/1297656&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;also recommended to check enet clock with oscilloscope, it is configured in uboot setup_fec()&lt;/P&gt;
&lt;P&gt;register IOMUXC_GPR_GPR1, described in sect.8.2.4.2 GPR1 General Purpose Register (IOMUXC_GPR_GPR1)&amp;nbsp; &lt;A id="relatedDocsClick_1" href="https://www.nxp.com/webapp/Download?colCode=IMX7DRM" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;i.MX 7Dual Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/mx7dsabresd/mx7dsabresd.c?h=imx_v2020.04_5.4.70_2.3.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/mx7dsabresd/mx7dsabresd.c?h=imx_v2020.04_5.4.70_2.3.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 23:27:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX7D-MII-Device-Tree-DP83640/m-p/1320627#M178101</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-08-09T23:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: IMX7D MII Device Tree - DP83640</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX7D-MII-Device-Tree-DP83640/m-p/1322523#M178318</link>
      <description>&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;Thanks for the link, I've rationalized my device tree (attached) against the one in the link you sent and updated my UBOOT to set the enet_clk to external,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;clrsetbits_le32(&amp;amp;iomuxc_gpr_regs-&amp;gt;gpr[1],
		 IOMUXC_GPR_GPR1_GPR_ENET1_CLK_DIR_MASK, IOMUXC_GPR_GPR1_GPR_ENET1_TX_CLK_SEL_MASK);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still can't receive packets in UBOOT and now the PHY isn't coming up at all in Linux&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 08:59:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX7D-MII-Device-Tree-DP83640/m-p/1322523#M178318</guid>
      <dc:creator>jameshall</dc:creator>
      <dc:date>2021-08-12T08:59:16Z</dc:date>
    </item>
  </channel>
</rss>

