Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux/AM5728: AM5728 prueth driver issue

$
0
0

Part Number:AM5728

Tool/software: Linux

HI ALL:

Just now We Use AM5728 PRUSS to connect one TLK105L to support 100Mb network.
But it can not generate the ethernet device.
My custom AM5728 device diagram is like below:

AM5728 chip CPSW(emac0) ----> KS9031  it can work success.

AM5708 chip PR2_MII0 ----> TLK105L it can not generate the ethernet device.

I think my device tree has no problem.

My PRUSS device tree is like below:

pruss2_eth: pruss2_eth {
compatible = "ti,am57-prueth";
pruss = <&pruss2>;
sram = <&ocmcram1>;
interrupt-parent = <&pruss2_intc>;

pruss2_emac0: ethernet-mii0 {
phy-handle = <&pruss2_eth0_phy>;
phy-mode = "mii";
interrupts = <20>, <22>, <23>;
interrupt-names = "rx", "tx", "ptp_tx";
/* Filled in by bootloader */
local-mac-address = [00 00 00 00 00 00];
};

pruss2_emac1: ethernet-mii1 {
phy-handle = <&pruss2_eth1_phy>;
phy-mode = "mii";
interrupts = <21>, <23>, <24>;
interrupt-names = "rx", "tx", "ptp_tx";
/* Filled in by bootloader */
local-mac-address = [00 00 00 00 00 00];
};
};

&pruss_soc_bus2 {
status = "okay";
reset-gpios = <&gpio2 29 GPIO_ACTIVE_LOW>,
<&gpio2 8 GPIO_ACTIVE_LOW>;
reset-delay-us = <2>; /* PHY datasheet states 1uS min */

pruss2: pruss@4b280000 {
status = "okay";

pru2_0: pru@4b2b4000 {
interrupt-parent = <&pruss2_intc>;
interrupts = <16>, <17>;
interrupt-names = "vring", "kick";
status = "okay";
};

pru2_1: pru@4b2b8000 {
interrupt-parent = <&pruss2_intc>;
interrupts = <18>, <19>;
interrupt-names = "vring", "kick";
status = "okay";
};
};
};

&pruss2_mdio {
status = "okay";
pruss2_eth0_phy: ethernet-phy@1 {
reg = <1>;
interrupt-parent = <&gpio1>;
interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
};

pruss2_eth1_phy: ethernet-phy@3 {
reg = <3>;
interrupt-parent = <&gpio2>;
interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
};
};

My Processor SDK is v05.01

Now We doubt whether the prueth driver Only supports two network ports and can not support one network port?

Thanks

regards


Viewing all articles
Browse latest Browse all 17527


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>