From mboxrd@z Thu Jan 1 00:00:00 1970 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 DDD27C433FE for ; Mon, 24 Oct 2022 01:32:33 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sKGrdtE1YifavHhu/YP+QgCBHaTXpPvqnsDjMB7gc1Y=; b=QRaG3TPy6cbK7f NKHycIjIovVJi9j1So1hV6DJZ0Ebd+wB7QEZ7Y4GNeYaVac7kJdUkXgZitqdofSGYtn7T7EQe0+iO Oih6tyhXnRMGpaWQoWhWX9b2RpMogweicRw/oDS/UJWkLC5FJ5JbKTjZvxrSl3hm1zVL4n34rd7ye XXm3snLdzVfE2pTcw/WZIQLKZwuxV0zVUuxcvGsBqns0NT4anR9cVn4Sm9x4qupnSklYNdtKyRDkR HedBmnV0lib6i804tc36hHO2vgRdEaQS92DvgyIpoQWNGU559oMC9b9l57hkwQt6qNnlV19SrilAd ixBl6D1aCz5ZAB/27Tlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ommJU-00GgMh-0r; Mon, 24 Oct 2022 01:31:36 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ommJQ-00GgLz-JO for linux-arm-kernel@lists.infradead.org; Mon, 24 Oct 2022 01:31:34 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F40A3B80880; Mon, 24 Oct 2022 01:31:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F41CCC433C1; Mon, 24 Oct 2022 01:31:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666575089; bh=EdKWi/C7dX/2UjgyYSGTmW+CaF6DQNSxi7iImWcA4SA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cxC19Bh7GUnIHD7td0XYzsJeW5HFi3LzUpVNqli4BNPq1bf8eT8QcSG/NUVx+dzph 2Kg0b9UpS0iLc0++0HW3G4F9b9pAgii/0f85icnD4er4Ltu8BqMmNYkDExwXcCdrZs c/VHlf94NoxHr3exLDx5GXLFoV+spG7qtXiHhPptVEppt8Qk3hGI9CVvZ+estXczVU aodERzLNEtVdWTCVDYLAyROHsTKeedCP18g+AgCug8FpoWSVivzCQ+2+UKIV+EhMNL wTtDfBMTqqPyoGk5Zw8VoeFMA1bCSxIL4fN8zBdZ7Hda6c+JC814WXOjAJYyLRHLjL /SWpO0Cz8ZIow== Date: Mon, 24 Oct 2022 09:31:23 +0800 From: Shawn Guo To: Alexander Stein Cc: Rob Herring , Krzysztof Kozlowski , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/1] arm64: dts: imx8mm-tqma8mqml-mba8mx: Fix USB DR Message-ID: <20221024013123.GV125525@dragon> References: <20220926112622.2912885-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220926112622.2912885-1-alexander.stein@ew.tq-group.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221023_183132_802380_6E618696 X-CRM114-Status: GOOD ( 18.22 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Sep 26, 2022 at 01:26:22PM +0200, Alexander Stein wrote: > extcon does not work somehow, so switch to usb-role-switch instead. So extcon was added without testing? Shawn > > Fixes: dfcd1b6f7620 ("arm64: dts: freescale: add initial device tree for TQMa8MQML with i.MX8MM") > Signed-off-by: Alexander Stein > --- > .../dts/freescale/imx8mm-tqma8mqml-mba8mx.dts | 32 +++++++++++++++---- > 1 file changed, 26 insertions(+), 6 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts b/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts > index bfb44630da6b..56323c989d55 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts > @@ -34,11 +34,25 @@ reg_usdhc2_vmmc: regulator-vmmc { > off-on-delay-us = <12000>; > }; > > - extcon_usbotg1: extcon-usbotg1 { > - compatible = "linux,extcon-usb-gpio"; > + connector { > + compatible = "gpio-usb-b-connector", "usb-b-connector"; > + type = "micro"; > + label = "X19"; > pinctrl-names = "default"; > - pinctrl-0 = <&pinctrl_usb1_extcon>; > - id-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>; > + pinctrl-0 = <&pinctrl_usb1_connector>; > + id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + usb_dr_connector: endpoint { > + remote-endpoint = <&usb1_drd_sw>; > + }; > + }; > + }; > }; > }; > > @@ -106,13 +120,19 @@ &usbotg1 { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_usbotg1>; > dr_mode = "otg"; > - extcon = <&extcon_usbotg1>; > srp-disable; > hnp-disable; > adp-disable; > power-active-high; > over-current-active-low; > + usb-role-switch; > status = "okay"; > + > + port { > + usb1_drd_sw: endpoint { > + remote-endpoint = <&usb_dr_connector>; > + }; > + }; > }; > > &usbotg2 { > @@ -242,7 +262,7 @@ pinctrl_usbotg1: usbotg1grp { > ; > }; > > - pinctrl_usb1_extcon: usb1-extcongrp { > + pinctrl_usb1_connector: usb1-connectorgrp { > fsl,pins = ; > }; > > -- > 2.25.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel