drivers/i2c/busses/i2c-qcom-geni.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
With the current settings, the I2C buses are achieving around 370KHz
instead of the expected 400KHz. For 100KHz and 1MHz, the settings are
now more compliant and adhere to the Qualcomm’s internal programming
guide.
Update the I2C frequency table to align with the recommended values
outlined in the I2C hardware programming guide, ensuring proper
communication and performance.
Signed-off-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
---
drivers/i2c/busses/i2c-qcom-geni.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c
index 7a22e1f46e60..cc0c683febbb 100644
--- a/drivers/i2c/busses/i2c-qcom-geni.c
+++ b/drivers/i2c/busses/i2c-qcom-geni.c
@@ -148,9 +148,9 @@ struct geni_i2c_clk_fld {
* source_clock = 19.2 MHz
*/
static const struct geni_i2c_clk_fld geni_i2c_clk_map_19p2mhz[] = {
- {KHZ(100), 7, 10, 11, 26},
- {KHZ(400), 2, 5, 12, 24},
- {KHZ(1000), 1, 3, 9, 18},
+ {KHZ(100), 7, 10, 12, 26},
+ {KHZ(400), 2, 5, 11, 22},
+ {KHZ(1000), 1, 2, 8, 18},
{},
};
--
2.25.1
Hi Mukesh, On Wed, Jan 22, 2025 at 12:16:34PM +0530, Mukesh Kumar Savaliya wrote: > With the current settings, the I2C buses are achieving around 370KHz > instead of the expected 400KHz. For 100KHz and 1MHz, the settings are > now more compliant and adhere to the Qualcomm’s internal programming > guide. > > Update the I2C frequency table to align with the recommended values > outlined in the I2C hardware programming guide, ensuring proper > communication and performance. > > Signed-off-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com> merged to i2c/i2c-host. Thanks, Andi
On 1/22/25 08:46, Mukesh Kumar Savaliya wrote:
> With the current settings, the I2C buses are achieving around 370KHz
> instead of the expected 400KHz. For 100KHz and 1MHz, the settings are
> now more compliant and adhere to the Qualcomm’s internal programming
> guide.
>
> Update the I2C frequency table to align with the recommended values
> outlined in the I2C hardware programming guide, ensuring proper
> communication and performance.
>
> Signed-off-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
> ---
> drivers/i2c/busses/i2c-qcom-geni.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c
> index 7a22e1f46e60..cc0c683febbb 100644
> --- a/drivers/i2c/busses/i2c-qcom-geni.c
> +++ b/drivers/i2c/busses/i2c-qcom-geni.c
> @@ -148,9 +148,9 @@ struct geni_i2c_clk_fld {
> * source_clock = 19.2 MHz
> */
> static const struct geni_i2c_clk_fld geni_i2c_clk_map_19p2mhz[] = {
> - {KHZ(100), 7, 10, 11, 26},
> - {KHZ(400), 2, 5, 12, 24},
> - {KHZ(1000), 1, 3, 9, 18},
> + {KHZ(100), 7, 10, 12, 26},
> + {KHZ(400), 2, 5, 11, 22},
> + {KHZ(1000), 1, 2, 8, 18},
> {},
> };
>
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
--
Best wishes,
Vladimir
© 2016 - 2025 Red Hat, Inc.