i.MX8MP Memory Device Tree Configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX8MP Memory Device Tree Configuration

跳至解决方案
1,837 次查看
Wobaffet
Senior Contributor I

Hello, For our custom board, we'll have 512MB LPDDR4 MT53E128M32D2DS-046 from micron. In the EVK DT, 6GB memory configured as follows:

 

        memory@40000000 {
                device_type = "memory";
                reg = <0x0 0x40000000 0 0xc0000000>,
                      <0x1 0x00000000 0 0xc0000000>;
        };

 

According to memory mapping from Reference Manual of the processor DDR addressing is like this:

Wobaffet_0-1681478650778.png

So can I configure for our board like this:

 

        memory@40000000 {
                device_type = "memory";
                reg = <0x0 0x40000000 0 0x20000000>;
        };

 

or do I need to configure like this?

 

        memory@40000000 {  
                device_type = "memory";
                reg = <0x0 0x40000000 0 0x10000000>,
                      <0x1 0x00000000 0 0x10000000>;
        };

 

 

0 项奖励
回复
1 解答
1,812 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @Wobaffet,

I hope you are doing well.

One can define memory node for 512MB LPDDR4 DRAM in dts as below.

 

memory@40000000 {
      device_type = "memory";
      reg = <0x0 0x40000000 0 0x20000000>;
};

 

 

Additional changes are also required for 512MB DRAM in u-boot-imx.

In the board configuration header file. (/include/configs/..)

 

#define PHYS_SDRAM 0x40000000
#define PHYS_SDRAM_SIZE 0x2000000

 

 

Please refer to 5.7 Adding OP-TEE support for a new board in i.MX Porting Guide and change CFG_DDR_SIZE (if op-tee is used.)

Thanks & Regards,
Dhruvit Vasavada

在原帖中查看解决方案

1 回复
1,813 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @Wobaffet,

I hope you are doing well.

One can define memory node for 512MB LPDDR4 DRAM in dts as below.

 

memory@40000000 {
      device_type = "memory";
      reg = <0x0 0x40000000 0 0x20000000>;
};

 

 

Additional changes are also required for 512MB DRAM in u-boot-imx.

In the board configuration header file. (/include/configs/..)

 

#define PHYS_SDRAM 0x40000000
#define PHYS_SDRAM_SIZE 0x2000000

 

 

Please refer to 5.7 Adding OP-TEE support for a new board in i.MX Porting Guide and change CFG_DDR_SIZE (if op-tee is used.)

Thanks & Regards,
Dhruvit Vasavada