Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2019 15:23:35 +0100
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        Kyle Evans <kevans@freebsd.org>
Cc:        Milan Obuch <freebsd-arm@dino.sk>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: gpioiic FDT overlays for sun8i-h3
Message-ID:  <20191128152335.6e176988c14885d6c5f57118@bidouilliste.com>
In-Reply-To: <CACNAnaHDPhKj0pMi3%2B0ODDLvcAmAoHeciPO-5cGx_MAuxNoOGQ@mail.gmail.com>
References:  <20191128152901.39dbeb4d@thinkpad> <20191128144934.34289c13@zeta.dino.sk> <20191128155257.66288428@thinkpad> <20191128145915.0d2bd63f@zeta.dino.sk> <CACNAnaHDPhKj0pMi3%2B0ODDLvcAmAoHeciPO-5cGx_MAuxNoOGQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 28 Nov 2019 08:09:34 -0600
Kyle Evans <kevans@freebsd.org> wrote:

> On Thu, Nov 28, 2019 at 7:59 AM Milan Obuch <freebsd-arm@dino.sk> wrote:
> >
> > On Thu, 28 Nov 2019 15:52:57 +0200
> > Nick Kostirya <nikolay.kostirya@i11.co> wrote:
> >
> > > On Thu, 28 Nov 2019 14:49:34 +0100
> > > Milan Obuch <freebsd-arm@dino.sk> wrote:
> > >
> > > > On Thu, 28 Nov 2019 15:29:01 +0200
> > > > Nick Kostirya via freebsd-arm <freebsd-arm@freebsd.org> 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 <manu@bidouilliste.com> <manu@freebsd.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191128152335.6e176988c14885d6c5f57118>