i2c on Pi3?

Karl Denninger karl at denninger.net
Thu Mar 23 18:01:32 UTC 2017


On 3/23/2017 12:53, Oleksandr Tymoshenko wrote:
> Karl Denninger (karl at 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
>
Nope, already in the base config.txt file:

arm_control=0x200
dtparam=audio=on,i2c_arm=on,spi=on
dtoverlay=mmc
dtoverlay=pi3-disable-bt
device_tree_address=0x4000
kernel=u-boot.bin


-- 
Karl Denninger
karl at denninger.net <mailto:karl at denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2993 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20170323/4cc528cc/attachment.bin>


More information about the freebsd-arm mailing list