mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
dm: sandbox: dts: Add a real-time clock attached to I2C
Add an emulated RTC device for sandbox, so that the 'date' command can be used. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
17f0ac609b
commit
46af3608ea
1 changed files with 11 additions and 1 deletions
|
@ -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>;
|
||||
|
@ -105,6 +107,14 @@
|
|||
sandbox,size = <128>;
|
||||
};
|
||||
};
|
||||
|
||||
rtc_0: rtc@43 {
|
||||
reg = <0x43>;
|
||||
compatible = "sandbox-rtc";
|
||||
emul {
|
||||
compatible = "sandbox,i2c-rtc";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
spi@0 {
|
||||
|
|
Loading…
Reference in a new issue