I am using Debian 9.5 in a custom board based of PocketBeagle design. It seems in this version of the debian the GPIO12 and GPIO13 are multiplexed with I2C-2 peripheral. I have a requirement to use these pins as a GPIO for push-button. I can’t figure how to disable the I2C-2 peripheral on these pins.
Khan,
There are multiple ways of configuring pins for OSD33x. Beaglebone provides a user space utility called config-pin(https://www.bacpeters.com/2020/01/25/configuring-the-beaglebone-black-gpio-pins-permanently/) that you can use to change the pin functions from I2C-2 to GPIO.
You can also make changes in the device tree to do this. Please take a look at the pinmux application note here: https://octavosystems.com/app_notes/osd335x_pinmux/. The latest repository for device trees is https://github.com/beagleboard/BeagleBoard-DeviceTrees. You can recompile device trees using the instructions in the repository,
Best,
Neeraj