Skip to content

Commit 85c3453

Browse files
Kathiravan ThirumoorthyAndi Shyti
authored andcommitted
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: 506bb2a ("i2c: qcom-geni: Support systems with 32MHz serial engine clock") Signed-off-by: Kathiravan Thirumoorthy <[email protected]> Cc: <[email protected]> # v6.13+ Reviewed-by: Mukesh Kumar Savaliya <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f632472 commit 85c3453

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/i2c/busses/i2c-qcom-geni.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ static const struct geni_i2c_clk_fld geni_i2c_clk_map_19p2mhz[] = {
155155

156156
/* source_clock = 32 MHz */
157157
static const struct geni_i2c_clk_fld geni_i2c_clk_map_32mhz[] = {
158-
{ I2C_MAX_STANDARD_MODE_FREQ, 8, 14, 18, 40 },
159-
{ I2C_MAX_FAST_MODE_FREQ, 4, 3, 11, 20 },
160-
{ I2C_MAX_FAST_MODE_PLUS_FREQ, 2, 3, 6, 15 },
158+
{ I2C_MAX_STANDARD_MODE_FREQ, 8, 14, 18, 38 },
159+
{ I2C_MAX_FAST_MODE_FREQ, 4, 3, 9, 19 },
160+
{ I2C_MAX_FAST_MODE_PLUS_FREQ, 2, 3, 5, 15 },
161161
{}
162162
};
163163

0 commit comments

Comments
 (0)