Skip to content

CM5 USB VBUS brought up too early #7619

Description

@Randomblock1

Describe the bug

USB VBUS is immediately enabled instead of waiting for the rest of the USB stack to initialize. This means that any BC1.2 capable device does not detect the CM5 as a downstream port, since it checks to see if the data lines are initialized and they aren't.

Steps to reproduce the behaviour

On a CM5 IO Board:

  1. Plug in an Android (I used Google Pixel 10).
  2. Observe that the Pi can see it.
  3. Reboot the Pi.
  4. See that the Pi cannot see it, and the phone thinks it is attached to an AC charger, not a computer.
  5. Toggle VBUS:
pinctrl set USB_VBUS_EN op dl
sleep 1
pinctrl set USB_VBUS_EN op dh
  1. Observe that the Pi can now see the phone.

Device (s)

Raspberry Pi CM5

System

https://pastebin.com/2Dmj9x9q

Logs

No response

Additional context

Physically replugging the phone also makes VBUS drop, which makes the phone discoverable again. I am communicating to the phones over adb.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions