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.

Linux/PROCESSOR-SDK-AM335X: HSR PRU for am335x

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

Hello!
Here processors.wiki.ti.com/.../Processor_SDK_Linux_HSR_PRP_PRU_Offload  is announced what HSR supports on PRU.
But supported platfom is only am57xx (processors.wiki.ti.com/.../Processor_SDK_Linux_HSR_PRP)

Have anybody know about HSR on PRU for am335x?


In the driver sources I saw compability with am335x

static const struct of_device_id prueth_dt_match[] = {
{ .compatible = "ti,am57-prueth", },
{ .compatible = "ti,am4372-prueth", },
{ .compatible = "ti,am3359-prueth", },
{ .compatible = "ti,k2g-prueth", },
{ /* sentinel */ }
};

but am335x's SDK doesn't not contain .elf files with HSR PRP (SDK am57xx have this)

  • Hi,

    There is an HSR-PRP driver sources in the AM335x SDK (latest kerel 4.4.41), as you stated.

    Have you tried enabling this in the tisdk_am335x-evm_defconfig & the corresponding dts file?

    Best Regards,
    Yordan
  • Hi, Yordan, 
    thank you for your answer

    For using PRU HSR-PRP I must have three points:
    *.elf firmware for PRU,
    kernel driver
    and dts configuration
    Is it right?

    this stings in tisdk_am335x-evm_defconfig and dts files:

    tisdk_am335x-evm_defconfig:  CONFIG_HSR_PRP=y


    dts:

    pruss_eth {

    compatible = "ti,am3359-prueth";
    pruss = <0x4f>;
    sram = <0x50>;
    interrupt-parent = <0x48>;
    prueth_type = <1>; /* 0: emac 1:hsr, 2:prp 3:switch */
    hsr_mode = <1>; /* 1: MODEH, 3: MODET */
    interrupts = <0x14>, <0x16>; /* HSR/PRP use these instead */
    interrupt-names = "rx", "tx";
    pinctrl-0 = <0x51>;
    pinctrl-names = "default";

    ethernet-mii0 {
    phy-handle = <0x52>;
    phy-mode = "mii";
    interrupts = <0x14 0x16>;
    interrupt-names = "rx", "tx";
    local-mac-address = [00 00 00 00 00 00];
    };

    ethernet-mii1 {
    phy-handle = <0x53>;
    phy-mode = "mii";
    interrupts = <0x15 0x17>;
    interrupt-names = "rx", "tx";
    local-mac-address = [00 00 00 00 00 00];
    };

    };

    But I have no firmware for PRU, which contain HSR realisation.