This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5749: The device tree description for DDR3 and Ethernet PHY on AM5749

Guru 16800 points
Part Number: AM5749

Hello,

We want to change the DDR3 size from 2GB to 4GB on our custom board implementing AM5749.
Also, we want to change the Ethernet PHY from KSZ9031 to another PHY.

Could you confirm the following questions?

1.What parts in device tree files (dts, dtsi) should we modify?
Also, if you have the guideline of modifying device trees, please let us know.

2.Should we modify both device trees for u-boot and linux kernel?

3.What should we modify to change DDR3 and Ethernet PHY except for device trees?

The environment is following:
CPU:AM5749 (custom board)
SDK:ti-processor-sdk-linux-am57xx-evm-06.03.00.106
OS:Ubuntu 18.04

Best Regards,
Nomo

  • Hello Nomo,

    Apologies for the delay in answering. I will get back to you on this in couple of days.

    Best Regards,
    Keerthy

  • Hello Nomo,

    No u-boot changes needed for changing the size. In the u-boot can you try with below diff:

    diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
    index c1f05253bc..a92a799737 100644
    --- a/board/ti/am57xx/board.c
    +++ b/board/ti/am57xx/board.c
    @@ -530,6 +530,16 @@ void do_board_detect(void)
     
     #else  /* CONFIG_SPL_BUILD */
     
    +int dram_init_banksize(void)
    +{
    +        gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
    +        gd->bd->bi_dram[0].size = get_effective_memsize();
    +        gd->bd->bi_dram[1].start = 0x200000000;
    +        gd->bd->bi_dram[1].size = 0x80000000
    +
    +        return 0;
    +}
    +

    Also please make sure the emif parameters are proper.

    On the ethenet phy i will loop in my colleague.

    Best Regards,
    Keerthy

  • Hello Keerthy-san,

    Thank you for your reply.
    We'll try your advice.
    How about the Ethernet PHY device tree?
    If you have any update for this, please let me know.

    Best Regards,
    Nomo

  • Hello Nomo-San,

    I would encourage you to create separate ticket as it is a different module & can be dealt by the right
    expert.

    Best Regards,
    Keerthy

  • Hello Keerthy-san,

    Thank you for your reply.
    I'll create separate ticket.

    Best Regards,
    Nomo

  • Nomo-san,

    Configuring AM57xx u-boot for 4GB is a common question that comes up, and we correspondingly added the documentation into the EMIF Tools App Note:

    AM57x, DRA7x, and TDA2x EMIF Tools
    http://www.ti.com/lit/sprac36

    Specifically please read Section 3.3.4.3 Supporting 4GB Memory.  I just noticed one minor error.  The following line belongs in am57xx_evm_defconfig:

    CONFIG_PHYS_64BIT=y

    The app note lists that as an addition to am57xx_evm.h which is not correct.

    For the kernel please be sure your defconfig has:

    CONFIG_ARM_LPAE=y

    Best regards,
    Brad

  • Hello Brad-san,

    Thank you for your comment.
    We'll confirm the information.
    When we have another question, we'll create new thread.

    Best Regards,
    Nomo