LKML Archive on
help / color / mirror / Atom feed
From: Kyle Tso <>
	Kyle Tso <>
Subject: [PATCH v4 0/2] TCPM non-PD mode
Date: Fri, 30 Jul 2021 14:18:30 +0800	[thread overview]
Message-ID: <> (raw)

cover-letter is the same as that in v3

The reason for this patch is to let the device/system policy decide
whether PD is going to be supported using devicetree properties.

A new dt property "pd-unsupported" is introduced and TCPM uses this
property as a flag to decide whether PD is supported. If the flag is
false (the dt property is not present), the RX functionality of the
low-level driver will not be enabled. The power negotiation related
states will be skipped as well. If the flag is true, everything is a
what it was before.

If "pd-unsupported" is present, and the port is SRC or DRP, another
existing dt property "typec-power-opmode" needs to be specified to
indicate which Rp value should be used when the port is SRC.

changes since v3:

usb: typec: tcpm: Support non-PD mode
- commit msg updated
- removed unnecessary empty lines
- re-factored the code of reading device tree properties and the error
- removed unnecessay variable initialization
- modified the comments

Kyle Tso (2):
  dt-bindings: connector: Add pd-supported property
  usb: typec: tcpm: Support non-PD mode

 .../bindings/connector/usb-connector.yaml     |  4 +
 drivers/usb/typec/tcpm/tcpm.c                 | 87 +++++++++++++++----
 2 files changed, 72 insertions(+), 19 deletions(-)


             reply	other threads:[~2021-07-30  6:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-30  6:18 Kyle Tso [this message]
2021-07-30  6:18 ` [PATCH v4 1/2] dt-bindings: connector: Add pd-supported property Kyle Tso
2021-07-30  6:29   ` Guenter Roeck
2021-08-03 19:33     ` Rob Herring
2021-08-03 19:35       ` Rob Herring
2021-08-03 19:37   ` Rob Herring
2021-07-30  6:18 ` [PATCH v4 2/2] usb: typec: tcpm: Support non-PD mode Kyle Tso
2021-07-30  6:31   ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH v4 0/2] TCPM non-PD mode' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).