| 7ce213e7 | 13-Jan-2020 |
Frank Wang <frank.wang@rock-chips.com> |
Revert "UPSTREAM: drivers: usb: dwc3: setup phy before dwc3 core soft reset"
This reverts commit 0dcb583e26b1f519ecb0d8bbd997a710593be7e7.
Change-Id: If0f661a4e1b139c0d12b80e5fd98398bf0892373 Signe
Revert "UPSTREAM: drivers: usb: dwc3: setup phy before dwc3 core soft reset"
This reverts commit 0dcb583e26b1f519ecb0d8bbd997a710593be7e7.
Change-Id: If0f661a4e1b139c0d12b80e5fd98398bf0892373 Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|
| 2136741e | 18-Dec-2019 |
Jagan Teki <jagan@amarulasolutions.com> |
UPSTREAM: usb: dwc3: Fix UTMI/UTMIW phy interface initialization
DWC3 support phy interfaces like 8/16-bit UTMI+. phy interface initialization code would handle them properly along with UNKNOWN type
UPSTREAM: usb: dwc3: Fix UTMI/UTMIW phy interface initialization
DWC3 support phy interfaces like 8/16-bit UTMI+. phy interface initialization code would handle them properly along with UNKNOWN type by default if none of the user/board doesn't need to use the phy interfaces at all.
The current code is masking the 8/16-bit UTMI+ interface bits globally which indeed effect the UNKNOWN cases, therefore it effects the platforms which are not using phy interfaces at all.
So, handle the phy masking bits accordingly on respective interface type cases.
Conflicts: drivers/usb/dwc3/core.h
Change-Id: I28ce66d68984e30fa308a0b5a52c321d7bd96eda Fixes: 6b7ebff00190 ("usb: dwc3: Add phy interface for dwc3_uboot") Reported-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 5c207282f53f86ecbf8c25cb691030d8c643ba1c)
show more ...
|
| e0c79ab4 | 19-Nov-2019 |
Jagan Teki <jagan@amarulasolutions.com> |
UPSTREAM: usb: dwc3: Add phy interface for dwc3_uboot
U-Boot has two different variants of dwc3 initializations, - with dm variant gadget, so the respective dm driver would call the dwc3_init in c
UPSTREAM: usb: dwc3: Add phy interface for dwc3_uboot
U-Boot has two different variants of dwc3 initializations, - with dm variant gadget, so the respective dm driver would call the dwc3_init in core. - with non-dm variant gadget, so the usage board file would call dwc3_uboot_init in core.
The driver probe would handle all respective gadget properties including phy interface via phy_type property and then trigger dwc3_init for dm-variant gadgets.
So, to support the phy interface for non-dm variant gadgets, the better option is dwc3_uboot_init since there is no dedicated controller for non-dm variant gadgets.
This patch support for adding phy interface like 8/16-bit UTMI+ code for dwc3_uboot.
This change used Linux phy.h enum list, to make proper code compatibility.
Conflicts: drivers/usb/dwc3/core.h
Change-Id: I626e2428b548a2624fead5418ecb8f7571c77e89 Cc: Marek Vasut <marex@denx.de> Tested-by: Levin Du <djw@t-chip.com.cn> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Marek Vasut <marex@denx.de> Reviewed-by: Kever Yang <kever.yang@rock-chips.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 6b7ebff00190649d2136b34f6feebc0dbe85bfdc)
show more ...
|
| 3a920774 | 02-Oct-2019 |
Marek Szyprowski <m.szyprowski@samsung.com> |
UPSTREAM: dwc3: flush cache only if there is a buffer attached to a request
Calling cache flush on invalid buffer, even with zero length might cause an exception on certain platforms.
Change-Id: Id
UPSTREAM: dwc3: flush cache only if there is a buffer attached to a request
Calling cache flush on invalid buffer, even with zero length might cause an exception on certain platforms.
Change-Id: Idf8e2c87a24c80627279faa69430881d5c2c6800 Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit fd15b58c1a9a61edcdeef8ce1eb4df2442295f58)
show more ...
|
| c6e835c1 | 25-Oct-2019 |
Vignesh Raghavendra <vigneshr@ti.com> |
UPSTREAM: dwc3-generic: Don't fail probe if clk/reset entries are absent
Some boards don't populate clk/reset entries as these are are optional as per binding documentation. Therefore, don't fail dr
UPSTREAM: dwc3-generic: Don't fail probe if clk/reset entries are absent
Some boards don't populate clk/reset entries as these are are optional as per binding documentation. Therefore, don't fail driver probe if clk/reset entries are absent in DT.
This fixes fastboot failures seen due to enabling of CONFIG_CLK on AM57xx
Change-Id: I5a8e1d24f74b78647fd263ba11eaf68d4252abb5 Fixes: e8e683d33b0c ("board: ti: am57xx-idk: Configure the CDCE913 clock synthesizer") Reported-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit d624434f5ebc5e3eb5f5609f06200f477cf8d8b5)
show more ...
|
| eedade57 | 11-Sep-2019 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: usb: dwc3: Add dwc3_of_parse() to get quirks information from DT
Add a new function that read quirk and configuration information from the DT. The goal is to allow platforms using their ow
UPSTREAM: usb: dwc3: Add dwc3_of_parse() to get quirks information from DT
Add a new function that read quirk and configuration information from the DT. The goal is to allow platforms using their own version of DWC3 driver to migrate to the generic DWC3 driver. The function is adapted from the function dwc3_get_properties() in the linux dwc3 driver introduced in commit c5ac6116db35d.
Change-Id: I0716519c36b390cee532d3556e136012a277d036 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit ba6c5f7a28c8f8ac9eae194c2d37afa0ef51cb3d)
show more ...
|
| 28b6cda6 | 11-Sep-2019 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: usb: dwc3-generic: if no max speed is specified in DT, assume super speed
There is no need to fail if the maximum speed is not specified. If the speed is not specified, do the same as linu
UPSTREAM: usb: dwc3-generic: if no max speed is specified in DT, assume super speed
There is no need to fail if the maximum speed is not specified. If the speed is not specified, do the same as linux and assume super speed.
Change-Id: I6fd5df9a3536a939b96915f6e260904da947e466 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 1a63e5e5fbfff7779ce24b404bef3b8ccddf1a8b)
show more ...
|
| f7133ecd | 11-Sep-2019 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: usb: dwc3-generic: add a new host driver that uses the dwc3 core
Currently the host driver used by dwc3-generic is "xhci-dwc3". This is a functional driver but it doesn't use the dwc3 core
UPSTREAM: usb: dwc3-generic: add a new host driver that uses the dwc3 core
Currently the host driver used by dwc3-generic is "xhci-dwc3". This is a functional driver but it doesn't use the dwc3 core and, in particular, it lacks some bits that may be important. For example on the k2 platforms, it is important that the phy are properly suspended when the USB is not used anymore. The dwc3 core also has a partial support for quirks. The new driver can be used as a drop-in replacement for "xhci-dwc3".
In terms of implementation, it may seem strange that 2 private structures dwc3_generic_host_priv and dwc3_generic_priv) are used. The reason for this is simply that the xhci layer expects a struct xhci_ctrl at the beginning of the private data and it seemed wasteful to include it also for the peripheral case.
Change-Id: I68b9e506836292d5de24feb55c5619d907c173ef Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit b575e909168ca559609f6793720c4811b1dd55fd)
show more ...
|
| 0d25c40a | 11-Sep-2019 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: usb: dwc3-generic: factorize code
Factor code for re-usability. This is another step toward adding host support.
Change-Id: I7c59c13bd9df4839e77555a45720fe318acde94c Signed-off-by: Jean-J
UPSTREAM: usb: dwc3-generic: factorize code
Factor code for re-usability. This is another step toward adding host support.
Change-Id: I7c59c13bd9df4839e77555a45720fe318acde94c Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 1af590df164f88fffb6484842eec8c8d8e500e70)
show more ...
|
| c28d0fe2 | 11-Sep-2019 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: usb: dwc3-generic: use platdata
Separate platform data from the private data. This is one step toward adding host support.
Change-Id: Ibd70d22283d064c77a179105c7e7f5675a598c49 Signed-off-
UPSTREAM: usb: dwc3-generic: use platdata
Separate platform data from the private data. This is one step toward adding host support.
Change-Id: Ibd70d22283d064c77a179105c7e7f5675a598c49 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 3a38a0adb95bfebbbd39b2bb164f04bdeb10bc03)
show more ...
|
| b687c2bc | 11-Sep-2019 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: usb: dwc3: always use the inlined version of dwc3_host_init/dwc3_host_exit
No one is actually implementing those functions. We could remove calls to these altogether, but it does not reall
UPSTREAM: usb: dwc3: always use the inlined version of dwc3_host_init/dwc3_host_exit
No one is actually implementing those functions. We could remove calls to these altogether, but it does not really hurt to keep the empty inlined version at the moment and it satisfies a symmetry with the gadget mode.
Change-Id: Icad0b0babdda6150088d722984b03d9cdf5c368b Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 33a99b43651b58fbb10f3778a16dd4c0a4db9708)
show more ...
|
| 2f6edaae | 11-Sep-2019 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: usb: dwc3: switch to peripheral mode when exiting
This allow the phy to enter idle and then suspend. the K2 platforms require the PHY to be suspended before the USB domain clock can be tur
UPSTREAM: usb: dwc3: switch to peripheral mode when exiting
This allow the phy to enter idle and then suspend. the K2 platforms require the PHY to be suspended before the USB domain clock can be turned off.
Change-Id: Id674a95ff3cacb9e614cdc583f4a755e8301b7d7 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit bbe3d4a6c14e17d251029e4dde07f184244e9a4a)
show more ...
|
| 0dcb583e | 01-May-2019 |
T Karthik Reddy <t.karthik.reddy@xilinx.com> |
UPSTREAM: drivers: usb: dwc3: setup phy before dwc3 core soft reset
Phy setup should be done before dwc3 soft core reset as it is done in linux & this fixes unreliable detection of usb cable on host
UPSTREAM: drivers: usb: dwc3: setup phy before dwc3 core soft reset
Phy setup should be done before dwc3 soft core reset as it is done in linux & this fixes unreliable detection of usb cable on host side.
Change-Id: I4e49d99544d0cd4a6c4215652b9ca328d29ce24c Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com> Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 1a031d236a9eeb28ced5438242987ae6a45f3054)
show more ...
|
| f44c88f1 | 05-Jul-2019 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: usb: dwc3: Use UCLASS_NOP instead of UCLASS_MISC for the DWC3 generic glue
dwc3-generic has been broken since MISC uclass has been modified to scan DT sub-nodes after bind. Fixing it by a
UPSTREAM: usb: dwc3: Use UCLASS_NOP instead of UCLASS_MISC for the DWC3 generic glue
dwc3-generic has been broken since MISC uclass has been modified to scan DT sub-nodes after bind. Fixing it by a using the no-op uclass.
Change-Id: Id95c49a16951cbe8bc7e58d8a3f85a7372ffd00a Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 3b83829ed63fabe460592395571c1d8fd9b861c8)
show more ...
|
| 8fff75ba | 05-Jul-2019 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: usb: dwc3-generic: remove dm_scan_fdt_dev() from the remove() callback
There is simply no reason to do that here.
Change-Id: I4336f493dc638bd0b5dd57cbd4a934c93c5bb0ff Signed-off-by: Jean-
UPSTREAM: usb: dwc3-generic: remove dm_scan_fdt_dev() from the remove() callback
There is simply no reason to do that here.
Change-Id: I4336f493dc638bd0b5dd57cbd4a934c93c5bb0ff Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit e445d46651de61fdfecf34cc2cd97d58ca6c5cf3)
show more ...
|
| 518b4f5b | 19-Feb-2019 |
Neil Armstrong <narmstrong@baylibre.com> |
UPSTREAM: usb: dwc3: Add Meson G12A USB Glue
Adds support for Amlogic G12A USB Control Glue HW.
The Amlogic G12A SoC Family embeds 2 USB Controllers : - a DWC3 IP configured as Host for USB2 and US
UPSTREAM: usb: dwc3: Add Meson G12A USB Glue
Adds support for Amlogic G12A USB Control Glue HW.
The Amlogic G12A SoC Family embeds 2 USB Controllers : - a DWC3 IP configured as Host for USB2 and USB3 - a DWC2 IP configured as Peripheral USB2 Only
A glue connects these both controllers to 2 USB2 PHYs, and optionnally to an USB3+PCIE Combo PHY shared with the PCIE controller.
The Glue configures the UTMI 8bit interfaces for the USB2 PHYs, including routing of the OTG PHY between the DWC3 and DWC2 controllers, and setups the on-chip OTG mode selection for this PHY.
This driver sets the OTG capable port as Host mode by default, the switch to Device mode is to be done in a separate patch.
Change-Id: I099bb5fbda0fdd52c4d78e32f879f8324bda4c59 Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Marek Vasut <marex@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit adb049abf7a209629c7b5e4bc673a0d802c616c2)
show more ...
|
| f7334c81 | 04-Dec-2018 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: dwc3-generic: Add support for the am437x
Change-Id: Ifbb1d31cfa83384e60c2d20af4e1b37085ee4232 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com
UPSTREAM: dwc3-generic: Add support for the am437x
Change-Id: Ifbb1d31cfa83384e60c2d20af4e1b37085ee4232 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 1ce5f1f933b6b3e0994b4b7d198afe0198442888)
show more ...
|
| 4323bebb | 04-Dec-2018 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: usb: dwc3-generic: make it compatible with "ti, keystone-dwc3"
Change-Id: Ibb728efe79707ce2d5b4cc7910428b4821719b28 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Ri
UPSTREAM: usb: dwc3-generic: make it compatible with "ti, keystone-dwc3"
Change-Id: Ibb728efe79707ce2d5b4cc7910428b4821719b28 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 1c03ade328dd08603fa717076c5888557f1a9fa7)
show more ...
|
| 57521aaa | 23-Nov-2018 |
Lukasz Majewski <lukma@denx.de> |
UPSTREAM: usb: composite: Move bitmap related operations to ./include/linux/bitmap.h
The BITMAP related operations can now be moved to ./include/linux/bitmap.h file to mimic the Linux kernel directo
UPSTREAM: usb: composite: Move bitmap related operations to ./include/linux/bitmap.h
The BITMAP related operations can now be moved to ./include/linux/bitmap.h file to mimic the Linux kernel directory tree.
This change also allows to remove the lin_gadget_compat.h header file (which is a legacy code only for composite U-boot layer). It was also possible to remove #includes from several USB gadget drivers.
Conflicts: include/usb/lin_gadget_compat.h
Change-Id: Id61d6f9cef89ca238f082f430f6d01ac1009aa07 Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Stefan Agner <stefan.agner@toradex.com> (cherry picked from commit 916fa097997a5e1b70768ce944de28e038d4bebf)
show more ...
|
| bb24d586 | 29-Nov-2018 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: dwc3-generic: Add support for the TI DWC3 glue
Change-Id: Id225a6f88c94a187f3d19f1bef90dd66a9399a95 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wa
UPSTREAM: dwc3-generic: Add support for the TI DWC3 glue
Change-Id: Id225a6f88c94a187f3d19f1bef90dd66a9399a95 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit d66e54ac8084f892bf9a43f3242b5e2bf9a686ed)
show more ...
|
| dc627159 | 29-Nov-2018 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: usb: dwc3: Fix a compilation error with the edison defconfig
The error is: In file included from include/part.h:10:0, from include/usb.h:18, from include/
UPSTREAM: usb: dwc3: Fix a compilation error with the edison defconfig
The error is: In file included from include/part.h:10:0, from include/usb.h:18, from include/linux/usb/gadget.h:22, from drivers/usb/dwc3/ep0.c:20: include/ide.h:62:14: error: unknown type name ‘uchar’ void ide_led(uchar led, uchar status);
Fixing it by including common.h that defines the uchar type.
Change-Id: I97a5eabe32e03709a7e2800cd6ee8adf186daa76 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 4d3825c1915e1649c4be0320e74be158e4698655)
show more ...
|
| c08fbf46 | 29-Nov-2018 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: dwc3-generic: Add select_dr_mode operation
The select_dr_mode operation is executed when the glue driver is probed. The role of this optional function is to configure the operating mode of
UPSTREAM: dwc3-generic: Add select_dr_mode operation
The select_dr_mode operation is executed when the glue driver is probed. The role of this optional function is to configure the operating mode of the controller at the glue level.
Change-Id: I613fc4e985d9400ae9f27b6becff9d6c8d105e98 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 93991cf1969077108ae36e90acb3cd25a6a449ac)
show more ...
|
| bb4f93a7 | 29-Nov-2018 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: dwc3-generic: Handle the PHYs, the clocks and the reset lines
This make the driver more generic. At this point this driver can replace the dwc3-of-simple implementation. Make the descripti
UPSTREAM: dwc3-generic: Handle the PHYs, the clocks and the reset lines
This make the driver more generic. At this point this driver can replace the dwc3-of-simple implementation. Make the description in the Kconfig more generic too.
Change-Id: Icf52db944e2559492cee912e14357f79713ba797 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 446e3a205b871943736e22565092771fac98a9a4)
show more ...
|
| 72d48a52 | 29-Nov-2018 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: dwc3: move phy operation to core.c
Those operations can be used for peripheral operation as well as host operation.
Change-Id: Ifa3b83bd690cd11f6750fd893e6ac36b2a0214b3 Signed-off-by: Jea
UPSTREAM: dwc3: move phy operation to core.c
Those operations can be used for peripheral operation as well as host operation.
Change-Id: Ifa3b83bd690cd11f6750fd893e6ac36b2a0214b3 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit d648a50c0a27452a5439e7982b23b97c64820430)
show more ...
|
| 20828bba | 29-Nov-2018 |
Jean-Jacques Hiblot <jjhiblot@ti.com> |
UPSTREAM: dm: usb: create a new UCLASS ID for USB gadget devices
UCLASS_USB_DEV_GENERIC was meant for USB devices connected to host controllers, not gadget devices. Adding a new UCLASS for gadget de
UPSTREAM: dm: usb: create a new UCLASS ID for USB gadget devices
UCLASS_USB_DEV_GENERIC was meant for USB devices connected to host controllers, not gadget devices. Adding a new UCLASS for gadget devices alone.
Also move the generic DM code for USB gadgets in a separate file for clarity.
Conflicts: board/sunxi/board.c
Change-Id: I9bd01ad0814b81f7718927660a8ece4080c5f988 Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 0131162439508801b9f8a330fa731f04273c9337)
show more ...
|