From fc95c1137968488a172c45dc66813fd3e79286e8 Mon Sep 17 00:00:00 2001 From: Igor Opaniuk Date: Tue, 26 May 2020 13:23:43 +0300 Subject: overlays: add initial overlays Naming format: __overlay.dts Signed-off-by: Igor Opaniuk --- overlays/apalis-imx8qm_st-m41t0_overlay.dts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 overlays/apalis-imx8qm_st-m41t0_overlay.dts (limited to 'overlays/apalis-imx8qm_st-m41t0_overlay.dts') 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; + }; + }; + }; +}; -- cgit v1.2.3