• Wenyou Yang's avatar
    ARM: dts: at91: sama5d2: add m_can nodes · bc6d5d76
    Wenyou Yang authored
    Add nodes to support the Controller Area Network(M_CAN) on SAMA5D2.
    The version of M_CAN IP core is 3.1.0 (CREL = 0x31040730).
    
    As said in SAMA5D2 datasheet, the CAN clock is recommended to use
    frequencies of 20, 40 or 80 MHz. To achieve these frequencies,
    PMC GCLK3 must select the UPLLCK(480 MHz) as source clock and
    divide by 24, 12, or 6. So, the "assigned-clock-rates" property
    has three options: 20000000, 40000000, and 80000000.
    The "assigned-clock-parents" property should be referred to utmi
    fixedly.
    
    The MSBs [bits 31:16] of the CAN Message RAM for CAN0 and CAN1 are
    default configured in 0x00200000. To avoid conflict with SRAM map
    for PM, change them to 0x00210000 in the AT91Bootstrap via setting
    the CAN Memories Address-based Register(SFR_CAN) of SFR.
    Signed-off-by: default avatarWenyou Yang <wenyou.yang@atmel.com>
    Tested-by: default avatarQuentin Schulz <quentin.schulz@free-electrons.com>
    Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
    bc6d5d76
sama5d2.dtsi 31.7 KB