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

rtc: pcf2123: add proper compatible string

nxp,rtc-pcf2123 is not a proper compatible strong for this RTC. The part
name is only pcf2123 and is less confusing.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20190819182656.29744-9-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

+5 -3
+2 -2
Documentation/devicetree/bindings/rtc/nxp,rtc-2123.txt
··· 1 1 NXP PCF2123 SPI Real Time Clock 2 2 3 3 Required properties: 4 - - compatible: should be: "nxp,rtc-pcf2123" 4 + - compatible: should be: "nxp,pcf2123" 5 5 or "microcrystal,rv2123" 6 6 - reg: should be the SPI slave chipselect address 7 7 ··· 11 11 Example: 12 12 13 13 pcf2123: rtc@3 { 14 - compatible = "nxp,rtc-pcf2123" 14 + compatible = "nxp,pcf2123" 15 15 reg = <3> 16 16 spi-cs-high; 17 17 };
+3 -1
drivers/rtc/rtc-pcf2123.c
··· 443 443 444 444 #ifdef CONFIG_OF 445 445 static const struct of_device_id pcf2123_dt_ids[] = { 446 - { .compatible = "nxp,rtc-pcf2123", }, 446 + { .compatible = "nxp,pcf2123", }, 447 447 { .compatible = "microcrystal,rv2123", }, 448 + /* Deprecated, do not use */ 449 + { .compatible = "nxp,rtc-pcf2123", }, 448 450 { /* sentinel */ } 449 451 }; 450 452 MODULE_DEVICE_TABLE(of, pcf2123_dt_ids);