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.
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.