Hello
I have a board AM6442-SK. I want make PRU visible as ethernet interface in Linux. From the level of device tree k3-am642-sk.dts I added pinctrl to PRU0 and PRU1
&cpsw3g {
pinctrl-names = "default";
pinctrl-0 = <&mdio1_pins_default
&rgmii1_io_bus_pins_default
&rgmii2_service_pins_default
&rgmii3_pru0_pins_default
&rgmii4_pru1_pins_default
>;
cpts@3d000 {
ti,pps = <7 1>;
};
};
also in k3-am64-main.dtsi there is a node cpsw3g: ethernet@8000000.
Should I add also subnodes for PRU i ethernet-ports node like this?
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
cpsw_port1: port@1 {
reg = <1>;
ti,mac-only;
label = "port1";
phys = <&phy_gmii_sel 1>;
mac-address = [00 00 00 00 00 00];
ti,syscon-efuse = <&main_conf 0x200>;
};
cpsw_port2: port@2 {
reg = <2>;
ti,mac-only;
label = "port2";
phys = <&phy_gmii_sel 2>;
mac-address = [00 00 00 00 00 00];
};
pru0_port2: port@3 {
reg = <3>;
ti,mac-only;
label = "port3";
phys = <&phy_gmii_sel 3>;
mac-address = [00 00 00 00 00 00];
};
pru1_port3: port@4 {
reg = <4>;
ti,mac-only;
label = "port4";
phys = <&phy_gmii_sel 4>;
mac-address = [00 00 00 00 00 00];
};
};
Also appropriate firmware is needed for PRU cores, I think. Where can I found it?
Is my method and understanding of this correct?
Thanks
BR
Jakub