Linux-PHY Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Wayne Chang <waynec@nvidia.com>
To: Conor Dooley <conor@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 1/8] dt-bindings: phy: tegra-xusb: Add support for Tegra264
Date: Mon, 31 Aug 2026 18:28:01 +0000	[thread overview]
Message-ID: <56187858-3096-4db9-8d1a-6fb7e72f2eb3@nvidia.com> (raw)
In-Reply-To: <20260629-baffling-gag-05e20c9d925b@spud>

Hi Conor,

Thanks for the review and sorry for the late reply.

A fallback is not suitable here because Tegra264 XUSB padctl is not
programming-compatible with Tegra234 (or Tegra194), even though the
DT property set is the same.

The driver selects per-SoC data from the compatible string. Tegra264
differs from Tegra234 in at least:

- Tegra264 uses hardware tracking mode (trk_hw_mode), while Tegra234 
disables it.
- On Tegra234, CYA_TRK_CODE_UPDATE_ON_IDLE needs to be cleared so that 
the calibration
values can be captured while the controller is still in reset. This is 
not required on
Tegra264, where the corresponding handling is not even present.

A fallback of "nvidia,tegra234-xusb-padctl" would let an OS that only
knows Tegra234 probe Tegra264 with the wrong programming sequence.

That is also why Tegra234 did not fall back to Tegra194 in this same
binding: the DT schema is shared, but each generation needs its own
compatible.

Thanks,
Wayne


On 6/29/26 23:19, Conor Dooley wrote:
> On Mon, Jun 29, 2026 at 05:33:59PM +0800, Wayne Chang wrote:
>> Add the compatible string for the Tegra264 XUSB PHY.
>>
>> Signed-off-by: Wayne Chang<waynec@nvidia.com>
> Why is a fallback compatible not suitable here?
>
>
> Thanks,
> Conor.
>
>> ---
>>   .../devicetree/bindings/phy/nvidia,tegra194-xusb-padctl.yaml     | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/Documentation/devicetree/bindings/phy/nvidia,tegra194-xusb-padctl.yaml b/Documentation/devicetree/bindings/phy/nvidia,tegra194-xusb-padctl.yaml
>> index d8de900a4fce..f6fe3c90b5b0 100644
>> --- a/Documentation/devicetree/bindings/phy/nvidia,tegra194-xusb-padctl.yaml
>> +++ b/Documentation/devicetree/bindings/phy/nvidia,tegra194-xusb-padctl.yaml
>> @@ -45,6 +45,7 @@ properties:
>>       enum:
>>         - nvidia,tegra194-xusb-padctl
>>         - nvidia,tegra234-xusb-padctl
>> +      - nvidia,tegra264-xusb-padctl
>>   
>>     reg:
>>       items:
>> -- 
>> 2.25.1
>>

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2026-08-31 18:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-29  9:33 [PATCH 0/8] Enable USB host functions on Jetson AGX Thor Wayne Chang
2026-06-29  9:33 ` [PATCH 1/8] dt-bindings: phy: tegra-xusb: Add support for Tegra264 Wayne Chang
2026-06-29 15:19   ` Conor Dooley
2026-08-31 18:28     ` Wayne Chang [this message]
2026-06-29  9:34 ` [PATCH 2/8] dt-bindings: usb: Add Tegra264 XUSB host support Wayne Chang
2026-06-29 15:21   ` Conor Dooley
2026-08-31 18:35     ` Wayne Chang
2026-06-29  9:34 ` [PATCH 3/8] arm64: tegra: Enable XUSB host function on Jetson AGX Thor Wayne Chang
2026-06-29  9:44   ` sashiko-bot
2026-06-29  9:34 ` [PATCH 4/8] phy: tegra: xusb: Use devm_clk_get_optional to fetch USB2 tracking clock Wayne Chang
2026-06-29  9:46   ` sashiko-bot
2026-06-29  9:34 ` [PATCH 5/8] phy: tegra: xusb: Increase timeout for USB2_TRK_COMPLETED polling Wayne Chang
2026-06-29  9:34 ` [PATCH 6/8] phy: tegra: xusb: Add Tegra264 support Wayne Chang
2026-06-29  9:45   ` sashiko-bot
2026-06-29  9:34 ` [PATCH 7/8] usb: host: xhci-tegra: Skip MBOX MSG_ENABLED on Tegra264 Wayne Chang
2026-06-29  9:34 ` [PATCH 8/8] usb: host: xhci-tegra: Add Tegra264 XHCI support Wayne Chang
2026-06-29  9:47   ` sashiko-bot

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=56187858-3096-4db9-8d1a-6fb7e72f2eb3@nvidia.com \
    --to=waynec@nvidia.com \
    --cc=conor+dt@kernel.org \
    --cc=conor@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jonathanh@nvidia.com \
    --cc=krzk+dt@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