Date: Thu, 21 Mar 2019 13:34:20 -0500 From: Jedi Tek'Unum <jedi@jeditekunum.com> To: Ian Lepore <ian@freebsd.org> Cc: Daniel Braniss <danny@cs.huji.ac.il>, freebsd-arm@freebsd.org Subject: Re: allwinner i2c [was: Options for FBSD support with LCD device - new project] Message-ID: <8AF0CF9D-BD5D-42AC-B1BF-27A056B3D7C2@jeditekunum.com> In-Reply-To: <c1f805119a09de88d11bf72f99db60e2a2a18577.camel@freebsd.org> References: <ad61a598-53af-02a5-41db-0128da7d1a34@optiplex-networks.com> <CAF19XBLAjP4yKtGSBzA4QdT346Bnbnr8MutQNZgmERLbJkWAyA@mail.gmail.com> <8df902f6-20a3-31c4-71ac-91f5d5fdf50d@optiplex-networks.com> <0ecf23e129ca7ac6a92a01bbb34c03f1ac8c6dc8.camel@freebsd.org> <e5d42c67-e1f2-ede1-965f-c89226de46da@optiplex-networks.com> <89f5b8d1ab0614ac8d88b5d5f1afc63e640c3c17.camel@freebsd.org> <4EB5C6C1-7DB9-4DEE-BB23-CD1259581271@jeditekunum.com> <004ddba628b94b80845d8e509ddcb648d21fd6c9.camel@freebsd.org> <C47DE503-1E0E-4475-B62B-0055D2A582E7@cs.huji.ac.il> <c1f805119a09de88d11bf72f99db60e2a2a18577.camel@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 20, 2019, at 10:31 AM, Ian Lepore <ian@freebsd.org> wrote: >=20 > On Tue, 2019-03-19 at 08:28 +0200, Daniel Braniss wrote: >> I have several allwinner SoC, mainly from FriendlyArm, and neither = i2c or SPI work. >> I have a hacked i2c that mostly works, but hangs sometimes :-), = mainly >> timing issues of which I have no idea how to fix. >> I=E2=80=99m willing to help here but my knowledge of the twsi tends = to zero. >> hint hint =E2=80=A6 >>=20 >> cheers, >> danny >=20 > Iirc, allwinner requires working i2c even to boot, because the boards > have i2c PMIC chips on them. I wonder if it's a case where a few = small > commands to the pmic work fine but bigger transfers fail? I dunno, > anything more you can say about the problem would help. My H5 board, a NanoPi NEO 2, running vendor supplied Linux has = /dev/i2c-0 through i2c-3. Only i2c0 is available externally. Detect shows 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- --=20 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --=20 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --=20 30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- 3e 3f=20 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --=20 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --=20 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --=20 70: 70 71 -- 73 -- -- -- -- =20 3c is the OLED Hat. The rest are all my boards (73 is mux and the rest = are SX1509s). The only other scan that shows anything is i2c3 device 30. Maybe that is = the PMIC? i2c1 and i2c2 scan very slowly and eventually show nothing. I suppose = they aren=E2=80=99t pulled up. Daniel, I haven=E2=80=99t had any problems with hangs (Linux) but I do = have intermittent troubles that could be due to a variety of things. = I=E2=80=99ve yet to see anything =E2=80=9Crock solid=E2=80=9D about = these boards.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8AF0CF9D-BD5D-42AC-B1BF-27A056B3D7C2>