]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
dm: sandbox: dts: Add a real-time clock attached to I2C
authorSimon Glass <sjg@chromium.org>
Mon, 20 Apr 2015 18:37:28 +0000 (12:37 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:37:14 +0000 (22:37 +0200)
Add an emulated RTC device for sandbox, so that the 'date' command can be
used.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/sandbox.dts

index efa2097b2d67c33f68d8f70c11754fb09af3ff72..82d186ee5b0660e5c82f8acd843f677c0256c589 100644 (file)
@@ -8,7 +8,9 @@
 
        aliases {
                eth5 = "/eth@90000000";
+               i2c0 = &i2c_0;
                pci0 = &pci;
+               rtc0 = &rtc_0;
        };
 
        chosen {
@@ -90,7 +92,7 @@
                num-gpios = <10>;
        };
 
-       i2c@0 {
+       i2c_0: i2c@0 {
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0 0>;
                                sandbox,size = <128>;
                        };
                };
+
+               rtc_0: rtc@43 {
+                       reg = <0x43>;
+                       compatible = "sandbox-rtc";
+                       emul {
+                               compatible = "sandbox,i2c-rtc";
+                       };
+               };
        };
 
        spi@0 {