From: martin.blumenstingl@googlemail.com (Martin Blumenstingl)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH 2/7] usb: dwc2: add support for Meson8b and GXBB SoCs
Date: Sun, 4 Sep 2016 23:31:47 +0200 [thread overview]
Message-ID: <20160904213152.25837-3-martin.blumenstingl@googlemail.com> (raw)
In-Reply-To: <20160904213152.25837-1-martin.blumenstingl@googlemail.com>
From: Jerome Brunet <jbrunet@baylibre.com>
Add compatible strings for amlogic Meson8b and GXBB SoCs with the
corresponding configuration parameters.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
Documentation/devicetree/bindings/usb/dwc2.txt | 2 ++
drivers/usb/dwc2/platform.c | 34 ++++++++++++++++++++++++++
2 files changed, 36 insertions(+)
diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt b/Documentation/devicetree/bindings/usb/dwc2.txt
index 20a68bf..2c30a54 100644
--- a/Documentation/devicetree/bindings/usb/dwc2.txt
+++ b/Documentation/devicetree/bindings/usb/dwc2.txt
@@ -10,6 +10,8 @@ Required properties:
- "rockchip,rk3288-usb", "rockchip,rk3066-usb", "snps,dwc2": for rk3288 Soc;
- "lantiq,arx100-usb": The DWC2 USB controller instance in Lantiq ARX SoCs;
- "lantiq,xrx200-usb": The DWC2 USB controller instance in Lantiq XRX SoCs;
+ - "amlogic,meson8b-usb": The DWC2 USB controller instance in Amlogic Meson8b SoCs;
+ - "amlogic,meson-gxbb-usb": The DWC2 USB controller instance in Amlogic S905 SoCs;
- snps,dwc2: A generic DWC2 USB controller with default parameters.
- reg : Should contain 1 register range (address and length)
- interrupts : Should contain 1 interrupt
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
index fc6f525..8f7b34c 100644
--- a/drivers/usb/dwc2/platform.c
+++ b/drivers/usb/dwc2/platform.c
@@ -181,6 +181,38 @@ static const struct dwc2_core_params params_ltq = {
.hibernation = -1,
};
+static const struct dwc2_core_params params_amlogic = {
+ .otg_cap = DWC2_CAP_PARAM_NO_HNP_SRP_CAPABLE,
+ .otg_ver = -1,
+ .dma_enable = 1,
+ .dma_desc_enable = 0,
+ .dma_desc_fs_enable = 0,
+ .speed = DWC2_SPEED_PARAM_HIGH,
+ .enable_dynamic_fifo = 1,
+ .en_multiple_tx_fifo = -1,
+ .host_rx_fifo_size = 512,
+ .host_nperio_tx_fifo_size = 500,
+ .host_perio_tx_fifo_size = 500,
+ .max_transfer_size = -1,
+ .max_packet_count = -1,
+ .host_channels = 16,
+ .phy_type = DWC2_PHY_TYPE_PARAM_UTMI,
+ .phy_utmi_width = -1,
+ .phy_ulpi_ddr = -1,
+ .phy_ulpi_ext_vbus = -1,
+ .i2c_enable = -1,
+ .ulpi_fs_ls = -1,
+ .host_support_fs_ls_low_power = -1,
+ .host_ls_low_power_phy_clk = -1,
+ .ts_dline = -1,
+ .reload_ctl = 1,
+ .ahbcfg = GAHBCFG_HBSTLEN_INCR8 <<
+ GAHBCFG_HBSTLEN_SHIFT,
+ .uframe_sched = 0,
+ .external_id_pin_ctl = -1,
+ .hibernation = -1,
+};
+
/*
* Check the dr_mode against the module configuration and hardware
* capabilities.
@@ -464,6 +496,8 @@ static const struct of_device_id dwc2_of_match_table[] = {
{ .compatible = "lantiq,xrx200-usb", .data = ¶ms_ltq },
{ .compatible = "snps,dwc2", .data = NULL },
{ .compatible = "samsung,s3c6400-hsotg", .data = NULL},
+ { .compatible = "amlogic,meson8b-usb", .data = ¶ms_amlogic },
+ { .compatible = "amlogic,meson-gxbb-usb", .data = ¶ms_amlogic },
{},
};
MODULE_DEVICE_TABLE(of, dwc2_of_match_table);
--
2.9.3
next prev parent reply other threads:[~2016-09-04 21:31 UTC|newest]
Thread overview: 79+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-04 21:31 [PATCH 0/7] usb/phy: Add Amlogic Meson8b and GXBB USB support Martin Blumenstingl
2016-09-04 21:31 ` [PATCH 1/7] clk: gxbb: expose USB clocks Martin Blumenstingl
2016-09-07 0:33 ` Stephen Boyd
2016-09-07 21:32 ` Martin Blumenstingl
2016-09-07 22:14 ` Stephen Boyd
2016-09-08 2:24 ` Kevin Hilman
2016-09-07 21:28 ` Stephen Boyd
2016-09-08 19:24 ` Kevin Hilman
2016-09-04 21:31 ` Martin Blumenstingl [this message]
2016-09-07 21:04 ` [PATCH 2/7] usb: dwc2: add support for Meson8b and GXBB SoCs John Youn
2016-09-08 13:00 ` Neil Armstrong
2016-09-04 21:31 ` [PATCH 3/7] Documentation: dt-bindings: Add documentation for the Meson USB2 PHYs Martin Blumenstingl
2016-09-04 21:31 ` [PATCH 4/7] phy: meson: add USB2 PHY support for Meson8b and GXBB Martin Blumenstingl
2016-09-08 19:35 ` Kevin Hilman
2016-09-08 19:40 ` Ben Dooks
2016-09-08 19:52 ` Martin Blumenstingl
2016-09-08 20:20 ` Ben Dooks
2016-09-08 20:42 ` Kevin Hilman
2016-09-08 20:53 ` Ben Dooks
2016-09-08 21:48 ` Martin Blumenstingl
2016-09-09 15:33 ` Kevin Hilman
2016-09-09 16:14 ` Martin Blumenstingl
2016-09-09 17:04 ` Kevin Hilman
2016-09-09 17:21 ` Ben Dooks
2016-09-09 20:37 ` Martin Blumenstingl
2016-09-16 8:19 ` Kishon Vijay Abraham I
2016-09-16 13:47 ` Arnd Bergmann
2016-09-18 19:56 ` Martin Blumenstingl
2016-09-19 4:59 ` Kishon Vijay Abraham I
2016-09-19 7:37 ` Arnd Bergmann
2016-09-09 20:36 ` Martin Blumenstingl
2016-09-11 13:44 ` Martin Blumenstingl
2016-09-12 17:32 ` Kevin Hilman
2016-09-13 15:28 ` Philipp Zabel
2016-09-13 18:38 ` Martin Blumenstingl
2016-09-14 0:59 ` Kevin Hilman
2016-09-14 8:36 ` Philipp Zabel
2016-09-14 8:37 ` Philipp Zabel
2016-09-14 21:09 ` Martin Blumenstingl
2016-09-14 8:37 ` Philipp Zabel
2016-09-14 21:23 ` Martin Blumenstingl
2016-09-15 10:30 ` Philipp Zabel
2016-09-04 21:31 ` [PATCH 5/7] ARM64: meson-gxbb: add USB Nodes Martin Blumenstingl
2016-09-05 0:23 ` Andreas Färber
2016-09-05 8:00 ` Neil Armstrong
2016-09-04 21:31 ` [PATCH 6/7] ARM64: meson-gxbb-p20x: Enable " Martin Blumenstingl
2016-09-04 21:31 ` [PATCH 7/7] ARM64: meson-gxbb-vega-s95: " Martin Blumenstingl
2016-09-11 13:41 ` [PATCH v2 0/6] usb/phy: Add Amlogic Meson8b and GXBB USB support Martin Blumenstingl
2016-09-11 13:41 ` [PATCH v2 1/6] usb: dwc2: add support for Meson8b and GXBB SoCs Martin Blumenstingl
2016-09-14 16:11 ` Kevin Hilman
2016-09-14 18:12 ` John Youn
2016-09-14 18:17 ` Kevin Hilman
2016-09-14 18:26 ` John Youn
2016-09-14 18:36 ` Kevin Hilman
2016-09-20 14:27 ` Rob Herring
2016-09-11 13:41 ` [PATCH v2 2/6] Documentation: dt-bindings: Add documentation for the Meson USB2 PHYs Martin Blumenstingl
2016-09-20 14:29 ` Rob Herring
2016-09-21 18:38 ` Kevin Hilman
2016-09-11 13:41 ` [PATCH v2 3/6] phy: meson: add USB2 PHY support for Meson8b and GXBB Martin Blumenstingl
2016-09-14 16:06 ` Kevin Hilman
2016-09-17 4:17 ` Kishon Vijay Abraham I
2016-09-19 16:42 ` Kevin Hilman
2016-09-20 5:01 ` Kishon Vijay Abraham I
2016-09-14 21:30 ` Martin Blumenstingl
2016-09-11 13:41 ` [PATCH v2 4/6] ARM64: meson-gxbb: add USB Nodes Martin Blumenstingl
2016-09-15 22:10 ` Kevin Hilman
2016-09-11 13:41 ` [PATCH v2 5/6] ARM64: meson-gxbb-p20x: Enable " Martin Blumenstingl
2016-09-14 18:05 ` Kevin Hilman
2016-09-15 22:09 ` Kevin Hilman
2016-09-11 13:41 ` [PATCH v2 6/6] ARM64: meson-gxbb-vega-s95: " Martin Blumenstingl
2016-09-15 22:10 ` Kevin Hilman
2016-10-01 12:18 ` [PATCH v3 0/3] usb/phy: Add Amlogic Meson8b and GXBB USB support Martin Blumenstingl
2016-10-01 12:18 ` [PATCH v3 1/3] Documentation: dt-bindings: update the meson-usb2-phy example Martin Blumenstingl
2016-10-09 1:28 ` Rob Herring
2016-10-01 12:18 ` [PATCH v3 2/3] Documentation: dt-bindings: rename meson-usb2-phy to meson8b-usb2-phy Martin Blumenstingl
2016-10-09 1:28 ` Rob Herring
2016-10-01 12:19 ` [PATCH v3 3/3] phy: meson: add USB2 PHY support for Meson8b and GXBB Martin Blumenstingl
2016-10-13 20:27 ` [PATCH v3 0/3] usb/phy: Add Amlogic Meson8b and GXBB USB support Martin Blumenstingl
2016-10-19 10:52 ` Kishon Vijay Abraham I
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=20160904213152.25837-3-martin.blumenstingl@googlemail.com \
--to=martin.blumenstingl@googlemail.com \
--cc=linus-amlogic@lists.infradead.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
all inboxes | Powered by JetHome®