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>;
};
};