MLK-16976-3 ARM64: dts: fsl-imx8qm-mek: add USB support
authorPeter Chen <peter.chen@nxp.com>
Tue, 28 Nov 2017 06:09:23 +0000 (14:09 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:35 +0000 (14:50 -0500)
- USB2 Dual-role support, and below rework is needed:
Remove R295, R296, R122, and install R116, R117, R127

- USB3 Dual-role support

BuildInfo:
- SCFW 245582b, IMX-MKIMAGE 0ad6069a, ATF 6bd98a3
- U-Boot 2017.03-imx_v2017.03+gfa65b0a

Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
arch/arm64/boot/dts/freescale/fsl-imx8qm-mek.dts

index c3f805a..35dd61f 100644 (file)
                        >;
                };
 
+               pinctrl_typec: typecgrp {
+                       fsl,pins = <
+                               SC_P_QSPI1A_SS0_B_LSIO_GPIO4_IO19       0x60
+                               SC_P_USB_SS3_TC3_LSIO_GPIO4_IO06        0x60
+                               SC_P_QSPI1A_DATA0_LSIO_GPIO4_IO26       0x00000021
+                       >;
+               };
+
+               pinctrl_usbotg1: usbotg1 {
+                       fsl,pins = <
+                               SC_P_USB_SS3_TC0_CONN_USB_OTG1_PWR              0x00000021
+                       >;
+               };
+
                pinctrl_usdhc1: usdhc1grp {
                        fsl,pins = <
                                SC_P_EMMC0_CLK_CONN_EMMC0_CLK           0x06000041
        status = "okay";
 };
 
+&usbotg1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_usbotg1>;
+       srp-disable;
+       hnp-disable;
+       adp-disable;
+       power-polarity-active-high;
+       disable-over-current;
+       status = "okay";
+};
+
+&usbotg3 {
+       dr_mode = "otg";
+       extcon = <&typec_ptn5110>;
+       status = "okay";
+};
+
 &usdhc1 {
        pinctrl-names = "default", "state_100mhz", "state_200mhz";
        pinctrl-0 = <&pinctrl_usdhc1>;
                reg = <0x60>;
                interrupt-open-drain;
        };
+
+       typec_ptn5110: typec@50 {
+               compatible = "usb,tcpci";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_typec>;
+               reg = <0x51>;
+               interrupt-parent = <&gpio4>;
+               interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
+               ss-sel-gpios = <&gpio4 6 GPIO_ACTIVE_LOW>;
+               reset-gpios = <&gpio4 19 GPIO_ACTIVE_HIGH>;
+               src-pdos = <0x380190c8 0x3803c0c8>;
+               snk-pdos = <0x380190c8>;
+               max-snk-mv = <9000>;
+               max-snk-ma = <1000>;
+               op-snk-mw = <9000>;
+               port-type = "drp";
+               sink-disable;
+               default-role = "source";
+               status = "okay";
+       };
 };
 
 &i2c1 {