From patchwork Tue Sep 5 08:29:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cem Tenruh X-Patchwork-Id: 13374385 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 CED73C83F33 for ; Tue, 5 Sep 2023 08:30:00 +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=6Ki1EjZkMLN1pVxckXT6ULupG//nA/g54o18Xg0Aqa4=; b=dsZMfCR5e2Vjan h/az4j4hC4DIQNv8gXbx2yMfY+QXlpsqUSgUgISzxD3FgpGeqCzVqbzPvhmvK4Xf6g284JXpTVAnR 3Bnl+F+n2azhiAZglzT9+08cnXPf4g8qURIe1+T7Ala8tNpdIBVt4IeFomQVoIY9DZtJd/lmNeSKF EB8qu66l7mvJOp0qdm9gFYzohu+qrbKeVqUpbSPX5wnOVaQWpsu8m0lTUBVUSfGLK7MDTpOhxpras xtL259ez6Yd4u8g0hUNymcIqUef4DjOEbipc7ipleo7F9ydvjy/4fvBHrWxr+05pPoBCnz06LUGyu +ae3lg4kpca8xiovCcTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdRRB-005Wq1-10; Tue, 05 Sep 2023 08:29:29 +0000 Received: from mickerik.phytec.de ([91.26.50.163]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdRR7-005WnN-24 for linux-arm-kernel@lists.infradead.org; Tue, 05 Sep 2023 08:29:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1693902557; x=1696494557; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HqMXHEAN0hF2vlZHS/kWdS9kJeYwatJLWk5zgsf2wwI=; b=NsLHwToSe6UDMzCClgQ1IdKFscwSKg72UxwItM/HC9g6DNmSnMNaLQ8IKNGuuv62 CGqIQdZNq7bwpjuQdTtfg904pwlE9P8ockMArxlSKV4zHlkbPou2+Pu3HQ5GxWA4 gIfjktznL4v5IAbk8g18QjXZkj1t3C5fsZGabHMvrc0=; X-AuditID: ac14000a-6d65670000001e37-32-64f6e6dd5ce1 Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 00.71.07735.DD6E6F46; Tue, 5 Sep 2023 10:29:17 +0200 (CEST) Received: from llp-ausleih01.phytec.de ([172.25.32.128]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2023090510291675-2888 ; Tue, 5 Sep 2023 10:29:16 +0200 From: Cem Tenruh To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-arm-kernel@lists.infradead.org, upstream@lists.phytec.de Subject: [PATCH v2 2/4] arm64: dts: imx8mp-phyboard-pollux: Enable USB support Date: Tue, 5 Sep 2023 10:29:14 +0200 Message-Id: <20230905082916.18852-3-c.tenruh@phytec.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230905082916.18852-1-c.tenruh@phytec.de> References: <20230905082916.18852-1-c.tenruh@phytec.de> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 05.09.2023 10:29:16, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 05.09.2023 10:29:17 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsWyRpJBRPfus28pBjta2C3W7D3HZPHwqr/F qqk7WSz6Xjxkttj0+BqrRdevlcwWrXuPsFv83b6JxeLFFnGL7nfqDlweO2fdZffYtKqTzePO tT1sHpuX1Hv0d7ewemx8t4PJo/+vQQB7FJdNSmpOZllqkb5dAlfGkYddLAX9QhVv51xgbGD8 w9fFyMkhIWAisaXnD1MXIxeHkMA2Rom1qw8wgiSEBC4ySjzaEgdiswmoSsw7NpEZxBYROMQk sfIKWJxZwEniY8NXFhBbWMBPYuWuM2C9LAIqEjc6VoDFeQXMJRasvsMEsUxeYv/Bs2BzOAUs JO6cPsQGsctcov/NZ0aIekGJkzOfsIAcJCFwhVFixvd3rBDNQhKnF0M0MwtoSyxb+Jp5AqPA LCQ9s5CkFjAyrWIUys1Mzk4tyszWK8ioLElN1ktJ3cQICnkRBq4djH1zPA4xMnEwHmKU4GBW EuF9J/8tRYg3JbGyKrUoP76oNCe1+BCjNAeLkjjv/R6mRCGB9MSS1OzU1ILUIpgsEwenVAOj dfiUTGE9rUuKT0UWuGZ8DlTge3NAukJHekqb5OTTv942+EbyWl1Wv5nOtDFPoakvJtawLbdr yopFxz32zF+2VfxlfqPYHHXmj7v2TdJtjauI2Swe5SLUu3Vy4AymBtOMIMNZrBL3JsT1rJb/ rGZx/HH9pLksV8/N83212yV81dc/s79W2d9WYinOSDTUYi4qTgQANxm0qGcCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230905_012925_820023_22110F8E X-CRM114-Status: GOOD ( 11.34 ) 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 From: Teresa Remmet Enable USB support for both interfaces in host mode. USB1 is directly conncted to a type-A connector and USB2 is attached to a 4-Port USB Hub. Signed-off-by: Teresa Remmet Reviewed-by: Fabio Estevam --- Changes in v2: - No changes --- .../freescale/imx8mp-phyboard-pollux-rdk.dts | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts index 1750fadb64c3..061db98a36d3 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts @@ -39,6 +39,17 @@ reg_can2_stby: regulator-can2-stby { regulator-name = "can2-stby"; }; + reg_usb1_vbus: regulator-usb1-vbus { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb1_vbus>; + gpio = <&gpio1 12 GPIO_ACTIVE_LOW>; + regulator-always-on; + regulator-max-microvolt = <5000000>; + regulator-min-microvolt = <5000000>; + regulator-name = "usb1_host_vbus"; + }; + reg_usdhc2_vmmc: regulator-usdhc2 { compatible = "regulator-fixed"; pinctrl-names = "default"; @@ -136,6 +147,37 @@ &uart1 { status = "okay"; }; +/* USB1 Host mode Type-A */ +&usb3_phy0 { + vbus-supply = <®_usb1_vbus>; + status = "okay"; +}; + +&usb3_0 { + status = "okay"; +}; + +&usb_dwc3_0 { + dr_mode = "host"; + status = "okay"; +}; + +/* USB2 4-port USB3.0 HUB */ +&usb3_phy1 { + status = "okay"; +}; + +&usb3_1 { + fsl,permanently-attached; + fsl,disable-port-power-control; + status = "okay"; +}; + +&usb_dwc3_1 { + dr_mode = "host"; + status = "okay"; +}; + /* SD-Card */ &usdhc2 { assigned-clocks = <&clk IMX8MP_CLK_USDHC2>; @@ -224,6 +266,12 @@ MX8MP_IOMUXC_UART1_TXD__UART1_DCE_TX 0x40 >; }; + pinctrl_usb1_vbus: usb1vbusgrp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x10 + >; + }; + pinctrl_usdhc2_pins: usdhc2-gpiogrp { fsl,pins = < MX8MP_IOMUXC_SD2_CD_B__GPIO2_IO12 0x1c4