导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

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

    其它全志芯片讨论区
    1
    1
    1404
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • G
      glorystar LV 2 最后由 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 条回复 最后回复 回复 引用 分享 0
      • 1 / 1
      • First post
        Last post

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

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