Skip to content

Commit 746bfe6

Browse files
shimodayFelipe Balbi
authored and
Felipe Balbi
committed
usb: gadget: renesas_usb3: add support for Renesas USB3.0 peripheral controller
R-Car H3 has USB3.0 peripheral controllers. This controller's has the following features: - Supports super, high and full speed - Contains 30 pipes for bulk or interrupt transfer - Contains dedicated DMA controller This driver doesn't support the dedicated DMAC for now. Acked-by: Rob Herring <[email protected]> Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent a40a003 commit 746bfe6

File tree

4 files changed

+2010
-0
lines changed

4 files changed

+2010
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Renesas Electronics USB3.0 Peripheral driver
2+
3+
Required properties:
4+
- compatible: Must contain one of the following:
5+
- "renesas,r8a7795-usb3-peri"
6+
- reg: Base address and length of the register for the USB3.0 Peripheral
7+
- interrupts: Interrupt specifier for the USB3.0 Peripheral
8+
- clocks: clock phandle and specifier pair
9+
10+
Example:
11+
usb3_peri0: usb@ee020000 {
12+
compatible = "renesas,r8a7795-usb3-peri";
13+
reg = <0 0xee020000 0 0x400>;
14+
interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
15+
clocks = <&cpg CPG_MOD 328>;
16+
};
17+
18+
usb3_peri1: usb@ee060000 {
19+
compatible = "renesas,r8a7795-usb3-peri";
20+
reg = <0 0xee060000 0 0x400>;
21+
interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
22+
clocks = <&cpg CPG_MOD 327>;
23+
};

drivers/usb/gadget/udc/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,17 @@ config USB_RENESAS_USBHS_UDC
174174
dynamically linked module called "renesas_usbhs" and force all
175175
gadget drivers to also be dynamically linked.
176176

177+
config USB_RENESAS_USB3
178+
tristate 'Renesas USB3.0 Peripheral controller'
179+
depends on ARCH_SHMOBILE || COMPILE_TEST
180+
help
181+
Renesas USB3.0 Peripheral controller is a USB peripheral controller
182+
that supports super, high, and full speed USB 3.0 data transfers.
183+
184+
Say "y" to link the driver statically, or "m" to build a
185+
dynamically linked module called "renesas_usb3" and force all
186+
gadget drivers to also be dynamically linked.
187+
177188
config USB_PXA27X
178189
tristate "PXA 27x"
179190
help

drivers/usb/gadget/udc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ fsl_usb2_udc-y := fsl_udc_core.o
1919
fsl_usb2_udc-$(CONFIG_ARCH_MXC) += fsl_mxc_udc.o
2020
obj-$(CONFIG_USB_M66592) += m66592-udc.o
2121
obj-$(CONFIG_USB_R8A66597) += r8a66597-udc.o
22+
obj-$(CONFIG_USB_RENESAS_USB3) += renesas_usb3.o
2223
obj-$(CONFIG_USB_FSL_QE) += fsl_qe_udc.o
2324
obj-$(CONFIG_USB_S3C_HSUDC) += s3c-hsudc.o
2425
obj-$(CONFIG_USB_LPC32XX) += lpc32xx_udc.o

0 commit comments

Comments
 (0)