Skip to content

Pi 5 I2C timing out of spec #5914

Closed
Closed

Description

@pelwell

Describe the bug

As detailed in this thread (https://forums.raspberrypi.com/viewtopic.php?p=2187613#p2187613), the new Pi 5 I2C timing doesn't adhere to the specification. In particular, the SDA line should not start to change until the SCL line has dropped below the 30% level (i.e. become a clear digital low).

Steps to reproduce the behaviour

Use I2C, look at scope traces.

Device (s)

Raspberry Pi 5

System

Seen all all current Linux branches.

Logs

No response

Additional context

No response

Activity

  1. pelwell commented on Jan 31, 2024

    @pelwell
    ContributorAuthor

    There's now a Pull Request that should help with the I2C timing. See #5916.

    There should be a test build available in the next 45 minutes (it should definitely be done by 1900 GMT). After that, run "sudo rpi-update pulls/5916" to install it. However:

    1. It's beta software, so should be used with caution.
    2. It's a 6.6 kernel, which might be too big a change for you.
    3. It's only a Device Tree change, so a full kernel install is overkill.

    Alternatively, download just the updated Pi 5 dtb file from here: https://drive.google.com/file/d/1NGJsJoeFf_K8mVi0lNjO6FIPEOYj9lvf/view?usp=sharing

    Copy it to /boot/firmware/ (or just /boot on an older image), reboot, and see how you get on.

  2. dgedgedge commented on Feb 4, 2024

    @dgedgedge

    This patch correctes our issue.
    I did put a scope on the I2C bus, there is now a 300ns TsuDAT/ThDAT guard on the signal.
    See discussion on forum https://forums.raspberrypi.com/viewtopic.php?p=2187613#p2187613
    Sorry for the answer delay.

  3. 1 remaining item

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