rtc: ds1307: Add bindings for microchip, mcp7940x
authorPali Rohár <pali@kernel.org>
Mon, 14 Feb 2022 10:34:22 +0000 (11:34 +0100)
committerStefan Roese <sr@denx.de>
Thu, 17 Feb 2022 13:17:07 +0000 (14:17 +0100)
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>
drivers/rtc/ds1307.c

index 1963565..40ca66b 100644 (file)
@@ -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 },
        { }