From patchwork Wed Sep 6 10:08:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cem Tenruh X-Patchwork-Id: 13375497 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 674CEEB8FB6 for ; Wed, 6 Sep 2023 10:09:50 +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=d7iVflAIusFKThitLf974Kzyvs+1inX3x+fLsmEz6hk=; b=vff87rdNZhzAjl VX5XVH7pUt0QKzzfASetka3QswgvvHRYpBy+EgZ3b2YdWpVUGOdoM7YZjrU6NUHm7V8QG3VLPhMz5 tfENEXrDjRJceCw0ieDi6HzWiMjP6Qsx5752rTVPc7MhZY7vQAW7Q/2vDQj4xdvY9slz/9aIaOaLc 2VzDycq+aef3XldfOTnOjJDM84ocJsK5oMBsMcvE3s0ZqkBTdUu7hPnPPS87nimSVujhRhhs+cu3O G4qLeET4OxgvWLpr3veyDwZCZdN0dXOaNtE5jHHr9z63PUWThT7EejGd9RmECWUnUulRcYqMyjWJ9 I+nobPXcABAZsjNb+3nw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdpTG-008560-1I; Wed, 06 Sep 2023 10:09:14 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdpTE-00855J-0a for linux-arm-kernel@bombadil.infradead.org; Wed, 06 Sep 2023 10:09:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=QBT+VZWfemvDxBb7U3l5XvTPy7yyzegavR1u4QDe21w=; b=Lia64ZR1a8zyZ3Vd149IOTXAG4 0WUT6zb5DvXk7OhWrgDso5LzGAyI3SmJHnFODvXj4JfdRgS8rG9Ry16La4aiG6anjdj8gBkRl++l1 r/zfw0hrL4aI6MLSL6Tf5ML9ldmSD8ZLO2SFtrx8JTnvhODeYv1mnFvDpL8GxcIpXlf8NLiXc+DsJ XryH2JjS0ZrSCAZuFLqsTnUpA8H4rS9PZNB+7G/u0khv37++RAKlkH7+ShszzJqhdj9JTzUOUBidx b+K55rbwVR43mucXdQuVm26kSV9Jj0/j+Vpt9LrDgjxN0YIS45DxbU1KMDdZF0MOo3YgHXNrADqPo 8G9Waz/A==; Received: from mickerik.phytec.de ([91.26.50.163]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdpT7-0012bY-0B for linux-arm-kernel@lists.infradead.org; Wed, 06 Sep 2023 10:09:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1693994939; x=1696586939; 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=kqCNu5anncO5fwt5s8/HgNQZR9nOzr1apBzZHHyIl2Y=; b=YtZTZHq0KSl7gy7kMI7YzEZ0ZjUGREsCwNdmWGVmciqDt7aNXOctqEE8tos6Ovl7 OKj58wfJHPV1bRmuuIhP8HPk1ggj4+LEayyYjd/YmCaob13Z5PcPi6vvL6cxHmDW ubgNAp+77kjl7Emnjg9Ax8/KqzqDwnjWzr/C3Jd8thQ=; X-AuditID: ac14000a-6d65670000001e37-c1-64f84fba5d5c Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id CB.4D.07735.BBF48F46; Wed, 6 Sep 2023 12:08:59 +0200 (CEST) Received: from llp-ausleih01.fritz.box ([172.25.39.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2023090612085874-11042 ; Wed, 6 Sep 2023 12:08:58 +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 v4 2/5] arm64: dts: imx8mp-phyboard-pollux: Enable USB support Date: Wed, 6 Sep 2023 12:08:54 +0200 Message-Id: <20230906100857.7916-3-c.tenruh@phytec.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230906100857.7916-1-c.tenruh@phytec.de> References: <20230906100857.7916-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 06.09.2023 12:08:58, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 06.09.2023 12:08:58 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsWyRpJBRHe3/48Ug+kbmCzW7D3HZPHwqr/F qqk7WSz6Xjxkttj0+BqrRdevlcwWrXuPsFv83b6JxeLFFnGL7nfqDlweO2fdZffYtKqTzePO tT1sHpuX1Hv0d7ewemx8t4PJo/+vQQB7FJdNSmpOZllqkb5dAlfG/Q3rWArOCFdsWf+GuYFx lkAXIyeHhICJxNKLXcxdjFwcQgLbGCV+z97PAuFcZJTYs/gLE0gVm4CqxLxjE5lBbBGBQ0wS K6/EgdjMAk4SHxu+soDYwgJ+ElNO7mEDsVkEVCRut24Ai/MKmEl8fL6XGWKbvMT+g2fBbE4B c4nD21aA1QsB1Zyc85sVol5Q4uTMJywQ9VcYgRp4IWwhidOLIXqZBbQlli18zTyBUWAWkpZZ SFILGJlWMQrlZiZnpxZlZusVZFSWpCbrpaRuYgSFvAgD1w7GvjkehxiZOBgPMUpwMCuJ8L6T /5YixJuSWFmVWpQfX1Sak1p8iFGag0VJnPd+D1OikEB6YklqdmpqQWoRTJaJg1OqgXHhlEtL Xq5OOKn44XcWo0/wz+Xff51L//9+e8Dm7JsB118KtqxWFj3I7OpduV6LnY391aTb1gL8fRob +PNfhDDFW7bKKj2Z7LtdZ07kgWuVwVYNZUGrRPhTfu80/FNU+NB974uV8tn2fVGzahzspyW/ /PvTQWL9/RfcS3TW3wuOybPfeK5IjEOJpTgj0VCLuag4EQADT+MRZwIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230906_110906_737149_061C8CF3 X-CRM114-Status: GOOD ( 11.29 ) 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 Signed-off-by: Cem Tenruh Reviewed-by: Fabio Estevam --- Changes in v4: - Added my missing "signed-off-by" Changes in v3: - Removed "regulator-always-on" protperty Changes in v2: - No changes --- .../freescale/imx8mp-phyboard-pollux-rdk.dts | 47 +++++++++++++++++++ 1 file changed, 47 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..494a40077d16 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,16 @@ 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-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 +146,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 +265,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