Hi, I need I little help with gpio. I will appreciate your time.
I am new in this.
I know how to map the SPI1 pins as gpio .
SPI1_CLK - G13 - GPIO3_PN.03
SPI1_MISO - F14 - GPIO3_PN.04
SPI1_MOSI - F13 - GPIO3_PN.05
SPI1_CS0# - E14 - GPIO3_PN.06
I am using this pinmux sheet: Jetson Download Center | NVIDIA Developer
And this formula to get the pin number:
- calculate the gpio number from the formula: GPIO export value =offset+ (port number* 8 + pin value)
(from here: How do I map signal names to GPIO numbers? - #4 by khaledsalahloudz )
All seems to work fine.
Now, the question is, Can I use the next pins as gpio? How can I get the “GPIO export value”
I can not use the formula with this names (ej. SPI1_SCK) there are not “port_number” or “pin_value” in there.
SPI2_CLK - H14 - SPI1_SCK
SPI2_MISO - H15 - SPI1_DIN
SPI2_MOSI - G15 - SPI1_DOUT
SPI2_CS0# - G16 - SPI1_CS0
Can you help me with some documentation, or something to help me to know if;
Is it possible to use that pins (H14, H15, G15, G16) as gpio?
If possible, can you help me to get the “GPIO export value” to be used in /sys/class/gpio/export for this pins.
Thank you very much!