summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-12-10 08:55:53 -0700
committerSimon Glass <sjg@chromium.org>2014-12-11 13:18:43 -0700
commit776f96f513869a784c3c0bd5a972f408c10e067a (patch)
tree9b455c78df82c4a9f3c5135a4efd218e23a5a563 /arch
parentac395f088ff2eb8359900897d858c67f1e2c9ea0 (diff)
downloadu-boot-imx-776f96f513869a784c3c0bd5a972f408c10e067a.zip
u-boot-imx-776f96f513869a784c3c0bd5a972f408c10e067a.tar.gz
u-boot-imx-776f96f513869a784c3c0bd5a972f408c10e067a.tar.bz2
dm: i2c: dts: Add an I2C bus for sandbox
Add an I2C bus to the device tree, with an EEPROM emulator attached to one of the addresses. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de> Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/dts/sandbox.dts17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts
index 7614715..11748ae 100644
--- a/arch/sandbox/dts/sandbox.dts
+++ b/arch/sandbox/dts/sandbox.dts
@@ -134,6 +134,23 @@
num-gpios = <20>;
};
+ i2c@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0>;
+ compatible = "sandbox,i2c";
+ clock-frequency = <400000>;
+ eeprom@2c {
+ reg = <0x2c>;
+ compatible = "i2c-eeprom";
+ emul {
+ compatible = "sandbox,i2c-eeprom";
+ sandbox,filename = "i2c.bin";
+ sandbox,size = <128>;
+ };
+ };
+ };
+
spi@0 {
#address-cells = <1>;
#size-cells = <0>;