From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 3 18:50:16 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0BB5D16A405 for ; Sat, 3 Feb 2007 18:50:15 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from bsd.dino.sk (bsd.dino.sk [213.215.72.60]) by mx1.freebsd.org (Postfix) with ESMTP id 87E4913C4AC for ; Sat, 3 Feb 2007 18:50:15 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from [192.168.16.241] (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by bsd.dino.sk with esmtp; Sat, 03 Feb 2007 19:45:06 +0100 id 00000036.45C4D832.00015D33 From: Milan Obuch To: freebsd-hackers@freebsd.org Date: Sat, 3 Feb 2007 19:39:59 +0100 User-Agent: KMail/1.9.5 References: <200723171021.907086@poppa> In-Reply-To: <200723171021.907086@poppa> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702031940.00128.freebsd-hackers@dino.sk> Subject: Re: Geode SC1100 i2c bus X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Feb 2007 18:50:16 -0000 On Saturday 03 February 2007 17:10, Cats wrote: > Hello all, > Hi, > I've been looking for some technical infos and/or driver for the i2c bus on > the Geode SC1100 processor under FreeBSD 6. > I tried it too, but no success yet, partially due to ENOTIME :( > I found i2c stuff, tried to compile a kernel with it but nothing showed up. > I had a look at the sources and apparently it doesn't hook up to isa bus. > There is no driver yet. > From the geode databook, on page 11, i2c bus that is called ACB bus is in > the superIO block. This superIO block is attached on the isa bus. > Geode has hardware i2c controller. > The ACB is at the same level than Uart, so I had a look at sio source and > got a big headache. I'm not really used to drivers nor kernel programming > stuff, that's why I need your help. > Why do you compare ACB and UART? In FreeBSD, sio is serial i/o controller, not superIO, maybe you are confused... ACB and UART does not have much in common... > My goal is to use the i2c bus on a wrap board to supervise voltages, pilot > a servo motor and so on. I do not want to use USB because it's easier with > i2c and I already have i2c hardware ready. > > Does someone already tried to use i2c bus on a wrap board under FreeBSD ? > Well, the best I achieved was working bit-banged i2c for wrap's onboard lm77. I was able to read temperature and that's all. Unfortunatelly, external i2c bus works only with geode's hardware i2c controller, which I did not got into working state, internal bus can be switched into gpio mode, which works for me. But that is not really usefull. > I had a look at openbsd and looks like it has already i2c support, but I > ain't had time to build a system and test it on the wrap. For now all my > wrap boards run flawlessly with FreeBSD. > I looked there too, but OpenBSD has different infrastructure, and porting is not easy, at least for me. They have even some more Geode's resources working, but, again, porting is not easy for me. > I searched the mailing list archive but did not found something that could > help me. Remember I'm not really good at writing drivers stuff. I'd like to > learn but I have no start point. > All I can offer is bit-banged stuff, which I got into working state... Regards, Milan -- This address is used only for mailing list response. Do not send any personal messages to it, use milan in address instead.