Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 2020 16:47:27 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Daniel Braniss <danny@cs.huji.ac.il>
Cc:        Emmanuel Vadot <manu@bidouilliste.com>, "freebsd-arm@freebsd.org" <arm@FreeBSD.org>
Subject:   Re: nanopi/allwinner i2c not working.
Message-ID:  <43a5d626-634c-2cc2-e8a5-ad4326a2d6e2@FreeBSD.org>
In-Reply-To: <F36B7EDD-B9A8-4D9B-854E-B54BFE678AB9@cs.huji.ac.il>
References:  <234D06ED-C99F-477E-8D95-492979084E7A@cs.huji.ac.il> <d154f62f-cf41-aaac-4bae-89ee48163afa@FreeBSD.org> <E2E23A4F-9D51-4803-BFF1-B5B2BBE56576@cs.huji.ac.il> <7934CE38-DC3F-450A-A131-19A7F88DA9EC@cs.huji.ac.il> <e1dd71e2-9ee3-380d-7be9-601a3015652c@FreeBSD.org> <20201006104119.28f2262d47107d41025d193f@bidouilliste.com> <29A34854-E792-48CE-AF0A-E4C605BDFC3B@cs.huji.ac.il> <6416CA90-AB4C-4F8A-BCF4-7C9E5A4F2F8D@cs.huji.ac.il> <0ba109b4-784f-19ed-e52d-a40b75af872c@FreeBSD.org> <7C27FB6C-BF0D-4DAE-99D0-50849D2FBA5E@cs.huji.ac.il> <ecc5c0cf-3a5f-ef24-8270-3b95354ee7d9@FreeBSD.org> <F36B7EDD-B9A8-4D9B-854E-B54BFE678AB9@cs.huji.ac.il>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06/10/2020 16:30, Daniel Braniss wrote:
> 
> 
>> On 6 Oct 2020, at 16:26, Andriy Gapon <avg@FreeBSD.org> wrote:
>>
>> On 06/10/2020 16:23, Daniel Braniss wrote:
>>>
>>>
>>>> On 6 Oct 2020, at 15:53, Andriy Gapon <avg@FreeBSD.org> wrote:
>>>>
>>>> On 06/10/2020 15:47, Daniel Braniss wrote:
>>>>> i2c -s works - finds the devices
>>>>>
>>>>> but can’t do much else, can’t talk to the device (pn532)
>>>>> trying to write i get
>>>>> 	I2CRWR: errno 1: Operation not permitted’
>>>>
>>>> You have to use -m tr with twsi.
>>>
>>> please translate :-)
>>
>> Okay, please show the command line :)
> 
> ah, got it, but i use ioctl(fd, I2CRDWR,  data).
> 
> i’ll recompile and see if it’s still not working.

I2CRDWR should work actually, it uses iicbus_transfer.
Can you share / show your code?


-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43a5d626-634c-2cc2-e8a5-ad4326a2d6e2>