diff options
author | Simon Glass <sjg@chromium.org> | 2014-12-10 18:55:53 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-12-11 23:18:43 +0300 |
commit | 776f96f513869a784c3c0bd5a972f408c10e067a (patch) | |
tree | 9b455c78df82c4a9f3c5135a4efd218e23a5a563 /arch/sandbox | |
parent | ac395f088ff2eb8359900897d858c67f1e2c9ea0 (diff) | |
download | u-boot-776f96f513869a784c3c0bd5a972f408c10e067a.tar.xz |
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/sandbox')
-rw-r--r-- | arch/sandbox/dts/sandbox.dts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts index 76147154c2..11748aec79 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>; |