ZHCADI5 December 2023 DP83869HM
PHY 在 Linux 系统上运行所需的两个基本元件是器件树和驱动程序文件,DP83869HM 驱动程序可在此处找到。以下是器件树外观的示例格式。可在以下路径下的任何开源内核上找到该示例:root/Documentation/devicetree/bindings/net/ti。
#include <dt-bindings/net/ti-dp83869.h>
mdio0 {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@0 {
reg = <0>;
tx-fifo-depth = <DP83869_PHYCR_FIFO_DEPTH_4_B_NIB>;
rx-fifo-depth = <DP83869_PHYCR_FIFO_DEPTH_4_B_NIB>;
ti,op-mode = <DP83869_RGMII_COPPER_ETHERNET>;
ti,max-output-impedance;
ti,clk-output-sel = <DP83869_CLK_O_SEL_CHN_A_RCLK>;
rx-internal-delay-ps = <2000>;
tx-internal-delay-ps = <2000>;
};
};