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 48FA6ECAAD5 for ; Mon, 5 Sep 2022 02:57:21 +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=Q/Q7Tda4Okplk8y5Lmhf/3e2quaSFxBrJI/+uJww75o=; b=sfDeki++60LnsN 4Tx2dEscdUBxNIno9/IAovV+aUy/rqspTVCgBDEVjiKJTtnbY55uZlhbgP/wQab07T8RkzDCCUmWC Vp9mLoSqGHHf+i0+2jnxtHL5Oq91/T6RgnlHcvGpKrdssMmysfkpIxzW59gFNIE1/EWYJ3mC4ep8C Lc7FCWYab8Vlom8yfp72oHG3SUOapGE2nXh5wfYw/b+pp/CsEGrdtcnocNSsFiZQrD9YTmsQFgfxM N63G8ey0V9C9GEUmWGS/DECgznn320zNk2H0u//01jQwjlFw6yxotBcZgAlXo+LevzdJTH//lCSZj emisWPJWyh1IztaQDGwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oV2HA-006GsG-J7; Mon, 05 Sep 2022 02:55:53 +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 1oV1l4-005dNz-3L for linux-arm-kernel@lists.infradead.org; Mon, 05 Sep 2022 02:22:44 +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 5BD0FB80E7E; Mon, 5 Sep 2022 02:22:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61409C433D6; Mon, 5 Sep 2022 02:22:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662344555; bh=916uXypaAnZ9d2zo9QefAmHgvekVDX7XVcreYrQhrqc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r8FdPtVN0Xuw1fs7oWy96arw4QRiVRZtu+bIuqrcFSaP/udNuyBgdTwf7wCQZzLea d2hplsPM6sYrfmOUoM4SUPhnVlsIv9Mr+oHwpiXNegippPGj3p4rjvmsKWImYli2y3 G9ykngcxDqwVelkgSEdz4/I+NY1XezK5McDvNupq7SknA1YCMcr6AGRduVgN3bM58v ZGVT6mcaI1LLUjhji8Bv2c5wsEMxst5QLoA/lMUj0U/WqZrITKGSRL8LoyF3dN+E/j AuMnTNLi+SsaZPOydnQHMMmwhnmdWFSHRBmc3S7GIMH7hcb1Y6ms0gzv0TBi44dpy5 VYCL2e20LJWpA== Date: Mon, 5 Sep 2022 10:22:28 +0800 From: Shawn Guo To: Alexander Stein Cc: Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tim Harvey , Jun Li Subject: Re: [PATCH v2 1/1] arm64: dts: tqma8mpql: add USB DR support Message-ID: <20220905022228.GB1728671@dragon> References: <20220831074606.1677052-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220831074606.1677052-1-alexander.stein@ew.tq-group.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220904_192243_038743_10BE7EEC X-CRM114-Status: GOOD ( 20.25 ) 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 Wed, Aug 31, 2022 at 09:46:06AM +0200, Alexander Stein wrote: > Add support for USB DR on USB1 interface. Host/Device detection is done > using the usb-role-switch connector. > > Signed-off-by: Alexander Stein > --- > Changes in v2: > * Split from previous series > * For now enable USB OTG only > > .../freescale/imx8mp-tqma8mpql-mba8mpxl.dts | 40 +++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts b/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts > index d8ca52976170..b30d75b1fa47 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts > @@ -459,6 +459,37 @@ &usdhc2 { > status = "okay"; > }; > > +&usb3_phy0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_usb0>; Should the pinctrl be in USB controller instead of PHY node? > + status = "okay"; > +}; > + > +&usb3_0 { > + fsl,over-current-active-low; > + status = "okay"; > +}; > + > +&usb_dwc3_0 { These nodes are not in alphabetic order. > + /* dual role is implemented, but not a full featured OTG */ > + hnp-disable; > + srp-disable; > + adp-disable; > + dr_mode = "otg"; > + usb-role-switch; > + role-switch-default-mode = "peripheral"; > + status = "okay"; > + > + connector { > + compatible = "gpio-usb-b-connector", "usb-b-connector"; > + type = "micro"; > + label = "X29"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_usbcon0>; > + id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; > + }; > +}; > + > &iomuxc { > pinctrl_backlight: backlightgrp { > fsl,pins = ; > @@ -666,6 +697,15 @@ pinctrl_uart4: uart4grp { > ; > }; > > + pinctrl_usbcon0: usb0congrp { > + fsl,pins = ; > + }; > + > + pinctrl_usb0: usb0grp { pinctrl_usb0 should go before pinctrl_usbcon0? Shawn > + fsl,pins = , > + ; > + }; > + > pinctrl_usdhc2: usdhc2grp { > 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