| From 85deb4a27b3ffa9810780cff62a617922c99c842 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Thu, 4 Dec 2025 21:27:21 +0000 |
| Subject: arm64: tegra: smaug: Add usb-role-switch support |
| |
| From: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt> |
| |
| [ Upstream commit dfa93788dd8b2f9c59adf45ecf592082b1847b7b ] |
| |
| The USB2 port on Smaug is configured for OTG operation but lacked the |
| required 'usb-role-switch' property, leading to a failed probe and a |
| non-functioning USB port. Add the property along with setting the default |
| role to host. |
| |
| Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt> |
| Signed-off-by: Thierry Reding <treding@nvidia.com> |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 2 ++ |
| 1 file changed, 2 insertions(+) |
| |
| diff --git a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts |
| index 53805555dd2d2..a75c6c1928a4a 100644 |
| --- a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts |
| +++ b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts |
| @@ -1724,6 +1724,8 @@ usb2-0 { |
| status = "okay"; |
| vbus-supply = <&usbc_vbus>; |
| mode = "otg"; |
| + usb-role-switch; |
| + role-switch-default-mode = "host"; |
| }; |
| |
| usb3-0 { |
| -- |
| 2.51.0 |
| |