Commit ec6c085c authored by Maxime Ripard's avatar Maxime Ripard Committed by Daniel Lezcano

clocksource: sunxi: Add new compatibles

The Allwinner A10 compatibles were following a slightly different compatible
patterns than the rest of the SoCs for historical reasons. Add compatibles
matching the other pattern to the timer driver for consistency, and keep the
older one for backward compatibility.
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 9affbd24
...@@ -2,7 +2,7 @@ Allwinner A1X SoCs Timer Controller ...@@ -2,7 +2,7 @@ Allwinner A1X SoCs Timer Controller
Required properties: Required properties:
- compatible : should be "allwinner,sun4i-timer" - compatible : should be "allwinner,sun4i-a10-timer"
- reg : Specifies base physical address and size of the registers. - reg : Specifies base physical address and size of the registers.
- interrupts : The interrupt of the first timer - interrupts : The interrupt of the first timer
- clocks: phandle to the source clock (usually a 24 MHz fixed clock) - clocks: phandle to the source clock (usually a 24 MHz fixed clock)
...@@ -10,7 +10,7 @@ Required properties: ...@@ -10,7 +10,7 @@ Required properties:
Example: Example:
timer { timer {
compatible = "allwinner,sun4i-timer"; compatible = "allwinner,sun4i-a10-timer";
reg = <0x01c20c00 0x400>; reg = <0x01c20c00 0x400>;
interrupts = <22>; interrupts = <22>;
clocks = <&osc>; clocks = <&osc>;
......
...@@ -196,5 +196,5 @@ static void __init sun4i_timer_init(struct device_node *node) ...@@ -196,5 +196,5 @@ static void __init sun4i_timer_init(struct device_node *node)
clockevents_config_and_register(&sun4i_clockevent, rate, clockevents_config_and_register(&sun4i_clockevent, rate,
TIMER_SYNC_TICKS, 0xffffffff); TIMER_SYNC_TICKS, 0xffffffff);
} }
CLOCKSOURCE_OF_DECLARE(sun4i, "allwinner,sun4i-timer", CLOCKSOURCE_OF_DECLARE(sun4i, "allwinner,sun4i-a10-timer",
sun4i_timer_init); sun4i_timer_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment