Skip to contentSkip to conversation

arm64: dts: stratix10: i2c clock running out of spec

PATCH Applied Alan Tull 2 participants 2 messages Aug 8, 2018 – Aug 15, 2018

Subsystems (2)
lore
Share & tools
lore

Alan Tull

author
#0 lore raw

PATCH 1/1 arm64: dts: stratix10: i2c clock running out of spec

DesignWare I2C controller was observed running at 105.93kHz rather than the specified 100kHz. Adjust device tree settings to bring it within spec (a slightly conservative 98 MHz).

---
 arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +2 -0
index 6edc4fa..53cf195 100644
@@ -124,6 +124,8 @@
 &i2c1 {
 	status = "okay";
 	clock-frequency = <100000>;
+	i2c-sda-falling-time-ns = <890>;  /* hcnt */
+	i2c-sdl-falling-time-ns = <890>;  /* lcnt */
 
 	adc at 14 {
 		compatible = "lltc,ltc2497";
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 15 lines · Alan Tull

DesignWare I2C controller was observed running at 105.93kHz rather than the specified 100kHz. Adjust device tree settings to bring it within spec (a slightly conservative 98 MHz).

---
 arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +0 -0
index 6edc4fa..53cf195 100644

arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts line 131

Quoted 8 lines
arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +2 -0
@@ -124,6 +124,8 @@
 &i2c1 {
 	status = "okay";
 	clock-frequency = <100000>;
+	i2c-sda-falling-time-ns = <890>;  /* hcnt */
+	i2c-sdl-falling-time-ns = <890>;  /* lcnt */
 
 	adc at 14 {
 		compatible = "lltc,ltc2497";

Applied!

Thanks,
Dinh