<?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: Read/Modify Phy registers at Linux in custom board based on LS1046A in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1742519#M19725</link>
    <description>&lt;P&gt;Please enable&amp;nbsp;CONFIG_MARVELL_PHY in you Linux Kernel configuration file.&lt;/P&gt;
&lt;P&gt;Please modify the following in dts file&amp;nbsp;arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts to specify phy address in "reg" property. You could get phy address with command "mdio list" in u-boot prompt.&lt;/P&gt;
&lt;P&gt;mdio@fc000 {&lt;BR /&gt;rgmii_phy1: ethernet-phy@1 {&lt;BR /&gt;&lt;STRONG&gt;reg = &amp;lt;0x1&amp;gt;;&lt;/STRONG&gt;&lt;BR /&gt;rtl821x,aldps-disable;&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;rgmii_phy2: ethernet-phy@2 {&lt;BR /&gt;&lt;STRONG&gt;reg = &amp;lt;0x2&amp;gt;;&lt;/STRONG&gt;&lt;BR /&gt;rtl821x,aldps-disable;&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;sgmii_phy1: ethernet-phy@3 {&lt;BR /&gt;&lt;STRONG&gt;reg = &amp;lt;0x3&amp;gt;;&lt;/STRONG&gt;&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;sgmii_phy2: ethernet-phy@4 {&lt;BR /&gt;&lt;STRONG&gt;reg = &amp;lt;0x4&amp;gt;;&lt;/STRONG&gt;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 03:12:07 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2023-10-19T03:12:07Z</dc:date>
    <item>
      <title>Read/Modify Phy registers at Linux in custom board based on LS1046A</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1739214#M19644</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;Iam using a custom board based on LS1046ARDB, however iam using Marvel Phy 88e1512 in my design.&lt;/P&gt;&lt;P&gt;I want to read/modify the Phy registers at Linux, please note that iam able to read/modify the phy at u-boot using : mii read and mii write commands, but iam unable to read/modify when the linux boots.&lt;/P&gt;&lt;P&gt;Although i used the ethtool -d command, but it is not working in the linux.&lt;/P&gt;&lt;P&gt;PLease provide your help/support&lt;/P&gt;&lt;P&gt;Thank u.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 06:56:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1739214#M19644</guid>
      <dc:creator>Ghouse</dc:creator>
      <dc:date>2023-10-13T06:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read/Modify Phy registers at Linux in custom board based on LS1046A</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1742519#M19725</link>
      <description>&lt;P&gt;Please enable&amp;nbsp;CONFIG_MARVELL_PHY in you Linux Kernel configuration file.&lt;/P&gt;
&lt;P&gt;Please modify the following in dts file&amp;nbsp;arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts to specify phy address in "reg" property. You could get phy address with command "mdio list" in u-boot prompt.&lt;/P&gt;
&lt;P&gt;mdio@fc000 {&lt;BR /&gt;rgmii_phy1: ethernet-phy@1 {&lt;BR /&gt;&lt;STRONG&gt;reg = &amp;lt;0x1&amp;gt;;&lt;/STRONG&gt;&lt;BR /&gt;rtl821x,aldps-disable;&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;rgmii_phy2: ethernet-phy@2 {&lt;BR /&gt;&lt;STRONG&gt;reg = &amp;lt;0x2&amp;gt;;&lt;/STRONG&gt;&lt;BR /&gt;rtl821x,aldps-disable;&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;sgmii_phy1: ethernet-phy@3 {&lt;BR /&gt;&lt;STRONG&gt;reg = &amp;lt;0x3&amp;gt;;&lt;/STRONG&gt;&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;sgmii_phy2: ethernet-phy@4 {&lt;BR /&gt;&lt;STRONG&gt;reg = &amp;lt;0x4&amp;gt;;&lt;/STRONG&gt;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 03:12:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1742519#M19725</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-10-19T03:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Read/Modify Phy registers at Linux in custom board based on LS1046A</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1742619#M19729</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52411"&gt;@yipingwang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank u for the reply,&lt;/P&gt;&lt;P&gt;Changes as indicated are made,&lt;/P&gt;&lt;P&gt;Please note that iam able to read/modify phy registers at uboot, however i want to read/modify the phy register after booting to Linux terminal.&lt;/P&gt;&lt;P&gt;Although i tried using "ethtool -d fm1-mac3"&amp;nbsp; but i got following error&lt;/P&gt;&lt;P&gt;"Cannot get register dump: Operation not supported"&lt;/P&gt;&lt;P&gt;Please let me know what can be done.&lt;/P&gt;&lt;P&gt;Thank u.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 06:14:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1742619#M19729</guid>
      <dc:creator>Ghouse</dc:creator>
      <dc:date>2023-10-19T06:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Read/Modify Phy registers at Linux in custom board based on LS1046A</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1748196#M19842</link>
      <description>&lt;P&gt;I also got the same result on LS1046ARDB after typing command "ethtool -d fm1-mac3". You can see register dump is not supported with the following command.&lt;/P&gt;
&lt;P&gt;root@ls1046ardb:~# ethtool -i fm1-mac3&lt;BR /&gt;driver: fsl_dpa&lt;BR /&gt;version: 5.15.71&lt;BR /&gt;firmware-version: 0&lt;BR /&gt;expansion-rom-version:&lt;BR /&gt;bus-info: soc:fsl,dpaa&lt;BR /&gt;supports-statistics: yes&lt;BR /&gt;supports-test: no&lt;BR /&gt;supports-eeprom-access: no&lt;BR /&gt;&lt;STRONG&gt;supports-register-dump: no&lt;/STRONG&gt;&lt;BR /&gt;supports-priv-flags: no&lt;BR /&gt;&lt;A href="mailto:root@ls1046ardb:~" target="_blank"&gt;root@ls1046ardb:~#&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please run "ethtool fm1-mac3" to get the general PHY information and verify whether you can run ping command successfully through&amp;nbsp;fm1-mac3.&lt;/P&gt;
&lt;P&gt;root@ls1046ardb:~# ethtool fm1-mac3&lt;BR /&gt;Settings for fm1-mac3:&lt;BR /&gt;Supported ports: [ MII ]&lt;BR /&gt;Supported link modes: 10baseT/Half 10baseT/Full&lt;BR /&gt;100baseT/Half 100baseT/Full&lt;BR /&gt;1000baseT/Full&lt;BR /&gt;Supported pause frame use: Symmetric Receive-only&lt;BR /&gt;Supports auto-negotiation: Yes&lt;BR /&gt;Supported FEC modes: Not reported&lt;BR /&gt;Advertised link modes: 10baseT/Half 10baseT/Full&lt;BR /&gt;100baseT/Half 100baseT/Full&lt;BR /&gt;1000baseT/Full&lt;BR /&gt;Advertised pause frame use: Symmetric Receive-only&lt;BR /&gt;Advertised auto-negotiation: Yes&lt;BR /&gt;Advertised FEC modes: Not reported&lt;BR /&gt;Link partner advertised link modes: 10baseT/Half 10baseT/Full&lt;BR /&gt;100baseT/Half 100baseT/Full&lt;BR /&gt;1000baseT/Full&lt;BR /&gt;Link partner advertised pause frame use: No&lt;BR /&gt;Link partner advertised auto-negotiation: Yes&lt;BR /&gt;Link partner advertised FEC modes: Not reported&lt;BR /&gt;Speed: 1000Mb/s&lt;BR /&gt;Duplex: Full&lt;BR /&gt;Auto-negotiation: on&lt;BR /&gt;master-slave cfg: preferred slave&lt;BR /&gt;master-slave status: master&lt;BR /&gt;Port: Twisted Pair&lt;BR /&gt;PHYAD: 1&lt;BR /&gt;Transceiver: external&lt;BR /&gt;MDI-X: Unknown&lt;BR /&gt;Supports Wake-on: d&lt;BR /&gt;Wake-on: d&lt;BR /&gt;Current message level: 0x00007fff (32767)&lt;BR /&gt;drv probe link timer ifdown ifup rx_err tx_err tx _queued intr tx_done rx_status pktdata hw wol&lt;BR /&gt;Link detected: yes&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 02:21:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1748196#M19842</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-10-30T02:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Read/Modify Phy registers at Linux in custom board based on LS1046A</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1748655#M19856</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52411"&gt;@yipingwang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;I have used the command ethtool -i fm1-mac3 but the Fiber link is not up, please note that my &lt;STRONG&gt;main intention&lt;/STRONG&gt; is to modify the Marvell Phy &lt;STRONG&gt;Reg 20_18.2:0&amp;nbsp; to value 0x6&lt;/STRONG&gt;(so that the fiber mode is up).&lt;/P&gt;&lt;P&gt;In u boot mode i was able to modify the phy register using &lt;STRONG&gt;miiread&lt;/STRONG&gt; and &lt;STRONG&gt;miiwrite&lt;/STRONG&gt; commands and iam able to ping the fiber interface successfully.&lt;/P&gt;&lt;P&gt;the problem is when the OS boots, i dont know how to modify that Marvell Phy Register.&lt;/P&gt;&lt;P&gt;Please help me out.&lt;/P&gt;&lt;P&gt;Thank u.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 10:44:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1748655#M19856</guid>
      <dc:creator>Ghouse</dc:creator>
      <dc:date>2023-10-30T10:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read/Modify Phy registers at Linux in custom board based on LS1046A</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1749468#M19877</link>
      <description>&lt;P&gt;For PHY registers read and write, you could clone&amp;nbsp;phytool and build it from:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://github.com/wkz/phytool.git" target="_blank"&gt;https://github.com/wkz/phytool.git&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then copy phytool to the target board to use it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In the default Linux Kernel driver, phytool write is not supported, you need to apply the attached patches.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 10:27:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1749468#M19877</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-10-31T10:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Read/Modify Phy registers at Linux in custom board based on LS1046A</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1779403#M20592</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52411"&gt;@yipingwang&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I have used the patched and now iam able to&lt;STRONG&gt; successfully modify&lt;/STRONG&gt; the phy registers at the OS level using the phytool.&lt;/P&gt;&lt;P&gt;I am also using the following command to change the interface settings for the OPtical to work, and it is working fine.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ethtool -s fm1-mac3 autoneg off speed 1000 duplex full&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now, Iam using KNI in my project and i have assigned the KNI to fm1-mac4, can i use the same commands to read phy connected to the KNI???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please provide your help/support.&lt;/P&gt;&lt;P&gt;Thank u.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Dec 2023 08:30:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Read-Modify-Phy-registers-at-Linux-in-custom-board-based-on/m-p/1779403#M20592</guid>
      <dc:creator>Ghouse</dc:creator>
      <dc:date>2023-12-23T08:30:37Z</dc:date>
    </item>
  </channel>
</rss>

