From: Nagarjuna Kristam <nkristam@nvidia.com>
To: <vkoul@kernel.org>, <kishon@ti.com>
Cc: <thierry.reding@gmail.com>, <devicetree@vger.kernel.org>,
<linux-tegra@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
"Nagarjuna Kristam" <nkristam@nvidia.com>
Subject: [PATCH V5 0/7] Tegra XUSB charger detect support
Date: Mon, 20 Jul 2020 15:25:41 +0530 [thread overview]
Message-ID: <1595238948-20531-1-git-send-email-nkristam@nvidia.com> (raw)
This patch series adds charger detect support on XUSB hardware used in
Tegra210 and Tegra186 SoCs.
This patchset is composed with :
- dt bindings of XUSB Pad Controller
- Tegra XUSB device mode driver to add vbus_draw support
- Tegra PHY driver for charger detect support
Tests done:
- Connect USB cable from ubuntu host to micro-B port of DUT to detect
SDP_TYPE charger
- Connect USB cable from external powered USB hub(which inturn connects
to ubuntu host) to micro-B port of DUT to detect CDP_TYPE charger.
- Connect USB cable from USB charger to micro-B port of DUT to detect
DCP_TYPE charger.
DUT: Jetson-tx1, Jetson tx2.
V5:
- Fixed kernel robot warnings to updated functions as static.
V4:
- Added ACKed-by details for PHY driver.
- Used BIT macro instead of (1 << index) usage as suggested by Chunfeng Yun.
V3:
- Added ACKed-by details for PHY driver and DT changes.
- Functions and its arguments are aligned.
- Tabs are used for alignment of MACRO's
- For vbus_draw USDC callback, usb_phy set_power error is propogated.
- Fixed various comments given by thierry.
V2:
- Added ACKed-by details for DT patches.
- All patches rebased.
Nagarjuna Kristam (7):
dt-bindings: phy: tegra-xusb: Add charger-detect property
phy: tegra: xusb: Add support for UTMI pad power control
phy: tegra: xusb: Add USB2 pad power control support for Tegra210
phy: tegra: xusb: Add soc ops API to enable UTMI PAD protection
phy: tegra: xusb: Add support for charger detect
phy: tegra: xusb: Enable charger detect for Tegra186
phy: tegra: xusb: Enable charger detect for Tegra210
.../bindings/phy/nvidia,tegra124-xusb-padctl.txt | 4 +
drivers/phy/tegra/Makefile | 2 +-
drivers/phy/tegra/cd.c | 283 +++++++++++++++++++++
drivers/phy/tegra/xusb-tegra186.c | 92 +++++--
drivers/phy/tegra/xusb-tegra210.c | 223 +++++++++++-----
drivers/phy/tegra/xusb.c | 80 ++++++
drivers/phy/tegra/xusb.h | 22 ++
7 files changed, 621 insertions(+), 85 deletions(-)
create mode 100644 drivers/phy/tegra/cd.c
--
2.7.4
next reply other threads:[~2020-07-20 9:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-20 9:55 Nagarjuna Kristam [this message]
2020-07-20 9:55 ` [PATCH V5 1/7] dt-bindings: phy: tegra-xusb: Add charger-detect property Nagarjuna Kristam
2020-07-20 9:55 ` [PATCH V5 2/7] phy: tegra: xusb: Add support for UTMI pad power control Nagarjuna Kristam
2020-07-20 9:55 ` [PATCH V5 3/7] phy: tegra: xusb: Add USB2 pad power control support for Tegra210 Nagarjuna Kristam
2020-08-23 14:03 ` Vinod Koul
2020-07-20 9:55 ` [PATCH V5 4/7] phy: tegra: xusb: Add soc ops API to enable UTMI PAD protection Nagarjuna Kristam
2020-08-31 7:35 ` Vinod Koul
2020-07-20 9:55 ` [PATCH V5 5/7] phy: tegra: xusb: Add support for charger detect Nagarjuna Kristam
2020-08-31 8:50 ` Vinod Koul
2020-07-20 9:55 ` [PATCH V5 6/7] phy: tegra: xusb: Enable charger detect for Tegra186 Nagarjuna Kristam
2020-07-20 9:55 ` [PATCH V5 7/7] phy: tegra: xusb: Enable charger detect for Tegra210 Nagarjuna Kristam
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=1595238948-20531-1-git-send-email-nkristam@nvidia.com \
--to=nkristam@nvidia.com \
--cc=devicetree@vger.kernel.org \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=thierry.reding@gmail.com \
--cc=vkoul@kernel.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).