From owner-freebsd-hackers Fri Nov 13 02:17:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA18212 for freebsd-hackers-outgoing; Fri, 13 Nov 1998 02:17:30 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from zappa.demon.nl (zappa.demon.nl [195.173.232.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA18207 for ; Fri, 13 Nov 1998 02:17:24 -0800 (PST) (envelope-from root@zappa.demon.nl) Received: (from root@localhost) by zappa.demon.nl (8.9.1/8.8.8) id LAA02088 for freebsd-hackers@freebsd.org; Fri, 13 Nov 1998 11:18:28 +0100 (CET) (envelope-from root) Message-ID: <19981113111828.A1539@zappa.demon.nl> Date: Fri, 13 Nov 1998 11:18:28 +0100 From: Ron Klinkien To: freebsd-hackers@FreeBSD.ORG Subject: Re: i2c projects References: <19981109211837.A4702@zappa.demon.nl> <19981113001748.14820@breizh.prism.uvsq.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <19981113001748.14820@breizh.prism.uvsq.fr>; from Nicolas Souchu on Fri, Nov 13, 1998 at 12:17:48AM +0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, On Fri, Nov 13, 1998 at 12:17:48AM +0000, Nicolas Souchu wrote: > >I want to build a weather station / home automation project using a FreeBSD running pc, > >and the i2c bus on my video capture card. > > Cool. FreeBSD is the good choice. Yes, it's great for almost anything ;-) > > Yes, this is lacking. Waiting for a MAKEDEV update, try: > > mknod iic0 c 105 0 > mknod smb0 c 106 0 Ah thanks, > >Which major/minor numbers to use etc...? > > You would have found them in the related drivers: I also spotted them in majors.i386 as it should. > > iicbus is a powerfull framework that should bring you all what you need with > only few indications about how to use it. Thats what i'm looking for no worries about timing etc... > Now, you want to write user/kernel code? If you need kernel code which is > uncertain, /sys/dev/iicbus/iic.c will be a good start. Read, copy and > modify it as needed. No just a normal user code program will do for starters. The drivers in the kernel seems to work: -- cut --- bktr0: rev 0x12 int a irq 10 on pci0.9.0 bti2c0: iicbb0: on bti2c0 iicbus0: on iicbb0 master-only Probing for devices on iicbus0: smbus0: on bti2c0 Miro TV, Temic PAL tuner. --- cut --- > { "iic", IICBUS_DEVICE_CLASS, "PCF8574 I2C to 8 bits parallel i/o", 64}, Hmm i happen to have this one... waiting to be soldered onto my experiment board ;-) > Nicolas. > > -- Thanks for your help so far.. Ron. -- --- Running Solaris/SPARC at work, enjoying FreeBSD/PII at home. Ron Klinkien System Engineer ron@zappa.demon.nl http://www.zappa.demon.nl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message