Skip to content

Commit a5f5dc5

Browse files
committed
overlays: i2c-rtc: Add M41T80 support
Add support for the M41T80 RTC to the i2c-rtc and i2c-rtc-gpio overlays. The driver is already enabled, thanks to the existing M41T62 support. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent d57bb1e commit a5f5dc5

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,6 +2261,8 @@ Params: abx80x Select one of the ABx80x family:
22612261

22622262
m41t62 Select the M41T62 device
22632263

2264+
m41t80 Select the M41T80 device
2265+
22642266
mcp7940x Select the MCP7940x device
22652267

22662268
mcp7941x Select the MCP7941x device
@@ -2344,6 +2346,8 @@ Params: abx80x Select one of the ABx80x family:
23442346

23452347
m41t62 Select the M41T62 device
23462348

2349+
m41t80 Select the M41T80 device
2350+
23472351
mcp7940x Select the MCP7940x device
23482352

23492353
mcp7941x Select the MCP7941x device

arch/arm/boot/dts/overlays/i2c-rtc-common.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,19 @@
309309
};
310310
};
311311

312+
fragment@23 {
313+
target = <&i2cbus>;
314+
__dormant__ {
315+
#address-cells = <1>;
316+
#size-cells = <0>;
317+
318+
m41t80: m41t80@68 {
319+
compatible = "st,m41t80";
320+
reg = <0x68>;
321+
};
322+
};
323+
};
324+
312325
__overrides__ {
313326
abx80x = <0>,"+0";
314327
ds1307 = <0>,"+1";
@@ -333,6 +346,7 @@
333346
rv8803 = <0>,"+20";
334347
rv3032 = <0>,"+21";
335348
pcf2131 = <0>,"+22";
349+
m41t80 = <0>,"+23";
336350

337351
addr = <&abx80x>, "reg:0",
338352
<&ds1307>, "reg:0",
@@ -362,6 +376,7 @@
362376
<&mcp7940x>,"wakeup-source?",
363377
<&mcp7941x>,"wakeup-source?",
364378
<&m41t62>,"wakeup-source?",
379+
<&m41t80>,"wakeup-source?",
365380
<&pcf8563>,"wakeup-source?";
366381
};
367382
};

0 commit comments

Comments
 (0)