stm32mp2 RMII phy调试总结

stm32mp2 RMII phy调试总结

phy有两种提供clk的方式

1、mac直接提供50M clk给phy。

此时的pin连接 ETH1_CLK(stm32mp2端) --> RXC(rtl8201f端)

2、晶振提供25M clk给phy,phy在输出给50M给MAC

此时的pin连接 TXC(rtl8201f端)--->ETH1_RMII_REF_CLK(stm32mp2端)

3、是否需要进行reset,延时多少

reset-gpios = <&gpiob 6 GPIO_ACTIVE_LOW>;

reset-assert-us = <10000>;

reset-deassert-us = <80000>;

4、需要配置mac端clk 输入还是输出配置

st,ext-phyclk;

5、phyid和具体使用的phy

此处001C.c816为phy的id值,查手册得知

phy0_eth1: ethernet-phy@0 {

compatible = "ethernet-phy-id001C.c816",

"ethernet-phy-ieee802.3-c22";

reset-gpios = <&gpiob 6 GPIO_ACTIVE_LOW>;

reset-assert-us = <10000>;

reset-deassert-us = <100000>;

reg = <0>;

};

相关推荐
fengfuyao98510 小时前
STM32如何定位HardFault错误,一种实用方法
stm32·单片机·嵌入式硬件
keer_zu12 小时前
STM32L051 RTC闹钟配置详解
stm32·嵌入式硬件
AI精钢12 小时前
H20芯片与中国的科技自立:一场隐形的博弈
人工智能·科技·stm32·单片机·物联网
etcix15 小时前
implement copy file content to clipboard on Windows
windows·stm32·单片机
谱写秋天15 小时前
在STM32F103上进行FreeRTOS移植和配置(STM32CubeIDE)
c语言·stm32·单片机·freertos
共享家952717 小时前
linux-数据链路层
linux·网络·macos
玖別ԅ(¯﹃¯ԅ)19 小时前
SysTick寄存器(嘀嗒定时器实现延时)
stm32·单片机·嵌入式硬件
玖別ԅ(¯﹃¯ԅ)1 天前
PID学习笔记6-倒立摆的实现
笔记·stm32·单片机
CZIDC1 天前
MacOS字体看起来比在 Windows 上更好?
macos
Cosmoshhhyyy1 天前
linux远程部署dify和mac本地部署dify
linux·运维·macos