tosc-rs / mnemos

An Operating System for Building Small Computers
https://mnemos.dev
Apache License 2.0
259 stars 18 forks source link

Tracking Issue: Beepberry Computer v0.1 #71

Closed jamesmunns closed 1 year ago

jamesmunns commented 1 year ago

CC @hawkw, this is just a running list for "it's a computer" feature completeness on the beepberry, in no particular order

I think these are all the "must dos" to have a standalone computer. From there, we can either start cleaning up some "nice to haves", or start figuring out what to build next

jamesmunns commented 1 year ago

Did a quick cross check of pinouts on the Pi/lichee-rv/mangopi mq-pro on a spreadsheet.

Looks like the same SPI pins are used for the display, so no changes to the code in #72 should be necessary.

UART0 is also brought out to the same pins as the standard RPI UART TX/RX:

Screenshot 2023-06-20 at 13-38-54 GPIO 14 (UART Transmit) at Raspberry Pi GPIO Pinout

jamesmunns commented 1 year ago

Unfortunately the I2C lines available on the MQ-Pro (PG12/PG13) are not brought out on the Sipeed board (PB0/PB1 are used instead).

PG12/13 are mapped to TWI0 (and also UART1). PB0/1 are mapped to TWI2 (and also UART2).

Interestingly enough, it looks like we could remap the I2C to UART, the RP2040 has a matching UART pair on the same pins as SDA. This could be useful for higher bandwidth comms.

jamesmunns commented 1 year ago

Also of note: The Mango Pi PTH are too small to work with the pogo pins on the beepberry. For now, I have designed a small adapter board that will give us space to mount the mango pi, and also additional breakout pins for testing. It should arrive around 2023-06-23 or so for testing.

Screenshot 2023-06-17 at 22-45-49 Sandbox _ mnemos-shield-mini by James on AISLER

In the long term, it might be better to design our own board based on a sipeed lichee-rv SOM.

I found this project which has already done this to breakout ethernet capabilities, we can likely re-use their pinout/sizing.

Making a new board will also let us do a couple things that are interesting:

hawkw commented 1 year ago

@jamesmunns are you currently working on the I2C driver? If not, I'd be happy to pick it up.

jamesmunns commented 1 year ago

@hawkw not yet! Very happy to have you work on it. Let me know if you need/want help with anything.

hawkw commented 1 year ago

as of #155 and #158, the keyboard works and is glued onto the Forth shell, so i think we can call this one finished! πŸŽ‰πŸŽ‰πŸŽ‰