hello,Gyuan,
OK, Got it !
When plug USB OTG cable, The level on USB_OTG_ID pin will be changed, it is connect it to PC USB, the level should be 2.5V, if it is disconnected ,the level should be Low, so if you select "USB OTG pin detect support" in linux kernel, you should detect OTG cable status.
Regards.
Weidong