]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - test/dm/test.dts
dm: rtc: Add tests for real-time clocks
[karo-tx-uboot.git] / test / dm / test.dts
index dd6d0acc27d7a4bfdcac5aa5b5dbfa3c7f840884..008584865c0592705f8c318fdece12ce6adf1280 100644 (file)
@@ -20,6 +20,8 @@
                testfdt5 = "/some-bus/c-test@5";
                testfdt6 = "/e-test";
                testfdt8 = "/a-test";
+               rtc0 = &rtc_0;
+               rtc1 = &rtc_1;
                usb0 = &usb_0;
                usb1 = &usb_1;
                usb2 = &usb_2;
                                sandbox,size = <256>;
                        };
                };
+
+               rtc_0: rtc@43 {
+                       reg = <0x43>;
+                       compatible = "sandbox-rtc";
+                       emul {
+                               compatible = "sandbox,i2c-rtc";
+                       };
+               };
+
+               rtc_1: rtc@61 {
+                       reg = <0x61>;
+                       compatible = "sandbox-rtc";
+                       emul {
+                               compatible = "sandbox,i2c-rtc";
+                       };
+               };
        };
 
        pci: pci-controller {