]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rtc: pcf2127: sync with Linux compatible strings
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 3 Jan 2022 12:47:23 +0000 (14:47 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 1 Feb 2022 09:38:07 +0000 (15:08 +0530)
Allow this driver to be used by boards which inherit their device trees
from Linux. Compatibility is temporarily retained with the old
compatible string which is U-Boot specific, and will be removed after a
few changes.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/rtc/pcf2127.c

index 57f86401d371c05e73c616a742b66f4dc62acda5..291ef0329a3e6b67f0fe356d95198494110561e3 100644 (file)
@@ -121,6 +121,9 @@ static const struct rtc_ops pcf2127_rtc_ops = {
 
 static const struct udevice_id pcf2127_rtc_ids[] = {
        { .compatible = "pcf2127-rtc" },
+       { .compatible = "nxp,pcf2127" },
+       { .compatible = "nxp,pcf2129" },
+       { .compatible = "nxp,pca2129" },
        { }
 };