Skip to content

Commit

Permalink
Pico 2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
bill88t committed Oct 7, 2024
1 parent ca18b0d commit ff25080
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Boardfiles/raspberry_pi_pico2/boot.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
00-gpio.py
01-early-connection.py
02-LEDs.py
03-reload-hostname.py
05-advance-time.lja
2 changes: 2 additions & 0 deletions Boardfiles/raspberry_pi_pico2/drivers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
led_generic
gpiochip
13 changes: 13 additions & 0 deletions Boardfiles/raspberry_pi_pico2/packages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sysinfo
ducky
ed
hashutils
jpkg
less
nano
neofetch
lm_sensors
uartutils
i2ctools
i2stools
adctools
32 changes: 32 additions & 0 deletions Boardfiles/raspberry_pi_pico2/pinout.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
,-------------.
[UART0 TX|I2C0 SDA|SPI0 RX ] GP0 (1) |1 0 == 0 o| (40) VBUS [ | | ]
[UART0 RX|I2C0 SCL|SPI0 CSn] GP1 (2) |o = usb o| (39) VSYS [ | | ]
[ | | ] GND (3) |o led o| (38) GND [ | | ]
[ |I2C1 SDA|SPI0 SCK] GP2 (4) |o o| (37) 3V3_EN [ | | ]
[ |I2C1 SCL|SPI0 TX ] GP3 (5) |o [] o| (36) 3V3(OUT) [ | | ]
[UART1 TX|I2C0 SDA|SPI0 RX ] GP4 (6) |o BOOTSEL o| (35) ADC_VREF [ | | ]
[UART1 RX|I2C0 SCL|SPI0 CSn] GP5 (7) |o o| (34) GP28 [ ADC2 | | ]
[ | | ] GND (8) |o o| (33) GND [ AGND | | ]
[ |I2C1 SDA|SPI0 SCK] GP6 (9) |o +---+ o| (32) GP27 [ ADC1 |I2C1 SCL| ]
[ |I2C1 SCL|SPI0 TX ] GP7 (10) |o |RP2| o| (31) GP26 [ ADC0 |I2C1 SDA| ]
[UART1 TX|I2C0 SDA|SPI1 RX ] GP8 (11) |o |350| o| (30) RUN [ | | ]
[UART1 RX|I2C0 SCL|SPI1 CSn] GP9 (12) |o +---+ o| (29) GP22 [ ]
[ | | ] GND (13) |o o| (28) GND [ | | ]
[ |I2C1 SDA|SPI1 SCK] GP10 (14) |o o| (27) GP21 [ |I2C0 SCL| ]
[ |I2C1 SCL|SPI1 TX ] GP11 (15) |o o| (26) GP20 [ |I2C0 SDA| ]
[UART0 TX|I2C0 SDA|SPI1 RX ] GP12 (16) |o o| (25) GP19 [SPI0 TX |I2C1 SCL| ]
[UART0 RX|I2C0 SCL|SPI1 CSn] GP13 (17) |o o| (24) GP18 [SPI0 SCK|I2C1 SDA| ]
[ | | ] GND (18) |o o| (23) GND [ | | ]
[ |I2C1 SDA|SPI1 SCK] GP14 (19) |o DEBUG o| (22) GP17 [SPI0 CSn|I2C0 SCL|UART0 RX]
[ |I2C1 SCL|SPI1 TX ] GP15 (20) |o 0 ooo 0 o| (21) GP16 [SPI0 RX |I2C0 SDA|UART0 TX]
`-------------'
^^^
SWCLK ||| SWDIO
GND |
Raspberry Pi Pico 2

SoC : RP2350
RAM : 512KB
Storage : SQPI (4MB)
Wi-fi : False
Bluetooth : False
22 changes: 22 additions & 0 deletions Boardfiles/raspberry_pi_pico2/settings.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
CIRCUITPY_PYSTACK_SIZE = 12288

[BERYLLIUM]
setup = true

fs_label = "BERYLLIUM"

serial_console_enabled = true
usb_msc_available = true
usb_hid_available = true
usb_midi_available = true
wifi_available = false
ble_available = false
blc_available = false
usb_msc_enabled = false
usb_hid_enabled = false
usb_midi_enabled = false

ledtype = "generic"
led = "LED"

DEBUG = false
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Raspberry Pi:<br />
- Pimoroni Pico Lipo (4mb)<br />
- Raspberry Pi Pico<br />
- Raspberry Pi Pico W<br />
- Raspberry Pi Pico 2<br />
- Waveshare RP2040-Zero<br />
- Waveshare RP2040-Tiny<br />

Expand All @@ -64,7 +65,7 @@ SAMD:<br />
<br />
But it can probably run on many more.<br />
<br />
The currently stable supported MCUs are: <code>ESP32</code>, <code>ESP32-S2</code>, <code>ESP32-S3</code>, <code>ESP32-C3</code>, <code>ESP32-C6</code>, <code>RP2040</code>, <code>nRF52840</code>, <code>SAMD51</code>.<br />
The currently stable supported MCUs are: <code>ESP32</code>, <code>ESP32-S2</code>, <code>ESP32-S3</code>, <code>ESP32-C3</code>, <code>ESP32-C6</code>, <code>RP2040</code>, <code>RP2350</code>, <code>nRF52840</code>, <code>SAMD51</code>.<br />
The currently unstable MCUs (experimental support) are: <code>ESP32-C2</code>.<br />
The currently unsupported CircuitPython-compatible MCU families / CircuitPython platforms are: <code>SAMD21</code>, <code>litex</code>, <code>mimxrt10xx</code>, <code>efr32</code>, <code>stm</code>.<br />
The MCU's that are currently unsupported are so because I either can't get my hands on a decent board with them or they don't have enough ram for it.<br />
Expand Down
23 changes: 19 additions & 4 deletions drivers/gpiochip.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
import board
import digitalio
import analogio
import touchio
import pwmio
import busio

try:
import analogio
except ImportError:
pass
try:
import touchio
except ImportError:
pass

try:
import pwmio
except ImportError:
pass

try:
import busio
except ImportError:
pass


class gpiochip:
Expand Down

0 comments on commit ff25080

Please sign in to comment.