Error in TMR_CTRL register setting in MPC8315e

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error in TMR_CTRL register setting in MPC8315e

1,115 Views
gouravjain
Contributor IV

Hi All,

I'm trying to enable 1588 HW time stamping in my custom board based on MPC8315eRDB.

As per ref. manual[Rev-2.0], It supports. And i can see 1588 related registers also.

As per theory section 19.6.6.5.1, TMR_CTRL[RTPE] = 1 then only HW time stamping will be written to TxPAL. But when i check register definition of TMR_CTRL in section 19.5.3.10.1, no where RTPE bit is mentioned in fact 16-17 bits are missing.

However, when i try to set bit TMR_CTRL[16] = 1, changes not reflecting. It's always "0".

Pls some one help me here how to set TMR_CTRL[RTPE] bit in MPC8315e.

Thanks in advance.

Gourav

Tags (3)
0 Kudos
7 Replies

1,000 Views
ufedor
NXP Employee
NXP Employee

For the correct TMR_CTRL description it is possible to refer to the MPC8308 RM:

https://www.nxp.com/docs/en/reference-manual/MPC8308RM.pdf 

For the TMR_CTRL[RTPE] handling it is possible to refer to the gianfar driver function "gianfar_ptp_probe":

linux/gianfar_ptp.c at c4881840f02f6070dede14a698e6feedd586be9b · qoriq-open-source/linux · GitHub 

0 Kudos

1,000 Views
gouravjain
Contributor IV

Hi uferdor,

Thanks for your reply....

Sorry for my typo.... Correct Chipset is MPC8314VRAGDA.

We are following MPC8315ERM, Rev2.0 for MPC8314.

Kindly reply on my below queries,

1) pls confirm once again whether MPC8314 supports IEEE-1588 or not ??

2) Why TMR_CTRL[RTPE] bit is missing from RM??

3) 'm not able to write TMR_CTRL[RTPE] bit in MPC8314 while properly able to write in other board which is having MPC8313VRADDC. [using same gianfar_ptp.c].

Linux source code: drivers/net/ethernet/freescale/gianfar_ptp.c (v3.12) - Bootlin 

4) Is anyone used IEEE-1588 in MPC8314VRAGDA ??

Thanks,

Gourav

0 Kudos

1,000 Views
ufedor
NXP Employee
NXP Employee

1) Supports.

2) This is a typo.

3) The issue was not reported by other customers.

IEEE1588 MPC8315 differs from MPC8313 in that only internal clock can be used - i.e. clocking of 1588 clock domain using
the eTSEC system clock.

Also please consider that IEEE1588 timestamping is not supported when eTSEC operates in SGMII mode.

0 Kudos

1,000 Views
gouravjain
Contributor IV

Hi ufedor,

In the case of MPC8314, U-Boot, I'm not able to write in register tmr_ctrl[RTPE] bit.

While able to set same in MPC8313, U-Boot.

Is there any power sequence or hardware settings which i need to take care in MPC8314 ??

thanks,

Gourav  

0 Kudos

1,001 Views
ufedor
NXP Employee
NXP Employee

Have you considered that IEEE1588 timestamping is not supported when eTSEC operates in SGMII mode?

0 Kudos

1,001 Views
gouravjain
Contributor IV

Yes we considered.

Just for cross verification, pls let me know what all things I need to take care for eTSEC not to operates in SGMII mode

0 Kudos

1,001 Views
ufedor
NXP Employee
NXP Employee

Please refer to the appropriate section in the MPC8315E PowerQUICC II Pro Integrated Host Processor Family Reference Manual, 19.7.1 Interface Mode Configuration.

Doublecheck the processor connection schematics.

0 Kudos