Skip to content

Commit 1674431

Browse files
jonhunterthierryreding
authored andcommitted
arm64: tegra: Populate USB Type-C Controller for Jetson AGX Orin
Add the USB Type-C controller that is present on the Jetson AGX Orin board. The ports for the Type-C controller are not populated yet, but will be added later once the USB host and device support for Jetson AGX Orin is enabled. This is based upon a patch from Wayne Chang <waynec@nvidia.com>. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent b903a6c commit 1674431

1 file changed

Lines changed: 78 additions & 0 deletions

File tree

arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2098,11 +2098,21 @@
20982098
usb2-0 {
20992099
mode = "host";
21002100
status = "okay";
2101+
port {
2102+
hs_typec_p1: endpoint {
2103+
remote-endpoint = <&hs_ucsi_ccg_p1>;
2104+
};
2105+
};
21012106
};
21022107

21032108
usb2-1 {
21042109
mode = "host";
21052110
status = "okay";
2111+
port {
2112+
hs_typec_p0: endpoint {
2113+
remote-endpoint = <&hs_ucsi_ccg_p0>;
2114+
};
2115+
};
21062116
};
21072117

21082118
usb2-2 {
@@ -2118,11 +2128,21 @@
21182128
usb3-0 {
21192129
nvidia,usb2-companion = <1>;
21202130
status = "okay";
2131+
port {
2132+
ss_typec_p0: endpoint {
2133+
remote-endpoint = <&ss_ucsi_ccg_p0>;
2134+
};
2135+
};
21212136
};
21222137

21232138
usb3-1 {
21242139
nvidia,usb2-companion = <0>;
21252140
status = "okay";
2141+
port {
2142+
ss_typec_p1: endpoint {
2143+
remote-endpoint = <&ss_ucsi_ccg_p1>;
2144+
};
2145+
};
21262146
};
21272147

21282148
usb3-2 {
@@ -2215,6 +2235,64 @@
22152235
phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3", "p2u-4",
22162236
"p2u-5", "p2u-6", "p2u-7";
22172237
};
2238+
2239+
i2c@c240000 {
2240+
status = "okay";
2241+
typec@8 {
2242+
compatible = "cypress,cypd4226";
2243+
reg = <0x08>;
2244+
interrupt-parent = <&gpio>;
2245+
interrupts = <TEGRA234_MAIN_GPIO(Y, 4) IRQ_TYPE_LEVEL_LOW>;
2246+
firmware-name = "nvidia,jetson-agx-xavier";
2247+
status = "okay";
2248+
#address-cells = <1>;
2249+
#size-cells = <0>;
2250+
ccg_typec_con0: connector@0 {
2251+
compatible = "usb-c-connector";
2252+
reg = <0>;
2253+
label = "USB-C";
2254+
data-role = "host";
2255+
ports {
2256+
#address-cells = <1>;
2257+
#size-cells = <0>;
2258+
port@0 {
2259+
reg = <0>;
2260+
hs_ucsi_ccg_p0: endpoint {
2261+
remote-endpoint = <&hs_typec_p0>;
2262+
};
2263+
};
2264+
port@1 {
2265+
reg = <1>;
2266+
ss_ucsi_ccg_p0: endpoint {
2267+
remote-endpoint = <&ss_typec_p0>;
2268+
};
2269+
};
2270+
};
2271+
};
2272+
ccg_typec_con1: connector@1 {
2273+
compatible = "usb-c-connector";
2274+
reg = <1>;
2275+
label = "USB-C";
2276+
data-role = "dual";
2277+
ports {
2278+
#address-cells = <1>;
2279+
#size-cells = <0>;
2280+
port@0 {
2281+
reg = <0>;
2282+
hs_ucsi_ccg_p1: endpoint {
2283+
remote-endpoint = <&hs_typec_p1>;
2284+
};
2285+
};
2286+
port@1 {
2287+
reg = <1>;
2288+
ss_ucsi_ccg_p1: endpoint {
2289+
remote-endpoint = <&ss_typec_p1>;
2290+
};
2291+
};
2292+
};
2293+
};
2294+
};
2295+
};
22182296
};
22192297

22202298
gpio-keys {

0 commit comments

Comments
 (0)