Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] fusb302 4-0022: connection has disconnected

64

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
64

【Linux】 fusb302 4-0022: connection has disconnected

Posted at 12/18/2018 09:23:20      View:12295 | Replies:5        Print      Only Author   [Copy Link] 1#
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.
Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 12/20/2018 14:56:30        Only Author  2#
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
Reply

Use props Report

64

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
64
Posted at 12/21/2018 09:09:54        Only Author  3#
Last edited by acidpero In 12/21/2018 09:12 Editor
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
  1. firefly@firefly:~$ uname -a
  2. Linux firefly 4.4.154 #1 SMP Fri Oct 12 09:51:35 CST 2018 aarch64 aarch64 aarch64 GNU/Linux
  3. firefly@firefly:~$ cat /proc/version
  4. 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
Copy the code

------------------------------------

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.

  1. firefly@firefly:~$ dmesg | grep fusb302 | head -n 25
  2. [    1.172583] fusb302 4-0022: GPIO lookup for consumer int-n
  3. [    1.172593] fusb302 4-0022: using device tree for GPIO lookup
  4. [    1.172645] fusb302 4-0022: GPIO lookup for consumer vbus-5v
  5. [    1.172652] fusb302 4-0022: using device tree for GPIO lookup
  6. [    1.172701] fusb302 4-0022: GPIO lookup for consumer vbus-other
  7. [    1.172708] fusb302 4-0022: using device tree for GPIO lookup
  8. [    1.172734] fusb302 4-0022: using lookup tables for GPIO lookup
  9. [    1.172742] fusb302 4-0022: lookup for GPIO vbus-other failed
  10. [    1.172750] fusb302 4-0022: GPIO lookup for consumer discharge
  11. [    1.172756] fusb302 4-0022: using device tree for GPIO lookup
  12. [    1.172780] fusb302 4-0022: using lookup tables for GPIO lookup
  13. [    1.172787] fusb302 4-0022: lookup for GPIO discharge failed
  14. [    1.172959] fusb302 4-0022: Can't get property of role, set role to default DRP
  15. [    1.181972] fusb302 4-0022: port 0 probe success with role ROLE_MODE_DRP, try_role ROLE_MODE_NONE
  16. [    1.419752] fusb302 4-0022: connection has disconnected
  17. [    1.765406] fusb302 4-0022: connection has disconnected
  18. [    2.105035] fusb302 4-0022: connection has disconnected
  19. [    2.450593] fusb302 4-0022: connection has disconnected
  20. [    2.820121] fusb302 4-0022: connection has disconnected
  21. [    3.148492] fusb302 4-0022: connection has disconnected
  22. [    3.505790] fusb302 4-0022: connection has disconnected
  23. [    3.839298] fusb302 4-0022: connection has disconnected
  24. [    4.179892] fusb302 4-0022: connection has disconnected
  25. [    4.513059] fusb302 4-0022: connection has disconnected
  26. [    4.861079] fusb302 4-0022: connection has disconnected
  27. firefly@firefly:~$
Copy the code

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

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 12/22/2018 17:35:33        Only Author  4#
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 .
Reply

Use props Report

9

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
9
Posted at 7/4/2019 20:46:22        Only Author  5#
[   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

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

Use props Report

16

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
16
Posted at 1/4/2020 15:36:30        Only Author  6#
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
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list