Re: [PATCH v4 3/5] i2c: qcom-cci: Add 19.2 MHz timings for the v2 CCI
Vladimir Zapolskiy <[email protected]>
| Newsgroups | org.kernel.vger.linux-i2c,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On 8/1/26 23:10, Loic Poulain wrote: > The v2 CCI (msm8996/sdm630/msm8953/...) is normally clocked at 37.5 MHz, > but its CCI clock can also be configured and run at 19.2 MHz. Add the > Standard and Fast timing sets calibrated for 19.2 MHz so that a v2 > controller left at that rate still has valid timings for those modes > (Fast+ requires 37.5 MHz). > > The values mirror the v1/v1.5 19.2 MHz Standard/Fast timings, which > share the same CCI clock rate. > > Signed-off-by: Loic Poulain <[email protected]> > --- > drivers/i2c/busses/i2c-qcom-cci.c | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/drivers/i2c/busses/i2c-qcom-cci.c b/drivers/i2c/busses/i2c-qcom-cci.c > index 1092ce0371429ef64c7cc44cc23a42ba4c135af5..b6fa37a306758ec33ede6fcc39ce4412b86d9a84 100644 > --- a/drivers/i2c/busses/i2c-qcom-cci.c > +++ b/drivers/i2c/busses/i2c-qcom-cci.c > @@ -762,6 +762,30 @@ static const struct cci_data cci_v2_data = { > .max_write_len = 11, > .max_read_len = 12, > }, > + .params[CCI_CLK_RATE_19_2MHZ][I2C_MODE_STANDARD] = { > + .thigh = 78, > + .tlow = 114, > + .tsu_sto = 28, > + .tsu_sta = 28, > + .thd_dat = 10, > + .thd_sta = 77, > + .tbuf = 118, > + .scl_stretch_en = 0, > + .trdhld = 6, > + .tsp = 1 > + }, > + .params[CCI_CLK_RATE_19_2MHZ][I2C_MODE_FAST] = { > + .thigh = 20, > + .tlow = 28, > + .tsu_sto = 21, > + .tsu_sta = 21, > + .thd_dat = 13, > + .thd_sta = 18, > + .tbuf = 32, > + .scl_stretch_en = 0, > + .trdhld = 6, > + .tsp = 3 > + }, > .params[CCI_CLK_RATE_37_5MHZ][I2C_MODE_STANDARD] = { > .thigh = 201, > .tlow = 174, > Reviewed-by: Vladimir Zapolskiy <[email protected]> -- Best wishes, Vladimir