Hi Peter,
P2_5 is an input to the USB1 full speed transceiver which works as a VBUS power detector. This sensing input is then automatically controlling the internal vbus_valid signal.
In case you don't use this transceiver input at pin P2_5, you could use any other GPIO or an ADC input to sense the VBUS signal level. By means of polling or with a level triggered interrupt you can then write by software into the bit USB_VBUS and control the internal signal vbus_valid by software.
Regards,
Bernhard.