| #
30bf5086 |
| 08-Jun-2025 |
William Wu <william.wu@rock-chips.com> |
usb: dwc2: gadget: support force b_session valid
Change-Id: I557280ba69c75a2a230981c22c11ff8e42cc5a94 Signed-off-by: William Wu <william.wu@rock-chips.com>
|
| #
c637f232 |
| 16-Apr-2020 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
Change-Id: I22ac688008080eac49169d752a94b66668f890fc
Conflicts: drivers/phy/Kconfig drivers/phy/Makefile
|
| #
ef78966d |
| 04-Mar-2020 |
Kever Yang <kever.yang@rock-chips.com> |
FROMLIST: usb: Migrate to support live DT for some driver
Use ofnode_ instead of fdt_ APIs so that the drivers can support live DT. This patch updates usb_get_dr_mode() and usb_get_maximum_speed() t
FROMLIST: usb: Migrate to support live DT for some driver
Use ofnode_ instead of fdt_ APIs so that the drivers can support live DT. This patch updates usb_get_dr_mode() and usb_get_maximum_speed() to use ofnode as parameter instead of fdt offset. And all the drivers who use these APIs update to use live dt APIs at the same time.
Change-Id: I41a3fa52e8fdb99f7fc36b1bc0eb21ae82f90e63 Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (am from http://patchwork.ozlabs.org/patch/1248682/)
show more ...
|
| #
1a4f6af8 |
| 02-Mar-2020 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
ba6d0aab |
| 18-Jun-2019 |
Patrick Delaunay <patrick.delaunay@st.com> |
UPSTREAM: usb: dwc2: allow peripheral mode for OTG configuration
Allow device mode in DWC2 driver when device tree select the dr_mode "peripheral" or "otg".
The device mode is not allowed when dr_m
UPSTREAM: usb: dwc2: allow peripheral mode for OTG configuration
Allow device mode in DWC2 driver when device tree select the dr_mode "peripheral" or "otg".
The device mode is not allowed when dr_mode = "host" in device tree.
Change-Id: Iede854cdf940f5e1ef14a7e394087ac97998213a Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Marek Vasut <marex@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 7c654683464dc4cd89f9a8198e26336263390b57)
show more ...
|
| #
aea37ef6 |
| 18-Jun-2019 |
Patrick Delaunay <patrick.delaunay@st.com> |
UPSTREAM: usb: dwc2: correctly handle binding for g-tx-fifo-size
Manage g-tx-fifo-size as a array as specify in the binding.
Change-Id: Ie2f0fa8eda62d762fe79072db377c1b00b23ee4c Signed-off-by: Patr
UPSTREAM: usb: dwc2: correctly handle binding for g-tx-fifo-size
Manage g-tx-fifo-size as a array as specify in the binding.
Change-Id: Ie2f0fa8eda62d762fe79072db377c1b00b23ee4c Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Marek Vasut <marex@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 7350a75b517b6162c8f832a9ead09b9e26e8068f)
show more ...
|
| #
db704406 |
| 29-Mar-2019 |
Patrick Delaunay <patrick.delaunay@st.com> |
UPSTREAM: stm32mp1: add stusb1600 support for DK1 and DK2 board
The DK1 and DK2 boards use the USB Type-C controller STUSB1600. This patch updates: - the device tree to add the I2C node in the DT -
UPSTREAM: stm32mp1: add stusb1600 support for DK1 and DK2 board
The DK1 and DK2 boards use the USB Type-C controller STUSB1600. This patch updates: - the device tree to add the I2C node in the DT - the board stm32mp1 to probe this I2C device and use this controller to check cable detection. - the DWC2 driver to support a new dt property "u-boot,force-b-session-valid" which forces B session and device mode; it is a workaround because the VBUS sensing and ID detection isn't available with stusb1600.
Conflicts: arch/arm/dts/stm32mp157-pinctrl.dtsi arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi arch/arm/dts/stm32mp157a-dk1.dts board/st/stm32mp1/stm32mp1.c
Change-Id: I73b62dce9c3e0661e6d2463b87389229cd3559a7 Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> (cherry picked from commit 6fe7dd3327d552bacf4266d7f1ed074bf98ffb92)
show more ...
|
| #
acd7aca8 |
| 29-Mar-2019 |
Patrick Delaunay <patrick.delaunay@st.com> |
UPSTREAM: usb: dwc2: add support for STM32MP1
Add compatible "st,stm32mp1-hsotg" and associated driver data to manage the usb33d-supply and the ST specific register for VBus sensing.
Change-Id: If6
UPSTREAM: usb: dwc2: add support for STM32MP1
Add compatible "st,stm32mp1-hsotg" and associated driver data to manage the usb33d-supply and the ST specific register for VBus sensing.
Change-Id: If60971ebf415cb708b04af38c7b61d5321a13181 Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 931e9d7aa7228867eec7e33fd45718e6018cc96d)
show more ...
|
| #
6187c346 |
| 29-Mar-2019 |
Patrice Chotard <patrice.chotard@st.com> |
UPSTREAM: usb: dwc2_udc_otg: Add tx_fifo_sz array support
All TX fifo size can be different, add tx_fifo_sz_array[] into dwc2_plat_otg_data to be able to set them.
tx_fifo_sz_array[] is 17 Bytes lo
UPSTREAM: usb: dwc2_udc_otg: Add tx_fifo_sz array support
All TX fifo size can be different, add tx_fifo_sz_array[] into dwc2_plat_otg_data to be able to set them.
tx_fifo_sz_array[] is 17 Bytes long and can contains max 16 tx fifo size (synopsys IP supports max 16 IN endpoints). First entry of tx_fifo_sz_array[] is the number of valid fifo size the array contains.
In case of tx_fifo_sz_array[] doesn't contains the same number of element than max hardware endpoint, display a warning message.
Compatibility with board which doesn't use tx_fifo_sz_array[] (Rockchip rk322x/rk3128/rv1108/rk3288/rk3036) is kept.
Change-Id: If32954770f9571a1bb18376239ef9cff9a721178 Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 763bb106f66c147b7d0c3046dbba66a07d7a9dd2)
show more ...
|
| #
38b0d574 |
| 29-Mar-2019 |
Patrick Delaunay <patrick.delaunay@st.com> |
UPSTREAM: usb: dwc2_udc_otg: Read MAX_HW_ENDPOINT from HWCFG4 register
Some DWC2 ip variant doesn't use 16 hardware endpoint as hardcoded in the driver. Bits INEps [29:26] of HWCFG4 register allows
UPSTREAM: usb: dwc2_udc_otg: Read MAX_HW_ENDPOINT from HWCFG4 register
Some DWC2 ip variant doesn't use 16 hardware endpoint as hardcoded in the driver. Bits INEps [29:26] of HWCFG4 register allows to get this information.
Change-Id: I22f88ef7ee2749cce3c93f5c8a455a1de165b9dd Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 5bd97e80730bdda59656ca927d67d62fb2a4ecb6)
show more ...
|
| #
3015f8be |
| 29-Mar-2019 |
Patrick Delaunay <patrick.delaunay@st.com> |
UPSTREAM: usb: dwc2: Add function for session B check
Add a new function to check the session B validity, to be use to check cable connection.
Change-Id: I914d7353e926df26787261c99f07e5c58dbf24ff S
UPSTREAM: usb: dwc2: Add function for session B check
Add a new function to check the session B validity, to be use to check cable connection.
Change-Id: I914d7353e926df26787261c99f07e5c58dbf24ff Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 2d76160f049c42087011cfa0e6e878aa2ed6b406)
show more ...
|
| #
5c4beedb |
| 29-Mar-2019 |
Patrick Delaunay <patrick.delaunay@st.com> |
UPSTREAM: usb: dwc2: Add force-b-session-valid support
Handle "force-b-session-valid" property from DT.
Change-Id: I5a0bf871506257b449897cb67732fef430704134 Signed-off-by: Patrick Delaunay <patrick
UPSTREAM: usb: dwc2: Add force-b-session-valid support
Handle "force-b-session-valid" property from DT.
Change-Id: I5a0bf871506257b449897cb67732fef430704134 Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit 0fdd0bc621f060fcf60fd4ba48a2a32f338ffeac)
show more ...
|
| #
b486dd9e |
| 29-Mar-2019 |
Patrick Delaunay <patrick.delaunay@st.com> |
UPSTREAM: usb: dwc2: force reset assert before to probe the driver
Reset the hardware to be sure of the device state.
Change-Id: Ia86b8b929d6f5316820464a8dbfadbadd7e9d3dc Signed-off-by: Patrick Del
UPSTREAM: usb: dwc2: force reset assert before to probe the driver
Reset the hardware to be sure of the device state.
Change-Id: Ia86b8b929d6f5316820464a8dbfadbadd7e9d3dc Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit c2c74f97afff9351077f2236ab6fa5638de9bd86)
show more ...
|
| #
1b9a1ae6 |
| 29-Mar-2019 |
Patrick Delaunay <patrick.delaunay@st.com> |
UPSTREAM: usb: dwc2: convert driver to DM_USB_GADGET
Minimal conversion to driver model by using the uclass UCLASS_USB_GADGET_GENERIC based on: - reset uclass - clock uclass - generic uclass.
Chang
UPSTREAM: usb: dwc2: convert driver to DM_USB_GADGET
Minimal conversion to driver model by using the uclass UCLASS_USB_GADGET_GENERIC based on: - reset uclass - clock uclass - generic uclass.
Change-Id: Id366ea00cb1126d14cb8cef2a9e86b86df6cd612 Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit c791c8431c34da803fdac4a308999879a6a33834)
show more ...
|
| #
a0c39c07 |
| 29-Mar-2019 |
Patrick Delaunay <patrick.delaunay@st.com> |
UPSTREAM: usb: dwc2: remove unused variable regs_otg
Remove the global regs_otg variable.
Change-Id: Iea128368e3b6593cf15d2e2bd31dfe03c445ad32 Signed-off-by: Patrick Delaunay <patrick.delaunay@st.c
UPSTREAM: usb: dwc2: remove unused variable regs_otg
Remove the global regs_otg variable.
Change-Id: Iea128368e3b6593cf15d2e2bd31dfe03c445ad32 Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit a812d77617749eeaddfa8b9796b9a2eece1ad2f5)
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 ...
|
| #
90aa625c |
| 16-Sep-2017 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
treewide: replace with error() with pr_err()
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in include/linux/compiler-gcc.h
treewide: replace with error() with pr_err()
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in include/linux/compiler-gcc.h:
# define __compiletime_error(message) __attribute__((error(message)))
This prevents us from using __compiletime_error(), and makes it difficult to fully sync BUILD_BUG macros with Linux. (Notice Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)
Let's convert error() into now treewide-available pr_err().
Done with the help of Coccinelle, excluing tools/ directory.
The semantic patch I used is as follows:
// <smpl> @@@@ -error +pr_err (...) // </smpl>
Change-Id: I921807c1770d36a91e692c48ab477558bb2ed0b8 Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org> [trini: Re-run Coccinelle] Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 9b643e312d528f291966c1f30b0d90bf3b1d43dc)
show more ...
|
| #
a52e8dd4 |
| 08-Nov-2017 |
Frank Wang <frank.wang@rock-chips.com> |
usb: gadget: dwc2: avoid reset core before devices connected
Theoretically, the UDC register need not reconfig when GINTSTS.USBRst is set, and only do core reset if the devices was connected before.
usb: gadget: dwc2: avoid reset core before devices connected
Theoretically, the UDC register need not reconfig when GINTSTS.USBRst is set, and only do core reset if the devices was connected before. This change adds _connected_ flag to check the devices was really connected or not. As an optimization, reset device address to zero while GINTSTS.USBRst is set.
This patch fix usb connect failed when continuously perform the 'fastboot reboot-bootloader' command.
Change-Id: I6a78228e147d2274329d922ac3f3ffef19492e7e Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
show more ...
|
| #
373ae16c |
| 17-Jan-2017 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://git.denx.de/u-boot-usb
|
| #
59ef2030 |
| 14-Dec-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
usb: dwc2-otg: remove unused variable
GCC 6.1 complains about this.
drivers/usb/gadget/dwc2_udc_otg.c:72:19: warning: 'driver_desc' defined but not used [-Wunused-const-variable=] static const cha
usb: dwc2-otg: remove unused variable
GCC 6.1 complains about this.
drivers/usb/gadget/dwc2_udc_otg.c:72:19: warning: 'driver_desc' defined but not used [-Wunused-const-variable=] static const char driver_desc[] = DRIVER_DESC; ^~~~~~~~~~~
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
show more ...
|
| #
1221ce45 |
| 21-Sep-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
treewide: replace #include <asm/errno.h> with <linux/errno.h>
Now, arch/${ARCH}/include/asm/errno.h and include/linux/errno.h have the same content. (both just wrap <asm-generic/errno.h>)
Replace
treewide: replace #include <asm/errno.h> with <linux/errno.h>
Now, arch/${ARCH}/include/asm/errno.h and include/linux/errno.h have the same content. (both just wrap <asm-generic/errno.h>)
Replace all include directives for <asm/errno.h> with <linux/errno.h>.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> [trini: Fixup include/clk.] Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
| #
47117882 |
| 14-Jul-2016 |
Xu Ziyuan <xzy.xu@rock-chips.com> |
usb: dwc2-otg: adjust fifo size via platform data
The total FIFO size of some SoCs may be different from the existen, this patch supports fifo size setting from platform data.
Signed-off-by: Ziyuan
usb: dwc2-otg: adjust fifo size via platform data
The total FIFO size of some SoCs may be different from the existen, this patch supports fifo size setting from platform data.
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
a10a31ec |
| 19-Jun-2016 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://git.denx.de/u-boot-usb
Signed-off-by: Tom Rini <trini@konsulko.com>
Conflicts: arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h
|
| #
f221db0e |
| 07-Jun-2016 |
Steve Rae <srae@broadcom.com> |
usb: dwc2_udc_otg: support 8-bit interface
Define CONFIG_USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8 to allow the physical interface to be 8-bit (rather than 16-bit).
Signed-off-by: Steve Rae <srae@broadco
usb: dwc2_udc_otg: support 8-bit interface
Define CONFIG_USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8 to allow the physical interface to be 8-bit (rather than 16-bit).
Signed-off-by: Steve Rae <srae@broadcom.com>
show more ...
|
| #
94985cc9 |
| 04-Feb-2016 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://git.denx.de/u-boot-usb
|