From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFPFK-0004Ex-82 for qemu-devel@nongnu.org; Mon, 17 Feb 2014 09:32:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFPFE-0000T6-9F for qemu-devel@nongnu.org; Mon, 17 Feb 2014 09:32:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:26234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFPE2-0000Fb-EU for qemu-devel@nongnu.org; Mon, 17 Feb 2014 09:31:14 -0500 Message-ID: <53021CF6.5010808@redhat.com> Date: Mon, 17 Feb 2014 15:30:14 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <52FE3D0E.8070904@redhat.com> <52FE44DB.8030408@suse.de> <52FE4820.8050009@redhat.com> <5301D40F.2010506@redhat.com> <5301DC83.6030307@redhat.com> <5301E6AA.7000809@redhat.com> <53020C67.5040603@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Fwd: Trying to write a new device / virtio-i2c ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex David Cc: qemu-devel Il 17/02/2014 14:32, Alex David ha scritto: > > But that leaves me with another problem as I now understand how I2C > works on linux... I, in fact, need at least 3 busses (for my at least 3 > devices) - so i2c-0, i2c-1, i2c-2 So you cannot configure the three devices on the same bus, with three different addresses? > ... There are applications I can't > change on the guest and opening / writing / reading on i2c-0, i2c-1 etc... > > Can I just declare these busses using i2c-dev ? If you need more than one bus, you need a new device exposing the I2C bus, besides the new sensor devices. USB-I2C could be one such device. Paolo