fusb302 4-0022: connection has disconnected

There is no problem to using board
However, I wanna know why the ‘USB Type-C’ is on the board and why the error like the title occurs.
I wonder why this is happening.
please let me know.

Hi, @acidpero, how did you get that message?
After booting up, I only get this:

$ dmesg |grep fusb302
[ 0.758404] fusb302 4-0022: GPIO lookup for consumer int-n
[ 0.758413] fusb302 4-0022: using device tree for GPIO lookup
[ 0.758463] fusb302 4-0022: GPIO lookup for consumer vbus-5v
[ 0.758470] fusb302 4-0022: using device tree for GPIO lookup
[ 0.758513] fusb302 4-0022: GPIO lookup for consumer vbus-other
[ 0.758520] fusb302 4-0022: using device tree for GPIO lookup
[ 0.758544] fusb302 4-0022: using lookup tables for GPIO lookup
[ 0.758551] fusb302 4-0022: lookup for GPIO vbus-other failed
[ 0.758558] fusb302 4-0022: GPIO lookup for consumer discharge
[ 0.758564] fusb302 4-0022: using device tree for GPIO lookup
[ 0.758604] fusb302 4-0022: using lookup tables for GPIO lookup
[ 0.758611] fusb302 4-0022: lookup for GPIO discharge failed
[ 0.767827] fusb302 4-0022: port 0 probe success

penguin Posted at 12/20/2018 14:56
Hi, @acidpero, how did you get that message?
After booting up, I only get this:

Hi again, @penguin
I got Firefly:Ubuntu 16.04 image
[Here!](https://drive.google.com/drive/f … gAqAdXBsaG9NMEl5bm8)
and flashed the image with the upgrade tool.
# Sys Info

firefly@firefly:~$ uname -a
Linux firefly 4.4.154 #1 SMP Fri Oct 12 09:51:35 CST 2018 aarch64 aarch64 aarch64 GNU/Linux
firefly@firefly:~$ cat /proc/version
Linux version 4.4.154 (luojh@tchip14) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #1 SMP Fri Oct 12 09:51:35 CST 2018

when boot without connecting the USB Type-C port to the Host PC, I got the same message like yours.
But when I boot them with both connected, I got the following message.

# Kernel Log, filtered (fusb302)
## USB Type-C ↔ Host PC connected before boot.

firefly@firefly:~$ dmesg | grep fusb302 | head -n 25
[    1.172583] fusb302 4-0022: GPIO lookup for consumer int-n
[    1.172593] fusb302 4-0022: using device tree for GPIO lookup
[    1.172645] fusb302 4-0022: GPIO lookup for consumer vbus-5v
[    1.172652] fusb302 4-0022: using device tree for GPIO lookup
[    1.172701] fusb302 4-0022: GPIO lookup for consumer vbus-other
[    1.172708] fusb302 4-0022: using device tree for GPIO lookup
[    1.172734] fusb302 4-0022: using lookup tables for GPIO lookup
[    1.172742] fusb302 4-0022: lookup for GPIO vbus-other failed
[    1.172750] fusb302 4-0022: GPIO lookup for consumer discharge
[    1.172756] fusb302 4-0022: using device tree for GPIO lookup
[    1.172780] fusb302 4-0022: using lookup tables for GPIO lookup
[    1.172787] fusb302 4-0022: lookup for GPIO discharge failed
[    1.172959] fusb302 4-0022: Can't get property of role, set role to default DRP
[    1.181972] fusb302 4-0022: port 0 probe success with role ROLE_MODE_DRP, try_role ROLE_MODE_NONE
[    1.419752] fusb302 4-0022: connection has disconnected
[    1.765406] fusb302 4-0022: connection has disconnected
[    2.105035] fusb302 4-0022: connection has disconnected
[    2.450593] fusb302 4-0022: connection has disconnected
[    2.820121] fusb302 4-0022: connection has disconnected
[    3.148492] fusb302 4-0022: connection has disconnected
[    3.505790] fusb302 4-0022: connection has disconnected
[    3.839298] fusb302 4-0022: connection has disconnected
[    4.179892] fusb302 4-0022: connection has disconnected
[    4.513059] fusb302 4-0022: connection has disconnected
[    4.861079] fusb302 4-0022: connection has disconnected
firefly@firefly:~$

I would like to know why there is a USB Type-C port other than flashing.

The board can be served as USB widget, where the Type-C port will be in device mode.

But by default, both the board and PC are in host mode, which makes no sense when
connected together, therefore the fusb302 chip reports ROLE_MODE_NONE .

[ 25.422691] fusb302 4-0022: connection has disconnected
[ 25.601687] fusb302 4-0022: connection has disconnected
[ 25.781950] fusb302 4-0022: connection has disconnected
[ 25.967039] fusb302 4-0022: connection has disconnected
[ 26.145262] fusb302 4-0022: connection has disconnected
[ 26.332568] fusb302 4-0022: connection has disconnected
[ 26.511882] fusb302 4-0022: connection has disconnected
[ 26.693795] fusb302 4-0022: connection has disconnected
[ 26.876559] fusb302 4-0022: connection has disconnected
[ 27.062618] fusb302 4-0022: connection has disconnected
[ 27.242646] fusb302 4-0022: connection has disconnected
[ 27.421875] fusb302 4-0022: connection has disconnected
[ 27.602208] fusb302 4-0022: connection has disconnected
[ 27.781855] fusb302 4-0022: connection has disconnected
[ 27.967123] fusb302 4-0022: connection has disconnected
[ 28.148761] fusb302 4-0022: connection has disconnected
[ 28.329424] fusb302 4-0022: connection has disconnected

我的也这样,不知道啥问题

because firefly_rk3399 use the type-c by otg mode,but there is different both otg wire and defualt wire. so if you want to use the default wire,you can chang the otg mode ,modify dts,chang the &&usbdrd3_0 to &u2phy0

&usbdrd3_0 { status = “okay”; //extcon = <&fusb0>; extcon = <&u2phy0>;}; &usbdrd_dwc3_0 { status = “okay”; dr_mode = “otg”; /* Micro USB3控制器的dr_mode配置为otg / maximum-speed = “high-speed”; / maximum-speed 属性配置为high-speed / phys = <&u2phy0_otg>; / phys 属性只引用USB2 PHY节点 */ phy-names = “usb2-phy”;};
————————————————
版权声明:本文为CSDN博主「道玄机」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/jj244212647/article/details/103788906

Truly an impressive article, I’m grateful for your share. Good luck with your exam! Here are the free AE-Adult-Echocardiography examinations actual questions materials.

Your article is absolutely captivating, thank you for sharing! I’m giving you access to the New 1Z0-1085-25 test questions pdf test that helped me achieve a promotion and salary raise. It’s free today—wishing you success!