GPIO
#8
I know this post is a bit old, I'm just getting started with the Pine64 board I purchased a bit ago and looking at the Pi-2 GPIO connections, these are similar to the Rapberry Pi and Beaglebone Black. Derek Molloy has a couple of books for each board, as well as a website for each, and the data in the books could be applied to the Pine64 board. One thing is that the data for the GPIO mappng can be obatined by looking under the '/sys/kernel/debug/pinctrl/' folder. The mappings for the Pi-2 can be found in '/sys/kernel/debug/pinctrl/1c20800.pinctrl/pinmux-pins'. This requires root access to get the pinctrl though.

Example:

# cat pinmux-pins

Pinmux settings per pin
Format: pin (name): mux_owner gpio_owner hog?
pin 32 (PB0): 1c28800.uart (GPIO UNCLAIMED) function uart2 group PB0
pin 33 (PB1): 1c28800.uart (GPIO UNCLAIMED) function uart2 group PB1
pin 34 (PB2): 1c28800.uart (GPIO UNCLAIMED) function uart2 group PB2
pin 35 (PB3): 1c28800.uart (GPIO UNCLAIMED) function uart2 group PB3
pin 36 (PB4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 37 (PB5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 38 (PB6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 39 (PB7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 40 (PB8): 1c28000.uart (GPIO UNCLAIMED) function uart0 group PB8
pin 41 (PB9): 1c28000.uart (GPIO UNCLAIMED) function uart0 group PB9
pin 64 (PC0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 65 (PC1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 66 (PC2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 67 (PC3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 68 (PC4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 69 (PC5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 70 (PC6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 71 (PC7): (MUX UNCLAIMED) 1c20800.pinctrl:71
pin 72 (PC8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 73 (PC9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 74 (PC10): (MUX UNCLAIMED) (GPIO UNCLAIMED)

I have configured Pin 71 so shows being claimed by '1c20800.pinctrl:71'

The User Guide is very cool.

Cheers
  Reply


Messages In This Thread
GPIO - by shockr - 12-21-2015, 04:25 PM
RE: GPIO - by tllim - 12-22-2015, 05:25 PM
RE: GPIO - by TonyH - 01-23-2016, 10:49 AM
RE: GPIO - by Wolfenstein - 08-03-2016, 02:54 PM
RE: GPIO - by MarkHaysHarris777 - 08-03-2016, 04:15 PM
RE: GPIO - by Wolfenstein - 08-03-2016, 05:07 PM
RE: GPIO - by MarkHaysHarris777 - 08-03-2016, 08:29 PM
RE: GPIO - by jomoengineer - 03-11-2018, 01:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  RPi.GPIO python module for Pine A64/A64+ aquilegia 98 132,238 12-15-2022, 08:40 PM
Last Post: Fadazo
  fm transmitter with gpio weasel18 2 4,850 09-10-2019, 04:28 AM
Last Post: desai_amogh
  How to use dts or other setup to declare gpio pin Interrupt (e.g. a button)? dkebler 1 3,614 06-12-2019, 10:37 AM
Last Post: dkebler
Lightbulb Sample GPIO codes highlighting RPi.GPIO-PineA64 and the PI bus MarkHaysHarris777 6 11,183 06-07-2019, 12:37 AM
Last Post: tllim
Star GPIO, SPI and I2C C++ Lib databit 7 11,257 02-04-2019, 05:45 AM
Last Post: Jeff R
Information Howto: Controlling Pine64 GPIO via the filesystem (sysfs) on linux pfeerick 4 11,902 01-24-2019, 03:36 AM
Last Post: Fifth
  GPIO and SPI SamR1 20 31,747 03-15-2018, 10:32 AM
Last Post: jomoengineer
  Read GPIO problem shworker 14 21,265 08-17-2017, 01:21 PM
Last Post: martinayotte
  GPIO fiq capability joseph 3 6,128 11-10-2016, 06:07 PM
Last Post: joseph
  RPI2-GPIO mus1c 6 9,113 09-22-2016, 05:28 AM
Last Post: mus1c

Forum Jump:


Users browsing this thread: 1 Guest(s)