Hi Community,
I am using TJA1100 Ethernet PHY in imx6q without any MCU and we need to set mode to Managed mode as a default.
As AH1310 application hints, I need to follow the steps of chapter 8 in this document to write TJA1100 driver in my imx6q kernel.
Can I follow the steps in AH1310 chapter 8 and the Linux PHY driver structure (such as Atheros PHY / at803x.c) in BSP source to create my own TJA1100 driver?
Because the steps in chapter 8 and the structure of Linux PHY driver seem different.
I am kinda new to this field, could you please help me or give me some advices ?
Best regards and many thanks in advance!
解決済! 解決策の投稿を見る。
Hi timchen
you are right, one can use existing driver as reference when porting new
phy, please use nxp bsp on link below and attached Porting Guide Chapter 9
Porting the Ethernet Controller Driver
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi timchen
you are right, one can use existing driver as reference when porting new
phy, please use nxp bsp on link below and attached Porting Guide Chapter 9
Porting the Ethernet Controller Driver
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi igorpadykov,
Thank you for your reply.
I still have two questions below, could you please help me to answer these questions:
1.As I read the document phy.txt which is in kernel_imx/Documentation/networking, I found that PHY Abstraction Layer has Generic PHY Driver. So can I use Generic PHY Driver as my TJA1100 driver when I use TJA1100 in managed mode?
2.Can I use this function: "genphy_read_status" in my phy driver to implement chapter "8.2.2 Status polling" in AH1310_TJA1100_ApplicationHints.pdf?
Many thanks in advance!!
Hi Timoty,
i have the same need, TJA1100 with linux, did you succeed with generic_phy ? Do you know if there is now a day a "ready" phy driver ?
Thanks
angelo