ARM: at91: prepare sam9 dt boards transition to common clk

This patch prepare the transition to common clk for sam9 dt boards by
replacing the timer init callback.

Clocks registration cannot be done in early init callback (as formerly done
by the old clk implementation) because it requires dynamic allocation
which is not ready yet during early init.

In the other hand, at91 clocks must be registered before
at91sam926x_pit_init is called because PIT (Periodic Interval Timer) driver
request the master clk (mck).

A new function (at91sam9_dt_timer_init) is created to fullfil these needs.
This function registers all at91 clks using the dt definition before
calling the PIT init function.
The device tree clock registration is enabled only if common clk is
selected. Else the old clk registration is been done during
at91_dt_initialize call.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
ARM: at91: prepare common clk transition for sam9x5 SoCs

This patch encloses sam9x5 old clk registration in
"#if defined(CONFIG_OLD_CLK_AT91) #endif" sections.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
ARM: at91/dt: define sam9x5 clocks

Define sam9x5 clocks in sam9x5 dt files.
Add references to the appropriate clocks in each peripheral.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
ARM: at91/dt: define main clk frequency of sam9x5ek boards

Define the main clock frequency for the new main clock node
in at91sam9x5cm.dtsi.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
ARM: at91: move sam9x5 SoCs to common clk

This patch removes the selection of AT91_USE_OLD_CLK when selecting
sam9x5 SoCs support. This will automatically enable COMMON_CLK_AT91 option
and add support for at91 common clk implementation.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
ARM: at91: add missing pinconf for sam9x5 LCD controller

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
ARM: at91: add missing pinconf for sam9x5 ISI (Image Sensor Interface)

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
ARM: at91: add missing pinconf for sam9x5 CAN

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
ARM: at91: include sam9x5_lcd.dtsi on sam9x5 SoCs with an LCD controller

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
ARM: at91: include at91sam9x5_isi.dtsi on sam9x5 SoCs with an ISI

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
ARM: at91: include at91sam9x5_can.dtsi on sam9x5 SoCs with CAN interfaces

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
ARM: at91: fix sam9x5ek boards bootargs

According to the nand partitions defined in at91sam9x5cm.dtsi the ubi
partition is written on mtd4 not mtd1.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>