MLK-16013-38 ARM64: imx8mq-evk: add typec controller dts node
authorLi Jun <jun.li@nxp.com>
Thu, 27 Jul 2017 15:14:52 +0000 (23:14 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:22 +0000 (15:36 -0500)
Add nxp typec&PD controller ptn5110 dts node, which is a tcpci compliant
typec port controller.

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

index 2600c4a..82611eb 100644 (file)
                        >;
                };
 
+               pinctrl_typec: typecgrp {
+                       fsl,pins = <
+                               MX8MQ_IOMUXC_NAND_RE_B_GPIO3_IO15       0x16
+                               MX8MQ_IOMUXC_NAND_CE2_B_GPIO3_IO3       0x17059
+                       >;
+               };
+
                pinctrl_uart1: uart1grp {
                        fsl,pins = <
                                MX8MQ_IOMUXC_UART1_RXD_UART1_DCE_RX             0x79
                        };
                };
        };
+
+       ptn5110@50 {
+               compatible = "usb,tcpci";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_typec>;
+               reg = <0x50>;
+               interrupt-parent = <&gpio3>;
+               interrupts = <3 8>;
+               ss-sel-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
+               src-pdos = <0x380190c8>;
+               snk-pdos = <0x380190c8 0x3802d0c8>;
+               max-snk-mv = <9000>;
+               max-snk-ma = <1000>;
+               op-snk-mw = <9000>;
+               port-type = "drp";
+               default-role = "sink";
+       };
 };
 
 &hdmi {