Skip to content

Commit 2faf4eb

Browse files
nxpfrankliShawn Guo
authored andcommitted
arm64: dts: freescale: imx8qxp-mek: enable cadence usb3
Enable USB3 controller, phy and typec related nodes. Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent a8bd7f1 commit 2faf4eb

1 file changed

Lines changed: 85 additions & 0 deletions

File tree

arch/arm64/boot/dts/freescale/imx8qxp-mek.dts

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/dts-v1/;
77

88
#include "imx8qxp.dtsi"
9+
#include <dt-bindings/usb/pd.h>
910

1011
/ {
1112
model = "Freescale i.MX8QXP MEK";
@@ -28,6 +29,21 @@
2829
gpio = <&lsio_gpio4 19 GPIO_ACTIVE_HIGH>;
2930
enable-active-high;
3031
};
32+
33+
gpio-sbu-mux {
34+
compatible = "gpio-sbu-mux";
35+
pinctrl-names = "default";
36+
pinctrl-0 = <&pinctrl_typec_mux>;
37+
select-gpios = <&lsio_gpio5 9 GPIO_ACTIVE_HIGH>;
38+
enable-gpios = <&pca9557_a 7 GPIO_ACTIVE_LOW>;
39+
orientation-switch;
40+
41+
port {
42+
usb3_data_ss: endpoint {
43+
remote-endpoint = <&typec_con_ss>;
44+
};
45+
};
46+
};
3147
};
3248

3349
&dsp {
@@ -127,6 +143,42 @@
127143
};
128144
};
129145
};
146+
147+
ptn5110: tcpc@50 {
148+
compatible = "nxp,ptn5110";
149+
pinctrl-names = "default";
150+
pinctrl-0 = <&pinctrl_typec>;
151+
reg = <0x50>;
152+
interrupt-parent = <&lsio_gpio1>;
153+
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
154+
155+
port {
156+
typec_dr_sw: endpoint {
157+
remote-endpoint = <&usb3_drd_sw>;
158+
};
159+
};
160+
161+
usb_con1: connector {
162+
compatible = "usb-c-connector";
163+
label = "USB-C";
164+
power-role = "source";
165+
data-role = "dual";
166+
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
167+
168+
ports {
169+
#address-cells = <1>;
170+
#size-cells = <0>;
171+
172+
port@1 {
173+
reg = <1>;
174+
typec_con_ss: endpoint {
175+
remote-endpoint = <&usb3_data_ss>;
176+
};
177+
};
178+
};
179+
};
180+
};
181+
130182
};
131183

132184
&lpuart0 {
@@ -204,6 +256,27 @@
204256
status = "okay";
205257
};
206258

259+
&usb3_phy {
260+
status = "okay";
261+
};
262+
263+
&usbotg3 {
264+
status = "okay";
265+
};
266+
267+
&usbotg3_cdns3 {
268+
dr_mode = "otg";
269+
usb-role-switch;
270+
status = "okay";
271+
272+
port {
273+
usb3_drd_sw: endpoint {
274+
remote-endpoint = <&typec_dr_sw>;
275+
};
276+
};
277+
};
278+
279+
207280
&vpu {
208281
compatible = "nxp,imx8qxp-vpu";
209282
status = "okay";
@@ -267,6 +340,18 @@
267340
>;
268341
};
269342

343+
pinctrl_typec: typecgrp {
344+
fsl,pins = <
345+
IMX8QXP_SPI2_SCK_LSIO_GPIO1_IO03 0x06000021
346+
>;
347+
};
348+
349+
pinctrl_typec_mux: typecmuxgrp {
350+
fsl,pins = <
351+
IMX8QXP_ENET0_REFCLK_125M_25M_LSIO_GPIO5_IO09 0x60
352+
>;
353+
};
354+
270355
pinctrl_usdhc1: usdhc1grp {
271356
fsl,pins = <
272357
IMX8QXP_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041

0 commit comments

Comments
 (0)