OSDN Git Service

ARM: dts: at91: sama5d2: add m_can nodes
authorWenyou Yang <wenyou.yang@atmel.com>
Mon, 24 Apr 2017 01:12:17 +0000 (09:12 +0800)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 15 May 2017 09:42:09 +0000 (11:42 +0200)
commitbc6d5d7666b73cbd8d6ed6ee3aece84903fffe0b
tree3c887fa7b3616028a600d318477d49c1dfa6e9ff
parent43c3a448b3570654876eb5a111e94356dcbde37e
ARM: dts: at91: sama5d2: add m_can nodes

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: 2000000040000000, 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: Wenyou Yang <wenyou.yang@atmel.com>
Tested-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/arm/boot/dts/at91-sama5d2_xplained.dts
arch/arm/boot/dts/sama5d2.dtsi