Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource: armada-370-xp: Add detailed clock requirements in devicetree binding

Specifies the required clock inputs for each supported compatible.
Armada 370 requires a single clock phandle, and Armada XP requires
two clock phandles with clock-names "nbclk" and "fixed".

Cc: devicetree@vger.kernel.org
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

authored by

Ezequiel Garcia and committed by
Daniel Lezcano
63ce2cc4 5e9fe6cb

+11 -2
+11 -2
Documentation/devicetree/bindings/timer/marvell,armada-370-xp-timer.txt
··· 9 9 - reg: Should contain location and length for timers register. First 10 10 pair for the Global Timer registers, second pair for the 11 11 local/private timers. 12 - - clocks: clock driving the timer hardware, only required for 13 - "marvell,armada-370-timer"; 12 + 13 + Clocks required for compatible = "marvell,armada-370-timer": 14 + - clocks : Must contain a single entry describing the clock input 15 + 16 + Clocks required for compatible = "marvell,armada-xp-timer": 17 + - clocks : Must contain an entry for each entry in clock-names. 18 + - clock-names : Must include the following entries: 19 + "nbclk" (L2/coherency fabric clock), 20 + "fixed" (Reference 25 MHz fixed-clock). 14 21 15 22 Examples: 16 23 ··· 36 29 compatible = "marvell,armada-xp-timer"; 37 30 reg = <0x20300 0x30>, <0x21040 0x30>; 38 31 interrupts = <37>, <38>, <39>, <40>, <5>, <6>; 32 + clocks = <&coreclk 2>, <&refclk>; 33 + clock-names = "nbclk", "fixed"; 39 34 };