meta-raspberrypi icon indicating copy to clipboard operation
meta-raspberrypi copied to clipboard

pps device on raspberry

Open epasinetti opened this issue 2 years ago • 5 comments

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 ?

epasinetti avatar Jan 27 '23 17:01 epasinetti

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

agherzan avatar Jan 27 '23 20:01 agherzan

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

epasinetti avatar Jan 29 '23 15:01 epasinetti

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

agherzan avatar Jan 29 '23 19:01 agherzan

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 ?

epasinetti avatar Jan 30 '23 06:01 epasinetti

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.

agherzan avatar Jan 31 '23 20:01 agherzan