summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--overlays/apalis-imx8qm_st-m41t0_overlay.dts34
1 files changed, 17 insertions, 17 deletions
diff --git a/overlays/apalis-imx8qm_st-m41t0_overlay.dts b/overlays/apalis-imx8qm_st-m41t0_overlay.dts
index 76374e0..5a91eef 100644
--- a/overlays/apalis-imx8qm_st-m41t0_overlay.dts
+++ b/overlays/apalis-imx8qm_st-m41t0_overlay.dts
@@ -1,4 +1,4 @@
-// Enable the external RTC ST m41t0
+// Enble the external m41t0 RTC from ST
/dts-v1/;
/plugin/;
@@ -8,22 +8,22 @@
/ {
compatible = "toradex,apalis-imx8qm";
-};
-
-&i2c2 {
- #address-cells = <1>;
- #size-cells = <0>;
-
- /* M41T0M6 real time clock on carrier board */
- rtc_i2c: rtc@68 {
- compatible = "st,m41t0";
- reg = <0x68>;
+ fragment@0 {
+ target = <&i2c2>;
+ __overlay__ {
+ /* M41T0M6 real time clock on carrier board */
+ rtc_i2c: rtc@68 {
+ compatible = "st,m41t0";
+ reg = <0x68>;
+ };
+ };
};
-};
-
-&{/aliases} {
- aliases {
- rtc0 = &rtc_i2c;
+ fragment@1 {
+ target-path = "/aliases";
+ __overlay__ {
+ aliases {
+ rtc0 = &rtc_i2c;
+ };
+ };
};
};
-