From patchwork Thu Aug 31 19:55:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13371838 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5E3A8C83F2F for ; Thu, 31 Aug 2023 19:56:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=QPSVruhDku4q/6Yc3p3GHq14zU3tM0uDzCt9SBAk5gQ=; b=vKHJ1cUNxnlERB s71p5WfIhOugmZyF+5WYI+3zi3/YgNqIaxhIVZh9ZlN9usZ4I+DAdKrPrYsd452QNdwKqHRExZOhi k7V3yrCV0vGLYoItLntspIJ7SexrtNISoIRXJ90oTbfwUjb0C+wlI/NoVcw5Cag12XDOBdsK0ad10 +TiomZ8JqI5GCrmqDx3hMW8xqSuVh/Az0AU6PdPJJ2s7PKX4rpTNrkfIlphQm1A5S2sfXm++WILVl ZgqXVKaVVjuancFuzntN0k351WOpZ1cs0xNdnkbX9s7vOQCAysBfDTMnbIqa9QPO1jIMR8Faw2Hkq LyKjFOrqoAye0IZOGjLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qbnlH-00Fm4O-2i; Thu, 31 Aug 2023 19:55:27 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qbnlE-00Fm3r-2k for linux-arm-kernel@lists.infradead.org; Thu, 31 Aug 2023 19:55:26 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 8DE6E86519; Thu, 31 Aug 2023 21:55:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1693511721; bh=EodmTQitUjpIfdmoqpgmoJiqjNshx8b9GgR+krLe03Y=; h=From:To:Cc:Subject:Date:From; b=PCgWk0Gz6paJVAfpK5yG0fw6BEaltsI/7zrD/qiIog18Zvesfi6mj12B4wXHeY9w/ OQE5er/vhkrAip/6TTLT5DQ3CYPfVTUFxlW0qDFOphXU4YrFgfR+VILy60BKwd2qn3 icNnEPwzQKB384e+6aI9O3B5511oFZObDcnpZFEdY7ZVV78s8rELcTobCKRc+lYqK+ kWrLvl74DIi6PIq0g/qG3/22usgTSqszgKqeJ4YQIYrhbxBWUtvC0ebQJ5WtCI172z tzvdoh9KswvvfNutSIaGM3dokYDebzjT3vYvEAa1pb8noe4dSB42kM1ZZpS+P6uWJH qf+N1ld9rQ+mg== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Conor Dooley , Fabio Estevam , Frieder Schrempf , Geert Uytterhoeven , Krzysztof Kozlowski , Magnus Damm , NXP Linux Team , Peng Fan , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org Subject: [PATCH] arm64: dts: imx8mp: Simplify USB C on DH i.MX8M Plus DHCOM PDK3 Date: Thu, 31 Aug 2023 21:55:09 +0200 Message-Id: <20230831195509.196883-1-marex@denx.de> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230831_125525_275233_ED8DEEBE X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- Cc: Conor Dooley Cc: Fabio Estevam Cc: Frieder Schrempf Cc: Geert Uytterhoeven Cc: Krzysztof Kozlowski Cc: Magnus Damm Cc: Marek Vasut Cc: NXP Linux Team Cc: Peng Fan Cc: Pengutronix Kernel Team Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- .../boot/dts/freescale/imx8mp-dhcom-pdk3.dts | 58 ++----------------- 1 file changed, 4 insertions(+), 54 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-dhcom-pdk3.dts b/arch/arm64/boot/dts/freescale/imx8mp-dhcom-pdk3.dts index a5d74b06f732d..b749e28e5ede5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-dhcom-pdk3.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-dhcom-pdk3.dts @@ -35,33 +35,6 @@ clk_xtal25: clock-xtal25 { 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"; @@ -202,24 +175,10 @@ typec@3d { 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>; }; }; }; @@ -306,16 +265,7 @@ &usb_dwc3_0 { 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>; }; };