Skip to contentSkip to conversation

ARM: mxs: Slow down the I2C clock speed

PATCH New Marek Vasut 2 participants 3 messages Apr 1, 2013 – Apr 2, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mxs: Slow down the I2C clock speed

Slow down the I2C clock speed on M28 and SPS1 as it turns out the I2C block in i.MX28 can not operate stable enough with the bus running at 400kHz. Note that the driver used by Freescale runs the bus at 250kHz when 400kHz speed is selected, but the mainline Linux kernel runs the bus at actual 400kHz and that's where it is occasionally unstable. Play safe and run the bus at 100kHz.

Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
---
 arch/arm/boot/dts/imx28-m28evk.dts |    1 -
 arch/arm/boot/dts/imx28-sps1.dts   |    1 -
 2 files changed, 2 deletions(-)
arch/arm/boot/dts/imx28-m28evk.dts +0 -1
index 5f0ba99..5aa44e0 100644
@@ -177,7 +177,6 @@
 			i2c0: i2c at 80058000 {
 				pinctrl-names = "default";
 				pinctrl-0 = <&i2c0_pins_a>;
-				clock-frequency = <400000>;
 				status = "okay";
 
 				sgtl5000: codec at 0a {
arch/arm/boot/dts/imx28-sps1.dts +0 -1
index e6cde8a..6c6a544 100644
@@ -70,7 +70,6 @@
 			i2c0: i2c at 80058000 {
 				pinctrl-names = "default";
 				pinctrl-0 = <&i2c0_pins_a>;
-				clock-frequency = <400000>;
 				status = "okay";
 
 				rtc: rtc at 51 {
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 ARM: mxs: Slow down the I2C clock speed

Marek,

Quoted 8 lines · Marek Vasut

Slow down the I2C clock speed on M28 and SPS1 as it turns out the I2C block in i.MX28 can not operate stable enough with the bus running at 400kHz. Note that the driver used by Freescale runs the bus at 250kHz when 400kHz speed is selected, but the mainline Linux kernel runs the bus at actual 400kHz and that's where it is occasionally unstable. Play safe and run the bus at 100kHz.

You consider it a fix for 3.9 or just material for 3.10?

Shawn

#2 lore raw

PATCH 1/1 ARM: mxs: Slow down the I2C clock speed

Dear Shawn Guo,

Quoted 10 lines

Marek,

Quoted 7 lines · Marek Vasut

Slow down the I2C clock speed on M28 and SPS1 as it turns out the I2C block in i.MX28 can not operate stable enough with the bus running at 400kHz. Note that the driver used by Freescale runs the bus at 250kHz when 400kHz speed is selected, but the mainline Linux kernel runs the bus at actual 400kHz and that's where it is occasionally unstable. Play safe and run the bus at 100kHz.

Quoted 3 lines
Quoted 1 line

You consider it a fix for 3.9 or just material for 3.10?

Fix for 3.9 please.

Best regards,
Marek Vasut