view venus/src/usb/usb_domain.v @ 70:8bc2aa52fd23

manual RESET button new part: 260 g force, shorter actuator One of the main envisioned use cases for FC Venus is field demonstration: the board will be carried around, mounted on a sheet of acrylic or somesuch, it will have a battery and an antenna connected, there will be a test SIM with active service inserted, and the setup will be ready to demonstrate as a working phone at a moment's notice. But when a demo is not actively in progress, the fully assembled setup will be transported around in a big and loose ESD bag, and it will need to be equivalent to a traditional phone in its switched-off state: battery present, RTC keeping time, but not switched on all the time. Having a RESET button of the same keyswitch type as used for the regular keypad and PWON would cause a problem for such field transport scenarios: any spurious press of this button would cause a "misc boot" switch-on. Short spurious presses of PWON are filtered out by the firmware (automatic power-off if the button isn't held down long enough), but the same cannot be done for super-low-level nTESTRESET. However, a button with significantly greater operating force and a shorter actuator (not sticking out to the same height as the regular keypad buttons) should be much safer.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 02 Dec 2021 22:40:39 +0000
parents 3becdb3b6dce
children
line wrap: on
line source

/*
 * This module encapsulates the USB domain of FC Venus.
 */

module usb_domain (GND, VBUS, Host_TxD, Host_RxD, Host_RTS, Host_CTS,
		   Host_DTR, Host_DCD, Host_RI, Host_TxD2, Host_RxD2,
		   RPWON, nTESTRESET);

input GND;
output VBUS;

output Host_TxD, Host_RTS, Host_DTR, Host_TxD2;
input Host_RxD, Host_CTS, Host_DCD, Host_RI, Host_RxD2;
output RPWON, nTESTRESET;

/* USB domain wires */

wire P_5V, P_3V3;

wire [7:0] ADBUS, BDBUS;
wire [3:0] ACBUS, BCBUS;

usb_core usb (  .GND(GND),
		.VBUS(VBUS),
		.P_5V(P_5V),
		.VCCIOA(P_3V3),
		.VCCIOB(P_3V3),
		.ADBUS(ADBUS),
		.ACBUS(ACBUS),
		.SI_WUA(P_3V3),
		.BDBUS(BDBUS),
		.BCBUS(BCBUS),
		.SI_WUB(P_3V3),
		.PWREN()	/* no connect */
	);

regulator_with_caps reg_3V3 (.GND(GND), .IN(P_5V), .OUT(P_3V3));

/* load resistor per USB-and-mobile-domains article section 2.4.1 */
resistor Rload (P_3V3, GND);

usb_domain_buf buf (.GND(GND),
		    .P_3V3(P_3V3),
		    .Int_TxD(ADBUS[0]),
		    .Int_RxD(ADBUS[1]),
		    .Int_RTS(ADBUS[2]),
		    .Int_CTS(ADBUS[3]),
		    .Int_DTR(ADBUS[4]),
		    .Int_DCD(ADBUS[6]),
		    .Int_RI(ADBUS[7]),
		    .Int_TxD2(BDBUS[0]),
		    .Int_RxD2(BDBUS[1]),
		    .Host_TxD(Host_TxD),
		    .Host_RxD(Host_RxD),
		    .Host_RTS(Host_RTS),
		    .Host_CTS(Host_CTS),
		    .Host_DTR(Host_DTR),
		    .Host_DCD(Host_DCD),
		    .Host_RI(Host_RI),
		    .Host_TxD2(Host_TxD2),
		    .Host_RxD2(Host_RxD2)
	);

usb_domain_bctl bctl (  .GND(GND),
			.P_3V3(P_3V3),
			.ChanB_RTS(BDBUS[2]),
			.ChanB_DTR(BDBUS[4]),
			.CTL1_out(RPWON),
			.CTL2_out(nTESTRESET)
	);

endmodule