0

Those pins are defined in the datasheet.

I investigated in the config.txt but cannot see any option for those. I only see it for pins 32/33 and 40/41. I then tried checking standard softwares as wiringpi and rpio but couldn't do it with.

I managed using raspi-gpio but I would be interested in a more consistent way from modifying the devicetree, from here but this has not worked yet.

  • I haven't tried -- I don't have a compute module, and those GPIOs are not broken out on the normal Pis -- so won't post a complete answer, but to do this via config.txt you'd need a device tree overlay. However, since UART0 is the ALT2 function of those pins (page 19 of that datasheet), you don't need to do that; you can set them dynamically/programmatically using one of the Pi GPIO oriented libraries (libbcm2835, pigpio, etc.). Look through the docs and find the method used to set the alt functions for a pin. – goldilocks Jul 4 '17 at 13:39
  • I can do it with raspi-gpio library but I want to do it at kernel level, not at boot time. – David Bensoussan Jul 4 '17 at 15:14
  • Then the answer is a device tree overlay. raspberrypi.stackexchange.com/questions/tagged/device-tree – goldilocks Jul 5 '17 at 9:48
0

I found the answer. Recompile the dts file modifying the gpio values by values you need. Documentation was there

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.