From owner-freebsd-arm@freebsd.org Thu Nov 28 14:23:38 2019 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 0A3C31AB171 for ; Thu, 28 Nov 2019 14:23:38 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47P0HY4sgHz4d6D; Thu, 28 Nov 2019 14:23:37 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id fd6a80e3; Thu, 28 Nov 2019 15:23:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=jjQx2E4+hQobUSEYfhGo0nw4pC8=; b=XyK5A1QziKRUT3w91zCgUya/3jqR CywXoLjIvEcHydzf60XgM7QZhhF01hvCAjQ3V9BXRYp9Xgarfxovin90hWQ9edgI Z7HB3joLuidR3CMrZ69eDiXB6UTNiQ7hMs3I3EU1q3Zkzo2p/4k5kJT8Ps77E8kP xwKTbBQhQB3ttYU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=QfPeLhviteILrDaGNLYBLpIRLTSyZfC0i6NNBrRWSstWzFSpaMv46BMN ECaXml7wdTiba26C8YuHaK115EgaVrHrMN5U4ALor4B0EzbyPWZmUBekBBiR0G56 nukAIIWNfqyg1YbZynwAgldMQdHt2bJJAhSSMroQVD4vQgiraHA= Received: from skull.home.blih.net (lfbn-1-12172-130.w90-92.abo.wanadoo.fr [90.92.223.130]) by mail.blih.net (OpenSMTPD) with ESMTPSA id a3443bdd TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 28 Nov 2019 15:23:35 +0100 (CET) Date: Thu, 28 Nov 2019 15:23:35 +0100 From: Emmanuel Vadot To: Kyle Evans Cc: Milan Obuch , "freebsd-arm@freebsd.org" Subject: Re: gpioiic FDT overlays for sun8i-h3 Message-Id: <20191128152335.6e176988c14885d6c5f57118@bidouilliste.com> In-Reply-To: References: <20191128152901.39dbeb4d@thinkpad> <20191128144934.34289c13@zeta.dino.sk> <20191128155257.66288428@thinkpad> <20191128145915.0d2bd63f@zeta.dino.sk> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47P0HY4sgHz4d6D X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-0.997,0]; REPLY(-4.00)[] 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, 28 Nov 2019 14:23:38 -0000 On Thu, 28 Nov 2019 08:09:34 -0600 Kyle Evans wrote: > On Thu, Nov 28, 2019 at 7:59 AM Milan Obuch wrote: > > > > On Thu, 28 Nov 2019 15:52:57 +0200 > > Nick Kostirya wrote: > > > > > On Thu, 28 Nov 2019 14:49:34 +0100 > > > Milan Obuch wrote: > > > > > > > On Thu, 28 Nov 2019 15:29:01 +0200 > > > > Nick Kostirya via freebsd-arm wrote: > > > > > > > > > Hello. > > > > > I want use gpioiic on Nanopi NEO with PA0 and PA2 pins. > > > > > Nanopi NEO will be master. > > > > > Help me, please, to write overlay. > > > > > I write: > > > > > > > > > > /dts-v1/; > > > > > /plugin/; > > > > > > > > > > / { > > > > > compatible = "allwinner,sun8i-h3"; > > > > > }; > > > > > > > > > > &{/soc/} { > > > > > gpio: gpio { > > > > > gpio-controller; > > > > > > > > > > gpioiic0 { > > > > > compatible = "gpioiic"; > > > > > gpios = <&gpio 00 1 0 &gpio 02 1 0>; /* Attach to GPIO > > > > > pins 00 and 02. Set them initially as inputs. */ scl = <0>; /* > > > > > GPIO pin 00 (PA0) */ sda = <1>; /* GPIO pin 02 (PA2) */ > > > > > > > > > > }; > > > > > }; > > > > > }; > > > > > > > > > > But it is not worked. > > > > > Tell me, please, where I was wrong. > > > > > > > > > > > > > Quick question - which OS version? According to my experience, DTB > > > > overlays do not work in FreeBSD 12, but everything is OK with them > > > > in FreeBSD 13. > > > > > > FreeBSD 12.1 arm > > > > That's it - most probably it works if you try the same with newer > > FreeBSD 13-CURRENT. At least for me overlays did not work with usual > > FreeBSD 12-STABLE, after switching to FreeBSD 13-CURRENT it's OK. Try > > to create secondary SD card with FreeBSD 13-CURRENT. I do not know the > > details why. Somebody(tm) with working knowledge of overlay's internals > > need to look it up. > > > > What? This would have been good to know. =( > > How exactly are they failing? We haven't changed anything that would > have regressed overlays in 12, unless you're basing your overlays on > the wrong base fdt. > > Thanks, > > Kyle Evans Since I use the sun8i-h3-sid on my orangepi-one on 12.1 release I guess I can say that it's working :) Milan, do you have an overlay example that works on head but not on 12.1 or 12-STABLE > 12.1 ? -- Emmanuel Vadot