MLK-21478-18 arm64: dts: imx8qm-mek-domu-dpu1: use connector sub-node
authorLi Jun <jun.li@nxp.com>
Wed, 17 Apr 2019 05:47:14 +0000 (13:47 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 18 Apr 2019 00:00:38 +0000 (03:00 +0300)
As the new kernel introduces the standard usb connector properties,
so use connector sub-node for typec.

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

index 97becce..f59982d 100644 (file)
@@ -22,6 +22,7 @@
 #include <dt-bindings/pinctrl/pads-imx8qm.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/thermal/thermal.h>
+#include <dt-bindings/usb/pd.h>
 
 / {
        model = "Freescale i.MX8QM DOMU";
        };
 
        typec_ptn5110: typec@50 {
-               compatible = "usb,tcpci";
+               compatible = "nxp,ptn5110";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_typec>;
                reg = <0x51>;
                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>;
-               port-type = "drp";
-               sink-disable;
-               default-role = "source";
                status = "okay";
+
+               usb_con1: connector {
+                       compatible = "usb-c-connector";
+                       label = "USB-C";
+                       power-role = "source";
+                       data-role = "dual";
+                       source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
+               };
        };
 };