Skip to content

Commit 8e135b9

Browse files
MrVanShawn Guo
authored andcommitted
arm64: dts: imx952-evk: Enable USB[1,2]
Enable USB[1,2] and add ptn5110 connected to USB1. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent ba1d167 commit 8e135b9

1 file changed

Lines changed: 76 additions & 0 deletions

File tree

arch/arm64/boot/dts/freescale/imx952-evk.dts

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
/dts-v1/;
77

8+
#include <dt-bindings/usb/pd.h>
89
#include "imx952.dtsi"
910

1011
/ {
@@ -87,6 +88,16 @@
8788
enable-active-high;
8889
off-on-delay-us = <12000>;
8990
};
91+
92+
reg_usb_vbus: regulator-vbus {
93+
compatible = "regulator-fixed";
94+
regulator-name = "USB_VBUS";
95+
regulator-min-microvolt = <5000000>;
96+
regulator-max-microvolt = <5000000>;
97+
gpio = <&pcal6524 3 GPIO_ACTIVE_HIGH>;
98+
enable-active-high;
99+
};
100+
90101
};
91102

92103
&lpi2c2 {
@@ -192,6 +203,40 @@
192203
interrupt-parent = <&gpio5>;
193204
interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
194205
};
206+
207+
ptn5110: tcpc@50 {
208+
compatible = "nxp,ptn5110", "tcpci";
209+
reg = <0x50>;
210+
interrupt-parent = <&gpio5>;
211+
interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
212+
pinctrl-names = "default";
213+
pinctrl-0 = <&pinctrl_ptn5110>;
214+
215+
typec_con: connector {
216+
compatible = "usb-c-connector";
217+
label = "USB-C";
218+
power-role = "dual";
219+
data-role = "dual";
220+
try-power-role = "sink";
221+
source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
222+
sink-pdos = <PDO_FIXED(5000, 0, PDO_FIXED_USB_COMM)>;
223+
op-sink-microwatt = <0>;
224+
self-powered;
225+
226+
ports {
227+
#address-cells = <1>;
228+
#size-cells = <0>;
229+
230+
port@0 {
231+
reg = <0>;
232+
233+
typec1_dr_sw: endpoint {
234+
remote-endpoint = <&usb1_drd_sw>;
235+
};
236+
};
237+
};
238+
};
239+
};
195240
};
196241

197242
&lpuart1 {
@@ -219,6 +264,31 @@
219264
status = "okay";
220265
};
221266

267+
&usb1 {
268+
dr_mode = "otg";
269+
hnp-disable;
270+
srp-disable;
271+
adp-disable;
272+
usb-role-switch;
273+
disable-over-current;
274+
samsung,picophy-pre-emp-curr-control = <3>;
275+
samsung,picophy-dc-vol-level-adjust = <7>;
276+
status = "okay";
277+
278+
port {
279+
usb1_drd_sw: endpoint {
280+
remote-endpoint = <&typec1_dr_sw>;
281+
};
282+
};
283+
};
284+
285+
&usb2 {
286+
dr_mode = "host";
287+
disable-over-current;
288+
vbus-supply = <&reg_usb_vbus>;
289+
status = "okay";
290+
};
291+
222292
&usdhc1 {
223293
pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep";
224294
pinctrl-0 = <&pinctrl_usdhc1>;
@@ -307,6 +377,12 @@
307377
>;
308378
};
309379

380+
pinctrl_ptn5110: ptn5110grp {
381+
fsl,pins = <
382+
IMX952_PAD_GPIO_IO34__WAKEUPMIX_TOP_GPIO5_IO_14 0x31e
383+
>;
384+
};
385+
310386
pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
311387
fsl,pins = <
312388
IMX952_PAD_SD2_RESET_B__WAKEUPMIX_TOP_GPIO3_IO_7 0x31e

0 commit comments

Comments
 (0)