From owner-freebsd-arm@FreeBSD.ORG Fri Apr 26 08:39:51 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 154F5288 for ; Fri, 26 Apr 2013 08:39:51 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id C2AAB1826 for ; Fri, 26 Apr 2013 08:39:50 +0000 (UTC) Received: from terran (unknown [192.168.99.1]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 53D52C4934; Fri, 26 Apr 2013 11:31:46 +0300 (EEST) Date: Fri, 26 Apr 2013 11:32:29 +0300 From: Aleksandr Rybalko To: paul+usenet@w6yx.stanford.edu Subject: Re: bcm2835 i2c support? Message-Id: <20130426113229.980bf3a122372e02508fad36@ddteam.net> In-Reply-To: References: X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2013 08:39:51 -0000 On Fri, 26 Apr 2013 00:17:16 +0000 (UTC) "G. Paul Ziemba" wrote: > Running -current from April 16 on my new RPi. I will be > connecting a ds1307 real time clock via i2c and hope to > use it for the system clock. > > I see ds1307 code in the kernel, as well as code for some parts > of the bcm2835 (yay, I can write to gpio pins with ioctl), but > not for i2c. Is there work in progress, or should I attempt to > roll my own? > > thanks, > > ~!paul > -- > G. Paul Ziemba > FreeBSD unix: > 5:36PM up 9 days, 4:54, 1 user, load averages: 0.89, 0.99, 0.99 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" Hi Paul, IIRC nobody touch i2c controller on BCM2835. So you have two ways: 1. write own 2. use dev/gpio/gpioiic.c for that, maybe even add FDT binding for that driver and for GPIO children (to use FDT instead of hints file). Thanks! WBW -- Aleksandr Rybalko