From patchwork Thu Sep 15 06:28:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12976857 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 31261ECAAD3 for ; Thu, 15 Sep 2022 06:31:16 +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:References:In-Reply-To: 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: List-Owner; bh=pbHYtAfojBWCNurxistOaK+vJ7hfz8pHlTdsHl3WFWw=; b=CiKAPnFw877HpS pbZit3Yzhg7K3ExmrBrCbz2ofQlQkB/5QjDTI3eqKAS7UawgHYP60x7ZHl9OFXV3rb6d7uq9QumS+ ytmwBHKlJ+lGSsQHok7KQRvVSy8k0hDur9qXA5Y7y+lAX+YAQNdN53VCKL4GTiRqLQ0Tiipzn9yqF hhi2EbG4HYWGzuIxGPyytqVEXpJ/PGO1NY0OPNpmOeO7vvTCL7rUw2IdCa26hGMU6Q+opdg+t7sl0 CBmeIaLGXPoQCbKs7Y2j+2SHV1CduACbO3HNI3munK1tW0I9tN2jXbCL5lKz959eBPn5HtU7Scyef qDmUf3lL17KYokmorRoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYiNp-0023hx-V5; Thu, 15 Sep 2022 06:29:58 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYiN9-0023Dd-Jp for linux-arm-kernel@lists.infradead.org; Thu, 15 Sep 2022 06:29:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1663223355; x=1694759355; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jizuBE7T9wBky3xHT1WArxRMZ9G8OPi9vTpXWjEpzCY=; b=H9MKGw9kaJTbcoD3Mk7d7i2mU9vt87EF/rOoR/k37BYz8EgLR67keA7M Q6LukcHQJLcPjwUuSWm5gYwbuuK1fsD2z0m7efVvpOfM7zbNq7cOJ9Zye lyqgQQBnlo5L6UAmmXeERg/EPaoNSVVjNQ7cEiviWq3aJVrGXCPblo21H bHbzoaNccZcTeWmE4ZjtGuRKnd/ZSkDP0mD7HdApTAU7MDzvqTpNHsfBQ qn2adhbfOFaunGOzbLxyv3tIx+7sERqrJWznpIuiiwJL8l5s4mo3NB+pM x4UGP+AbVVE0WNWjrZ8QCyX9WdofvarK4LCLFveFstQJIZ7XLA01RJDdi A==; X-IronPort-AV: E=Sophos;i="5.93,317,1654552800"; d="scan'208";a="26189615" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 15 Sep 2022 08:29:05 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 15 Sep 2022 08:29:05 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 15 Sep 2022 08:29:05 +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=1663223345; x=1694759345; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jizuBE7T9wBky3xHT1WArxRMZ9G8OPi9vTpXWjEpzCY=; b=hqZBO/pUvKVe988+dQ7sjsQ9gkMWiCaJwkZbZhesSiK7IBJNoDALk4CS uLWyv63roTP9ezbEeKKwsQCuAaoVBY+kMVwAvuZaRurWgG47N+S3MR0QM GjR0k24rag4DH1/Gygt0GOeU8qWR7fkbWsBr/U4zSYsUsgWzbn9Ljbt6l W8P1hLF69888Xf4UcqVS5bp6B6Nt0/gcnSuyIQjzccjBKFcV4wKEtRdec ZdbYU1ajuoAHNinWuYfXICnQFrHXkRECExFgDbgvTKg2XFnIsRqewgwmE AM9QFbkWEIiGaDEgQqOoPd6ZagvhYXXfWEypW2w/euo4xbX6GL17k1/Iw g==; X-IronPort-AV: E=Sophos;i="5.93,317,1654552800"; d="scan'208";a="26189614" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 15 Sep 2022 08:29:05 +0200 Received: from steina-w.tq-net.de (unknown [10.123.49.11]) (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 DB8A6280056; Thu, 15 Sep 2022 08:29:04 +0200 (CEST) From: Alexander Stein To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Li Jun Cc: Alexander Stein , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 4/4] arm64: dts: tqma8mpql: add support for 2nd USB (host) interface Date: Thu, 15 Sep 2022 08:28:55 +0200 Message-Id: <20220915062855.751881-5-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220915062855.751881-1-alexander.stein@ew.tq-group.com> References: <20220915062855.751881-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220914_232916_017979_E528BD1A X-CRM114-Status: GOOD ( 13.91 ) 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 The on-board USB hub has a single reset line which needs to be enabled. Signed-off-by: Alexander Stein --- .../freescale/imx8mp-tqma8mpql-mba8mpxl.dts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts b/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts index 7bf6f81e87b4..1c440909f580 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts @@ -461,11 +461,23 @@ &usb3_0 { status = "okay"; }; +&usb3_1 { + fsl,disable-port-power-control; + fsl,permanently-attached; + dr_mode = "host"; + status = "okay"; +}; + &usb3_phy0 { vbus-supply = <®_vcc_5v0>; status = "okay"; }; +&usb3_phy1 { + vbus-supply = <®_vcc_5v0>; + status = "okay"; +}; + &usb_dwc3_0 { /* dual role is implemented, but not a full featured OTG */ hnp-disable; @@ -486,6 +498,31 @@ connector { }; }; +&usb_dwc3_1 { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbhub>; + status = "okay"; + + hub_2_0: hub@1 { + compatible = "usb451,8142"; + reg = <1>; + peer-hub = <&hub_3_0>; + reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + vdd-supply = <®_vcc_3v3>; + }; + + hub_3_0: hub@2 { + compatible = "usb451,8140"; + reg = <2>; + peer-hub = <&hub_2_0>; + reset-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + vdd-supply = <®_vcc_3v3>; + }; +}; + &usdhc2 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; @@ -720,6 +757,10 @@ pinctrl_usbcon0: usb0congrp { fsl,pins = ; }; + pinctrl_usbhub: usbhubgrp { + fsl,pins = ; + }; + pinctrl_usdhc2: usdhc2grp { fsl,pins = , ,