From owner-freebsd-arm@freebsd.org Thu Nov 28 13:49:39 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 2756E1AA4DA for ; Thu, 28 Nov 2019 13:49:39 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47NzXK53sLz4bZ5 for ; Thu, 28 Nov 2019 13:49:36 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Thu, 28 Nov 2019 14:49:34 +0100 id 00E5482F.5DDFD06E.00005F2E Date: Thu, 28 Nov 2019 14:49:34 +0100 From: Milan Obuch To: freebsd-arm@freebsd.org Subject: Re: gpioiic FDT overlays for sun8i-h3 Message-ID: <20191128144934.34289c13@zeta.dino.sk> In-Reply-To: <20191128152901.39dbeb4d@thinkpad> References: <20191128152901.39dbeb4d@thinkpad> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i386-portbld-freebsd11.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47NzXK53sLz4bZ5 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-arm@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-arm@dino.sk X-Spamd-Result: default: False [-5.11 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dino.sk]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[72.65.245.84.list.dnswl.org : 127.0.10.0]; IP_SCORE(-2.81)[ip: (-7.90), ipnet: 84.245.64.0/18(-3.95), asn: 16160(-2.32), country: SK(0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16160, ipnet:84.245.64.0/18, country:SK]; RCVD_COUNT_TWO(0.00)[2] 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 13:49:39 -0000 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. Regards, Milan