How to runtime read DDR clock rate

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

How to runtime read DDR clock rate

Jump to solution
813 Views
GG0712
Contributor III

Hi NXP team,

 

I using s32g399ardb3 and BSP35.

How can I runtime access DDR clock rate?

Does S32G3 maximum DDR clock rate is DDR4-3200?

How can I adjust DDR clock rate?

GG0712_0-1757498302469.png

 

root@s32g399ardb3:~# cat /sys/kernel/debug/clk/clk_summary 
| enable | prepare | protect | | | duty
clock | count | count | count | rate | accuracy | phase | cycle
ddr_axi | 0 | 0 | 0 | 800000000 | 0 | 0 | 50000
ddr_pll_ref | 0 | 0 | 0 | 800000000 | 0 | 0 | 50000
ddr_reg | 0 | 0 | 0 | 132206143 | 0 | 0 | 50000
root@s32g399ardb3:~# lshw 
s32g399ardb3
description: Computer
product: NXP S32G399A-RDB3
width: 64 bits
capabilities: smp tagged_addr_disabled
...
...
...
*-memory
description: System memory
physical id: c
size: 3415MiB

Thanks

0 Kudos
Reply
1 Solution
772 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @GG0712 

Thanks for your post.

1. Yes, from the RM, the maximum DDR clock rate supported is DDR4-3200

2. The DDR clock is set via the code in TFA, you may try adjusting it via the TFA

 

BR

Chenyin

View solution in original post

0 Kudos
Reply
5 Replies
773 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @GG0712 

Thanks for your post.

1. Yes, from the RM, the maximum DDR clock rate supported is DDR4-3200

2. The DDR clock is set via the code in TFA, you may try adjusting it via the TFA

 

BR

Chenyin

0 Kudos
Reply
767 Views
GG0712
Contributor III

Hi @chenyin_h ,

 

Our HW team measure the clock rate is 1600 MHz

But from my previous post, the clock rate of ddr_pll_ref is 800 MHz

Does this correct?

 

Thanks

0 Kudos
Reply
759 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @GG0712 

Thanks for your reply.

Yes, it is correct, within the internal DDR PHY the DDR_CLK will be doubled and therefore the outputted DRAM clock frequency is DDR_CLK multiplied with 2, which would be 800*2=1600Mhz.

 

BR

Chenyin 

0 Kudos
Reply
757 Views
GG0712
Contributor III

Hi @chenyin_h ,

 

According what you said.

Can I understand that DDR clock rate is 1600 MHz and data rate is 3200 MHz ?

 

Thanks

0 Kudos
Reply
749 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @GG0712 

Thanks for your reply.

Yes, I agree with you, the data rate is 3200MT/s per my understanding.

 

BR

Chenyin

0 Kudos
Reply