Date: Thu, 28 Nov 2019 16:50:42 +0200 From: Nick Kostirya <nikolay.kostirya@i11.co> To: Emmanuel Vadot <manu@bidouilliste.com> Cc: Nick Kostirya via freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: gpioiic FDT overlays for sun8i-h3 Message-ID: <20191128165042.71cbbfe4@thinkpad> In-Reply-To: <20191128062149.577be86eb7dc15ae5805f31a@bidouilliste.com> References: <20191128152901.39dbeb4d@thinkpad> <20191128062149.577be86eb7dc15ae5805f31a@bidouilliste.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 28 Nov 2019 06:21:49 +0100 Emmanuel Vadot <manu@bidouilliste.com> 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've never tested gpioiic but it seems that it needs to be a child of > the gpio controller as the busdev is get via device_get_parent. It also > doesn't seems to use a 'gpios' property, only scl/sda pin number, which > means that you can only use it on one gpio controller (i.e. you can't > have scl on one gpio controller and sda on another). > > Try this but I haven't even compiled it : > > /dts-v1/; > /plugin/; > > / { > compatible = "allwinner,sun8i-h3"; > }; > > &{/soc/pinctrl@1c20800} { > gpioiic0 { > compatible = "gpioiic"; > scl = <0>; /* GPIO pin 00 (PA0) */ > sda = <2>; /* GPIO pin 02 (PA2) */ > > }; > }; > > -- > Emmanuel Vadot <manu@bidouilliste.com> # ofwdump -p /soc/pinctrl@1c20800/gpioiic0 Node 0x1ce4: gpioiic0 sda: 00 00 00 02 scl: 00 00 00 00 compatible: 67 70 69 6f 69 69 63 00 'gpioiic' # kldstat | grep iic 2 1 0xc0cab000 50ac gpioiic.ko 3 2 0xc0cb1000 6248 iicbb.ko But I do not see it in devinfo and /dev.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191128165042.71cbbfe4>