Re: nanopi/allwinner i2c not working.
Andriy Gapon <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.arm |
|---|---|
| Message-ID | <[email protected]> |
On 06/10/2020 16:30, Daniel Braniss wrote: > > >> On 6 Oct 2020, at 16:26, Andriy Gapon <[email protected]> wrote: >> >> On 06/10/2020 16:23, Daniel Braniss wrote: >>> >>> >>>> On 6 Oct 2020, at 15:53, Andriy Gapon <[email protected]> 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 _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-arm To unsubscribe, send any mail to "[email protected]"