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

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>

authored by

Maxime Ripard and committed by
Linus Torvalds
f49bd06e 6a2b3422

+3 -3
+2 -2
Documentation/devicetree/bindings/rtc/sunxi-rtc.txt
··· 3 3 RTC controller for the Allwinner A10/A20 4 4 5 5 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" 7 7 - reg: physical base address of the controller and length of memory mapped 8 8 region. 9 9 - interrupts: IRQ line for the RTC. ··· 11 11 Example: 12 12 13 13 rtc: rtc@01c20d00 { 14 - compatible = "allwinner,sun4i-rtc"; 14 + compatible = "allwinner,sun4i-a10-rtc"; 15 15 reg = <0x01c20d00 0x20>; 16 16 interrupts = <24>; 17 17 };
+1 -1
drivers/rtc/rtc-sunxi.c
··· 428 428 }; 429 429 430 430 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] }, 432 432 { .compatible = "allwinner,sun7i-a20-rtc", .data = &data_year_param[1] }, 433 433 { /* sentinel */ }, 434 434 };