| From: |
| Phil Edworthy <phil.edworthy-AT-renesas.com> |
| To: |
| Felipe Balbi <balbi-AT-kernel.org>, Philipp Zabel <p.zabel-AT-pengutronix.de>, Rob Herring <robh+dt-AT-kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt-AT-linaro.org> |
| Subject: |
| [PATCH v3 0/2] Add usb gadget support for RZ/V2M |
| Date: |
| Thu, 04 Aug 2022 20:22:18 +0100 |
| Message-ID: |
| <20220804192220.128601-1-phil.edworthy@renesas.com> |
| Cc: |
| Phil Edworthy <phil.edworthy-AT-renesas.com>, Greg Kroah-Hartman <gregkh-AT-linuxfoundation.org>, Geert Uytterhoeven <geert+renesas-AT-glider.be>, Yoshihiro Shimoda <yoshihiro.shimoda.uh-AT-renesas.com>, Biju Das <biju.das.jz-AT-bp.renesas.com>, Adam Ford <aford173-AT-gmail.com>, linux-usb-AT-vger.kernel.org, devicetree-AT-vger.kernel.org, linux-renesas-soc-AT-vger.kernel.org |
| Archive-link: |
| Article |
Hi,
The RZ/V2M SoC is very similar to the R-Car implementation.
The differences are that a few DRD related registers and bits have
moved, there is a separate interrupt for DRD, an additional clock for
register access and reset lines for DRD and USBP.
Thanks
Phil
v3:
bindings:
- Keep the existing constraints by adding an 'else' clause with
'maxItems: 1' for various properties.
driver:
- The ramsize_per_ramif specifies the amount of ram for
IN _or_ OUT pipes, not combined, so it should be 16KB.
- When changing role, ensure only one of host/perip reset is deasserted
- Correct number of pipes to 16. The driver will calculate the nr
of pipes to use based on the available ram and ramsize_per_pipe.
v2:
bindings:
- SoCs other than rz/v2m must limit the number of clock/interrupt names
- Add "Battery Charging" and "Global Purpose Input" interrupts
driver:
- Rename r9a09g011 feature to is_rzv2m; use rzv2m compat string
- Pass pointer into macros that access is_rzv2m member
Phil Edworthy (2):
dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011
support
usb: gadget: udc: renesas_usb3: Add support for RZ/V2M
.../bindings/usb/renesas,usb3-peri.yaml | 99 +++++++++++--
drivers/usb/gadget/udc/renesas_usb3.c | 131 ++++++++++++++----
2 files changed, 188 insertions(+), 42 deletions(-)
--
2.34.1