Re: [PATCH v2] i2c: sh_mobile: Switch R-Mobile A1/APE6 and SH-Mobile AG5 to new frequency calculation
Wolfram Sang <[email protected]>
| Newsgroups | gmane.linux.drivers.i2c,gmane.linux.kernel.renesas-soc,gmane.linux.ports.sh.devel |
|---|---|
| Message-ID | <Zbqu8K3gBth83YBV@shikoro> |
On Wed, Jan 31, 2024 at 05:09:30PM +0100, Geert Uytterhoeven wrote: > Switch the R-Mobile A1, R-Mobile APE6, and SH-Mobile AG5 SoCs to the new > frequency calculation formula, to (a) avoid running the I2C bus too fast, > and (b) bring the low/high ratio closer to the recommended ratio 5/4. > > As this makes fast_clock_dt_config and v2_freq_calc_dt_config identical, > merge them into a single fast_clock_dt_config. > > Legacy SH users (sh7343, sh7366, and sh772[234]) are left alone, and > still use the old formula. > > Measurement results on R-Mobile APE6 and SH-Mobile AG5 (fck=104 MHz, > clks_per_count=2): > 100 kHz: 106 kHz LH=1.12 before, 99.6 kHz L/H=1.22 after > 400 kHz: 384 kHz LH=1.67 before, 392 kHz L/H=1.27 after > > Measurement results on R-Mobile A1 (fck=49.5 MHz, clks_per_count=1): > 100 kHz: 106 kHz L/H=1.09 before, 99.6 kHz L/H=1.20 after > > Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Wolfram Sang <[email protected]>
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmW6ruwACgkQFA3kzBSg KbZzkA//WYXKNuGbeFivJqiXWF/FyXgO3RQ0bn/JoD+OAptNuFSzZeDMnot/B/40 /iEu1Z8e6NKepuCe44TA/pfbcfNDx7xjXE0DFPcXAciN6B4yIT3yJ1QNfZq5L5tW KF0UoRizepEBWcKmVXQXyCun4XyEDgGPqEw7fvqz/HKOVbhfNm3sg9K5Y6mXm7pe lz7zTlm5i6Gb716XUtY2ZsG3pnSfzDLFPjGE+QE2N5+YboGwQu96kcvD5jgiO5TU chSIxIkQUfAcRb9QMV3IEn4XnSvgi+NP0e/D/u4ABWFnGc4QcYgCxoAp/+F2fv1t GYLN++qLrGBBwavfrtNiie7GHIZw+g9OY2ZTv22hq2/c1Dwxf2Oe1AzCQA/qivv/ W21abJnseqfCLZ6I8UMA6mjGaGm9LdPWZzaSzDedPCFrMe7U62OgLX8fVv+Xuw0F VuVFt6TRAhEqvnbqC+5aCrRR8MWpb8jcLxMMTNzBsPBaXByY/NOi+EOVjan0eBGv 8wab5ZsJB44w5ibh6Vop1kWjBudjFrIMFjhEt9lGX8atpskis3oFUXylhxOcT/FZ CSPngyvLDIxlYvkcGH+9Rn3htE4YqhBu1/J9W9SWl9Ek1mZvcx6JXIDE2s3Y7E3c EC/wEhvdS7IrBfXOsE8Acaaq3RBdC0MiE98dbceG9VwRuOwrcO4= =czUo -----END PGP SIGNATURE-----