* [PATCH 0/2] Add usb gadget support for RZ/V2M
@ 2022-07-18 13:44 Phil Edworthy
2022-07-18 13:44 ` [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support Phil Edworthy
0 siblings, 1 reply; 9+ messages in thread
From: Phil Edworthy @ 2022-07-18 13:44 UTC (permalink / raw)
To: Felipe Balbi, Philipp Zabel, Rob Herring, Krzysztof Kozlowski
Cc: Phil Edworthy, Greg Kroah-Hartman, Geert Uytterhoeven,
Yoshihiro Shimoda, Biju Das, Adam Ford, linux-usb, devicetree,
linux-renesas-soc
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
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 | 81 ++++++++++---
drivers/usb/gadget/udc/renesas_usb3.c | 109 +++++++++++++++---
2 files changed, 157 insertions(+), 33 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support
2022-07-18 13:44 [PATCH 0/2] Add usb gadget support for RZ/V2M Phil Edworthy
@ 2022-07-18 13:44 ` Phil Edworthy
2022-07-18 13:55 ` Krzysztof Kozlowski
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Phil Edworthy @ 2022-07-18 13:44 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski
Cc: Phil Edworthy, Greg Kroah-Hartman, Yoshihiro Shimoda, linux-usb,
devicetree, Geert Uytterhoeven, linux-renesas-soc, Biju Das
Document the RZ/V2M SoC bindings.
The RZ/V2M SoC is a little different to the R-Car implementations.
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.
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
---
.../bindings/usb/renesas,usb3-peri.yaml | 81 +++++++++++++++----
1 file changed, 66 insertions(+), 15 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml b/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
index 9fcf54b10b07..28f785dd2012 100644
--- a/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
+++ b/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
@@ -11,27 +11,49 @@ maintainers:
properties:
compatible:
- items:
- - enum:
- - renesas,r8a774a1-usb3-peri # RZ/G2M
- - renesas,r8a774b1-usb3-peri # RZ/G2N
- - renesas,r8a774c0-usb3-peri # RZ/G2E
- - renesas,r8a774e1-usb3-peri # RZ/G2H
- - renesas,r8a7795-usb3-peri # R-Car H3
- - renesas,r8a7796-usb3-peri # R-Car M3-W
- - renesas,r8a77961-usb3-peri # R-Car M3-W+
- - renesas,r8a77965-usb3-peri # R-Car M3-N
- - renesas,r8a77990-usb3-peri # R-Car E3
- - const: renesas,rcar-gen3-usb3-peri
+ oneOf:
+ - items:
+ - enum:
+ - renesas,r8a774a1-usb3-peri # RZ/G2M
+ - renesas,r8a774b1-usb3-peri # RZ/G2N
+ - renesas,r8a774c0-usb3-peri # RZ/G2E
+ - renesas,r8a774e1-usb3-peri # RZ/G2H
+ - renesas,r8a7795-usb3-peri # R-Car H3
+ - renesas,r8a7796-usb3-peri # R-Car M3-W
+ - renesas,r8a77961-usb3-peri # R-Car M3-W+
+ - renesas,r8a77965-usb3-peri # R-Car M3-N
+ - renesas,r8a77990-usb3-peri # R-Car E3
+ - const: renesas,rcar-gen3-usb3-peri
+
+ - items:
+ - enum:
+ - renesas,r9a09g011-usb3-peri # RZ/V2M
+ - const: renesas,rzv2m-usb3-peri
reg:
maxItems: 1
interrupts:
- maxItems: 1
+ minItems: 1
+ items:
+ - description: Combined interrupt for DMA, SYS and ERR
+ - description: Dual Role Device (DRD)
+
+ interrupt-names:
+ items:
+ - const: all_p
+ - const: drd
clocks:
- maxItems: 1
+ minItems: 1
+ items:
+ - description: Main clock
+ - description: Register access clock
+
+ clock-names:
+ items:
+ - const: aclk
+ - const: reg
phys:
maxItems: 1
@@ -43,7 +65,15 @@ properties:
maxItems: 1
resets:
- maxItems: 1
+ minItems: 1
+ items:
+ - description: Peripheral reset
+ - description: DRD reset
+
+ reset-names:
+ items:
+ - const: aresetn_p
+ - const: drd_reset
usb-role-switch:
$ref: /schemas/types.yaml#/definitions/flag
@@ -78,6 +108,27 @@ required:
- interrupts
- clocks
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - renesas,rzv2m-usb3-peri
+ then:
+ properties:
+ clocks:
+ minItems: 2
+ interrupts:
+ minItems: 2
+ resets:
+ minItems: 2
+ required:
+ - clock-names
+ - interrupt-names
+ - resets
+ - reset-names
+
additionalProperties: false
examples:
--
2.34.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support
2022-07-18 13:44 ` [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support Phil Edworthy
@ 2022-07-18 13:55 ` Krzysztof Kozlowski
2022-07-18 15:24 ` Phil Edworthy
2022-07-21 10:58 ` Phil Edworthy
2022-07-21 12:12 ` Geert Uytterhoeven
2 siblings, 1 reply; 9+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-18 13:55 UTC (permalink / raw)
To: Phil Edworthy, Rob Herring, Krzysztof Kozlowski
Cc: Greg Kroah-Hartman, Yoshihiro Shimoda, linux-usb, devicetree,
Geert Uytterhoeven, linux-renesas-soc, Biju Das
On 18/07/2022 15:44, Phil Edworthy wrote:
> Document the RZ/V2M SoC bindings.
> The RZ/V2M SoC is a little different to the R-Car implementations.
> 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.
>
> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
> .../bindings/usb/renesas,usb3-peri.yaml | 81 +++++++++++++++----
> 1 file changed, 66 insertions(+), 15 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml b/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
> index 9fcf54b10b07..28f785dd2012 100644
> --- a/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
> +++ b/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
> @@ -11,27 +11,49 @@ maintainers:
>
> properties:
> compatible:
> - items:
> - - enum:
> - - renesas,r8a774a1-usb3-peri # RZ/G2M
> - - renesas,r8a774b1-usb3-peri # RZ/G2N
> - - renesas,r8a774c0-usb3-peri # RZ/G2E
> - - renesas,r8a774e1-usb3-peri # RZ/G2H
> - - renesas,r8a7795-usb3-peri # R-Car H3
> - - renesas,r8a7796-usb3-peri # R-Car M3-W
> - - renesas,r8a77961-usb3-peri # R-Car M3-W+
> - - renesas,r8a77965-usb3-peri # R-Car M3-N
> - - renesas,r8a77990-usb3-peri # R-Car E3
> - - const: renesas,rcar-gen3-usb3-peri
> + oneOf:
> + - items:
> + - enum:
> + - renesas,r8a774a1-usb3-peri # RZ/G2M
> + - renesas,r8a774b1-usb3-peri # RZ/G2N
> + - renesas,r8a774c0-usb3-peri # RZ/G2E
> + - renesas,r8a774e1-usb3-peri # RZ/G2H
> + - renesas,r8a7795-usb3-peri # R-Car H3
> + - renesas,r8a7796-usb3-peri # R-Car M3-W
> + - renesas,r8a77961-usb3-peri # R-Car M3-W+
> + - renesas,r8a77965-usb3-peri # R-Car M3-N
> + - renesas,r8a77990-usb3-peri # R-Car E3
> + - const: renesas,rcar-gen3-usb3-peri
> +
> + - items:
> + - enum:
> + - renesas,r9a09g011-usb3-peri # RZ/V2M
> + - const: renesas,rzv2m-usb3-peri
>
> reg:
> maxItems: 1
>
> interrupts:
> - maxItems: 1
> + minItems: 1
> + items:
> + - description: Combined interrupt for DMA, SYS and ERR
> + - description: Dual Role Device (DRD)
> +
> + interrupt-names:
minItems:1
> + items:
> + - const: all_p
> + - const: drd
>
> clocks:
> - maxItems: 1
> + minItems: 1
> + items:
> + - description: Main clock
> + - description: Register access clock
> +
> + clock-names:
minItems:1
> + items:
> + - const: aclk
> + - const: reg
>
> phys:
> maxItems: 1
> @@ -43,7 +65,15 @@ properties:
> maxItems: 1
>
> resets:
> - maxItems: 1
> + minItems: 1
> + items:
> + - description: Peripheral reset
> + - description: DRD reset
> +
> + reset-names:
> + items:
> + - const: aresetn_p
> + - const: drd_reset
>
> usb-role-switch:
> $ref: /schemas/types.yaml#/definitions/flag
> @@ -78,6 +108,27 @@ required:
> - interrupts
> - clocks
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - renesas,rzv2m-usb3-peri
> + then:
> + properties:
> + clocks:
> + minItems: 2
> + interrupts:
> + minItems: 2
> + resets:
> + minItems: 2
> + required:
> + - clock-names
> + - interrupt-names
> + - resets
> + - reset-names
else:
narrow the number of items
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support
2022-07-18 13:55 ` Krzysztof Kozlowski
@ 2022-07-18 15:24 ` Phil Edworthy
2022-07-19 6:37 ` Krzysztof Kozlowski
0 siblings, 1 reply; 9+ messages in thread
From: Phil Edworthy @ 2022-07-18 15:24 UTC (permalink / raw)
To: Krzysztof Kozlowski, Rob Herring, Krzysztof Kozlowski
Cc: Greg Kroah-Hartman, Yoshihiro Shimoda, linux-usb@vger.kernel.org,
devicetree@vger.kernel.org, Geert Uytterhoeven,
linux-renesas-soc@vger.kernel.org, Biju Das
Hi Krzysztof,
Thanks for your review!
On 18 July 2022 14:55 Krzysztof Kozlowski wrote:
> On 18/07/2022 15:44, Phil Edworthy wrote:
> > Document the RZ/V2M SoC bindings.
> > The RZ/V2M SoC is a little different to the R-Car implementations.
> > 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.
> >
> > Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> > Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
> > ---
> > .../bindings/usb/renesas,usb3-peri.yaml | 81 +++++++++++++++----
> > 1 file changed, 66 insertions(+), 15 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/usb/renesas,usb3-
> peri.yaml b/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
> > index 9fcf54b10b07..28f785dd2012 100644
> > --- a/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
> > +++ b/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
> > @@ -11,27 +11,49 @@ maintainers:
<snip>
> > interrupts:
> > - maxItems: 1
> > + minItems: 1
> > + items:
> > + - description: Combined interrupt for DMA, SYS and ERR
> > + - description: Dual Role Device (DRD)
> > +
> > + interrupt-names:
>
> minItems:1
>
> > + items:
> > + - const: all_p
> > + - const: drd
> >
> > clocks:
> > - maxItems: 1
> > + minItems: 1
> > + items:
> > + - description: Main clock
> > + - description: Register access clock
> > +
> > + clock-names:
>
> minItems:1
>
> > + items:
> > + - const: aclk
> > + - const: reg
> >
> > phys:
> > maxItems: 1
> > @@ -43,7 +65,15 @@ properties:
> > maxItems: 1
> >
> > resets:
> > - maxItems: 1
> > + minItems: 1
> > + items:
> > + - description: Peripheral reset
> > + - description: DRD reset
> > +
> > + reset-names:
> > + items:
> > + - const: aresetn_p
> > + - const: drd_reset
> >
> > usb-role-switch:
> > $ref: /schemas/types.yaml#/definitions/flag
> > @@ -78,6 +108,27 @@ required:
> > - interrupts
> > - clocks
> >
> > +allOf:
> > + - if:
> > + properties:
> > + compatible:
> > + contains:
> > + enum:
> > + - renesas,rzv2m-usb3-peri
> > + then:
> > + properties:
> > + clocks:
> > + minItems: 2
> > + interrupts:
> > + minItems: 2
> > + resets:
> > + minItems: 2
> > + required:
> > + - clock-names
> > + - interrupt-names
> > + - resets
> > + - reset-names
>
> else:
> narrow the number of items
Sorry, I don't understand why we need minItems: 1 for
interrupt-names/clock-names, but then I'm easily confused!
None of the existing users have any interrupt-names/clock-names
hence they are not in required. The rzv2m is the only device
that needs them so the driver can get them by name, and hence
it sets minItems: 2
Thanks
Phil
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support
2022-07-18 15:24 ` Phil Edworthy
@ 2022-07-19 6:37 ` Krzysztof Kozlowski
2022-07-19 9:01 ` Phil Edworthy
0 siblings, 1 reply; 9+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-19 6:37 UTC (permalink / raw)
To: Phil Edworthy, Rob Herring, Krzysztof Kozlowski
Cc: Greg Kroah-Hartman, Yoshihiro Shimoda, linux-usb@vger.kernel.org,
devicetree@vger.kernel.org, Geert Uytterhoeven,
linux-renesas-soc@vger.kernel.org, Biju Das
On 18/07/2022 17:24, Phil Edworthy wrote:
>>> phys:
>>> maxItems: 1
>>> @@ -43,7 +65,15 @@ properties:
>>> maxItems: 1
>>>
>>> resets:
>>> - maxItems: 1
>>> + minItems: 1
>>> + items:
>>> + - description: Peripheral reset
>>> + - description: DRD reset
>>> +
>>> + reset-names:
>>> + items:
>>> + - const: aresetn_p
>>> + - const: drd_reset
>>>
>>> usb-role-switch:
>>> $ref: /schemas/types.yaml#/definitions/flag
>>> @@ -78,6 +108,27 @@ required:
>>> - interrupts
>>> - clocks
>>>
>>> +allOf:
>>> + - if:
>>> + properties:
>>> + compatible:
>>> + contains:
>>> + enum:
>>> + - renesas,rzv2m-usb3-peri
>>> + then:
>>> + properties:
>>> + clocks:
>>> + minItems: 2
>>> + interrupts:
>>> + minItems: 2
>>> + resets:
>>> + minItems: 2
>>> + required:
>>> + - clock-names
>>> + - interrupt-names
>>> + - resets
>>> + - reset-names
>>
>> else:
>> narrow the number of items
> Sorry, I don't understand why we need minItems: 1 for
> interrupt-names/clock-names, but then I'm easily confused!
>
> None of the existing users have any interrupt-names/clock-names
> hence they are not in required. The rzv2m is the only device
> that needs them so the driver can get them by name, and hence
> it sets minItems: 2
They are not required but they can appear. Nothing prevents it, based on
your patch.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support
2022-07-19 6:37 ` Krzysztof Kozlowski
@ 2022-07-19 9:01 ` Phil Edworthy
2022-07-19 9:13 ` Krzysztof Kozlowski
0 siblings, 1 reply; 9+ messages in thread
From: Phil Edworthy @ 2022-07-19 9:01 UTC (permalink / raw)
To: Krzysztof Kozlowski, Rob Herring, Krzysztof Kozlowski
Cc: Greg Kroah-Hartman, Yoshihiro Shimoda, linux-usb@vger.kernel.org,
devicetree@vger.kernel.org, Geert Uytterhoeven,
linux-renesas-soc@vger.kernel.org, Biju Das
Hi Krzysztof,
On 19 July 2022 07:38 Krzysztof Kozlowski wrote:
> On 18/07/2022 17:24, Phil Edworthy wrote:
> >>> phys:
> >>> maxItems: 1
> >>> @@ -43,7 +65,15 @@ properties:
> >>> maxItems: 1
> >>>
> >>> resets:
> >>> - maxItems: 1
> >>> + minItems: 1
> >>> + items:
> >>> + - description: Peripheral reset
> >>> + - description: DRD reset
> >>> +
> >>> + reset-names:
> >>> + items:
> >>> + - const: aresetn_p
> >>> + - const: drd_reset
> >>>
> >>> usb-role-switch:
> >>> $ref: /schemas/types.yaml#/definitions/flag
> >>> @@ -78,6 +108,27 @@ required:
> >>> - interrupts
> >>> - clocks
> >>>
> >>> +allOf:
> >>> + - if:
> >>> + properties:
> >>> + compatible:
> >>> + contains:
> >>> + enum:
> >>> + - renesas,rzv2m-usb3-peri
> >>> + then:
> >>> + properties:
> >>> + clocks:
> >>> + minItems: 2
+ clock-names:
+ minItems: 2
(See below)
> >>> + interrupts:
> >>> + minItems: 2
+ interrupt-names:
+ minItems: 2
(See below)
> >>> + resets:
> >>> + minItems: 2
> >>> + required:
> >>> + - clock-names
> >>> + - interrupt-names
> >>> + - resets
> >>> + - reset-names
> >>
> >> else:
> >> narrow the number of items
> > Sorry, I don't understand why we need minItems: 1 for
> > interrupt-names/clock-names, but then I'm easily confused!
> >
> > None of the existing users have any interrupt-names/clock-names
> > hence they are not in required. The rzv2m is the only device
> > that needs them so the driver can get them by name, and hence
> > it sets minItems: 2
>
> They are not required but they can appear. Nothing prevents it, based on
> your patch.
Ok, but instead of 'else: narrow the number of items', shouldn't I
set the clock-names/interrupt-names 'minItems: 2' for rzv2m as above?
This is because they will now default to 'minItems: 1' after your
comment?
Thanks
Phil
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support
2022-07-19 9:01 ` Phil Edworthy
@ 2022-07-19 9:13 ` Krzysztof Kozlowski
0 siblings, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-19 9:13 UTC (permalink / raw)
To: Phil Edworthy, Rob Herring, Krzysztof Kozlowski
Cc: Greg Kroah-Hartman, Yoshihiro Shimoda, linux-usb@vger.kernel.org,
devicetree@vger.kernel.org, Geert Uytterhoeven,
linux-renesas-soc@vger.kernel.org, Biju Das
On 19/07/2022 11:01, Phil Edworthy wrote:
> Hi Krzysztof,
>
> On 19 July 2022 07:38 Krzysztof Kozlowski wrote:
>> On 18/07/2022 17:24, Phil Edworthy wrote:
>>>>> phys:
>>>>> maxItems: 1
>>>>> @@ -43,7 +65,15 @@ properties:
>>>>> maxItems: 1
>>>>>
>>>>> resets:
>>>>> - maxItems: 1
>>>>> + minItems: 1
>>>>> + items:
>>>>> + - description: Peripheral reset
>>>>> + - description: DRD reset
>>>>> +
>>>>> + reset-names:
>>>>> + items:
>>>>> + - const: aresetn_p
>>>>> + - const: drd_reset
>>>>>
>>>>> usb-role-switch:
>>>>> $ref: /schemas/types.yaml#/definitions/flag
>>>>> @@ -78,6 +108,27 @@ required:
>>>>> - interrupts
>>>>> - clocks
>>>>>
>>>>> +allOf:
>>>>> + - if:
>>>>> + properties:
>>>>> + compatible:
>>>>> + contains:
>>>>> + enum:
>>>>> + - renesas,rzv2m-usb3-peri
>>>>> + then:
>>>>> + properties:
>>>>> + clocks:
>>>>> + minItems: 2
> + clock-names:
> + minItems: 2
> (See below)
>
>>>>> + interrupts:
>>>>> + minItems: 2
> + interrupt-names:
> + minItems: 2
> (See below)
>
>>>>> + resets:
>>>>> + minItems: 2
>>>>> + required:
>>>>> + - clock-names
>>>>> + - interrupt-names
>>>>> + - resets
>>>>> + - reset-names
>>>>
>>>> else:
>>>> narrow the number of items
>>> Sorry, I don't understand why we need minItems: 1 for
>>> interrupt-names/clock-names, but then I'm easily confused!
>>>
>>> None of the existing users have any interrupt-names/clock-names
>>> hence they are not in required. The rzv2m is the only device
>>> that needs them so the driver can get them by name, and hence
>>> it sets minItems: 2
>>
>> They are not required but they can appear. Nothing prevents it, based on
>> your patch.
>
> Ok, but instead of 'else: narrow the number of items', shouldn't I
> set the clock-names/interrupt-names 'minItems: 2' for rzv2m as above?
Yes.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support
2022-07-18 13:44 ` [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support Phil Edworthy
2022-07-18 13:55 ` Krzysztof Kozlowski
@ 2022-07-21 10:58 ` Phil Edworthy
2022-07-21 12:12 ` Geert Uytterhoeven
2 siblings, 0 replies; 9+ messages in thread
From: Phil Edworthy @ 2022-07-21 10:58 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Geert Uytterhoeven
Cc: Greg Kroah-Hartman, Yoshihiro Shimoda, linux-usb@vger.kernel.org,
devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
Biju Das
Hi
On 18 July 2022 14:45 Phil Edworthy wrote:
> Document the RZ/V2M SoC bindings.
> The RZ/V2M SoC is a little different to the R-Car implementations.
> 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.
>
> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
> .../bindings/usb/renesas,usb3-peri.yaml | 81 +++++++++++++++----
> 1 file changed, 66 insertions(+), 15 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
> b/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
> index 9fcf54b10b07..28f785dd2012 100644
> --- a/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
> +++ b/Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
> @@ -11,27 +11,49 @@ maintainers:
>
<snip>
> interrupts:
> - maxItems: 1
> + minItems: 1
> + items:
> + - description: Combined interrupt for DMA, SYS and ERR
> + - description: Dual Role Device (DRD)
Note to reviewers:
I have found two other interrupts related to DRD that need to be added
to the bindings: "Battery Charging" and "Global Purpose Input".
These will be added in the next version.
Rgds
Phil
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support
2022-07-18 13:44 ` [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support Phil Edworthy
2022-07-18 13:55 ` Krzysztof Kozlowski
2022-07-21 10:58 ` Phil Edworthy
@ 2022-07-21 12:12 ` Geert Uytterhoeven
2 siblings, 0 replies; 9+ messages in thread
From: Geert Uytterhoeven @ 2022-07-21 12:12 UTC (permalink / raw)
To: Phil Edworthy
Cc: Rob Herring, Krzysztof Kozlowski, Greg Kroah-Hartman,
Yoshihiro Shimoda, USB list,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Geert Uytterhoeven, Linux-Renesas, Biju Das
Hi Phil,
On Mon, Jul 18, 2022 at 3:45 PM Phil Edworthy <phil.edworthy@renesas.com> wrote:
> Document the RZ/V2M SoC bindings.
> The RZ/V2M SoC is a little different to the R-Car implementations.
> 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.
>
> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Thanks for your patch!
The grant scheme looks good to me, so I'm awaiting your v2, incorporating
the review comments, and the additional interrupts.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-07-21 12:12 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-18 13:44 [PATCH 0/2] Add usb gadget support for RZ/V2M Phil Edworthy
2022-07-18 13:44 ` [PATCH 1/2] dt-bindings: usb: renesas, usb3-peri: Document RZ/V2M r9a09g011 support Phil Edworthy
2022-07-18 13:55 ` Krzysztof Kozlowski
2022-07-18 15:24 ` Phil Edworthy
2022-07-19 6:37 ` Krzysztof Kozlowski
2022-07-19 9:01 ` Phil Edworthy
2022-07-19 9:13 ` Krzysztof Kozlowski
2022-07-21 10:58 ` Phil Edworthy
2022-07-21 12:12 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).