Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Mar 2017 10:53:42 -0700
From:      Oleksandr Tymoshenko <gonzo@bluezbox.com>
To:        Karl Denninger <karl@denninger.net>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: i2c on Pi3?
Message-ID:  <20170323175342.GA55627@bluezbox.com>
In-Reply-To: <f1c3c4bb-976c-05ba-24ec-212bc9412a33@denninger.net>
References:  <0b83d41a-1a9e-28cc-6ecd-03e6a63a06a2@denninger.net> <DAC58CC9-9D1C-483F-B748-3BD20A8245CE@thehowies.com> <f1c3c4bb-976c-05ba-24ec-212bc9412a33@denninger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Karl Denninger (karl@denninger.net) wrote:
> On 3/23/2017 12:34, John Howie wrote:
> 
> > Hi Karl,
> >
> > I can only speak to the Raspberry Pi 2 kernel, but I2C is supported. For an example how to use it from userland, check out a project I posted on github eighteen months ago, that was for the PiFace RTC.
> >
> > https://github.com/jhowie/FreeBSDPiFaceRTC
> >
> > There are useful routines I created for working with devices on the I2C bus, which you are free to use. They are not RPI2-specific, so they should work on other boards. 
.. skipped ..
> It works on the Pi2; I am using it in production.
> 
> The driver appears to be /missing /in the Pi3 kernel.

Probably it's not enabled in DTB. Try adding this line to config.txt:

dtparam=i2c_arm=on,spi=on

-- 
gonzo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170323175342.GA55627>