This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TUSB4041I-Q1:如何为 Raspberry Pi 配置 USB-HUB?

Guru**** 1161080 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/1324016/tusb4041i-q1-how-to-configure-usb-hub-for-raspberry-pi

器件型号:TUSB4041I-Q1

您好!

我采用 TUSB4041开发了我的 PCB (基于 TI 的参考设计)。
不幸的是、将它连接到 Raspberry Pi Zero W 2后、它不被识别为 USB-HUB、而是"验证特定类"。 到芯片、EEPROM 通过 i2c 连接、但未编程(供后续使用)。
该集线器有2个连接至外部 USB 连接器的端口、其中一个连接至 USB 转以太网芯片(xr22800)。 第四个端口未使用。

我应该怎么做才能使它正常工作?

下面我提供了系统的信息。

此致、

Piotr Romaniuk

@~ raspberrypi: $ LSB_release–A
LSB 模块不可用。
分销商 ID:Raspbian
描述: Raspbian GNU/Linux 10 (Buster)
发布日期:10
代号:Buster

@~ raspberrypi: $ lsusb
总线001设备002:ID 0451:80ff Texas Instruments、Inc.
总线001设备001:ID 1d6b:0002 Linux Foundation 2.0根集线器

@~ raspberrypi: $ lsusb -t
/:总线01.端口1:设备1、类=ROOT_HUB、驱动程序=DWC_OTG/1p、480M
|_端口1:dev 2,如果为0,则 Class=供应商特定类,Driver=,480M

@~ raspberrypi: $ lsusb -d 0451:80FF -v

总线001设备002:ID 0451:80ff Texas Instruments、Inc.
无法打开设备、某些信息丢失
器件描述符:
长度18
b 描述符类型1
bcdUSB 2.00
bDeviceClass 255供应商特定类别
bDevice 子类0
bDevice 协议0
bMaxPacketSize0 64
ID 供应商0x0451 Texas Instruments、Inc.
idProduct 0x80ff
bcdDevice 1.01
iManufacturer 0
iProduct 0
i 串行0
bNumConfigurations 1
配置描述符:
B 长度9
b 描述符类型2
w 总长度0x0012
bNumInterfaces 1
b 配置值1
iConfiguration 0
bmAttributes 0xc0
自供电
最大功耗0mA
接口描述符:
B 长度9
b 描述符类型4
b 接口编号0
b 备用设置0
bNumEndpoints 0 (端点编号0)
b 接口类255供应商特定类
bInterfaceSubClass 0
bInterfaceProtocol 0 (接口协议0)
iInterface 0 (接口0)

@~ raspberrypi: $ sudo grep USB /var/log/syslog [已更新日志内容-仅为 tusb4041提供部件、无旧日志]

2月13日08:21:15 raspberrypi MTP-probe:检查总线1,设备2:"/sys/devices/platform / soc / 3f980000.usb/usb1/1-1"
Feb 13 08:21:15 raspberrypi 内核:[ 0.141959] usbcore :已注册的新接口驱动程序 usbfs
Feb 13 08:21:15 raspberrypi 内核:[0.142045] usbcore:已注册新接口驱动程序集线器
Feb 13 08:21:15 raspberrypi 内核:[0.142149] usbcore:注册新设备驱动程序 usb
Feb 13 08:21:15 raspberrypi 内核:[ 2.045407] usbcore :已注册的新接口驱动程序 lan78xx
Feb 13 08:21:15 raspberrypi 内核:[2.048187] usbcore:已注册的新接口驱动程序 smsc95xx
Feb 13 08:21:15 raspberrypi 内核:[ 3.033976] DWC_OTG 3f980000.usb: DWC OTG 控制器
Feb 13 08:21:15 raspberrypi 内核:[ 3.036346] DWC_OTG 3f980000.usb:新 USB 总线已注册,已分配总线编号1
Feb 13 08:21:15 raspberrypi 内核:[ 3.038715] DWC_OTG 3f980000.usb: IRQ 89, io mem 0x00000000
Feb 13 08:21:15 raspberrypi 内核:[ 3.045780] USB USB1:发现新的 USB 设备,idVendor=1d6b,idProduct=0002,bcdDevice=5.10
2月13日08:21:15 raspberrypi 内核:[ 3.050347] USB USB1:新的 USB 设备字符串:MFR=3、Product=2、SerialNumber=1
Feb 13 08:21:15 raspberrypi 内核:[ 3.052797] USB USB1:产品: DWC OTG 控制器
Feb 13 08:21:15 raspberrypi 内核:[ 3.055161] USB USB1 :制造商: Linux 5.10.63-v7+ DWC_OTG_hcd
Feb 13 08:21:15 raspberrypi 内核:[ 3.057542] USB USB1: SerialNumber: 3f980000.usb
Feb 13 08:21:15 raspberrypi 内核:[ 3.066990] usbcore:注册的新接口驱动程序 usb-storage
Feb 13 08:21:15 raspberrypi 内核:[3.098942] usbcore:已注册新接口驱动程序 usbhid
Feb 13 08:21:15 raspberrypi 内核:[ 3.101535] usbhid: usb HID 核心驱动程序
2月13日08:21:15 raspberrypi 内核:[ 3.404189] USB 1-1:使用 DWC_OTG 的新高速 USB 设备2
2月13日08:21:15 raspberrypi 内核:[ 3.644520] usb 1-1:找到新的 usb 设备,idVendor=0451,idProduct=80ff,bcdDevice=1.01
2月13日08:21:15 raspberrypi 内核:[ 3.649545] USB 1-1:新 USB 设备字符串:MFR=0、Product=0、SerialNumber=0
Feb 13 08:21:15 raspberrypi 内核:[ 8.839207] usbcore:注册的新接口驱动程序 brcmfmac

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好

     请移除空的 EEPROM 并重新测试。

    此致

    布赖恩

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    谢谢您 Brian。

    我已从 tusb4041断开 EEPROM 的 SCL 和 SDA 线路。 它现在初始化为 Hub:

    pi@raspberrypi:~ $ sudo lsusb -d 0451:8142 -v
    
    Bus 001 Device 002: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               2.10
      bDeviceClass            9 Hub
      bDeviceSubClass         0
      bDeviceProtocol         2 TT per port
      bMaxPacketSize0        64
      idVendor           0x0451 Texas Instruments, Inc.
      idProduct          0x8142 TUSB8041 4-Port Hub
      bcdDevice            1.00
    

    在将该主题标记为已解决之前、我可以向您索要 EEPROM 和 OTP 工具吗?

    此致、
    Piotr Romaniuk

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Piotr:

      请检查您的消息框。 我发送了 EEPROM 工具和用户指南。

      OTP 用于 TI 生产测试。 因为不需要。

    此致

    布赖恩

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Brian、

    感谢您提供软件和文档。
    您发送给我的 EEPROM 用户指南适用于 TUSB804x、但我使用的是 TUSB4041。 寄存器映射有何差异?

    此致、

    Piotr Romaniuk

    PS
    我刚刚看到该软件也适用于804x 系列。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Piotr:

      EERPOM 寄存器对于 TUSB804x 和 TUSB404x 集线器是相同的。

    此致

    布赖恩