arm64: dts: imx8mp: Simplify USB C on DH i.MX8M Plus DHCOM PDK3
authorMarek Vasut <marex@denx.de>
Thu, 31 Aug 2023 19:55:09 +0000 (21:55 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 25 Sep 2023 01:19:28 +0000 (09:19 +0800)
Remove the connector as well as all the links and only connect the
PTN5150 with xHCI controller. This is sufficient to implement the
role switching.

Furthermore, this makes resume work without hanging. Without this
patch, the platform would hang on resume of 'connector'.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-dhcom-pdk3.dts

index 31d85d5871c91afac7247474d44a2fbf8843496c..0156c5c1b600bd3e5c634e809c0272849b452f99 100644 (file)
                clock-frequency = <25000000>;
        };
 
-       connector {
-               compatible = "usb-c-connector";
-               label = "USB-C";
-               data-role = "dual";
-
-               ports {
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-
-                       port@0 {
-                               reg = <0>;
-
-                               usb_c_0_hs_ep: endpoint {
-                                       remote-endpoint = <&dwc3_0_hs_ep>;
-                               };
-                       };
-
-                       port@1 {
-                               reg = <1>;
-
-                               usb_c_0_ss_ep: endpoint {
-                                       remote-endpoint = <&ptn5150_in_ep>;
-                               };
-                       };
-               };
-       };
-
        gpio-keys {
                compatible = "gpio-keys";
 
                                pinctrl-names = "default";
                                pinctrl-0 = <&pinctrl_ptn5150>;
 
-                               ports {
-                                       #address-cells = <1>;
-                                       #size-cells = <0>;
-
-                                       port@0 {
-                                               reg = <0>;
-
-                                               ptn5150_in_ep: endpoint {
-                                                       remote-endpoint = <&usb_c_0_ss_ep>;
-                                               };
-                                       };
-
-                                       port@1 {
-                                               reg = <1>;
+                               port {
 
-                                               ptn5150_out_ep: endpoint {
-                                                       remote-endpoint = <&dwc3_0_ss_ep>;
-                                               };
+                                       ptn5150_out_ep: endpoint {
+                                               remote-endpoint = <&dwc3_0_ep>;
                                        };
                                };
                        };
        usb-role-switch;
 
        port {
-               #address-cells = <1>;
-               #size-cells = <0>;
-
-               dwc3_0_hs_ep: endpoint@0 {
-                       reg = <0>;
-                       remote-endpoint = <&usb_c_0_hs_ep>;
-               };
-
-               dwc3_0_ss_ep: endpoint@1 {
-                       reg = <1>;
+               dwc3_0_ep: endpoint {
                        remote-endpoint = <&ptn5150_out_ep>;
                };
        };