Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    调试RTL8201F提示“sunxi-gmac 4500000.eth eth0: No PHY found!”

    其它全志芯片讨论区
    1
    1
    1355
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      glorystar LV 2 last edited by xiaowenge

      A133 android平台 kernel5.4 调试以太网,网卡芯片用的RTL8201F百兆,提示“sunxi-gmac 4500000.eth eth0: No PHY found!”,复位信号有了,晶振有也有起震,帮忙看下,多谢!下面是dts配置。

      sun50iw10p1.dtsi
      gmac0: eth@4500000 {
      			compatible = "allwinner,sunxi-gmac";
      			reg = <0x0 0x04500000 0x0 0x10000>,
      			      <0x0 0x03000030 0x0 0x4>;
      			interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
      			interrupt-names = "gmacirq";
      			clocks = <&ccu CLK_BUS_EMAC0>, <&ccu CLK_EMAC0_25M>;
      			clock-names = "gmac", "ephy";
      			resets = <&ccu RST_BUS_EMAC0>;
      			device_type = "gmac0";
      			pinctrl-0 = <&gmac_pins_a>;
      			pinctrl-1 = <&gmac_pins_b>;
      			pinctrl-names = "default","sleep";
      			phy-mode;
      			use_ephy25m;
      			tx-delay = <7>;
      			rx-delay = <31>;
      			phy-rst = <&pio PB 6 GPIO_ACTIVE_LOW>;
      			gmac-power0;
      			gmac-power1;
      			gmac-power2;
      			status = "disabled";
      		};
      gmac_pins_a: gmac@0 {
      				pins = "PH0", "PH1", "PH2", "PH3",
      						 "PH4", "PH5", "PH6", "PH7",
      						 "PH9", "PH10", "PH13", "PH14",
      						 "PH15", "PH16", "PH17", "PH18";
      				function = "gmac0";
      				drive-strength = <30>;
      			};
      
      gmac_pins_b: gmac@1 {
      				pins = "PH0", "PH1", "PH2", "PH3",
      						 "PH4", "PH5", "PH6", "PH7",
      						 "PH9", "PH10", "PH13", "PH14",
      						 "PH15", "PH16", "PH17", "PH18";
      				function = "gpio_in";
      			};
      board.dts
      &gmac0 {
      		phy-mode = "rmii";
      		use_ephy25m = <1>;
      		status = "okay";
      	};
      
      1 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策