implementing usb for imx8 nano processor

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

implementing usb for imx8 nano processor

162 Views
Jayesh2408
Contributor I

trying to implement usb for imx8 nano, the eval board layout shows floating wire for Id pin. will it work for host mode? because id need to be =0 for host mode.

0 Kudos
Reply
1 Reply

97 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @Jayesh2408 

Hope you are doing very well.

 

Yes, a floating ID pin will work perfectly fine for host-only mode, provided you force the controller behavior via software.

You can just change the dr_mode property in device tree from "otg" to "host":

&usbotg1 {
	dr_mode = "host";
	hnp-disable;
	srp-disable;
	adp-disable;
	usb-role-switch;
	disable-over-current;
	samsung,picophy-pre-emp-curr-control = <3>;
	samsung,picophy-dc-vol-level-adjust = <7>;
	status = "okay";

	port {
		usb1_drd_sw: endpoint {
			remote-endpoint = <&typec1_dr_sw>;
		};
	};
};

 

Best regards,

Salas.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2415780%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eimplementing%20usb%20for%20imx8%20nano%20processor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2415780%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Etrying%20to%20implement%20usb%20for%20imx8%20nano%2C%20the%20eval%20board%20layout%20shows%20floating%20wire%20for%20Id%20pin.%20will%20it%20work%20for%20host%20mode%3F%20because%20id%20need%20to%20be%20%3D0%20for%20host%20mode.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2415822%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20implementing%20usb%20for%20imx8%20nano%20processor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2415822%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F266650%22%20target%3D%22_blank%22%3E%40Jayesh2408%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20you%20are%20doing%20very%20well.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EYes%2C%20a%20floating%20ID%20pin%20will%20work%20perfectly%20fine%20for%20host-only%20mode%2C%20provided%20you%20force%20the%20controller%20behavior%20via%20software.%3C%2FP%3E%0A%3CP%3EYou%20can%20just%20change%20the%20%3CSTRONG%3Edr_mode%3C%2FSTRONG%3E%20property%20in%20device%20tree%20from%20%22%3CSTRONG%3Eotg%3C%2FSTRONG%3E%22%20to%20%22%3CSTRONG%3Ehost%3C%2FSTRONG%3E%22%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%26amp%3Busbotg1%20%7B%0A%09dr_mode%20%3D%20%22host%22%3B%0A%09hnp-disable%3B%0A%09srp-disable%3B%0A%09adp-disable%3B%0A%09usb-role-switch%3B%0A%09disable-over-current%3B%0A%09samsung%2Cpicophy-pre-emp-curr-control%20%3D%20%26lt%3B3%26gt%3B%3B%0A%09samsung%2Cpicophy-dc-vol-level-adjust%20%3D%20%26lt%3B7%26gt%3B%3B%0A%09status%20%3D%20%22okay%22%3B%0A%0A%09port%20%7B%0A%09%09usb1_drd_sw%3A%20endpoint%20%7B%0A%09%09%09remote-endpoint%20%3D%20%26lt%3B%26amp%3Btypec1_dr_sw%26gt%3B%3B%0A%09%09%7D%3B%0A%09%7D%3B%0A%7D%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ESalas.%3C%2FP%3E%3C%2FLINGO-BODY%3E