Skip to contentSkip to conversation

arm64: dts: freescale: imx8m{m|p}: don't limit i2c2 max. clock

PATCH Applied [email protected] 2 participants 4 messages May 27, 2024 – Jun 16, 2024

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

cover arm64: dts: freescale: imx8m{m|p}: don't limit i2c2 max. clock

From: Max Krummenacher <[email protected]>

This sets the I2C clock frequency to something people expect it to be by default.

For I2C DDC we do want to lower the I2C clock to have more reliable communication. However that should be done where the I2C bus is assigned to a HDMI DDC, not as the default.

Max Krummenacher (2):
arm64: dts: freescale: imx8mm-verdin: don't limit i2c2 max. clock
arm64: dts: freescale: imx8mp-verdin: don't limit i2c2 max. clock

 arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 2 +-
 arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
Signature · 1 line
2.42.0
#1 lore raw

PATCH 1/2 arm64: dts: freescale: imx8mm-verdin: don't limit i2c2 max. clock

From: Max Krummenacher <[email protected]>

Verdin I2C2 may be used to access other I2C devices apart from serving as an HDMI DDC channel.
Thus do not limit the used I2C clock frequency to 10kHz in the module specific device tree part.
If an overlay configures i2c2 as DDC the overlay is also responsible to cope with an appropriate I2C clock.

---

 arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +1 -1
index 4768b05fd765..82bbcec525d7 100644
@@ -547,7 +547,7 @@ eeprom@50 {
 
 /* Verdin I2C_2_DSI */
 &i2c2 {
-	clock-frequency = <10000>;
+	clock-frequency = <400000>;
 	pinctrl-names = "default", "gpio";
 	pinctrl-0 = <&pinctrl_i2c2>;
 	pinctrl-1 = <&pinctrl_i2c2_gpio>;
Signature · 1 line
2.42.0
#2 lore raw

PATCH 2/2 arm64: dts: freescale: imx8mp-verdin: don't limit i2c2 max. clock

In reply to [email protected]

From: Max Krummenacher <[email protected]>

Verdin I2C2 may be used to access other I2C devices apart from serving as an HDMI DDC channel.
Thus do not limit the used I2C clock frequency to 10kHz in the module specific device tree part.
If an overlay configures i2c2 as DDC the overlay is also responsible to cope with an appropriate I2C clock.

---

 arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +1 -2
index aef4bef4bccd..3c6b47edd4c1 100644
@@ -650,8 +650,7 @@ eeprom@50 {
 
 /* Verdin I2C_2_DSI */
 &i2c2 {
-	/* Lower frequency to avoid DDC/EDID issues with certain displays/screens. */
-	clock-frequency = <10000>;
+	clock-frequency = <400000>;
 	pinctrl-names = "default", "gpio";
 	pinctrl-0 = <&pinctrl_i2c2>;
 	pinctrl-1 = <&pinctrl_i2c2_gpio>;
Signature · 1 line
2.42.0
Applied
#3 lore raw
In reply to [email protected]
Quoted 6 lines · On Mon, May 27, 2024 at 06:03:44PM +0200, [email protected] wrote:

From: Max Krummenacher <[email protected]>

This sets the I2C clock frequency to something people expect it to be by default.

Quoted 8 lines

For I2C DDC we do want to lower the I2C clock to have more reliable communication. However that should be done where the I2C bus is assigned to a HDMI DDC, not as the default.

Max Krummenacher (2):
arm64: dts: freescale: imx8mm-verdin: don't limit i2c2 max. clock
arm64: dts: freescale: imx8mp-verdin: don't limit i2c2 max. clock

Applied both, thanks!