summaryrefslogtreecommitdiff
path: root/test/dm/test.dts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-12-10 08:55:55 -0700
committerSimon Glass <sjg@chromium.org>2014-12-11 13:18:43 -0700
commitecc2ed55ee09814d16e81a9d1030a95f98eaf940 (patch)
tree392c8aefb983944806d72a284c8a35c8ec0b680e /test/dm/test.dts
parent20142019a96a72bf1516be93a86fc10d028fd136 (diff)
dm: i2c: Add tests for I2C
Add some basic tests to check that the system works as expected. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'test/dm/test.dts')
-rw-r--r--test/dm/test.dts17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/dm/test.dts b/test/dm/test.dts
index 1fba7925642..fb0272a59cd 100644
--- a/test/dm/test.dts
+++ b/test/dm/test.dts
@@ -93,6 +93,23 @@
num-gpios = <10>;
};
+ i2c@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0>;
+ compatible = "sandbox,i2c";
+ clock-frequency = <100000>;
+ eeprom@2c {
+ reg = <0x2c>;
+ compatible = "i2c-eeprom";
+ emul {
+ compatible = "sandbox,i2c-eeprom";
+ sandbox,filename = "i2c.bin";
+ sandbox,size = <256>;
+ };
+ };
+ };
+
spi@0 {
#address-cells = <1>;
#size-cells = <0>;