-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathraspberry_pi.yml
executable file
·95 lines (90 loc) · 2.1 KB
/
raspberry_pi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#
# Tested on:
# - Raspberry Pi 4B with Raspberry Pi OS, Kernel 6.6.47
# - Raspberry Pi Zero W, with Raspberry Pi OS, Kernel 6.6.51
#
# Should work for all 40-pin Raspberry Pi models on this OS,
# EXCEPT Raspberry Pi 5.
#
---
pins:
# Left side (odd numbered physical pins)
# PIN 1 is 3V3
2: { phy: 3, chip: 0, line: 2 }
3: { phy: 5, chip: 0, line: 3 }
4: { phy: 7, chip: 0, line: 4 }
# PIN 9 is GND
17: { phy: 11, chip: 0, line: 17 }
27: { phy: 13, chip: 0, line: 27 }
22: { phy: 15, chip: 0, line: 22 }
# PIN 17 is 3V3
10: { phy: 19, chip: 0, line: 10 }
9: { phy: 21, chip: 0, line: 9 }
11: { phy: 23, chip: 0, line: 11 }
# PIN 25 is GND
0: { phy: 27, chip: 0, line: 0 }
5: { phy: 29, chip: 0, line: 5 }
6: { phy: 31, chip: 0, line: 6 }
13: { phy: 33, chip: 0, line: 13 }
19: { phy: 35, chip: 0, line: 19 }
26: { phy: 37, chip: 0, line: 26 }
# PIN 39 is GND
# Right side (even numbered physical pins)
# PIN 2 is 5V
# PIN 4 is 5V
# PIN 6 is GND
14: { phy: 8, chip: 0, line: 14 }
15: { phy: 10, chip: 0, line: 15 }
18: { phy: 12, chip: 0, line: 18 }
# PIN 14 is GND
23: { phy: 16, chip: 0, line: 23 }
24: { phy: 18, chip: 0, line: 24 }
# PIN 20 is GND
25: { phy: 22, chip: 0, line: 25 }
8: { phy: 24, chip: 0, line: 8 }
7: { phy: 6, chip: 0, line: 7 }
1: { phy: 28, chip: 0, line: 1 }
# PIN 30 is GND
12: { phy: 32, chip: 0, line: 12 }
# PIN 34 is GND
16: { phy: 36, chip: 0, line: 16 }
20: { phy: 38, chip: 0, line: 20 }
21: { phy: 40, chip: 0, line: 21 }
pwms:
#
# To enable in /boot/config.txt:
# dtoverlay=pwm-2chan,pin=12,func=4,pin2=13,func2=4
12:
pwmchip: 0
channel: 0
13:
pwmchip: 0
channel: 1
i2cs:
#
# To enable in /boot/config.txt:
# dtparam=i2c_arm=on
# dtparam=i2c_arm_baudrate=400000
1:
scl: 3
sda: 2
spis:
#
# To enable in /boot/config.txt:
# dtoverlay=spi0-0cs
0:
clk: 11
mosi: 10
miso: 9
cs0: 8
# cs1: 7
#
# To enable in /boot/config.txt:
# dtoverlay=spi1-1cs
# 1:
# clk: 21
# mosi: 20
# miso: 19
# cs0: 18
## cs1: 17
## cs2: 16