But
$ xxd /proc/device-tree/xhci@3530000/phy-names
00000000: 7573 6232 2d30 0075 7362 322d 3100 7573 usb2-0.usb2-1.us
00000010: 6232 2d32 0075 7362 332d 3000 b2-2.usb3-0.
although I had changed the device tree as x2, x1, x1 like
pci@1,0 {
nvidia,num-lanes = <2>;
status = “okay”;
}
pci@2,0 {
nvidia,num-lanes = <1>;
status = “disable”;
}
pci@3,0 {
nvidia,num-lanes = <1>;
status = “okay”;
}
But as if the setting was invalid:
[ 0.940756] tegra-pwm 32a0000.pwm: PWM clk can sleep in ops
[ 0.941764] tegra-pwm c340000.pwm: PWM clk can sleep in ops
[ 0.943930] tegra-pcie 10003000.pcie-controller: 4x1, 1x1 configuration
[ 0.944880] tegra-pcie 10003000.pcie-controller: PCIE: Enable power rails
[ 0.945214] tegra-pcie 10003000.pcie-controller: probing port 0, using 4 lanes
What should I need to modify in any dts file?
Thanks!
Hi,
Do you pair usb3-2 with usb2-x pins? What is the VBUS pin? Please share more information and your release version( $ head -1 /etc/nv_tegra_release ).
In the top dts file I had configured to overlay the above xusb_padctl@3520000 configuration.
xusb_padctl@3520000 {
ports {
usb3-2 {
nvidia,usb2-companion = <1>;
status = “okay”;
};
usb3-1 {
status = “disable”;
};
usb3-0 {
nvidia,usb2-companion = <2>;
status = “okay”;
};
};
};
Hi,
Yes USB3-2 and USB2-1 formed a type-A with USB_VBUS_EN1 as switch enable.
USB3-0 and USB2-2 formed a type-A with switch always ON.
USB2-0(OTG) had USB_VBUS_EN0 as switch enable.
Hi,
The device tree about USB looks fine. Have you checked if there is TX/RX signals when you plug in a USB3 device? When a USB3 device is connected, it begins USB3 enumeration and if it fails, it falls back to USB2 enumeration. If you can observe the TX/RX signals, it can be an issue in the signal quality and you would need to do compliance test per tuning guide.
Hi,
Why wasn’t there USB3-2 in the list?
~$ xxd /proc/device-tree/xhci@3530000/phy-names
00000000: 7573 6232 2d30 0075 7362 322d 3100 7573 usb2-0.usb2-1.us
00000010: 6232 2d32 0075 7362 332d 3000 b2-2.usb3-0.
Why did PCIe lanes number fail to config?
~$ xxd /proc/device-tree/pcie-controller@10003000/pci@1,0/nvidia,num-lanes
00000000: 0000 0004
In dmesg,
[ 0.833640] tegra-pcie 10003000.pcie-controller: 4x1, 1x1 configuration
[ 0.834573] tegra-pcie 10003000.pcie-controller: PCIE: Enable power rails
[ 0.834911] tegra-pcie 10003000.pcie-controller: probing port 0, using 4 lanes
…
[ 0.837426] tegra-pcie 10003000.pcie-controller: probing port 2, using 1 lanes
I chose UPHY Lane Assignment config #4 in my case,the lanes should be x2,x1,x1 from the developer guide.
Hi,
Yes I had ever been doubted with the overwriting.But in the file I just found x4,x0,x1 once:
fragment-500-pcie-config {
ids = “>=3310-1000-500”;
override@0 {
target = <&tegra_pcie>; overlay {
pci@1,0 {
nvidia,num-lanes = <4>;
};
pci@2,0 {
nvidia,num-lanes = <0>;
};
pci@3,0 {
nvidia,num-lanes = <1>;
};
};
};
};
Should I change it as x2,x1,x1 in this file directly?