From: Thierry Reding <thierry.reding@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mathias Nyman <mathias.nyman@intel.com>,
Jon Hunter <jonathanh@nvidia.com>, JC Kuo <jckuo@nvidia.com>,
linux-usb@vger.kernel.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 3/6] usb: host: xhci-tegra: Add Tegra186 XUSB support
Date: Fri, 25 Jan 2019 12:30:10 +0100 [thread overview]
Message-ID: <20190125113013.11447-3-thierry.reding@gmail.com> (raw)
In-Reply-To: <20190125113013.11447-1-thierry.reding@gmail.com>
From: JC Kuo <jckuo@nvidia.com>
This commit adds Tegra186 XUSB host mode controller support. This is
very similar to the existing support for Tegra124 and Tegra210, except
that the number of ports and PHYs differs and the IPFS wrapper being
gone.
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
drivers/usb/host/xhci-tegra.c | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
index 49e033f953a2..9a07ea0f9c97 100644
--- a/drivers/usb/host/xhci-tegra.c
+++ b/drivers/usb/host/xhci-tegra.c
@@ -1423,9 +1423,34 @@ static const struct tegra_xusb_soc tegra210_soc = {
};
MODULE_FIRMWARE("nvidia/tegra210/xusb.bin");
+static const char * const tegra186_supply_names[] = {
+};
+
+static const struct tegra_xusb_phy_type tegra186_phy_types[] = {
+ { .name = "usb3", .num = 3, },
+ { .name = "usb2", .num = 3, },
+ { .name = "hsic", .num = 1, },
+};
+
+static const struct tegra_xusb_soc tegra186_soc = {
+ .firmware = "nvidia/tegra186/xusb.bin",
+ .supply_names = tegra186_supply_names,
+ .num_supplies = ARRAY_SIZE(tegra186_supply_names),
+ .phy_types = tegra186_phy_types,
+ .num_types = ARRAY_SIZE(tegra186_phy_types),
+ .ports = {
+ .usb3 = { .offset = 0, .count = 3, },
+ .usb2 = { .offset = 3, .count = 3, },
+ .hsic = { .offset = 6, .count = 1, },
+ },
+ .scale_ss_clock = false,
+ .has_ipfs = false,
+};
+
static const struct of_device_id tegra_xusb_of_match[] = {
{ .compatible = "nvidia,tegra124-xusb", .data = &tegra124_soc },
{ .compatible = "nvidia,tegra210-xusb", .data = &tegra210_soc },
+ { .compatible = "nvidia,tegra186-xusb", .data = &tegra186_soc },
{ },
};
MODULE_DEVICE_TABLE(of, tegra_xusb_of_match);
--
2.19.1
WARNING: multiple messages have this Message-ID (diff)
From: Thierry Reding <thierry.reding@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mathias Nyman <mathias.nyman@intel.com>,
Jon Hunter <jonathanh@nvidia.com>, JC Kuo <jckuo@nvidia.com>,
linux-usb@vger.kernel.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [3/6] usb: host: xhci-tegra: Add Tegra186 XUSB support
Date: Fri, 25 Jan 2019 12:30:10 +0100 [thread overview]
Message-ID: <20190125113013.11447-3-thierry.reding@gmail.com> (raw)
From: JC Kuo <jckuo@nvidia.com>
This commit adds Tegra186 XUSB host mode controller support. This is
very similar to the existing support for Tegra124 and Tegra210, except
that the number of ports and PHYs differs and the IPFS wrapper being
gone.
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
drivers/usb/host/xhci-tegra.c | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c
index 49e033f953a2..9a07ea0f9c97 100644
--- a/drivers/usb/host/xhci-tegra.c
+++ b/drivers/usb/host/xhci-tegra.c
@@ -1423,9 +1423,34 @@ static const struct tegra_xusb_soc tegra210_soc = {
};
MODULE_FIRMWARE("nvidia/tegra210/xusb.bin");
+static const char * const tegra186_supply_names[] = {
+};
+
+static const struct tegra_xusb_phy_type tegra186_phy_types[] = {
+ { .name = "usb3", .num = 3, },
+ { .name = "usb2", .num = 3, },
+ { .name = "hsic", .num = 1, },
+};
+
+static const struct tegra_xusb_soc tegra186_soc = {
+ .firmware = "nvidia/tegra186/xusb.bin",
+ .supply_names = tegra186_supply_names,
+ .num_supplies = ARRAY_SIZE(tegra186_supply_names),
+ .phy_types = tegra186_phy_types,
+ .num_types = ARRAY_SIZE(tegra186_phy_types),
+ .ports = {
+ .usb3 = { .offset = 0, .count = 3, },
+ .usb2 = { .offset = 3, .count = 3, },
+ .hsic = { .offset = 6, .count = 1, },
+ },
+ .scale_ss_clock = false,
+ .has_ipfs = false,
+};
+
static const struct of_device_id tegra_xusb_of_match[] = {
{ .compatible = "nvidia,tegra124-xusb", .data = &tegra124_soc },
{ .compatible = "nvidia,tegra210-xusb", .data = &tegra210_soc },
+ { .compatible = "nvidia,tegra186-xusb", .data = &tegra186_soc },
{ },
};
MODULE_DEVICE_TABLE(of, tegra_xusb_of_match);
next prev parent reply other threads:[~2019-01-25 11:30 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-25 11:30 [PATCH 1/6] dt-bindings: usb: xhci-tegra: Add Tegra186 support Thierry Reding
2019-01-25 11:30 ` [1/6] " Thierry Reding
2019-01-25 11:30 ` [PATCH 2/6] usb: host: xhci-tegra: Selectively program IPFS Thierry Reding
2019-01-25 11:30 ` [2/6] " Thierry Reding
2019-01-28 7:54 ` [PATCH 2/6] " jckuo
2019-01-28 7:54 ` jckuo
2019-01-28 7:54 ` [2/6] " jckuo
2019-01-25 11:30 ` Thierry Reding [this message]
2019-01-25 11:30 ` [3/6] usb: host: xhci-tegra: Add Tegra186 XUSB support Thierry Reding
2019-01-28 7:57 ` [PATCH 3/6] " jckuo
2019-01-28 7:57 ` jckuo
2019-01-28 7:57 ` [3/6] " jckuo
2019-01-25 11:30 ` [PATCH 4/6] arm64: tegra: Add XUSB and pad controller on Tegra186 Thierry Reding
2019-01-25 11:30 ` [4/6] " Thierry Reding
2019-01-28 7:59 ` [PATCH 4/6] " jckuo
2019-01-28 7:59 ` jckuo
2019-01-28 7:59 ` [4/6] " jckuo
2019-01-25 11:30 ` [PATCH 5/6] arm64: tegra: Enable XUSB on P2771 Thierry Reding
2019-01-25 11:30 ` [5/6] " Thierry Reding
2019-01-25 11:30 ` [PATCH 6/6] arm64: tegra: Remove regulator hacks on Jetson TX2 Thierry Reding
2019-01-25 11:30 ` [6/6] " Thierry Reding
2019-01-28 7:46 ` [PATCH 1/6] dt-bindings: usb: xhci-tegra: Add Tegra186 support jckuo
2019-01-28 7:46 ` jckuo
2019-01-28 7:46 ` [1/6] " jckuo
2019-02-07 11:14 ` [PATCH 1/6] " Thierry Reding
2019-02-07 11:14 ` [1/6] " Thierry Reding
2019-02-13 15:21 ` [PATCH 1/6] " Mathias Nyman
2019-02-13 15:21 ` [1/6] " Mathias Nyman
2019-02-23 0:36 ` [PATCH 1/6] " Rob Herring
2019-02-23 0:36 ` [1/6] " Rob Herring
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=20190125113013.11447-3-thierry.reding@gmail.com \
--to=thierry.reding@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jckuo@nvidia.com \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.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: link
Be 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.