From owner-freebsd-arm@freebsd.org Thu Apr 1 05:46:35 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A430B5B8751 for ; Thu, 1 Apr 2021 05:46:35 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4F9scq3Pbbz4b5V for ; Thu, 1 Apr 2021 05:46:35 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.nyi.freebsd.org (Postfix) id 74CC65B884F; Thu, 1 Apr 2021 05:46:35 +0000 (UTC) Delivered-To: arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7499B5B83BB for ; Thu, 1 Apr 2021 05:46:35 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F9scq225Fz4bBW; Thu, 1 Apr 2021 05:46:34 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type; bh=aIrOUtEH1sGr5RJcJjlSVHupYsyvQ0z4CP5Lojk4SWE=; b=E27ddbM6u7iTM9J+Dz0ZXWklRuh9jtcB7G4uWpd4OxQwOXrqNWmrStwuy95cIzEyc3Crd3G2aLvwqTYvQ64IgoTRy7ruCy8InvL5p8Efdy57Fp1B2NeE8l36qDcXlOd9d1cY42YWrUnZJj8VxwJ0LkXEYyYtEjJwMTeMaQLLYtVvofoHBuM6oA7HL3xVtMYY789s4HUEkgbeiZp8EX0GQAvHp4R4alrienhacf+/hgPe0bJt8YFvwmNZWa8cKnez6La3JAbJkl1zf1yjisHlcqcAMKgrjAzTxXF81zY3o0FBR6H32x2KXouCZ39aT6uM3K+OfcJqh5wIckZn0N7BSA==; Received: from bach.cs.huji.ac.il ([132.65.80.20]) by kabab.cs.huji.ac.il with esmtp id 1lRq9y-0006Wm-Mk; Thu, 01 Apr 2021 08:46:26 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: i2c/twsi/allwinner problems. From: Daniel Braniss In-Reply-To: <4e386f9f-33aa-fa91-0fc3-fd44b34632ed@FreeBSD.org> Date: Thu, 1 Apr 2021 08:46:26 +0300 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <7F808A6C-B109-459C-975C-AB4769AD8226@cs.huji.ac.il> References: <4e386f9f-33aa-fa91-0fc3-fd44b34632ed@FreeBSD.org> To: Andriy Gapon X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4F9scq225Fz4bBW X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2021 05:46:35 -0000 > On 31 Mar 2021, at 10:06, Andriy Gapon wrote: >=20 > On 30/03/2021 12:58, Daniel Braniss wrote: >> |hi all, after some time, I decided to try FreeBSD 13 on my all = winner (nano >> neo) and got it working only with debugging on, so I started cherry = picking till >> I got it working, replacing printfs with DELAY and this is is now = working, of >> course not the correct solution, but if someone with better i2c = knowledge can >> propose a better solution I=E2=80=99m willing to test if with my = program (it reads RFIDs >> using a board with PN532),| >=20 > I see quite a lot of those "cherry-picks" and they are a mix of = explicit delays > and printfs (via debug_). > Also, the driver has completely separate code paths for polling mode = and > interrupt mode. I see that both are heavily modified. > Do you actually use both modes? >=20 > --=20 > Andriy Gapon i need to enable the second i2c, but my old overlay no longer works, can = someone=20 please send me the overlay needed to enable it? thanks, danny