Navigation

    全志在线开发者论坛

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

    H616 EMAC1 如何使用?

    H616系列-OTT
    3
    8
    281
    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.
    • I
      Iam670 LV 4 last edited by

      根据手册,H616 有两个 EMAC , EMAC0 接外置PHY ,EMAC1 接内部PHY , 两者可以同时使用 。95aae762-364b-4b9a-bded-957413da146c-image.png
      但我调试过程中却遇到问题,使用 EMAC1 时,mdio 扫描不到 phy 。结合主线linux 驱动代码,发现这么一段注释:
      18e43ed2-3ecc-4fae-ae9b-7116b2ec82f8-image.png
      原来所谓的 Internal PHY 是芯片内部内置了一个 AC200 ,那问题来了,如何驱动AC200? AC200 与 H616 之间是怎么连接的?

      1 Reply Last reply Reply Quote Share 0
      • WhycanService
        WhycanService LV 7 last edited by

        AW 部分SOC 集成了AC200 和AC300,而AC200 和AC300 内部又集成了EPHY
        ARM 通过TWI 与AC200 进行通讯, 把EPHY 初始化,然后MAC 通过MDIO 总线是访问EPHY,PWM模块提供一个内部25M 时钟给EPHY。AC200 整体框图如下

        959159d3-7a54-4b9e-9b40-5135c4eedf4e-图片.png

        Linux_EMAC_开发指南.pdf

        1 Reply Last reply Reply Quote Share 0
        • WhycanService
          WhycanService LV 7 last edited by

          另外主线的配置可以参考这个仓库:https://github.com/dumtux/Allwinner-H616 驱动了AC200

          I 2 Replies Last reply Reply Quote Share 0
          • I
            Iam670 LV 4 @WhycanService last edited by

            @whycanservice 感谢大佬指点 !

            1 Reply Last reply Reply Quote Share 0
            • I
              Iam670 LV 4 @WhycanService last edited by

              @whycanservice 大佬,有适配了AC200 的 u-boot 吗?

              1 Reply Last reply Reply Quote Share 0
              • WhycanService
                WhycanService LV 7 last edited by

                uboot只有bsp适配了,主线没有

                I 1 Reply Last reply Reply Quote Share 0
                • I
                  Iam670 LV 4 @WhycanService last edited by

                  @whycanservice 这个 bsp u-boot 链接可以分享一下吗?

                  1 Reply Last reply Reply Quote Share 0
                  • Y
                    YiXinTai LV 5 last edited by

                    参考这个代码移植即可
                    0f2f1484-fa71-49b4-8f4d-ad24aa195867-h616太网补丁.zip

                    1 Reply Last reply Reply Quote Share 0
                    • Referenced by  U uuuuid 
                    • Referenced by  U uuuuid 
                    • 1 / 1
                    • First post
                      Last post

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

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