Re: dtschema: i2c: messy situation about timeouts
Wolfram Sang <[email protected]>
| Newsgroups | org.kernel.vger.devicetree-spec,org.kernel.vger.linux-i2c |
|---|---|
| Message-ID | <Zd2LT-OM4KkUXCXn@ninjato> |
Hi Andi, > > - "i2c-scl-has-clk-low-timeout" > > > > AFAIU this binding tells that the controller can do clock stretching. > > But what for? > > One of the controllers that was sent a while back required some > hardware description because, in some versions, clock stretching > was supported in the hardware. I see. Still, I think this can (and should be handled) with I2C_AQ_NO_CLK_STRETCH. > The naming is a bit fancy, but it depends on the specification > used as a reference; SMBus, I2C, or specific drivers often refer > to it differently. Yes. I'd give I2C specs most importance, controller documentation least. And probably a salt of personal preference :) > > - "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. > So far I haven't seen anyone using it, though. The MPC driver used it, just for a different purpose. It was used for a timeout of the total transfer. That's a different thing. So, I suggested the conversion. Happy hacking, Wolfram
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmXdi0wACgkQFA3kzBSg KbZOehAAl2QMPUg3dviQislT/+HYpnK5WKVFXRt5/KzfdI/nKY5U/c+mcjLxtEcV 3i9jctgQ6v0Ww/8eOj419UDjcUe/FEd9EknmiAngT5vEMMMvRiJI9DlkA3NxtMaz 2tcpYlpZWmnrR2eyvkiHPKascOEM/igjiZl3ThP84TjxeWC+XmxiY5GhrM4DoN9R /B7nhmJT3P330Zrdet770nRv7IbwfzFxKORjRMJKsCYbT0fE/0YS9kSOsUmJSEUQ BAZrJ73mllsj+sSKQHey1Xf8bpofSinnsPKnDZ6QLZfG36Goie1kuGsTZZYRQ9HS vSStpb4nZhCouEQlrmWMGB+FLmLfdS/wkMdw90qaHPR9Nh6IphDB8xxGS6GmZwAk 6oiMgAo6ApVx7t0NaetIVlOphdDV+71vmx/ahmC1irtM/9RKBQ42c88L3qAEFnA/ RHQsLtxiE79HfjOCoLA/5NMAdxkWjGWSniYQkOFlgZDDvvsmNdkdKOdXJjm8Iaua jID81NOOnv9nnb5hJxkqiH0lUTwgClD2D6uOIufVXR0VlmNMUJOMZ63l5LjsJS39 St8b3qvs7b6bSTL2VJ6XNISAV4B6dMZbY0o8SA/D4luUVnC0tiyMjG5ttiIkn/O+ jb4sPpZgodGU9Kwu+KdrYAhoQrmDyScKL1tsXgfjcE62xxaD81Q= =OLtv -----END PGP SIGNATURE-----