导航

    全志在线开发者论坛

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

    T113S3 主线内核 如何使能EMAC 25MHz时钟

    T Series
    2
    2
    161
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • B
      breaktime1903 LV 2 最后由 编辑

      内核版本是6.12.35
      内核日志如下:
      [ 0.264623] dwmac-sun8i 4500000.ethernet: IRQ eth_wake_irq not found
      [ 0.268356] ehci-platform 4200000.usb: irq 36, io mem 0x04200000
      [ 0.272992] dwmac-sun8i 4500000.ethernet: IRQ eth_lpi not found
      [ 0.273002] dwmac-sun8i 4500000.ethernet: IRQ sfty not found
      [ 0.273382] dwmac-sun8i 4500000.ethernet: PTP uses main clock
      [ 0.275620] hub 2-0:1.0: 1 port detected
      [ 0.281819] dwmac-sun8i 4500000.ethernet: Current syscon value is not the default 58000 (expect 0)
      [ 0.303961] ehci-platform 4200000.usb: USB 2.0 started, EHCI 1.00
      [ 0.314219] dwmac-sun8i 4500000.ethernet: No HW DMA feature register supported
      [ 0.319352] hub 1-0:1.0: USB hub found
      [ 0.323451] dwmac-sun8i 4500000.ethernet: RX Checksum Offload Engine supported
      [ 0.329956] hub 1-0:1.0: 1 port detected
      [ 0.339431] dwmac-sun8i 4500000.ethernet: COE Type 2
      [ 0.623933] usb 1-1: new high-speed USB device number 2 using ehci-platform
      [ 0.629268] dwmac-sun8i 4500000.ethernet: TX Checksum insertion supported
      [ 0.815287] hub 1-1:1.0: USB hub found
      [ 0.819142] dwmac-sun8i 4500000.ethernet: Normal descriptors
      [ 0.827001] hub 1-1:1.0: 4 ports detected
      [ 0.835403] dwmac-sun8i 4500000.ethernet: Chain mode enabled
      [ 1.263936] usb 1-1.3: new high-speed USB device number 3 using ehci-platform
      [ 1.537277] dwmac-sun8i 4500000.ethernet: EMAC reset timeout
      [ 1.542964] dwmac-sun8i 4500000.ethernet eth0: stmmac_dvr_remove: removing driver
      [ 1.584892] dwmac-sun8i 4500000.ethernet: probe with driver dwmac-sun8i failed with error -110
      设备树配置如下:
      &emac {
      pinctrl-0 = <&rmii_pg_clk25m_pins>;
      pinctrl-names = "default";
      phy-mode = "rmii";
      phy-handle = <&ip101gr>;
      phy-supply = <&reg_3v3>;
      clocks = <&ccu CLK_BUS_EMAC>,<&ccu CLK_EMAC_25M>;
      clock-names = "stmmaceth","ephy25m";
      use_ephy25m = <1>;
      status = "okay";
      };

      &mdio{
      status = "okay";
      reset-assert-us = <10000>;
      reset-post-delay-us = <150000>;
      reset-deassert-us = <150000>;
      reset-gpios = <&pio 6 6 GPIO_ACTIVE_LOW>; /* PG6 */
      ip101gr: ethernet-phy@0 {
      // compatible = "ethernet-phy-ieee802.3-c22";
      // compatible = "ethernet-phy-id001c.c816";
      compatible = "ethernet-phy-id0243.0c54","ethernet-phy-ieee802.3-c22";
      reg = <0>;
      };
      };

      现在的问题是我没办法识别出PHY,而且用示波器去看EPHY-25M引脚也没有时钟输出,问一下主线内核该怎么开启内部时钟输出?

      1 条回复 最后回复 回复 引用 分享 0
      • A
        awwwwa LV 8 最后由 编辑

        主线内核需要IRC去问一下主线的实现,https://linux-sunxi.org/IRC

        1 条回复 最后回复 回复 引用 分享 0
        • 1 / 1
        • First post
          Last post

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

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