This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] DP83826I:从 DP83867切换到 DP83826I 时的 Linux BSP 器件树

Guru**** 1857450 points
Other Parts Discussed in Thread: DP83826I
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/1214953/dp83826i-linux-bsp-device-tree-when-switching-from-dp83867-to-dp83826i

器件型号:DP83826I

高支持、

我们正在使用 一个使用 DP83867作为以太网 PHY 的 TI AM65X 开发板、我们想将其切换到 DP83826I。  

在当前 Linux BSP 器件树中、我们找到了以下代码:

&davinci_mdio {
	mcu_eth0_phy: ethernet-phy@1 {
		reg = <1>;
		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
		ti,led-0-active-low;
		ti,led-2-active-low;
	};
};

&icssg1_mdio {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&icssg1_mdio_pins_default>;

	pruss1_eth1_phy: ethernet-phy@1 {
		reg = <1>;
		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
		ti,led-0-active-low;
		ti,led-2-active-low;
	};

	pruss1_eth2_phy: ethernet-phy@2 {
		reg = <2>;
		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
		ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
		ti,led-0-active-low;
		ti,led-2-active-low;
	};
};

有两个宏  DP83867_RGMIIDCTL_2_00_NS 和  DP83867_PHYCR_FIFO_DEPT_4_B_NIB  它们在代码中进行了定义、并在文件 include/dt-bindings/net/ti-dp83867.h: https://github.com/torvalds/linux/blob/master/include/dt-bindings/net/ti-dp83867.h 中进行了定义

如果我们将 以太网 PHY 切换到 DP83826I、如何修改器件树?  Linux 版本为5.4。

谢谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Kevin:

    让我与团队一起检查一下、并在周四前与您联系。

    谢谢。

    大卫

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Kevin:

    以下是指向可供使用的示例 DP83826器件树的链接: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/Documentation/devicetree/bindings/net/ti,dp83822.yaml?h=ti-linux-5.4.y

    谢谢。

    大卫