From patchwork Wed Jun 22 13:04:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12890609 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEFAFC43334 for ; Wed, 22 Jun 2022 13:04:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350380AbiFVNE6 (ORCPT ); Wed, 22 Jun 2022 09:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350021AbiFVNEz (ORCPT ); Wed, 22 Jun 2022 09:04:55 -0400 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1BBC658F for ; Wed, 22 Jun 2022 06:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1655903093; x=1687439093; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3hsE+SxtSbI20PcB6X+2FIGDwio8lUT1/4myfdKMjlk=; b=PTpS674y7DLErMj3mUPT617STM6T6IL6MzZJj4cPlIXFLl0roh7KiNLo dHEsixtzIX8MCr6KfC3WShZAvP0C41dI0MTJ9Izw05XjwtorWg1RJtw8t 1Zs9D44d0+XHBG5EjFpSSE5eFXfzphSRxRIof5UPxxaC7Xv1aOfXLlnR9 C6tQ+/guB2mTwuyNGZV0npkMivlMZ0Ma0p4euApEpWhSZliFZul1FvsbI kVhKOxPYNBnDqt3g7CU+HlrUCBGSSkp4TvcwE4GFjr3KXtvKjDyXWSJi/ 7gwDfdloiFT2RxeFWPvsHrvHQF5Pqnku/3TwAj79z+vDnt2QpNh+lTo3u A==; X-IronPort-AV: E=Sophos;i="5.92,212,1650924000"; d="scan'208";a="24605524" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 22 Jun 2022 15:04:48 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 22 Jun 2022 15:04:48 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 22 Jun 2022 15:04:48 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1655903088; x=1687439088; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3hsE+SxtSbI20PcB6X+2FIGDwio8lUT1/4myfdKMjlk=; b=JfMOQx546RfjncDhaD0aDXW9/0BOXbwS/Wzev4ntFLdkN0KBQRtO4fYi 878EPnpkoWmJNQVP4AnezpMOuqiU+/Nq5tu5RqlbvWH6mGX+2LHLI8nLL um5yMb5jTDDWn+gPl7d8mjkjSZCq4+xy6XmYj1M5oZlVZma2rHj9W/DCR yCv51tqeTMDUf0dAlSDYK+i5gfAhmdaju+Ja7IkvEBHyBX+FFQvpeXirB ilB8Sc91UdgoKx7Hwx7j7xvSqpbzmrd7/mxhq618w5d9P/n0S4CvicnPm /LHymGQoXR2RjC/Gl+vHvVb9Y5z5QRZEQYk3olezdpsMoQYy5JUZF6yqm Q==; X-IronPort-AV: E=Sophos;i="5.92,212,1650924000"; d="scan'208";a="24605523" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 22 Jun 2022 15:04:48 +0200 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id D20C9280072; Wed, 22 Jun 2022 15:04:47 +0200 (CEST) From: Alexander Stein To: Greg Kroah-Hartman , Shawn Guo , Sascha Hauer , Fabio Estevam , Felipe Balbi Cc: Alexander Stein , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 4/4] arm64: dts: tqma8mpql: add USB support Date: Wed, 22 Jun 2022 15:04:40 +0200 Message-Id: <20220622130440.955465-5-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220622130440.955465-1-alexander.stein@ew.tq-group.com> References: <20220622130440.955465-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org With last feature bits added, USB is supported on TQMa8MPQL for both host and DR interface. Signed-off-by: Alexander Stein --- .../freescale/imx8mp-tqma8mpql-mba8mpxl.dts | 68 ++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts b/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts index 772cbb664b2a..d8947a180318 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts @@ -272,7 +272,7 @@ &flexcan2 { &gpio1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_gpio1>; + pinctrl-0 = <&pinctrl_gpio1>, <&pinctrl_usbhub>; gpio-line-names = "GPO1", "GPO0", "", "GPO3", "", "", "GPO2", "GPI0", @@ -282,6 +282,13 @@ &gpio1 { "", "", "", "", "", "", "", "", "", "", "", ""; + + usb-hub-reset-hog { + gpio-hog; + gpios = <11 0>; + output-high; + line-name = "USB_HUB_RST#"; + }; }; &gpio2 { @@ -465,6 +472,52 @@ &usdhc2 { status = "okay"; }; +&usb3_phy0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb0>; + status = "okay"; +}; + +&usb3_0 { + fsl,over-current-active-low; + status = "okay"; +}; + +&usb_dwc3_0 { + /* 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>; + }; +}; + +&usb3_phy1 { + status = "okay"; +}; + +&usb3_1 { + fsl,disable-port-power-control; + fsl,permanently-attached; + status = "okay"; +}; + +&usb_dwc3_1 { + dr_mode = "host"; + status = "okay"; +}; + &iomuxc { pinctrl_backlight: backlightgrp { fsl,pins = ; @@ -672,6 +725,19 @@ pinctrl_uart4: uart4grp { ; }; + pinctrl_usbcon0: usb0congrp { + fsl,pins = ; + }; + + pinctrl_usb0: usb0grp { + fsl,pins = , + ; + }; + + pinctrl_usbhub: usbhubgrp { + fsl,pins = ; + }; + pinctrl_usdhc2: usdhc2grp { fsl,pins = , ,