<?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>i.MX ProcessorsのトピックRe: IMX6 with external ethernet reference clock not working</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-with-external-ethernet-reference-clock-not-working/m-p/1953485#M228380</link>
    <description>&lt;P&gt;I've managed to change the bits in the GPR1 register by creating a patch for the file 'arch/arm/mach-imx/mach-imx6ul.c' where I hardcode the values. After doing this I still don't have an ethernet connection so I'm out of idea's. All suggestions are welcome&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2024 12:45:48 GMT</pubDate>
    <dc:creator>Kylian</dc:creator>
    <dc:date>2024-09-12T12:45:48Z</dc:date>
    <item>
      <title>IMX6 with external ethernet reference clock not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-with-external-ethernet-reference-clock-not-working/m-p/1950936#M228249</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have a custom Imx6ull processor board that has an external ethernet phy and I'm trying to setup networking in the kernel. I've gotten to the point where `ifconfig` shows the interface and the driver is detected. When I plug in an ethernet cable it will also be detected.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The network connection is non-functional. Trying to ping anything results in "Network is Unreachable".&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Possible) Cause:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I measure the ethernet reference clock generated by the external phy (lan8720) I see a clean 50MHz clock. In the device tree i've configured the MX6UL_PAD_ENET1_TX_CLK to ENET1_TX_CLK to make it an input. However when I check the IOMUXC_GPR_GPR1 register with `devmem 0x20E4004 32` it returns that ENET1_CLK_SEL (bit 13) is 0 and ENET1_TX_CLK_DIR (bit 17) is 1. This is exactly the opposite of what I want. I think this is the reason my external clock is not detected but I'm not sure how to change the state of these bits?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;BR /&gt;How can I change the state of the ENET1_CLK_SEL and ENET1_TX_CLK_DIR bits? Can I do that through the device tree? If that doesn't fix the problem is there anything else I can try?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My device tree:&lt;/STRONG&gt;&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;#include "imx6ull.dtsi"&lt;/P&gt;&lt;P&gt;/ {&lt;BR /&gt;chosen {&lt;BR /&gt;stdout-path = &amp;amp;uart4;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;memory@80000000 {&lt;BR /&gt;device_type = "memory";&lt;BR /&gt;reg = &amp;lt;0x80000000 0x08000000&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;watchdog: watchdog {&lt;BR /&gt;/* STM6822 */&lt;BR /&gt;compatible = "linux,wdt-gpio";&lt;BR /&gt;gpios = &amp;lt;&amp;amp;gpio3 4 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;hw_algo = "toggle";&lt;BR /&gt;hw_margin_ms = &amp;lt;1500&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;cpu0 {&lt;BR /&gt;clock-frequency = &amp;lt;528000000&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;uart1 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart1&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;uart4 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart4&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;wdog1 {&lt;BR /&gt;fsl,ext-reset-output;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;watchdog {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_wdog&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;gpmi {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_gpmi_nand&amp;gt;;&lt;BR /&gt;nand-on-flash-bbt;&lt;BR /&gt;fsl,use-minimum-ecc;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;fec1 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_fec1&amp;gt;;&lt;BR /&gt;local-mac-address = [ 9A 0C AD A0 1D 09 ];&lt;BR /&gt;phy-mode = "rmii";&lt;BR /&gt;phy-reset-gpios = &amp;lt;&amp;amp;gpio2 22 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;ecspi1 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi1&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;spidev@0 {&lt;BR /&gt;compatible = "spidev";&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;spi-max-frequency = &amp;lt;4000000&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;iomuxc {&lt;BR /&gt;pinctrl-names = "default";&lt;/P&gt;&lt;P&gt;pinctrl_uart1: uart1grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1&lt;BR /&gt;MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;pinctrl_wdog: wdoggrp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6UL_PAD_LCD_RESET__GPIO3_IO04 0x79&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;pinctrl_gpmi_nand: nandgrp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6UL_PAD_NAND_DATA00__RAWNAND_DATA00 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_DATA01__RAWNAND_DATA01 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_DATA02__RAWNAND_DATA02 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_DATA03__RAWNAND_DATA03 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_DATA04__RAWNAND_DATA04 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_DATA05__RAWNAND_DATA05 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_DATA06__RAWNAND_DATA06 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_DATA07__RAWNAND_DATA07 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_CLE__RAWNAND_CLE 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_ALE__RAWNAND_ALE 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_RE_B__RAWNAND_RE_B 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_WE_B__RAWNAND_WE_B 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_WP_B__RAWNAND_WP_B 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_CE0_B__RAWNAND_CE0_B 0x100a9&lt;BR /&gt;MX6UL_PAD_NAND_READY_B__RAWNAND_READY_B 0x100a9&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;pinctrl_uart4: uart4grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6UL_PAD_LCD_CLK__UART4_DCE_TX 0x1b0b1&lt;BR /&gt;MX6UL_PAD_LCD_ENABLE__UART4_DCE_RX 0x1b0b1&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;pinctrl_fec1: fec1grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b1&lt;BR /&gt;MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b1&lt;BR /&gt;MX6UL_PAD_CSI_DATA01__GPIO4_IO22 0x1b0b1&lt;BR /&gt;MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b1&lt;BR /&gt;MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b1&lt;BR /&gt;MX6UL_PAD_ENET1_TX_CLK__ENET1_TX_CLK 0x4001b0b1&lt;BR /&gt;MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b1&lt;BR /&gt;MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b1&lt;BR /&gt;MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b1&lt;BR /&gt;MX6UL_PAD_ENET2_RX_DATA0__ENET1_MDIO 0x1b0b1&lt;BR /&gt;MX6UL_PAD_ENET2_RX_DATA1__ENET1_MDC 0x1b0b1&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;pinctrl_ecspi1: ecspi1grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6UL_PAD_LCD_DATA23__ECSPI1_MISO 0x1b0b1&lt;BR /&gt;MX6UL_PAD_LCD_DATA22__ECSPI1_MOSI 0x1b0b1&lt;BR /&gt;MX6UL_PAD_CSI_DATA04__ECSPI1_SCLK 0x4001b0b1&lt;BR /&gt;MX6UL_PAD_CSI_DATA05__ECSPI1_SS0 0x1b0b1&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 09:23:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-with-external-ethernet-reference-clock-not-working/m-p/1950936#M228249</guid>
      <dc:creator>Kylian</dc:creator>
      <dc:date>2024-09-10T09:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 with external ethernet reference clock not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-with-external-ethernet-reference-clock-not-working/m-p/1953485#M228380</link>
      <description>&lt;P&gt;I've managed to change the bits in the GPR1 register by creating a patch for the file 'arch/arm/mach-imx/mach-imx6ul.c' where I hardcode the values. After doing this I still don't have an ethernet connection so I'm out of idea's. All suggestions are welcome&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 12:45:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-with-external-ethernet-reference-clock-not-working/m-p/1953485#M228380</guid>
      <dc:creator>Kylian</dc:creator>
      <dc:date>2024-09-12T12:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 with external ethernet reference clock not working</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-with-external-ethernet-reference-clock-not-working/m-p/1953688#M228390</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products,&lt;/P&gt;
&lt;P&gt;That is set through the clock properties assigned in dtsi, &lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/Documentation/devicetree/bindings/net/fsl%2Cfec.yaml#L102C7-L109C61" target="_self"&gt;please look at these here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Could you try to read the link status bit through MDIO in u-boot and/or linux after making sure that the MAC is receiving the REF_CLK?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 19:56:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-with-external-ethernet-reference-clock-not-working/m-p/1953688#M228390</guid>
      <dc:creator>JosephAtNXP</dc:creator>
      <dc:date>2024-09-12T19:56:42Z</dc:date>
    </item>
  </channel>
</rss>

