]> git.baikalelectronics.ru Git - uboot.git/commit
arm: dts: socfpga: cyclone5: Update i2c-scl-falling-time-ns
authorLey Foon Tan <ley.foon.tan@intel.com>
Wed, 10 Jun 2020 05:24:16 +0000 (13:24 +0800)
committerMarek Vasut <marex@denx.de>
Sun, 14 Jun 2020 11:37:31 +0000 (13:37 +0200)
commit8d6024f1085c1b6982cc67951b5866455bba2896
treeb5a52818f4d7cee6c433dcec7d329310c740fb59
parente4799e1412156b80fe867d327e4cb47ef9c85eeb
arm: dts: socfpga: cyclone5: Update i2c-scl-falling-time-ns

Commit 9180233870c6 ("i2c: designware_i2c: Rewrite timing calculation")
change the hcnt and lcnt timing calculation. New timing calculation is
based on calculation from Designware i2c databook.

After this new timing calculation, hcnt will have negative value
with i2c-scl-falling-time-ns 5000 that set in socfpga_cyclone5_socdk.dts.

This patch overwrite i2c-scl-falling-time-ns to 300ns (default SCL fall
time used in Designware i2c driver) for Uboot.

Before the fix:
=> i2c dev 0
Setting bus to 0
Failure changing bus number (-22)

After the fix:
=> i2c dev 0
Setting bus to 0
=> i2c probe
Valid chip addresses: 17 51 55 5B 5C 5E 66 68 70

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
arch/arm/dts/socfpga_cyclone5_socdk-u-boot.dtsi