Hi ,
I use a custom board with i.mx6DL + TJA1100 (RMII ) + fsl-bsp-4.1.15_2.0.0 SDK .
I write a tja1100 driver which reference net/phy/davicom.c as base, but our issue is the tja1100 always can not enter "link stable" status but stuck on "link statup" stage.
I connect our two custom board with one twisted pair cable in my environment. ( both setting to phy slave mode and managed option )
And here is the register dump value
BASIC_CTRL_REG=0x2100
BASIC_STAT_REG=0x1e1
id1=0x180 , id2=0xdc48
EXT_STAT_REG=0x80
EXT_CTRL_REG=0x9806 // link control enable = 1 , power_mode = 3
CONF_REG1=0x1911
CONF_REG2=0x2245
INT_STAT_REG=0x0
INT_ENABLE_REG=0xffff
COMM_STAT_REG=0x6004 // TX_MODE is SEND_Z mode , PHY active , loc_rcvr =0 , rem_rcvr = 0 , scr_locked = 0
GENERAL_STAT_REG=0x4000
EXTERNAL_STAT_REG=0x0
LINK_FAIL_CNT_REG=0x0
After I set the LINK_CONTROL bit into extended control register , I always get the same register value dump .
Could you give us some advise ?
Best,
Andy
Hi Andy
one can check iomux settings (use imx6dl-sabreauto-flexcan1.dts as example)
linux-imx.git - i.MX Linux Kernel
and test it in loopback mode. Test procedure can be found in imx-test package (test/can folder)
www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor,
Thank for your reply.
But TJA1100 is broadr-reach ethernet phy not CAN bus.
Could you give other advises ?
Best,
Andy
Hi Andy
sorry for confusion, please check
Is there a Linux driver for the PHY chip "TJA1100" for IMX6?
Best regards
igor
I'll chip in as I'm also interested in getting the TJA1100 to work with Linux/iMX6 in the near future.
Igor, did you read the the topic you've provided the link to? If yes, do you really think the content provides an answer to Andys question?
Does NXP have plans to provide a ready-to-use driver for their own NXP BroadR-Reach PHYs for Linux resp. the iMX family any time in the future?
BR,
John
Hi John
>did you read the the topic you've provided the link to? If yes, do you really think the
>content provides an answer to Andys question?
I believe it answers and provides steps for working solution. Answer was try loopback
mode, please refer to Annex 1B System Level Test Modes BroadR specification
http://www.ieee802.org/3/1TPCESG/public/BroadR_Reach_Automotive_Spec_V3.0.pdf
Unfortunately TJA1100 is not supported in i.MX6 linux bsps and I am not
aware of plans of its support. For such cases recommended to apply to
NXP Professional Services which helps customers with porting new drivers
http://www.nxp.com/support/nxp-professional-services:PROFESSIONAL-SERVICE
Pro-Support contact www.nxp.com/prosupport
Best regards
igor
Hi Igor,
Thanks for your reply but my issue is still there.
Because my issue is stuck on tja1100 phy initial stage , if I can not pass the initial phy stage.
I can not proceed the loopback mode testing.
Best,
Andy
Hi Andy
unfortunately I am not aware of free BroadR phy drivers
which could be used as example. In general I can provide uboot BCM89810
(used in Broadcom Ethernet PHY Card) patch if that helps,
please create service request for that.
Best regards
igor
Hi Igor,
Actually I already created a service request for that ( Case 00105659 ).
And then I got the linux driver patch for BCM89810 , but this patch seems not helping after survey that.
But if you can also provide uboot BCM89810 patch it will be great .
Best,
Andy
Hi Andy
I added some data to that sr.
Best regards
igor