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: MDIO BIT BANGING FOR AM335X

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

Hi,

I am doing MDIO BIT BANGING for AM335X based board to support SMI Proprietary MDIO interface of KSZ8863. I would like to have the BIT BANGING code for the same as I see in our forum that several people have successfully implemented the same.

Please provide the same if somebody has already succeeded. 

Thank you.

With Regards,

N.Raghu Raman.

  • Hi Raghu,

    MDIO bitbang driver is available in the latest AM335x PSDK:

    ti-processor-sdk-linux-am335x-evm-03.03.00.04/board-support/linux-4.4.32/drivers/net/phy/mdio-bitbang.c
    ti-processor-sdk-linux-am335x-evm-03.03.00.04/board-support/linux-4.4.32/include/linux/mdio-bitbang.h

    ti-processor-sdk-linux-am335x-evm-03.03.00.04/board-support/linux-4.4.32/drivers/net/phy/mdio-gpio.c
    ti-processor-sdk-linux-am335x-evm-03.03.00.04/board-support/linux-4.4.32/include/linux/platform_data/mdio-gpio.h

    MDIO bitbang is disabled by default in defconfig file, you should enable through kernel menuconfig

    ti-processor-sdk-linux-am335x-evm-03.03.00.04/board-support/linux-4.4.32//arch/arm/configs/tisdk_am335x-evm_defconfig
    # CONFIG_MDIO_BITBANG is not set

    Some customers use GPIO to bit-bang MDIO for better control of the interface. See also if the below e2e threads will be in help:

    e2e.ti.com/.../1244513
    e2e.ti.com/.../546577
    e2e.ti.com/.../366819
    e2e.ti.com/.../140357

    Regards,
    Pavel
  • Raghu,

    See also if the below e2e thread will be in help:

    e2e.ti.com/.../606396

    Regards,
    Pavel