summaryrefslogtreecommitdiff
path: root/overlays/apalis-imx8qm_st-m41t0_overlay.dts
blob: 5a91eef006af96513d8d616b5020b62f52488820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Enble the external m41t0 RTC from ST

/dts-v1/;
/plugin/;

#include "dt-bindings/interrupt-controller/irq.h"
#include "dt-bindings/gpio/gpio.h"

/ {
	compatible = "toradex,apalis-imx8qm";
	fragment@0 {
		target = <&i2c2>;
		__overlay__ {
			/* M41T0M6 real time clock on carrier board */
			rtc_i2c: rtc@68 {
				compatible = "st,m41t0";
				reg = <0x68>;
			};
		};
	};
	fragment@1 {
		target-path = "/aliases";
		__overlay__ {
			aliases {
				rtc0 = &rtc_i2c;
			};
		};
	};
};