diff mbox series

[u-boot-marvell,1/9] rtc: ds1307: Add bindings for microchip, mcp7940x

Message ID 20220214103430.24242-2-pali@kernel.org
State Accepted
Commit 48c144f8ef9c6b35dc76b803bf8277131993381f
Delegated to: Stefan Roese
Headers show
Series arm: a37xx: Fix code and update DTS files to upstream version | expand

Commit Message

Pali Rohár Feb. 14, 2022, 10:34 a.m. UTC
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>
---
 drivers/rtc/ds1307.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Stefan Roese Feb. 15, 2022, 9:23 a.m. UTC | #1
On 2/14/22 11:34, Pali Rohár wrote:
> 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>

Thanks,
Stefan

> ---
>   drivers/rtc/ds1307.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/rtc/ds1307.c b/drivers/rtc/ds1307.c
> index 1963565c5ee5..40ca66bdceee 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 },
>   	{ }

Viele Grüße,
Stefan Roese
diff mbox series

Patch

diff --git a/drivers/rtc/ds1307.c b/drivers/rtc/ds1307.c
index 1963565c5ee5..40ca66bdceee 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 },
 	{ }