From: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> To: Heikki Krogerus <heikki.krogerus@linux.intel.com>, Guenter Roeck <linux@roeck-us.net>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Sebastian Reichel <sre@kernel.org>, Hans de Goede <hdegoede@redhat.com>, Yueyao Zhu <yueyao.zhu@gmail.com>, Rui Miguel Silva <rmfrfs@gmail.com> Cc: <linux-usb@vger.kernel.org>, <linux-pm@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <support.opensource@diasemi.com> Subject: [RFC PATCH 0/7] typec: tcpm: Add sink side support for PPS Date: Wed, 1 Nov 2017 17:03:08 +0000 [thread overview] Message-ID: <cover.1509554370.git.Adam.Thomson.Opensource@diasemi.com> (raw) This patch set adds sink side support for the PPS feature introduced in the USB PD 3.0 specification. The source PPS supply is represented using the Power Supply framework to provide access and control APIs for dealing with it's operating voltage and current, and switching between a standard PDO and PPS APDO operation. During standard PDO operation the voltage and current is read-only, but for APDO PPS these are writable as well to allow for control. It should be noted that the keepalive for PPS is not handled within TCPM. The expectation is that the external user will be required to ensure re-requests occur regularly to ensure PPS remains and the source does not hard reset. So with all of that covered, please feel free to rip this apart as you see fit. Note: Code changes are based on linux-next tag 'next-20171017' to pick up the move out of staging of TCPM related code. Adam Thomson (7): typec: tcpm: Add PD Rev 3.0 definitions to PD header typec: tcpm: Add ADO header for Alert message handling typec: tcpm: Add SDB header for Status message handling typec: tcpm: Add core support for sink side PPS power: supply: Add type for USB PD PPS chargers typec: tcpm: Represent source supply through power_supply class typec: tcpm: Add support for sink PPS related messages drivers/power/supply/power_supply_sysfs.c | 2 +- drivers/usb/typec/Kconfig | 1 + drivers/usb/typec/fusb302/Kconfig | 2 +- drivers/usb/typec/fusb302/fusb302.c | 63 +-- drivers/usb/typec/tcpm.c | 816 +++++++++++++++++++++++++++++- include/linux/power_supply.h | 1 + include/linux/usb/pd.h | 162 +++++- include/linux/usb/pd_ado.h | 49 ++ include/linux/usb/pd_ext_sdb.h | 40 ++ include/linux/usb/tcpm.h | 2 +- 10 files changed, 1041 insertions(+), 97 deletions(-) create mode 100644 include/linux/usb/pd_ado.h create mode 100644 include/linux/usb/pd_ext_sdb.h -- 1.9.1
WARNING: multiple messages have this Message-ID (diff)
From: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> To: Heikki Krogerus <heikki.krogerus@linux.intel.com>, Guenter Roeck <linux@roeck-us.net>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Sebastian Reichel <sre@kernel.org>, Hans de Goede <hdegoede@redhat.com>, Yueyao Zhu <yueyao.zhu@gmail.com>, Rui Miguel Silva <rmfrfs@gmail.com> Cc: linux-usb@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, support.opensource@diasemi.com Subject: [RFC PATCH 0/7] typec: tcpm: Add sink side support for PPS Date: Wed, 1 Nov 2017 17:03:08 +0000 [thread overview] Message-ID: <cover.1509554370.git.Adam.Thomson.Opensource@diasemi.com> (raw) This patch set adds sink side support for the PPS feature introduced in the USB PD 3.0 specification. The source PPS supply is represented using the Power Supply framework to provide access and control APIs for dealing with it's operating voltage and current, and switching between a standard PDO and PPS APDO operation. During standard PDO operation the voltage and current is read-only, but for APDO PPS these are writable as well to allow for control. It should be noted that the keepalive for PPS is not handled within TCPM. The expectation is that the external user will be required to ensure re-requests occur regularly to ensure PPS remains and the source does not hard reset. So with all of that covered, please feel free to rip this apart as you see fit. Note: Code changes are based on linux-next tag 'next-20171017' to pick up the move out of staging of TCPM related code. Adam Thomson (7): typec: tcpm: Add PD Rev 3.0 definitions to PD header typec: tcpm: Add ADO header for Alert message handling typec: tcpm: Add SDB header for Status message handling typec: tcpm: Add core support for sink side PPS power: supply: Add type for USB PD PPS chargers typec: tcpm: Represent source supply through power_supply class typec: tcpm: Add support for sink PPS related messages drivers/power/supply/power_supply_sysfs.c | 2 +- drivers/usb/typec/Kconfig | 1 + drivers/usb/typec/fusb302/Kconfig | 2 +- drivers/usb/typec/fusb302/fusb302.c | 63 +-- drivers/usb/typec/tcpm.c | 816 +++++++++++++++++++++++++++++- include/linux/power_supply.h | 1 + include/linux/usb/pd.h | 162 +++++- include/linux/usb/pd_ado.h | 49 ++ include/linux/usb/pd_ext_sdb.h | 40 ++ include/linux/usb/tcpm.h | 2 +- 10 files changed, 1041 insertions(+), 97 deletions(-) create mode 100644 include/linux/usb/pd_ado.h create mode 100644 include/linux/usb/pd_ext_sdb.h -- 1.9.1
next reply other threads:[~2017-11-01 17:03 UTC|newest] Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-11-01 17:03 Adam Thomson [this message] 2017-11-01 17:03 ` [RFC PATCH 0/7] typec: tcpm: Add sink side support for PPS Adam Thomson 2017-11-01 17:03 ` [RFC PATCH 1/7] typec: tcpm: Add PD Rev 3.0 definitions to PD header Adam Thomson 2017-11-01 17:03 ` Adam Thomson 2017-11-01 20:08 ` Jack Pham 2017-11-02 13:38 ` Adam Thomson 2017-11-01 17:03 ` [RFC PATCH 2/7] typec: tcpm: Add ADO header for Alert message handling Adam Thomson 2017-11-01 17:03 ` Adam Thomson 2017-11-01 17:20 ` Greg Kroah-Hartman 2017-11-02 11:40 ` Adam Thomson 2017-11-02 16:49 ` Greg Kroah-Hartman 2017-11-02 17:34 ` Adam Thomson 2017-11-02 17:41 ` Greg Kroah-Hartman 2017-11-01 17:03 ` [RFC PATCH 3/7] typec: tcpm: Add SDB header for Status " Adam Thomson 2017-11-01 17:03 ` Adam Thomson 2017-11-01 17:20 ` Greg Kroah-Hartman 2017-11-02 11:41 ` Adam Thomson 2017-11-01 17:03 ` [RFC PATCH 4/7] typec: tcpm: Add core support for sink side PPS Adam Thomson 2017-11-01 17:03 ` Adam Thomson 2017-11-01 17:03 ` [RFC PATCH 5/7] power: supply: Add type for USB PD PPS chargers Adam Thomson 2017-11-01 17:03 ` Adam Thomson 2017-11-06 13:25 ` Sebastian Reichel 2017-11-07 15:36 ` Adam Thomson 2017-11-07 15:36 ` Adam Thomson 2017-11-01 17:03 ` [RFC PATCH 6/7] typec: tcpm: Represent source supply through power_supply class Adam Thomson 2017-11-01 17:03 ` Adam Thomson 2017-11-01 17:03 ` [RFC PATCH 7/7] typec: tcpm: Add support for sink PPS related messages Adam Thomson 2017-11-01 17:03 ` Adam Thomson
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: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=cover.1509554370.git.Adam.Thomson.Opensource@diasemi.com \ --to=adam.thomson.opensource@diasemi.com \ --cc=gregkh@linuxfoundation.org \ --cc=hdegoede@redhat.com \ --cc=heikki.krogerus@linux.intel.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-pm@vger.kernel.org \ --cc=linux-usb@vger.kernel.org \ --cc=linux@roeck-us.net \ --cc=rmfrfs@gmail.com \ --cc=sre@kernel.org \ --cc=support.opensource@diasemi.com \ --cc=yueyao.zhu@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.