i.MX93 Linux How to set MDIO speed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX93 Linux How to set MDIO speed

ソリューションへジャンプ
1,279件の閲覧回数
PBoerner
Contributor II

We are using a custom board with the i.MX93 which uses the ENET-QOS ethernet interface running on kernel 6.6.52. In principle it works well but now we want to reduce the clock for the MDIO communication.

The entry in the devicetree is the following:

&eqos {
   pinctrl-names = "default";
   pinctrl-0 = <&pinctrl_eqos>;
   phy-mode = "rmii";
   phy-handle = <&ethphy1>;
   assigned-clock-rates = <100000000>, <50000000>;
   snps,rmii_refclk_ext;
   status = "okay";

   mdio {
     compatible = "snps,dwmac-mdio";
     #address-cells = <1>;
     #size-cells = <0>;
     clock-frequency = <1000000>;

     ethphy1: ethernet-phy@6 {
        compatible = "ethernet-phy-ieee802.3-c22";
        reg = <6>;
        eee-broken-1000t;
        reset-gpios = <&ioexpander_2 6 GPIO_ACTIVE_LOW>;
        reset-assert-us = <10000>;
        reset-deassert-us = <80000>;
     };
   };
};

Is there any possibility to configure the MDIO speed via the devicetree? I haven't found any hint for it. In some devicetree documentation it's stated that it can be done via clock-frequency, but none of the involved drivers is checking and using this entry. It looks a little bit like the speed is not modified at all and therefor  set to a maximum speed in relation to the system clock.

If it can't be done via the devicetree, which driver should set the MDIO speed? I havent't found any related code in the involved dwmac drivers.

 

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
1,262件の閲覧回数
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

MDIO speed cannot be programmed into the EQOS interface, the IP misses the register for setting the MDIO SPEED, HOLDTIME, etc.

So in EQOS is not configurable, the register is mapped in FEC though, the speed can be configured when using FEC MDIO.

Regards

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,263件の閲覧回数
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

MDIO speed cannot be programmed into the EQOS interface, the IP misses the register for setting the MDIO SPEED, HOLDTIME, etc.

So in EQOS is not configurable, the register is mapped in FEC though, the speed can be configured when using FEC MDIO.

Regards

0 件の賞賛
返信