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>
This commit is contained in:
Simon Glass
2014-12-10 08:55:55 -07:00
parent 20142019a9
commit ecc2ed55ee
4 changed files with 246 additions and 0 deletions

View File

@@ -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>;