Skip to content

Commit f49bd06

Browse files
mripardtorvalds
authored andcommitted
rtc: sunxi: change compatibles
The Allwinner A10 compatibles were following a slightly different compatible patterns than the rest of the SoCs for historical reasons. Change the compatibles to match the other pattern in the RTC driver for consistency. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 6a2b342 commit f49bd06

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Documentation/devicetree/bindings/rtc/sunxi-rtc.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
RTC controller for the Allwinner A10/A20
44

55
Required properties:
6-
- compatible : Should be "allwinner,sun4i-rtc" or "allwinner,sun7i-a20-rtc"
6+
- compatible : Should be "allwinner,sun4i-a10-rtc" or "allwinner,sun7i-a20-rtc"
77
- reg: physical base address of the controller and length of memory mapped
88
region.
99
- interrupts: IRQ line for the RTC.
1010

1111
Example:
1212

1313
rtc: rtc@01c20d00 {
14-
compatible = "allwinner,sun4i-rtc";
14+
compatible = "allwinner,sun4i-a10-rtc";
1515
reg = <0x01c20d00 0x20>;
1616
interrupts = <24>;
1717
};

‎drivers/rtc/rtc-sunxi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ static const struct rtc_class_ops sunxi_rtc_ops = {
428428
};
429429

430430
static const struct of_device_id sunxi_rtc_dt_ids[] = {
431-
{ .compatible = "allwinner,sun4i-rtc", .data = &data_year_param[0] },
431+
{ .compatible = "allwinner,sun4i-a10-rtc", .data = &data_year_param[0] },
432432
{ .compatible = "allwinner,sun7i-a20-rtc", .data = &data_year_param[1] },
433433
{ /* sentinel */ },
434434
};

0 commit comments

Comments
 (0)