Other Parts Discussed in Thread: AM5718, TMDXIDK5718, DP83825I
Tool/software:
Hello experts:
I use TI's am5718 as the processor, SDK version: ti-processor-sdk-linux-am57xx-evm-04.03.00.05.I refer to the design of the TMDXIDK5718 development board and replace the Micrel KSZ9031 Gigabit PHY connected to one RGMII with TI DP83822 10/100 Mbps PHY. The phy addresses are 1.
And now we have a new project which need Optical communication.We have adapted the phy chip circuit into an optical conversion module on the circuit board.
What changes need to be made to the device tree and driver?
Before changing the optical port, there was no problem with circuit communication. The device tree section is as follows:
&mac {
status = "okay";
dual_emac;
};
&cpsw_emac0 {
phy_id = <&davinci_mdio>, <1>;
phy-mode = "rgmii-id";
dual_emac_res_vlan = <1>;
};
&cpsw_emac1 {
phy_id = <&davinci_mdio>, <2>;
phy-mode = "rgmii-id";
dual_emac_res_vlan = <2>;
};
&davinci_mdio{
dp83822_0: ethernet-phy@0 {
reset-gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
reset-delay-us = <20>;
reg = <1>;
interrupt-parent = <&gpio5>;
interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
};
ksz9031_1: ethernet-phy@1 {
reset-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
reset-delay-us = <20>;
reg = <2>;
interrupt-parent = <&gpio5>;
interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
};
};