Skip to content

Commit 92d5ce8

Browse files
ecc1popcornmix
authored andcommitted
overlays: i2c-rtc: add m41t62
Add support for the ST M41T62 real-time clock chip.
1 parent 9f3fdf9 commit 92d5ce8

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

arch/arm/boot/dts/overlays/README

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

690690
ds3231 Select the DS3231 device
691691

692+
m41t62 Select the M41T62 device
693+
692694
mcp7940x Select the MCP7940x device
693695

694696
mcp7941x Select the MCP7941x device

arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,21 @@
143143
};
144144
};
145145

146+
fragment@9 {
147+
target = <&i2c_arm>;
148+
__dormant__ {
149+
#address-cells = <1>;
150+
#size-cells = <0>;
151+
status = "okay";
152+
153+
m41t62: m41t62@68 {
154+
compatible = "st,m41t62";
155+
reg = <0x68>;
156+
status = "okay";
157+
};
158+
};
159+
};
160+
146161
__overrides__ {
147162
abx80x = <0>,"+0";
148163
ds1307 = <0>,"+1";
@@ -153,12 +168,14 @@
153168
pcf2127 = <0>,"+6";
154169
pcf8523 = <0>,"+7";
155170
pcf8563 = <0>,"+8";
171+
m41t62 = <0>,"+9";
156172
trickle-diode-type = <&abx80x>,"abracon,tc-diode";
157173
trickle-resistor-ohms = <&ds1339>,"trickle-resistor-ohms:0",
158174
<&abx80x>,"abracon,tc-resistor";
159175
wakeup-source = <&ds1339>,"wakeup-source?",
160176
<&ds3231>,"wakeup-source?",
161177
<&mcp7940x>,"wakeup-source?",
162-
<&mcp7941x>,"wakeup-source?";
178+
<&mcp7941x>,"wakeup-source?",
179+
<&m41t62>,"wakeup-source?";
163180
};
164181
};

0 commit comments

Comments
 (0)