agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
550 stars 417 forks source link

pps device on raspberry #1144

Open epasinetti opened 1 year ago

epasinetti commented 1 year ago

I'm trying to add pps device to my raspberry, using "Raspberry Pi OS" it is just needed to add this line in boot/config.txt dtoverlay=pps-gpio,gpiopin=18

doing the same with RPI_EXTRA_CONFIG variable in local.conf,

RPI_EXTRA_CONFIG = ' \n \ dtoverlay=pps-gpio,gpiopin=18\n \ init_uart_baud=9600\n \ '

the text was succesfully added in config.txt but I can't see pps0 under dev.

Am I doing something wrong ?

agherzan commented 1 year ago

Have you checked for support in the kernel? We may miss the kernel driver for it.

epasinetti commented 1 year ago

Sorry I' dont understand your question, is there a solution to bring pps support on raspberry yocto ? Thank you

agherzan commented 1 year ago

Take a look at https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pps/Kconfig

epasinetti commented 1 year ago

sorry I'm not an expert compiling kernel, is there a way to use pps directly implemented with config.txt configuration ? Can you add the support in meta-raspberrypi ?

agherzan commented 1 year ago

It is challenging to find time for that soon but having this ticket created is one step forward. I encourage you though to dig a bit into it and maybe end up with a PR yourself.