Re: dtschema: i2c: messy situation about timeouts

Wolfram Sang <[email protected]>
Newsgroups org.kernel.vger.devicetree-spec,org.kernel.vger.linux-i2c
Message-ID <Zd3cUKCHnn9n57pD@shikoro>
> > > - "i2c-scl-clk-low-timeout-us"
> > > 
> > > The description says "Number of microseconds the clock line needs to be
> > > pulled down in order to force a waiting state." What does "forcing a
> > > waiting state" mean here? I don't understand this description.
> > 
> > It comes from the specification. The clock stretching is given as
> > an interval that can be tweaked depending on the hardware.
> 
> You mean the maximum clock stretching is tweakable? That, in deed, could
> be a binding in the future, in theory. Yet, it would need support in the
> client drivers. Like a touchscreen driver which assumes a reset after a
> certain time of inactivity.

To sum it up: a binding defining the maximum time for clock stretching
makes sense in theory. I am currently not aware of a controller where
this could be used (but I surely don't know them all). Most of them keep
SCL low as long as they are busy internally. Not tweakable. So, we defer
this until there is a usecase.

If we ever add it, the above name of the binding cannot be used anymore
because i2c-mpc used it with a different purpose. Not so bad IMO because
"scl-clk" is a pleonasm anyway. I'd suggest "i2c-scl-max-stretch-us" but
am open for suggestions then.

This one can just be deprecated, I'd say.

Happy hacking!
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmXd3EwACgkQFA3kzBSg
KbYBhBAArD6p5Di885LK1miM1NVqc0cc9V7Ug9qaeGp/6uNs555QfG9iyC5Mab+S
MYcLNTA2EfKchsPFMo/+guQXIFHs5alzu2TO7bHq9IeuPMpZco4FADxM1h5mnswR
LktpTlxjXc9DFOswbGFMEuBlSCpELp529Mi4ZmYUjsDRlKP+LLofEQa3Qu5EX5S2
AemRAg0id2KQdqswNZm2PJjTvWybcoDi4ycRUxbTjy7+67CiU66UfGWhsYDxE/rn
F0TJ7GYuBOqRga7SUx5f3lfYYpwajR8X4qJms9sYdjtOtMVKRu1zVKdco8bIjlwM
vqkx6mYqnfgv1jdrABiuNqv+uii2wUKAPVcJrg07/M/9q3KCTF9ceH6Zl28y9fWH
tsiE6JNkzMLJVOcELMjSHEBJcDxW9lUPAWCo6jDNkUjqwJv4FoZn0w5Oa/Q6mzYu
QgHYs1VEffMafh1VFOpdiMrnaxUn5778gtqwzHX6lKjYjmLVyZ7LaRMI5d51r399
5vFO6HdBpxIO6TViDGMV7J5HbGAY9k5id11NRc0VE6yCyeY5F/oazHoZHgJDwHGj
aJgB5wJlmzGw/5spMz6LcXUlD3k0mJsM6uknKPKV9/ATEBzOzhuIOqrvXKXKy2nD
MtdzD1+seoT2eN8439ORxQE85lm1TQ1XLBP5G25EgOrFI+LEkkA=
=t+gF
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.