Skip to content

Commit b93b314

Browse files
andredkrzk
authored andcommitted
arm64: dts: exynos: gs101-oriole: enable USB on this board
Pixel 6 (Oriole) has a USB-C connector that can act as host or device. The USB role is detected dynamically using a MAX77759 TCPCI controller, but since there is no driver for the MAX77759, the role is defaulted to peripheral, without any endpoints / ports. This allows Oriole to be configured as a gadget, e.g. using configfs. As PMIC regulators are not implemented yet, we rely on USB LDOs being enabled by the bootloader. A placeholder regulator is used for now. Signed-off-by: André Draszik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 14d15fc commit b93b314

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

arch/arm64/boot/dts/exynos/google/gs101-oriole.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@
5353
wakeup-source;
5454
};
5555
};
56+
57+
/* TODO: Remove this once PMIC is implemented */
58+
reg_placeholder: regulator-0 {
59+
compatible = "regulator-fixed";
60+
regulator-name = "placeholder_reg";
61+
};
5662
};
5763

5864
&ext_24_5m {
@@ -106,6 +112,24 @@
106112
status = "okay";
107113
};
108114

115+
&usbdrd31 {
116+
status = "okay";
117+
vdd10-supply = <&reg_placeholder>;
118+
vdd33-supply = <&reg_placeholder>;
119+
};
120+
121+
&usbdrd31_dwc3 {
122+
dr_mode = "otg";
123+
usb-role-switch;
124+
role-switch-default-mode = "peripheral";
125+
maximum-speed = "super-speed-plus";
126+
status = "okay";
127+
};
128+
129+
&usbdrd31_phy {
130+
status = "okay";
131+
};
132+
109133
&usi_uart {
110134
samsung,clkreq-on; /* needed for UART mode */
111135
status = "okay";

0 commit comments

Comments
 (0)