i2c: qcom-geni: fix I2C frequency table to achieve accurate bus rates
authorKathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
Tue, 13 May 2025 11:08:33 +0000 (16:38 +0530)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 29 Jul 2025 22:39:54 +0000 (00:39 +0200)
commit85c34532849dae0fdcf880900ac9d7718a73fd1b
tree8df4561463161c1623acc291e1cc9c3b69dbc442
parentf632472a2ab42536df720464098e52eb1c6b57ea
i2c: qcom-geni: fix I2C frequency table to achieve accurate bus rates

Update the I2C frequency table to match the recommended values
specified in the I2C hardware programming guide. In the current IPQ5424
configuration where 32MHz is the source clock, the I2C bus frequencies do
not meet expectations—for instance, 363KHz is achieved instead of the
expected 400KHz.

Fixes: 506bb2ab0075 ("i2c: qcom-geni: Support systems with 32MHz serial engine clock")
Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
Cc: <stable@vger.kernel.org> # v6.13+
Reviewed-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250513-i2c-bus-freq-v1-1-9a333ad5757f@oss.qualcomm.com
drivers/i2c/busses/i2c-qcom-geni.c