From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 21 20:51:48 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F25BF1065670 for ; Sun, 21 Sep 2008 20:51:48 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 78C098FC14 for ; Sun, 21 Sep 2008 20:51:42 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id m8LKpeBt083686 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 21 Sep 2008 22:51:40 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by cicely5.cicely.de (8.14.2/8.14.2) with ESMTP id m8LKpbJd069956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 21 Sep 2008 22:51:37 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id m8LKpbPi021774; Sun, 21 Sep 2008 22:51:37 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id m8LKpbh8021773; Sun, 21 Sep 2008 22:51:37 +0200 (CEST) (envelope-from ticso) Date: Sun, 21 Sep 2008 22:51:37 +0200 From: Bernd Walter To: Paolo Pisati Message-ID: <20080921205137.GM93308@cicely7.cicely.de> References: <20080921115545.GA61452@tin.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080921115545.GA61452@tin.it> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.065, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: freebsd-hackers@freebsd.org Subject: Re: smbus & i2c: why i2c is not enabled on ich? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2008 20:51:49 -0000 On Sun, Sep 21, 2008 at 01:55:45PM +0200, Paolo Pisati wrote: > > Any reason why i2c mode in not enable in ichsmb? Because the controller is a SMB controller and not a I2C one. SMB is more specific than I2C in that it defines complete I2C sequences. With SMB you don't have the individual control over all I2C phases. You can do SMB with an I2C controller, but you can't do raw I2C with an SMB controller. Use SMB to address your devices - SMB is good enough to handle most I2C cases. > ichsmb0@pci0:0:31:3: class=0x0c0500 card=0x82d81043 chip=0x266a8086 rev=0x04 hdr=0x00 > vendor = 'Intel Corporation' > device = '82801FB (ICH6) SMBus Controller' > class = serial bus > subclass = SMBus > > piso@nano:~/eeebsd >sudo pciconf -rb pci0:0:31:3: 0x40 > 01 > piso@nano:~/eeebsd >sudo ./scan_smbus > res: 0 slave = 0x44 data = > res: 0 slave = 0x50 data = > res: 0 slave = 0x69 data = > res: 0 slave = 0xC4 data = > res: 0 slave = 0xD0 data = > res: 0 slave = 0xE9 data = > piso@nano:~/eeebsd >sudo pciconf -wb pci0:0:31:3: 0x40 5 > piso@nano:~/eeebsd >sudo pciconf -rb pci0:0:31:3: 0x40 > 05 > piso@nano:~/eeebsd >sudo ./scan_smbus > res: 0 slave = 0x44 data = FF FF FF FF > res: 0 slave = 0x50 data = 0A 60 40 00 05 30 45 00 82 08 00 00 0C 04 > res: 0 slave = 0x69 data = FF F7 00 00 01 0F 07 E0 18 46 1B 24 D8 63 00 > res: 0 slave = 0xC4 data = FF FF FF FF > res: 0 slave = 0xD0 data = 0A 60 40 00 05 30 45 00 82 08 00 00 0C 04 > res: 0 slave = 0xE9 data = FF F7 00 00 01 0F 07 E0 18 46 1B 24 D8 63 00 > > FYI this is on an asus eeepc. > -- > bye, > P. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.