-
Notifications
You must be signed in to change notification settings - Fork 1
/
RP2040.ato
128 lines (105 loc) · 2.69 KB
/
RP2040.ato
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
from "generics/interfaces.ato" import I2C, SPI, UART, USB2, QSPI, Power
component RP2040:
signal iovdd ~ pin 1
iovdd ~ pin 10
iovdd ~ pin 22
iovdd ~ pin 33
iovdd ~ pin 42
iovdd ~ pin 49
signal usb_vdd ~ pin 48
signal dvdd ~ pin 23
dvdd ~ pin 50
signal testen ~ pin 19
signal xin ~ pin 20
signal xout ~ pin 21
signal swclk ~ pin 24
signal swdio ~ pin 25
signal run ~ pin 26
signal adc_avdd ~ pin 43
signal vreg_vin ~ pin 44
signal vreg_vout ~ pin 45
signal usb_dm ~ pin 46
signal usb_dp ~ pin 47
signal qspi_sd3 ~ pin 51
signal qspi_sclk ~ pin 52
signal qspi_sd0 ~ pin 53
signal qspi_sd2 ~ pin 54
signal qspi_sd1 ~ pin 55
signal qspi_ss_n ~ pin 56
signal gpio0 ~ pin 2
signal gpio1 ~ pin 3
signal gpio2 ~ pin 4
signal gpio3 ~ pin 5
signal gpio4 ~ pin 6
signal gpio5 ~ pin 7
signal gpio6 ~ pin 8
signal gpio7 ~ pin 9
signal gpio8 ~ pin 11
signal gpio9 ~ pin 12
signal gpio10 ~ pin 13
signal gpio11 ~ pin 14
signal gpio12 ~ pin 15
signal gpio13 ~ pin 16
signal gpio14 ~ pin 17
signal gpio15 ~ pin 18
signal gpio16 ~ pin 27
signal gpio17 ~ pin 28
signal gpio18 ~ pin 29
signal gpio19 ~ pin 30
signal gpio20 ~ pin 31
signal gpio21 ~ pin 32
signal gpio22 ~ pin 34
signal gpio23 ~ pin 35
signal gpio24 ~ pin 36
signal gpio25 ~ pin 37
signal gpio26_a0 ~ pin 38
signal gpio27_a1 ~ pin 39
signal gpio28_a2 ~ pin 40
signal gpio29_a3 ~ pin 41
signal gnd ~ pin 57
# The TESTEN pin is used for factory testing and should be tied to GND
gnd ~ testen
# USB phy power is a nominal 3v3
# But can be tied to IOVDD is USB is not used
usb_phy_power = new Power
usb_phy_power.vcc ~ usb_vdd
usb_phy_power.gnd ~ gnd
# IOVDD is a nominal 3v3
iovdd_power = new Power
iovdd_power.vcc ~ iovdd
iovdd_power.vcc ~ adc_avdd
iovdd_power.gnd ~ gnd
# I2C interface
i2c = new I2C
i2c.sda ~ gpio20
i2c.scl ~ gpio21
# UART interface
uart = new UART
uart.tx ~ gpio4
uart.rx ~ gpio5
# SPI interface
spi = new SPI
spi.cs ~ gpio9
spi.mosi ~ gpio11
spi.miso ~ gpio8
spi.sck ~ gpio10
spi1 = new SPI
spi1.cs ~ gpio7
spi1.mosi ~ gpio11
spi1.miso ~ gpio8
spi1.sck ~ gpio10
# QSPI interface
qspi = new QSPI
qspi.cs ~ qspi_ss_n
qspi.sck ~ qspi_sclk
qspi.io0 ~ qspi_sd0
qspi.io1 ~ qspi_sd1
qspi.io2 ~ qspi_sd2
qspi.io3 ~ qspi_sd3
# USB interface
usb2 = new USB2
usb2.dp ~ usb_dp
usb2.dm ~ usb_dm
footprint = "LQFN-56_L7.0-W7.0-P0.4-EP"
mpn = "C2040"
designator_prefix = "U"