DDR3 data pin swapping - How to configure DDR controller to determine the pins swapping?

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

DDR3 data pin swapping - How to configure DDR controller to determine the pins swapping?

1,093 Views
alanlow
Contributor II

Hi,

We design a custom i.MX6ULL board that connect to a DDR3 DRAM (x16) using data pin swapping.

Host D0 <--> DRAM DQU0

Host D8 <--> DRAM DQL0

The rest of pins are swapped within the byte lane.

1) How to configure the DDR controller so that it will read/write the data content correctly?

 

0 Kudos
Reply
5 Replies

1,017 Views
bernhardfink
NXP Employee
NXP Employee
  • For the byte and pin swapping, as I wrote, no software changes are to be made.
  • If your 4Gb SDRAM is a different size than the one in the Murata Yocto project you are referring to, then you need to adapt this in the device tree.
  • If you want to change the timings or the impedance settings of the DDR, then use the attached Excel file as a basis

Regards,
Bernhard.

0 Kudos
Reply

1,062 Views
bernhardfink
NXP Employee
NXP Employee

You don't need to do anything in software, just follow the rules ...

  • The lowest bit of each byte must be aligned between the i.MX 6ULL and DDR3 chips.
    For example, D0 of i.MX 6ULL to D0 of DDR chip, D8 of i.MX 6ULL to D8 of DDR3 chip.
  • Other data lines free to swap within byte lane

... and the DDR controller adapts to your actual implementation.

The Note about the "DDR IC" register is not relevant here.

Regards,
Bernhard.

0 Kudos
Reply

1,037 Views
alanlow
Contributor II

Hi Bernhard,

Thanks for your speedy response!

1) We are using SK Hynix DDR3L 4Gb SDRAM. The Linux BSP is from Murata Yocto project for i.MX6ULL-EVK. Need your advice if we need to modify any source code from the kernel-source?

2) Is that any configuration available for us to fine-tune the DDR speed?

 

Regards

0 Kudos
Reply

1,074 Views
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the enclosed guide

0 Kudos
Reply

1,036 Views
alanlow
Contributor II

Hi Joanxie,

Thanks!

0 Kudos
Reply