diff options
Diffstat (limited to 'overlays')
-rw-r--r-- | overlays/apalis-imx8qm_st-m41t0_overlay.dts | 34 |
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 5a91eef..76374e0 100644 --- a/overlays/apalis-imx8qm_st-m41t0_overlay.dts +++ b/overlays/apalis-imx8qm_st-m41t0_overlay.dts @@ -1,4 +1,4 @@ -// Enble the external m41t0 RTC from ST +// Enable the external RTC ST m41t0 /dts-v1/; /plugin/; @@ -8,22 +8,22 @@ / { 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>; - }; - }; +}; + +&i2c2 { + #address-cells = <1>; + #size-cells = <0>; + + /* 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; - }; - }; +}; + +&{/aliases} { + aliases { + rtc0 = &rtc_i2c; }; }; + |