Browse Source

projects: Update constraints for bitsy v0 and v1

The v0.x prototypes were using a different pinout than the "production"
boards.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut 4 years ago
parent
commit
7c7e120a84

projects/boot_stub/data/top-bitsy.pcf → projects/boot_stub/data/top-bitsy-v0.pcf


+ 18 - 0
projects/boot_stub/data/top-bitsy-v1.pcf

@@ -0,0 +1,18 @@
+# USB
+set_io -nowarn usb_dp 42
+set_io -nowarn usb_dn 38
+set_io -nowarn usb_pu 37
+
+# Clock
+set_io -nowarn clk_in 35
+
+# Button
+set_io -nowarn btn 2
+
+# Leds
+set_io -nowarn rgb[0] 39
+set_io -nowarn rgb[1] 40
+set_io -nowarn rgb[2] 41
+
+set_io -nowarn ledr 25
+set_io -nowarn ledg 6

projects/riscv_usb/data/top-bitsy.pcf → projects/riscv_usb/data/top-bitsy-v0.pcf


+ 26 - 0
projects/riscv_usb/data/top-bitsy-v1.pcf

@@ -0,0 +1,26 @@
+# SPI
+set_io -nowarn spi_mosi 14
+set_io -nowarn spi_miso 17
+set_io -nowarn spi_clk 15
+set_io -nowarn spi_flash_cs_n 16
+set_io -nowarn spi_ram_cs_n 6
+
+# USB
+set_io -nowarn usb_dp 42
+set_io -nowarn usb_dn 38
+set_io -nowarn usb_pu 37
+
+# UART
+set_io -nowarn uart_rx 47
+set_io -nowarn uart_tx 44
+
+# Clock
+set_io -nowarn clk_in 35
+
+# Button
+set_io -nowarn btn 2
+
+# Leds
+set_io -nowarn rgb[0] 39
+set_io -nowarn rgb[1] 40
+set_io -nowarn rgb[2] 41

+ 1 - 1
projects/riscv_usb/fw/led.c

@@ -106,7 +106,7 @@ led_color(uint8_t r, uint8_t g, uint8_t b)
 	led_regs->ip.pwrr = r;
 	led_regs->ip.pwrg = b;
 	led_regs->ip.pwrb = g;
-#elif defined(BOARD_BITSY)
+#elif defined(BOARD_BITSY_V0) || defined(BOARD_BITSY_V1)
 	led_regs->ip.pwrr = g;
 	led_regs->ip.pwrg = r;
 	led_regs->ip.pwrb = b;