Skip to contentSkip to conversation

ARM: dts: stm32: set i2c4 bus freq to 400KHz on stm32mp157c-ed1

PATCH In review Alain Volmat 2 participants 2 messages Feb 10, 2020 – Mar 13, 2020

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

PATCH 1/1 ARM: dts: stm32: set i2c4 bus freq to 400KHz on stm32mp157c-ed1

On this board, the I2C4 bus has only a single slave (pmic) which supports I2C Fast Mode hence setting bus frequency to 400 KHz.

---
 arch/arm/boot/dts/stm32mp157c-ed1.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/stm32mp157c-ed1.dts +1 -0
index 209dae010be4..ac4f7ee4ad55 100644
@@ -135,6 +135,7 @@
 	pinctrl-0 = <&i2c4_pins_sleep_a>;
 	i2c-scl-rising-time-ns = <185>;
 	i2c-scl-falling-time-ns = <20>;
+	clock-frequency = <400000>;
 	status = "okay";
 	/* spare dmas for other usage */
 	/delete-property/dmas;
Signature · 1 line
2.7.4
#1 lore raw

Hi Alain

Quoted 14 lines · Alain Volmat

On this board, the I2C4 bus has only a single slave (pmic) which supports I2C Fast Mode hence setting bus frequency to 400 KHz.

---
  arch/arm/boot/dts/stm32mp157c-ed1.dts | 1 +
  1 file changed, 1 insertion(+)
arch/arm/boot/dts/stm32mp157c-ed1.dts +0 -0
index 209dae010be4..ac4f7ee4ad55 100644

arch/arm/boot/dts/stm32mp157c-ed1.dts line 141

Quoted 7 lines
arch/arm/boot/dts/stm32mp157c-ed1.dts +1 -0
@@ -135,6 +135,7 @@
  	pinctrl-0 = <&i2c4_pins_sleep_a>;
  	i2c-scl-rising-time-ns = <185>;
  	i2c-scl-falling-time-ns = <20>;
+	clock-frequency = <400000>;
  	status = "okay";
  	/* spare dmas for other usage */
  	/delete-property/dmas;

Applied on stm32-next.

Thanks.
Alex