added PocketChip pins
[linux-gpio-pinout] / README.md
1 # linux-gpio-pinout
2
3 lookup kernel's view of pinouts on different boards (useful for device tree and gpio debugging)
4
5
6 It supports simple one or two row pin headers with 2.54mm pin spacing which are specified in
7 simple text form at end of file based on model derived from device tree.
8
9 This tool also creates svg pinouts which you can print out with correct 2.54mm spacing and put
10 on your board to make wiring easier.
11
12
13 For device tree information, best source right now is this presentation:
14 https://elinux.org/images/d/dc/Elce_2017_dt_bof.pdf
15
16
17 device-tree/ directory contains examples
18
19 to use device trees, do something like:
20
21         vi device-tree/gpio-leds.dts
22         armbian-add-overlay device-tree/gpio-led.dts
23         dmesg -w &
24         ./overlay-load.sh /boot/overlay-user/gpio-led.dtbo
25
26
27 To load kernel module for i2c sensors without writing device tree
28 echo module_name address into i2c bus:
29
30 echo lm75 0x49 > /sys/bus/i2c/devices/i2c-1/new_device
31
32
33
34 i2c-usersapce/ contains random i2c userspace device drivers