Date: Fri, 26 Apr 2013 11:32:29 +0300 From: Aleksandr Rybalko <ray@ddteam.net> To: paul+usenet@w6yx.stanford.edu Cc: freebsd-arm@freebsd.org Subject: Re: bcm2835 i2c support? Message-ID: <20130426113229.980bf3a122372e02508fad36@ddteam.net> In-Reply-To: <klch2c$2s7m$1@usenet.ziemba.us> References: <klch2c$2s7m$1@usenet.ziemba.us>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 26 Apr 2013 00:17:16 +0000 (UTC) "G. Paul Ziemba" <pz-freebsd-arm@ziemba.us> 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 <ray@ddteam.net>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130426113229.980bf3a122372e02508fad36>