From owner-freebsd-arm@freebsd.org Thu Mar 21 18:34:55 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC52C154AE2C for ; Thu, 21 Mar 2019 18:34:55 +0000 (UTC) (envelope-from jedi@jeditekunum.com) Received: from a2i644.smtp2go.com (a2i644.smtp2go.com [103.47.206.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 074F071298 for ; Thu, 21 Mar 2019 18:34:44 +0000 (UTC) (envelope-from jedi@jeditekunum.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=m4fue0.a1-4.dyn; x=1553194185; h=Feedback-ID: X-Smtpcorp-Track:To:Date:Subject:Message-Id:From:Reply-To:Sender: List-Unsubscribe; bh=OYfjRsB5yTl0gqeFYBHW5qEY4czUL/lV1ph+cOGSiHw=; b=0RWgCOGq /JfOc7mHGLGJnj84k3VjsF8sY2m4FAnFHDynpZYrnz+WkrVE97YGd1IuhgzO5wsjby2kgKODzZXhW Y6+wORiRPQD/+/wkojHfVcuGXtiX1vVhHpQcIX63FqqK0omCH8/M9nLRQ6SzERuo00zgpPFKq2qCn rQGNnG2wvchCzilHe36hN43ailGvXZL8IQQekKu/QWvvPdEuZY1kwgvWvoendiqA9Yp7YLNx7puOw ubYmOy6H2oFCzqGGKgsJi+uQtQ+w3lrM7GlmEsXv10mC4tE3cqGLb82MXQRfXdQHnhUGLyjUZuqlv qAM+BPjnIwkRe4/7/3vI4Q4o5g==; Received: from [10.173.255.233] (helo=SmtpCorp) by smtpcorp.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1h72WH-ED4yjj-Vl; Thu, 21 Mar 2019 18:34:26 +0000 Received: from [10.162.213.37] (helo=takodana.opaxus.net) by smtpcorp.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1h72WH-IbZs0d-EL; Thu, 21 Mar 2019 18:34:25 +0000 Received: from [10.0.10.1] (174-20-17-78.mpls.qwest.net [174.20.17.78]) by takodana.opaxus.net (Postfix) with ESMTPSA id E19E62692A; Thu, 21 Mar 2019 13:34:21 -0500 (CDT) From: Jedi Tek'Unum Message-Id: <8AF0CF9D-BD5D-42AC-B1BF-27A056B3D7C2@jeditekunum.com> Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: allwinner i2c [was: Options for FBSD support with LCD device - new project] Date: Thu, 21 Mar 2019 13:34:20 -0500 In-Reply-To: Cc: Daniel Braniss , freebsd-arm@freebsd.org To: Ian Lepore References: <8df902f6-20a3-31c4-71ac-91f5d5fdf50d@optiplex-networks.com> <0ecf23e129ca7ac6a92a01bbb34c03f1ac8c6dc8.camel@freebsd.org> <89f5b8d1ab0614ac8d88b5d5f1afc63e640c3c17.camel@freebsd.org> <4EB5C6C1-7DB9-4DEE-BB23-CD1259581271@jeditekunum.com> <004ddba628b94b80845d8e509ddcb648d21fd6c9.camel@freebsd.org> X-Mailer: Apple Mail (2.3445.102.3) X-Smtpcorp-Track: 1h72WHmPZs0dEL.k5kzqkQLi Feedback-ID: 207158m:207158azGM_-I:207158seUxOnWT_Y X-Report-Abuse: Please forward a copy of this message, including all headers, to X-Rspamd-Queue-Id: 074F071298 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=smtpservice.net header.s=m4fue0.a1-4.dyn header.b=0RWgCOGq X-Spamd-Result: default: False [-3.56 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[smtpservice.net:s=m4fue0.a1-4.dyn]; MX_INVALID(0.50)[greylisted]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[jeditekunum.com]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[smtpservice.net:+]; RCVD_IN_DNSWL_MED(-0.20)[132.206.47.103.list.dnswl.org : 127.0.3.2]; NEURAL_HAM_SHORT(-0.84)[-0.839,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; IP_SCORE(-0.72)[asn: 1299(-3.60), country: EU(-0.00)]; ASN(0.00)[asn:1299, ipnet:103.47.204.0/22, country:EU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Mar 2019 18:34:56 -0000 On Mar 20, 2019, at 10:31 AM, Ian Lepore 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.