Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i2c: bcm2835: Set clock-stretch timeout to 35ms #3068

Merged
merged 1 commit into from
Jul 12, 2019

Conversation

pelwell
Copy link
Contributor

@pelwell pelwell commented Jul 12, 2019

The BCM2835 I2C blocks have a register to set the clock-stretch
timeout - how long the device is allowed to hold SCL low - in bus
cycles. The current driver doesn't write to the register, therefore
the default value of 64 cycles is being used for all devices.

Set the timeout to the value recommended for SMBus - 35ms.

See: #3064

Signed-off-by: Phil Elwell phil@raspberrypi.org

The BCM2835 I2C blocks have a register to set the clock-stretch
timeout - how long the device is allowed to hold SCL low - in bus
cycles. The current driver doesn't write to the register, therefore
the default value of 64 cycles is being used for all devices.

Set the timeout to the value recommended for SMBus - 35ms.

See: raspberrypi#3064

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
@popcornmix popcornmix merged commit 2461136 into raspberrypi:rpi-4.19.y Jul 12, 2019
@pelwell pelwell deleted the i2ctout branch September 15, 2021 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants