linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] extcon: usbc-tusb320: Initial TUSB320L support
@ 2021-08-01 10:06 Yassine Oudjana
  2021-08-01 10:07 ` [PATCH v3 1/3] extcon: usbc-tusb320: Add support for mode setting and reset Yassine Oudjana
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Yassine Oudjana @ 2021-08-01 10:06 UTC (permalink / raw)
  To: MyungJoo Ham, Chanwoo Choi, Rob Herring
  Cc: Yassine Oudjana, Michael Auchter, linux-kernel, devicetree

The TUSB320L is a newer chip with additional features. It is close enough to TUSB320 so it works
to some extent out-of-the-box, but for some reason it can start in UFP mode which is not desirable.

This series adds support for reset and mode setting for both chips, and does that while probing
to ensure the chip starts with the default mode of following the PORT pin.

Changes since v2:
 - Read state before setting default mode, then update it again after resetting.
 - Remove mode tracing from irq handler
 - Add a delay after reset to handle tSOFT_RESET
 - Use a separate mode setting function for each of TUSB320 and TUSB320L.
Changes since v1:
 - Split first patch into two patches, one adding support for mode setting and reset on TUSB320,
   and the other adding support for TUSB320L.
 - Fix dt_binding_check warning:
   ../Documentation/devicetree/bindings/extcon/extcon-usbc-tusb320.yaml:15:6: [warning] wrong indentation: expected 6 but found 5 (indentation)

Yassine Oudjana (3):
  extcon: usbc-tusb320: Add support for mode setting and reset
  extcon: usbc-tusb320: Add support for TUSB320L
  dt-bindings: extcon: usbc-tusb320: Add TUSB320L compatible string

 .../bindings/extcon/extcon-usbc-tusb320.yaml  |   4 +-
 drivers/extcon/extcon-usbc-tusb320.c          | 164 +++++++++++++++++-
 2 files changed, 162 insertions(+), 6 deletions(-)

-- 
2.32.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-08-01 14:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-01 10:06 [PATCH v3 0/3] extcon: usbc-tusb320: Initial TUSB320L support Yassine Oudjana
2021-08-01 10:07 ` [PATCH v3 1/3] extcon: usbc-tusb320: Add support for mode setting and reset Yassine Oudjana
2021-08-01 14:20   ` kernel test robot
2021-08-01 10:07 ` [PATCH v3 2/3] extcon: usbc-tusb320: Add support for TUSB320L Yassine Oudjana
2021-08-01 10:07 ` [PATCH v3 3/3] dt-bindings: extcon: usbc-tusb320: Add TUSB320L compatible string Yassine Oudjana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).