Upgrade your android image.
I use the hikey960-linaro-2017.08.20 image without any adb issue. Could you please upgrade and use the flash-all script (to have all aligned, kernel, DTS…).
Check USB related I/O
Can you please check at the following interrupt/gpio via UART/console:
-
Display IRQ/GPIO info :
$ cat /proc/interrupts | grep type_c
283: 45 0 0 0 0 0 0 0 pl061 3 Edge type_c_port0-IRQ
$ cat /d/gpio | grep hub_vbus
gpio-470 ( |hub_vbus_int_gpio ) out hi
-
Plug your usb TYPE C cable
-
Display IRQ/GPIO info (IRQ count should be increased, hub_vbus should be low):
$ cat /proc/interrupts | grep type_c
283: 48 0 0 0 0 0 0 0 pl061 3 Edge type_c_port0-IRQ
$ cat /d/gpio | grep hub_vbus
gpio-470 ( |hub_vbus_int_gpio ) out lo
Force USB mode
$ cd /sys/devices/platform/soc/ff200000.hisi_usb
you can display the current state with:
$ cat plugusb
current state: USB_STATE_DEVICE
you can force state with:
$ echo hostoff > plugusb
$ echo deviceon > plugusb