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/AM3352: How to use the KSZ8795 in Kernel / U-Boot

Part Number: AM3352

Tool/software: Linux

Dear All,

I want to know how to use the KSZ8795 in Kernel / U-Boot.

Please let me know whether I can use the KSZ8795 with the AM3352 Kernel & U-Boot and,

Please give me the method how to apply the KSZ8795 if you know that.

My development environment is like as below,

- Processor : AM3352

- SDK : 6.0

- Kernel / U-Boot Version : Kernel 3.2 / U-Boot 2013.01

- Ethernet Switch : Microchip KSZ8795 (I have to use this ethernet swicth, and I made the board using AM3352 and KSZ8795 already.)

Best Regards,

Eric.

  • Hi Eric,

    You need to enabel the MICREL & MICROCHIP support in arch/arm/configs/tisdk_am335x-evm_defconfig:
    CONFIG_NET_VENDOR_MICREL=y
    CONFIG_NET_VENDOR_MICROCHIP=y

    However, I don't see a relevant driver for the KSZ8795 phy in kernel 3.2... You may need to adapt some of the existing KSZxxxx drivers, for example the KS8851 & enable it in the defconfig:
    CONFIG_KS8851=y

    Of course you may need to adapt the board-am335xevm.c as well.

    Best Regards,
    Yordan
  • Hi Yordan,
    Thanks for your response.

    I have a question for the RGMII Interface between AM3352 and KSZ8795 Ethernet Switch.
    How do I connect the RGMII Interface between AM3352 and KSZ8795?

    Please give me the reference connection circuit for that.
    I just see the RGMII Interfaces like as below in the AM3352 and KSZ8795 Datasheet.
    For your more understanding, I'll attach the KSZ8795 Datasheet.

    - AM3352 RGMII Interface
       .

    - KSZ8795 RGMII Interface
       .  7343.KSZ8795CLX_DS_2016.2017.pdf

    Best Regards,
    Eric.

  • Hi Eric,

    Have a look at this design:
    www.variscite.com/.../VAR-AM33CUSTOMBOARD_SCH_121.pdf
    It uses a KSZxx phy.

    Best Regards,
    Yordan
  • Hi Yordan,
    Thanks for your response.

    Actually we applied the Microchip KSZ9031 on our board in the previous revision.
    ( KSZ9031 is the next version of KSZ9021 in the VAR-AM33CUSTOMBOARD_SCH_121.pdf. )
    But we have to use the Ethernet Switch with 5-port, so we applied the Microchip KSZ8795 on the board.
    KSZ9031 is Ethernet PHY, and KSZ8795 is Ethernet Switch.
    And PHY and Switch have the different interface with AM3352 like as below.

    So I have to confirm the RGMII Interface between AM3352 and Ethernet Switch(KSZ8795 or others) not Ethernet PHY using RGMII Interface.
    Please give me the solution or the work-around for this interface.
    I think It's very helpful if you give me some schematic using the AM3352 and the RGMII Ethernet Switch.

    For your more understanding,
    I'll attached the RGMII Interface between AM3352 and KSZ9031(Ethernet PHY) or KSZ8795(Ethernet Switch) to be recommended by Microchip.

    - RGMII Interface, AM3352 ~ KSZ9031 (Ethernet PHY)
       .

    - RGMII Interface, AM3352 ~ KSZ8795 (Ethernet Switch)
       .
       .

    Best Regards,
    Eric.



  • Hi Yordan,
    I couldn't receive any response for the RGMII Interface between AM3352 and KSZ8795 (Ethernet Switch).

    Please give me the response as soon as possible.
    Our customer and we have to confirm this connection quickly.
    Our customer board was prepared already, and we need to confirm the connection.

    Best Regards,
    Eric.

  • Hi Yordan,
    I couldn't receive any response for the upper question.

    Please give me the progress if you have any update.

    Best Regards,
    Eric.

  • Hi Eric,

    I glanced through the datasheet you've shared and you should be able to interface the sitara RGMII with the KSZ8795 ethernet switch. However there is no reference design of am335x device, that uses ethernet switch, so I cannot provide one.

    Best Regards,
    Yordan