Skip to content

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

Merged
popcornmix merged 1 commit into
raspberrypi:rpi-4.19.yfrom
pelwell:i2ctout
Jul 12, 2019
Merged

popcornmix merged 1 commit into
raspberrypi:rpi-4.19.yfrom
pelwell:i2ctout

Conversation

@pelwell

@pelwell pelwell commented Jul 12, 2019

Copy link
Copy Markdown
Contributor

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