From 5b4558c9b9c67ec94461f8ed68a6820adc1a8c79 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 13 Oct 2021 16:32:58 +0200 Subject: [PATCH] platforms/efinix_trion_t120_bga576: Add Buttons and Serial (other PMOD USB-UART). --- .../platforms/efinix_trion_t120_bga576_dev_kit.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/litex_boards/platforms/efinix_trion_t120_bga576_dev_kit.py b/litex_boards/platforms/efinix_trion_t120_bga576_dev_kit.py index 2e2805e..e212512 100644 --- a/litex_boards/platforms/efinix_trion_t120_bga576_dev_kit.py +++ b/litex_boards/platforms/efinix_trion_t120_bga576_dev_kit.py @@ -24,6 +24,19 @@ _io = [ ("user_led", 5, Pins("W16"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")), ("user_led", 6, Pins("AD16"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")), ("user_led", 7, Pins("AC16"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")), + + # Buttons + ("user_btn", 0, Pins("AD15"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("WEAK_PULLUP")), + ("user_btn", 1, Pins("AC15"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("WEAK_PULLUP")), + ("user_btn", 2, Pins("W15"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("WEAK_PULLUP")), + ("user_btn", 3, Pins("V15"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("WEAK_PULLUP")), + + # Serial / PMOD USB-UART on PMOD E. + ("serial", 0, + Subsignal("tx", Pins("B23")), + Subsignal("rx", Pins("A20")), + IOStandard("3.3_V_LVTTL_/_LVCMOS") + ), ] # Platform -----------------------------------------------------------------------------------------