Devicetree
 help / color / mirror / Atom feed
From: Wayne Chang <waynec@nvidia.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: "mathias.nyman@intel.com" <mathias.nyman@intel.com>,
	"vkoul@kernel.org" <vkoul@kernel.org>,
	"neil.armstrong@linaro.org" <neil.armstrong@linaro.org>,
	"robh@kernel.org" <robh@kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
	"thierry.reding@gmail.com" <thierry.reding@gmail.com>,
	Jon Hunter <jonathanh@nvidia.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-phy@lists.infradead.org" <linux-phy@lists.infradead.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [PATCH V2 2/8] dt-bindings: usb: Add Tegra264 XUSB host support
Date: Thu, 3 Sep 2026 07:11:05 +0000	[thread overview]
Message-ID: <babe3a6d-987a-4a27-9270-dac214b7b701@nvidia.com> (raw)
In-Reply-To: <20260901-solid-uber-coati-381d2d@quoll>

Hi Krzysztof,

Thanks for the review. I'll split the changes into three parts and 
address all the comments.
- phy: tegra: xusb: dt-bindings/phy + drivers/phy/tegra
- usb: host: xhci-tegra + its dt-bindings/usb
- arm64: DTS enablement

thanks,
Wayne.

On 9/1/26 18:10, Krzysztof Kozlowski wrote:
> External email: Use caution opening links or attachments
>
>
> On Tue, Sep 01, 2026 at 02:58:29AM +0800, Wayne Chang wrote:
>> Extend the Tegra234 XUSB host binding to cover Tegra264:
>>
>> - Add nvidia,tegra264-xusb compatible string
>> - Document optional USB wake interrupts for Tegra264
>> - Document Tegra264 PMC wake event to port mapping
>> - Allow up to five IOMMU specifiers for the additional XUSB host
>>    stream IDs
>>
>> Signed-off-by: Wayne Chang <waynec@nvidia.com>
> Why are USB patches mixed with DTS and phy ones? That's like three
> separate subsystems, of which Greg explicitly said many, many times he
> takes everything or nothing. Please read submitting patches in DT.
>
>
>
>> ---
>> V1 -> V2: Property definitions are back at the top level with the widest
>> constraints, The allOf conditional only tightens Tegra234 to interrupts
>> maxItems 9 and iommus maxItems 1.
>>
>>   .../bindings/usb/nvidia,tegra234-xusb.yaml    | 35 ++++++++++++++++---
>>   1 file changed, 30 insertions(+), 5 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/usb/nvidia,tegra234-xusb.yaml b/Documentation/devicetree/bindings/usb/nvidia,tegra234-xusb.yaml
>> index ec0993497fbb..d63f0db4224c 100644
>> --- a/Documentation/devicetree/bindings/usb/nvidia,tegra234-xusb.yaml
>> +++ b/Documentation/devicetree/bindings/usb/nvidia,tegra234-xusb.yaml
>> @@ -17,7 +17,9 @@ description: |
>>
>>   properties:
>>     compatible:
>> -    const: nvidia,tegra234-xusb
>> +    enum:
>> +      - nvidia,tegra234-xusb
>> +      - nvidia,tegra264-xusb
>>
>>     reg:
>>       items:
>> @@ -43,6 +45,7 @@ properties:
>>         - description: USB wake event 4
>>         - description: USB wake event 5
>>         - description: USB wake event 6
>> +      - description: USB wake event 7
>>       description: |
>>         The first two interrupts are required for the USB host controller. The
>>         remaining USB wake event interrupts are optional. Each USB wake event is
>> @@ -50,10 +53,9 @@ properties:
>>         platform. The USB host controller can function even if no wake-up events
>>         are defined. The USB wake event interrupts are handled by the Tegra PMC;
>>         hence, the interrupt controller for these is the PMC and the interrupt
>> -      IDs correspond to the PMC wake event IDs. A complete list of wake event
>> -      IDs is provided below, and this information is also present in the Tegra
>> -      TRM document.
>> +      IDs correspond to the PMC wake event IDs.
>>
>> +      Tegra234 PMC wake events:
>>           PMC wake-up 76 for USB3 port 0 wakeup
>>           PMC wake-up 77 for USB3 port 1 wakeup
>>           PMC wake-up 78 for USB3 port 2 and port 3 wakeup
>> @@ -62,6 +64,16 @@ properties:
>>           PMC wake-up 81 for USB2 port 2 wakeup
>>           PMC wake-up 82 for USB2 port 3 wakeup
>>
>> +      Tegra264 PMC wake events:
>> +        PMC wake-up 79 for USB3 port 0 wakeup
>> +        PMC wake-up 80 for USB3 port 1 wakeup
>> +        PMC wake-up 81 for USB3 port 2 wakeup
>> +        PMC wake-up 82 for USB3 port 3 wakeup
>> +        PMC wake-up 83 for USB2 port 0 wakeup
>> +        PMC wake-up 84 for USB2 port 1 wakeup
>> +        PMC wake-up 85 for USB2 port 2 wakeup
>> +        PMC wake-up 86 for USB2 port 3 wakeup
>> +
>>     clocks:
>>       items:
>>         - description: XUSB host clock
>> @@ -97,7 +109,8 @@ properties:
>>         - const: write
>>
>>     iommus:
>> -    maxItems: 1
>> +    minItems: 1
>> +    maxItems: 5
> You should list the items instead. Flexible array means now the order
> have a meaning.
>
>>     nvidia,xusb-padctl:
>>       $ref: /schemas/types.yaml#/definitions/phandle
>> @@ -137,6 +150,18 @@ properties:
>>   allOf:
>>     - $ref: usb-xhci.yaml
>>
>> +  - if:
>> +      properties:
>> +        compatible:
>> +          contains:
>> +            const: nvidia,tegra234-xusb
>> +    then:
>> +      properties:
>> +        interrupts:
>> +          maxItems: 9
>> +        iommus:
>> +          maxItems: 1
> And the new device has flexible interrpts and iommus?
>
> Best regards,
> Krzysztof
>
>


  reply	other threads:[~2026-09-03  7:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31 18:58 [PATCH V2 0/8] Enable USB host functions on Jetson AGX Thor Wayne Chang
2026-08-31 18:58 ` [PATCH V2 1/8] dt-bindings: phy: tegra-xusb: Add support for Tegra264 Wayne Chang
2026-09-01 10:06   ` Krzysztof Kozlowski
2026-09-03  7:04     ` Wayne Chang
2026-08-31 18:58 ` [PATCH V2 2/8] dt-bindings: usb: Add Tegra264 XUSB host support Wayne Chang
2026-09-01 10:10   ` Krzysztof Kozlowski
2026-09-03  7:11     ` Wayne Chang [this message]
2026-09-03  8:07       ` Krzysztof Kozlowski
2026-09-03  8:13         ` Wayne Chang
2026-08-31 18:58 ` [PATCH V2 3/8] arm64: tegra: Enable XUSB host function on Jetson AGX Thor Wayne Chang
2026-08-31 21:28   ` sashiko-bot
2026-08-31 18:58 ` [PATCH V2 4/8] phy: tegra: xusb: Use devm_clk_get_optional to fetch USB2 tracking clock Wayne Chang
2026-08-31 21:38   ` sashiko-bot
2026-08-31 18:58 ` [PATCH V2 5/8] phy: tegra: xusb: Increase timeout for USB2_TRK_COMPLETED polling Wayne Chang
2026-08-31 18:58 ` [PATCH V2 6/8] phy: tegra: xusb: Add Tegra264 support Wayne Chang
2026-08-31 18:58 ` [PATCH V2 7/8] usb: host: xhci-tegra: Skip MBOX MSG_ENABLED on Tegra264 Wayne Chang
2026-08-31 18:58 ` [PATCH V2 8/8] usb: host: xhci-tegra: Add Tegra264 XHCI support Wayne Chang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=babe3a6d-987a-4a27-9270-dac214b7b701@nvidia.com \
    --to=waynec@nvidia.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jonathanh@nvidia.com \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@intel.com \
    --cc=neil.armstrong@linaro.org \
    --cc=robh@kernel.org \
    --cc=thierry.reding@gmail.com \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox