The linux-rt-4.18.38 support 2 prueths with am437x-idk-evm in default.
But we want to support one prueth, and remove prueth0 node in dts like following:
/* Dual-MAC Ethernet application node on PRU-ICSS1 */
pruss1_eth: pruss1_eth {
compatible = "ti,am4376-prueth";
prus = <&pru1_0>, <&pru1_1>;
firmware-name = "ti-pruss/am437x-pru0-prueth-fw.elf",
"ti-pruss/am437x-pru1-prueth-fw.elf";
sram = <&ocmcram>;
interrupt-parent = <&pruss1_intc>;
mii-rt = <&pruss1_mii_rt>;
pinctrl-0 = <&pruss1_eth_default>;
pinctrl-names = "default";
interrupts = <20>, <21>;
interrupt-names = "rx_red_hp", "rx_red_lp";
/*
pruss1_emac0: ethernet-mii0 {
phy-handle = <&pruss1_eth0_phy>;
phy-mode = "mii";
interrupts = <20>, <22>, <23>, <26>;
interrupt-names = "rx", "tx", "hsrprp_ptp_tx", "emac_ptp_tx";
/* Filled in by bootloader */
local-mac-address = [00 00 00 00 00 00];
};
*/
pruss1_emac1: ethernet-mii1 {
phy-handle = <&pruss1_eth1_phy>;
phy-mode = "mii";
interrupts = <21>, <23>, <24>, <27>;
interrupt-names = "rx", "tx", "hsrprp_ptp_tx", "emac_ptp_tx";
/* Filled in by bootloader */
local-mac-address = [00 00 00 00 00 00];
};
};
&pruss1_mdio {
pinctrl-0 = <&pruss1_mdio_default>;
pinctrl-names = "default";
status = "okay";
reset-delay-us = <2>; /* PHY datasheet states 1uS min */
/*
pruss1_eth0_phy: ethernet-phy@0 {
reg = <0>;
};
*/
pruss1_eth1_phy: ethernet-phy@1 {
reg = <1>;
};
};
But the kernel throw panic info when init prueth device.
And how to support only one prueth ? Thanks!