summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-02-14 13:34:22 +0300
committerStefan Roese <sr@denx.de>2022-02-17 16:17:07 +0300
commit48c144f8ef9c6b35dc76b803bf8277131993381f (patch)
tree6cacede645936c230aede5c8963a44b668bb5048 /drivers
parenta2389213f2877967d2108dee61b86327048d0e18 (diff)
downloadu-boot-48c144f8ef9c6b35dc76b803bf8277131993381f.tar.xz
rtc: ds1307: Add bindings for microchip, mcp7940x
Compatible string microchip,mcp7940x is used by Turris Mox DTS file in Linux kernel and U-Boot ds1307.c driver works fine with it. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/ds1307.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/ds1307.c b/drivers/rtc/ds1307.c
index 1963565c5e..40ca66bdce 100644
--- a/drivers/rtc/ds1307.c
+++ b/drivers/rtc/ds1307.c
@@ -358,6 +358,7 @@ static const struct udevice_id ds1307_rtc_ids[] = {
{ .compatible = "dallas,ds1337", .data = ds_1337 },
{ .compatible = "dallas,ds1339", .data = ds_1339 },
{ .compatible = "dallas,ds1340", .data = ds_1340 },
+ { .compatible = "microchip,mcp7940x", .data = mcp794xx },
{ .compatible = "microchip,mcp7941x", .data = mcp794xx },
{ .compatible = "st,m41t11", .data = m41t11 },
{ }