Date: Mon, 12 Mar 2018 07:16:45 +0000 From: Shamim Shahriar <shamim.shahriar@gmail.com> To: Oleksandr Tymoshenko <gonzo@bluezbox.com> Cc: freebsd-arm@freebsd.org Subject: Re: PPS or /dev/ppsN on Raspberry Pi 3 Message-ID: <e959f173-31ef-dd18-9abe-c2fd1bf2b2bb@gmail.com> In-Reply-To: <20180312011202.GA60784@bluezbox.com> References: <819975e8-56a8-677b-e5f5-003ff2091553@gmail.com> <20180312011202.GA60784@bluezbox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 12/03/2018 01:12, Oleksandr Tymoshenko wrote: > Shamim Shahriar (shamim.shahriar@gmail.com) wrote: > You can use FDT overlays for this: > > - Use https://people.freebsd.org/~gonzo/pps-overlay-example.dts as > a starting point. > - Compile overlay: dtc -@ -o pps.dtbo pps-overlay-example.dts > - Copy pps.dtbo to overlays/ directory on FAT partition > - Add "dtoverlay=pps" to config.txt on FAT partition. > - Reboot Pi3 and check if pps nodes are in active DTB: > sysctl -b hw.fdt.dtb | dtc -I dtb -O dts | grep pps > > The problem with this approach is that it depends on > default pinmux configuration. The right way is to use > this example as a base: > https://github.com/raspberrypi/linux/blob/rpi-4.9.y/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts > > This is self-contained overlay that also includes > pinmux configuration but requires pinctrl driver. > Driver is implemented but not committed to HEAD yet > because it depends on couple of changes that > are still pending reviews. > Thank you Gonzo, that looks like a good starting point. I will try them out later and see what I can get out or it. Regards
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e959f173-31ef-dd18-9abe-c2fd1bf2b2bb>