We use cookies to provide our visitors with an optimal site experience. View our privacy notice and cookie notice to learn more about how we use cookies and how to manage your settings. By proceeding on our website you consent to the use of cookies.
For the pin name: I2C2_SCL, if the port is MODE3, it matches the Header P9 name. Does that imply the pin is in MODE3?
In the /sys/class/gpio:
There is no mode for R/W. Does that imply the pin is in GPIO mode, which is MODE7.
Just for this GPIO0_13 pin, how do I know what is the current PIN function? Or is there a way to confirm or to switch the pin modes?
I configured the pin as output through /sys/class/gpio/gpio13, but it doesn’t toggle. Is it possible that the pin is used by some other driver as I2C2_SCL.
MODE3 is a TI specific configuration for this AM335x, it is not show in a “generic” way under /sys/class/gpio/… Our show-pin’s script does a lookup under debugfs to determine what mode it’s under…
If you want to use GPIO0_13 in gpio mode, disable the i2c/pinmux in the device tree and define it in your device tree as a gpio/led/etc…
Nope, it’s in a ‘reset’ state, which varies between i/o on the AM335x, these reset states are listed in the AM335x reference manual…