From: Masahiro Yamada Date: Wed, 19 Nov 2014 17:29:45 +0900 Subject: [U-Boot] [PATCH v2 14/17] dm: i2c: dts: Add an I2C bus for sandbox In-Reply-To: <1415727993-22032-15-git-send-email-sjg@chromium.org> References: <1415727993-22032-1-git-send-email-sjg@chromium.org> <1415727993-22032-15-git-send-email-sjg@chromium.org> Message-ID: <20141119172944.9404.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On Tue, 11 Nov 2014 10:46:30 -0700 Simon Glass wrote: > 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 at 0 { > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0>; > + compatible = "sandbox,i2c"; > + clock-frequency = <400000>; > + eeprom at 2c { > + reg = <0x2c>; > + compatible = "i2c-eeprom"; > + emul { > + compatible = "sandbox,i2c-eeprom"; > + sandbox,filename = "i2c.bin"; > + sandbox,size = <128>; > + }; > + }; > + }; > + > spi at 0 { > #address-cells = <1>; > #size-cells = <0>; It is not clear to me why "sandbox,i2c-eeprom" is not placed right under "i2c at 0". What does the intermediate node "eeprom at 2c" do? I checked drivers/misc/i2c_eeprom.c but it does not seem to do anything. Best Regards Masahiro Yamada