From 5b5ad5ba01cebe6a749bcf5c9fc9637876fe0b1f Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Tue, 11 Feb 2014 02:07:44 +0000 Subject: mvebu: backport mainline patches from kernel 3.13 This is a backport of the patches accepted to the Linux mainline related to mvebu SoC (Armada XP and Armada 370) between Linux v3.12, and Linux v3.13. This work mainly covers: * Finishes work for sharing the pxa nand driver(drivers/mtd/nand/pxa3xx_nand.c) between the PXA family, and the Armada family. * timer initialization update, and access function for the Armada family. * Generic IRQ handling backporting. * Some bug fixes. Signed-off-by: Seif Mazareeb CC: Luka Perkov git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39566 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- ...rce-armada-370-xp-Fix-device-tree-binding.patch | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 target/linux/mvebu/patches-3.10/0193-clocksource-armada-370-xp-Fix-device-tree-binding.patch (limited to 'target/linux/mvebu/patches-3.10/0193-clocksource-armada-370-xp-Fix-device-tree-binding.patch') diff --git a/target/linux/mvebu/patches-3.10/0193-clocksource-armada-370-xp-Fix-device-tree-binding.patch b/target/linux/mvebu/patches-3.10/0193-clocksource-armada-370-xp-Fix-device-tree-binding.patch new file mode 100644 index 0000000000..4ee7f3f563 --- /dev/null +++ b/target/linux/mvebu/patches-3.10/0193-clocksource-armada-370-xp-Fix-device-tree-binding.patch @@ -0,0 +1,70 @@ +From ba47ab198541f6ed822b3c9691b392d83edba8b4 Mon Sep 17 00:00:00 2001 +From: Ezequiel Garcia +Date: Tue, 13 Aug 2013 11:43:14 -0300 +Subject: [PATCH 193/203] clocksource: armada-370-xp: Fix device-tree binding + +This commit fixes the DT binding for the Armada 370/XP SoC timer. +The previous "marvell,armada-370-xp-timer" compatible is removed and +two new compatible strings are introduced: "marvell,armada-xp-timer" +and "marvell,armada-370-timer". + +The rationale behind this change is that the Armada 370 SoC and the +Armada XP SoC timers are not really compatible: + + * Armada 370 has no 25 MHz fixed timer. + + * Armada XP cannot work properly without such 25 MHz fixed timer + as doing otherwise leads to using a clocksource whose frequency + varies when doing cpufreq frequency changes. + +This commit also removes the "marvell,timer-25Mhz" property, given +it's now meaningless. + +Cc: devicetree@vger.kernel.org +Acked-by: Jason Cooper +Reviewed-by: Andrew Lunn +Signed-off-by: Ezequiel Garcia +Signed-off-by: Daniel Lezcano +--- + .../bindings/timer/marvell,armada-370-xp-timer.txt | 27 ++++++++++++++++++---- + 1 file changed, 22 insertions(+), 5 deletions(-) + +--- a/Documentation/devicetree/bindings/timer/marvell,armada-370-xp-timer.txt ++++ b/Documentation/devicetree/bindings/timer/marvell,armada-370-xp-timer.txt +@@ -2,14 +2,31 @@ Marvell Armada 370 and Armada XP Timers + --------------------------------------- + + Required properties: +-- compatible: Should be "marvell,armada-370-xp-timer" ++- compatible: Should be either "marvell,armada-370-timer" or ++ "marvell,armada-xp-timer" as appropriate. + - interrupts: Should contain the list of Global Timer interrupts and + then local timer interrupts + - reg: Should contain location and length for timers register. First + pair for the Global Timer registers, second pair for the + local/private timers. +-- clocks: clock driving the timer hardware ++- clocks: clock driving the timer hardware, only required for ++ "marvell,armada-370-timer"; + +-Optional properties: +-- marvell,timer-25Mhz: Tells whether the Global timer supports the 25 +- Mhz fixed mode (available on Armada XP and not on Armada 370) ++Examples: ++ ++- Armada 370: ++ ++ timer { ++ compatible = "marvell,armada-370-timer"; ++ reg = <0x20300 0x30>, <0x21040 0x30>; ++ interrupts = <37>, <38>, <39>, <40>, <5>, <6>; ++ clocks = <&coreclk 2>; ++ }; ++ ++- Armada XP: ++ ++ timer { ++ compatible = "marvell,armada-xp-timer"; ++ reg = <0x20300 0x30>, <0x21040 0x30>; ++ interrupts = <37>, <38>, <39>, <40>, <5>, <6>; ++ }; -- cgit v1.2.3