summaryrefslogtreecommitdiff
path: root/overlays/apalis-imx8qm_st-m41t0_overlay.dts
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/apalis-imx8qm_st-m41t0_overlay.dts')
-rw-r--r--overlays/apalis-imx8qm_st-m41t0_overlay.dts29
1 files changed, 29 insertions, 0 deletions
diff --git a/overlays/apalis-imx8qm_st-m41t0_overlay.dts b/overlays/apalis-imx8qm_st-m41t0_overlay.dts
new file mode 100644
index 0000000..5a91eef
--- /dev/null
+++ b/overlays/apalis-imx8qm_st-m41t0_overlay.dts
@@ -0,0 +1,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;
+ };
+ };
+ };
+};