valentyusb: Add USB UART to SOC and OrangeCrab
authorMatt Johnston <matt@codeconstruct.com.au>
Mon, 7 Feb 2022 09:09:20 +0000 (17:09 +0800)
committerMatt Johnston <matt@codeconstruct.com.au>
Fri, 4 Mar 2022 03:05:50 +0000 (11:05 +0800)
commit6be3e1a336617bda24308791f0907c5d61729027
treea49b605b39d0541a6b344626f52e00760bce8cc4
parentf57e206841361aca7756af97732a6fbd21b78c1a
valentyusb: Add USB UART to SOC and OrangeCrab

An extra uart is added at 0xc0008000 attached to valentyusb, using
the OrangeCrab's onboard USB port.
This has a liteuart interface, an identifier bit is added to syscon.

Generated from branch hw_cdc_eptri of
https://github.com/litex-hub/valentyusb

The generate script is based on valentyusb/sim/generate_verilog.py

UARTUSB: usbserial@8000 {
        device_type = "serial";
        compatible = "litex,liteuart";
        reg = <0x8000 0x100>;
        interrupts = <0x15 0x1>;
};

(requires extra kernel patches for early console at present v5.16)

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
17 files changed:
Makefile
fpga/top-orangecrab0.2.vhdl
include/microwatt_soc.h
soc.vhdl
syscon.vhdl
valentyusb/gen-src/generate.py [new file with mode: 0755]
valentyusb/gen-src/generate.sh [new file with mode: 0755]
valentyusb/gen-src/orangecrab-85-0.2.yml [new file with mode: 0644]
valentyusb/generated/orangecrab-85-0.2/gateware/build_valentyusb.sh [new file with mode: 0644]
valentyusb/generated/orangecrab-85-0.2/gateware/out_buffer.init [new file with mode: 0644]
valentyusb/generated/orangecrab-85-0.2/gateware/valentyusb.lpf [new file with mode: 0644]
valentyusb/generated/orangecrab-85-0.2/gateware/valentyusb.v [new file with mode: 0644]
valentyusb/generated/orangecrab-85-0.2/gateware/valentyusb.ys [new file with mode: 0644]
valentyusb/generated/orangecrab-85-0.2/software/include/generated/csr.h [new file with mode: 0644]
valentyusb/generated/orangecrab-85-0.2/software/include/generated/git.h [new file with mode: 0644]
valentyusb/generated/orangecrab-85-0.2/software/include/generated/mem.h [new file with mode: 0644]
valentyusb/generated/orangecrab-85-0.2/software/include/generated/soc.h [new file with mode: 0644]