|
5 | 5 |
|
6 | 6 | /dts-v1/; |
7 | 7 |
|
| 8 | +#include <dt-bindings/usb/pd.h> |
8 | 9 | #include "imx952.dtsi" |
9 | 10 |
|
10 | 11 | / { |
|
87 | 88 | enable-active-high; |
88 | 89 | off-on-delay-us = <12000>; |
89 | 90 | }; |
| 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 | + |
90 | 101 | }; |
91 | 102 |
|
92 | 103 | &lpi2c2 { |
|
192 | 203 | interrupt-parent = <&gpio5>; |
193 | 204 | interrupts = <16 IRQ_TYPE_LEVEL_LOW>; |
194 | 205 | }; |
| 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 | + }; |
195 | 240 | }; |
196 | 241 |
|
197 | 242 | &lpuart1 { |
|
219 | 264 | status = "okay"; |
220 | 265 | }; |
221 | 266 |
|
| 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 = <®_usb_vbus>; |
| 289 | + status = "okay"; |
| 290 | +}; |
| 291 | + |
222 | 292 | &usdhc1 { |
223 | 293 | pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; |
224 | 294 | pinctrl-0 = <&pinctrl_usdhc1>; |
|
307 | 377 | >; |
308 | 378 | }; |
309 | 379 |
|
| 380 | + pinctrl_ptn5110: ptn5110grp { |
| 381 | + fsl,pins = < |
| 382 | + IMX952_PAD_GPIO_IO34__WAKEUPMIX_TOP_GPIO5_IO_14 0x31e |
| 383 | + >; |
| 384 | + }; |
| 385 | + |
310 | 386 | pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { |
311 | 387 | fsl,pins = < |
312 | 388 | IMX952_PAD_SD2_RESET_B__WAKEUPMIX_TOP_GPIO3_IO_7 0x31e |
|
0 commit comments