PPS or /dev/ppsN on Raspberry Pi 3
Shamim Shahriar
shamim.shahriar at gmail.com
Mon Mar 12 07:16:49 UTC 2018
On 12/03/2018 01:12, Oleksandr Tymoshenko wrote:
> Shamim Shahriar (shamim.shahriar at 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
More information about the freebsd-arm
mailing list