To connect to PC for purpose of development use the PS4AUX-to-USB3A adapter. This PCB pinout description from the PS4 AUX port side and PC USB port side are provided here:
https://www.psdevwiki.com/ps4/Aux
https://twitter.com/alvaroprieto/status/614957014850998272
However, a newer version of the PS4AUX-to-USB3A adapter carry the pinout description on the PCB itself:
https://www.youtube.com/watch?v=qydm5D5Th2s
To install the Windows drivers follow:
https://www.youtube.com/watch?v=TNZTWRNOAgA
For Linux follow:
https://www.instructables.com/HACK-PlayStation-4-Cam-Into-Cheap-3D-Depth-Camera-/