From patchwork Wed Sep 6 10:08:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cem Tenruh X-Patchwork-Id: 13375554 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 9D4F2EB8FAF for ; Wed, 6 Sep 2023 11:16: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=AdnZ1fXIkasQHQLXKjh0jcocx+4usuKWqoeA29s45tI=; b=I6mZ6R30V5H6MM zpDHt1j8Fdshkt5zthzgfC6XaGvZ+KeTXYqVJBornLLuWl/ZlkNVg4y/dAdowEK5VYkJhthpXf6wX 4ujuIbqxVUVFNCo6iBEkKTW5LBt59iq9FLB5n/WvLNmWW4gaH8o4S4wevAABaNDDY94rN9+qWVT4W DdMi2ERw/XDTlmpJpzKsRIl6OV+mvc7jOCIMt3mNXbmp/q7O0VGEsymkR2YceooMPltMEWjwfVBGV w4uA+cuuhmuOBcV84sIrZvlV8PJddrI1+q7YfheD0j340f17JfeSWVU14Q5t2zw2+8c9V1Y/6W7JX HzVAxrGe9J8zeGqAYRsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdqWX-008bK2-2B; Wed, 06 Sep 2023 11:16:41 +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 1qdpT9-00854I-1f for linux-arm-kernel@bombadil.infradead.org; Wed, 06 Sep 2023 10:09:07 +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=pkRAOLlg0xvn9mxcY/ahhX2PQCXOBZpPwvGfkeoF4+Q=; b=ZVeeqr93i0Tc3eFPlRsMik+0XL UAVQV0jN0UfUHlZs2ufHiskRyM1lpbC5jAv2kzzeueK5IGrSyl/klntbuoco6kr+bdRXbEb1efVO2 EvuNSVz+LadBbHMWi/d32g0ghcnAcxguFSNAj7TPORjJ5OtXkSyT/jCaGZMIkNM0L9GDIn9JHZXXT CWcQTY9WMHuq6Jx6/lM7++L282b3JFJGPRWprwShLF2c8ndA9DVQujUqROWk8yVv2NUFSnS+C3jvR jGUZCeOD0Cma1hUKiBmX4lCxEtnaZQqsDyRArur8aKxXOpab2To63hP+vGpJsE40B+UQQAEvkmeK2 1KbMWLxQ==; Received: from mickerik.phytec.de ([91.26.50.163]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdpT3-0012bY-24 for linux-arm-kernel@lists.infradead.org; Wed, 06 Sep 2023 10:09:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1693994938; x=1696586938; 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=mIYeza+5WyWAvAETAP2fzAbdpn5wPznFZMPx7eSo4kQ=; b=H8mYU5xLUNC0DAZL2J1R8Iu55H7EUkOJmQ8VP9vTk4aHsJ456TqBk2GW6WnlM+yJ Ee1FYIg6Awdoov6E8JGet4S3xI4ZGAu/skq52sOoZ0/aW6vo+EF7SNrQbi/F/0QK c4MxUxsyRLFiBslqMJmH8ectIOAYfpm/PaJwgTnTKrQ=; X-AuditID: ac14000a-6e25770000001e37-c0-64f84fba03c3 Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 1B.4D.07735.ABF48F46; Wed, 6 Sep 2023 12:08:58 +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 2023090612085826-11041 ; 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 1/5] arm64: dts: imx8mp-phyboard-pollux: Add flexcan support Date: Wed, 6 Sep 2023 12:08:53 +0200 Message-Id: <20230906100857.7916-2-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+NgFrrCLMWRmVeSWpSXmKPExsWyRpJBRHeX/48Ug+2nFSzW7D3HZPHwqr/F qqk7WSz6Xjxkttj0+BqrRdevlcwWrXuPsFv83b6JxeLFFnGL7nfqDlweO2fdZffYtKqTzePO tT1sHpuX1Hv0d7ewemx8t4PJo/+vQQB7FJdNSmpOZllqkb5dAlfG2gerWQt2iFf0dvUxNjDu FO5i5OSQEDCROLh5GVMXIxeHkMA2RolDF3ewQDgXGSW2nTzKDlLFJqAqMe/YRGYQW0TgEJPE yitxIDazgJPEx4avLCC2sIC/xIIj7awgNouAisTvyy+YQGxeATOJib8mskJsk5fYf/As2BxO AXOJw9tWsIHYQkA1J+f8ZoWoF5Q4OfMJC0T9FUagBl4IW0ji9GKIXmYBbYllC18zT2AUmIWk ZRaS1AJGplWMQrmZydmpRZnZegUZlSWpyXopqZsYQSEvwsC1g7FvjschRiYOxkOMEhzMSiK8 7+S/pQjxpiRWVqUW5ccXleakFh9ilOZgURLnvd/DlCgkkJ5YkpqdmlqQWgSTZeLglGpgtLOb ULKVW+Tm3V8hMiHxt091iOTptjPbOYkcEuMSfMvUaqFQzGal78j90Gd70hJ5i+POied+7BS4 +nzf/hWGDmJPihgNnp1PTWG+8zVkRmjQF7U1WzlCPz/3n3F107y3upeUtrXb+FVaadTIPp/f Xjax4r7I7qk7EgMn8E35duXZqoO/5vsaKLEUZyQaajEXFScCAMACC5NnAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230906_110903_359953_84163E51 X-CRM114-Status: GOOD ( 11.35 ) 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 Add flexcan1 and flexcan2 support for CAN FD on phyBOARD-Pollux. Signed-off-by: Teresa Remmet Signed-off-by: Cem Tenruh Reviewed-by: Fabio Estevam --- Changes in v4: - No changes Changes in v3: - No changes Changes in v2: - No changes --- .../freescale/imx8mp-phyboard-pollux-rdk.dts | 61 +++++++++++++++++++ 1 file changed, 61 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 1e14c4cd3128..1750fadb64c3 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts @@ -19,6 +19,26 @@ chosen { stdout-path = &uart1; }; + reg_can1_stby: regulator-can1-stby { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan1_reg>; + gpio = <&gpio3 20 GPIO_ACTIVE_LOW>; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "can1-stby"; + }; + + reg_can2_stby: regulator-can2-stby { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan2_reg>; + gpio = <&gpio3 21 GPIO_ACTIVE_LOW>; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "can2-stby"; + }; + reg_usdhc2_vmmc: regulator-usdhc2 { compatible = "regulator-fixed"; pinctrl-names = "default"; @@ -57,6 +77,21 @@ ethphy0: ethernet-phy@1 { }; }; +/* CAN FD */ +&flexcan1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan1>; + xceiver-supply = <®_can1_stby>; + status = "okay"; +}; + +&flexcan2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan2>; + xceiver-supply = <®_can2_stby>; + status = "okay"; +}; + &i2c2 { clock-frequency = <400000>; pinctrl-names = "default", "gpio"; @@ -136,6 +171,32 @@ MX8MP_IOMUXC_SAI1_MCLK__GPIO4_IO20 0x10 >; }; + pinctrl_flexcan1: flexcan1grp { + fsl,pins = < + MX8MP_IOMUXC_SAI5_RXD2__CAN1_RX 0x154 + MX8MP_IOMUXC_SAI5_RXD1__CAN1_TX 0x154 + >; + }; + + pinctrl_flexcan2: flexcan2grp { + fsl,pins = < + MX8MP_IOMUXC_SAI5_MCLK__CAN2_RX 0x154 + MX8MP_IOMUXC_SAI5_RXD3__CAN2_TX 0x154 + >; + }; + + pinctrl_flexcan1_reg: flexcan1reggrp { + fsl,pins = < + MX8MP_IOMUXC_SAI5_RXC__GPIO3_IO20 0x154 + >; + }; + + pinctrl_flexcan2_reg: flexcan2reggrp { + fsl,pins = < + MX8MP_IOMUXC_SAI5_RXD0__GPIO3_IO21 0x154 + >; + }; + pinctrl_i2c2: i2c2grp { fsl,pins = < MX8MP_IOMUXC_I2C2_SCL__I2C2_SCL 0x400001c2 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 From patchwork Wed Sep 6 10:08:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cem Tenruh X-Patchwork-Id: 13375555 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 B4EE2EB8FB6 for ; Wed, 6 Sep 2023 11:16:51 +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=B4ULHA3UWpVXVN4qQSnkigvcjtu1QMKetT1LqlMvjYw=; b=TJMwGKuRHh4bpc nahMRHr5mioNsyDqCQzErEZMKpr4b2GezbkLINvohW3JOGELb63eO/dGax5CpuU5/B8g0/w77j2hv D/yEz9ZJ26/pPXQTn/TZruB8BzNMTscGjQwatbZGkawP3PbFKGp4DhoegK2illEt8UvdyJxtjTmqf U2TJjKKvx0KeAGIMMhwKi9oAFVK9APjBsaOpPH1At37qTd6zKaaC/lrd24Bjw8SKfzVYC4FZAToLT X9GHbNJujXKhjY8uT8gDCEAW+zNlPrgrdUTiDQogvtnx6CHLeik0yFlBxFM8XncViaNJlJFY2VIDe UENDIOKVoRIx1BES9ONQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdqWa-008bNK-0f; Wed, 06 Sep 2023 11:16:44 +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 1qdpTH-00855y-06 for linux-arm-kernel@bombadil.infradead.org; Wed, 06 Sep 2023 10:09:15 +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=zNEA2rUJH2Y/BynTArVSYXK5VijLBozA8Q+S5u5JnQk=; b=NBhl0eZvRqU3bLpDDwkq+AhCj4 M0nlWdPPQ5piiZ/hoKIwlmTidiF1GSfdKa/pNplmA+fZ1Yz2PKkIxrPMbG2oSfXO4/b3lVUFYEoLa Ur0/XHa/xs1T0nAxwllfcg01b/h/vnh5VXhqax+rBgKt75M4LZDgy7cjDuCLTd0H8g9geUansaQf6 ll8cP3ECvP6Y9DD1iwrlnxTCEVefqBvU5K1QXGnnWDk9p4OUzNf7SSzs4qid3o5ACZdX6EpPJt87h a0xRCZCY82mryBcpPrSdTvbbhIXqsB5R07g0o0aWPUdKwvlU5uiTOki/LqD30K5+PNI/cXpIYulP9 II1og9OA==; Received: from mickerik.phytec.de ([91.26.50.163]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdpTB-0012bZ-2E for linux-arm-kernel@lists.infradead.org; Wed, 06 Sep 2023 10:09:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1693994940; x=1696586940; 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=XQOLg2Y9LcYbHtdclo1CD6/hJr+JIJ2itb/1E81IX48=; b=NcXrlXlK7G7yhhGT1359kn/czEnH/rhIhheQnpEokut1a+/11DaZ708bSsaL0lDF AxJag+q4wECjA1g7IzX5wEtLNsvuvQweN3Fls5blWr5tp1WZIm1SU6f64tQKJnXj 7jyxWClssqCmDfuR5nu2POM+4CezzbDiBg4dSWyh0R8=; X-AuditID: ac14000a-6e25770000001e37-d2-64f84fbb0074 Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 2F.4D.07735.BBF48F46; Wed, 6 Sep 2023 12:09:00 +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 2023090612085919-11043 ; Wed, 6 Sep 2023 12:08:59 +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 3/5] arm64: dts: imx8mp-phycore-som: Add gpio-line-names Date: Wed, 6 Sep 2023 12:08:55 +0200 Message-Id: <20230906100857.7916-4-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:59, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 06.09.2023 12:08:59 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsWyRpJBRHeP/48Ug4f/WS3W7D3HZPHwqr/F qqk7WSz6Xjxkttj0+BqrRdevlcwWrXuPsFv83b6JxeLFFnGL7nfqDlweO2fdZffYtKqTzePO tT1sHpuX1Hv0d7ewemx8t4PJo/+vQQB7FJdNSmpOZllqkb5dAlfG4yPbmApecVR8vLOOuYFx OnsXIyeHhICJRN+0vUA2F4eQwDZGifefHzFDOBcZJS4/nsACUsUmoCox79hEZhBbROAQk8TK K3EgNrOAk8THhq9gNcIC3hK3r88Eq2ERUJHY2PEALM4rYCax89YXJoht8hL7D54Fq+EUMJc4 vG0FG4gtBFRzcs5vVoh6QYmTM5+wgBwhIXCFUeLNnkesEM1CEqcXQzQzC2hLLFv4mnkCo8As JD2zkKQWMDKtYhTKzUzOTi3KzNYryKgsSU3WS0ndxAgKehEGrh2MfXM8DjEycTAeYpTgYFYS 4X0n/y1FiDclsbIqtSg/vqg0J7X4EKM0B4uSOO/9HqZEIYH0xJLU7NTUgtQimCwTB6dUA+NC xVV3DkSzlU071vvgNnuxf6fN7I3TRboVCrqEHoU18y6ufZXh9Zj37drANesmSq79uXfi8e+O vCFfvvrMLK6qjtksMk3OXDwxYEJc9pNWmy0XW9MOnf10Tt//gHPboznM0WFrTeNaHLNKTmVf l3rRwFUvM+OLgfKUBYlv/2Xf2vKlbRJ3AZ8SS3FGoqEWc1FxIgAYbGzFaAIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230906_110911_395450_ED48D9B9 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. 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 Add gpio-line-names to the imx8mp-phycore-som devicetree. Signed-off-by: Cem Tenruh --- Changes in v4: - Moved carrierboard gpio-line-names to seperate patch - Updated commit header & message Changes in v3: - No changes Changes in v2: - No changes --- .../boot/dts/freescale/imx8mp-phycore-som.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi index d8df97060e8f..c976c3b6cbc6 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi @@ -199,6 +199,19 @@ &wdog1 { status = "okay"; }; +&gpio1 { + gpio-line-names = "", "", "X_PMIC_WDOG_B", "", + "", "", "", "", "", "", + "", "", "", "", "", "X_nETHPHY_INT"; +}; + +&gpio4 { + gpio-line-names = "", "", "", "", + "", "", "", "", "", "", + "", "", "", "", "", "", + "", "", "X_PMIC_IRQ_B"; +}; + &iomuxc { pinctrl_fec: fecgrp { fsl,pins = < From patchwork Wed Sep 6 10:08:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cem Tenruh X-Patchwork-Id: 13375495 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 55F96EB8FA5 for ; Wed, 6 Sep 2023 10:09:43 +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=0IkzGfbti36xmZpu0VgEiiMVd2yp7a0IGXivHvKoCu4=; b=UIJG2Qds2JDIor VW8K1NBsQTiZpOTWQopPvaOvGvbGd35VWtGkT6cO55N137GnxcaDGA9xedEG468Hb9U4pjq1mS0V+ UegSUZOYS4oPKTV1Mzv4Y501Ck9SO9NZlh/C6QvcpQ7WUucp4u3zuX+M8l9YZjXTP9FMheqDQ3s2O PTmVCI7oh3F+3OuNjGb+5Whf3PoPh/jKgWb8aNL0fK3PMJiykwCUESDOPltcA8bGm5Qn/50tsiDx6 P9yJBDv96Pr0fSmfdCg6CLPdROAahka2/2j0d8V2BUnSJStW+EqttSLsVchAhdaKvgHZcJj8KPV4i LNNLDOVVIjOVUYTH7ZYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdpTF-00855g-1y; Wed, 06 Sep 2023 10:09:13 +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 1qdpTD-00855I-33 for linux-arm-kernel@bombadil.infradead.org; Wed, 06 Sep 2023 10:09:11 +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=xA9QEvP/VMfYuDFFZrfEX1qADolLV3nccvvbpyvZmpg=; b=V5EWrf6UVw7qMEo47RQdAeh6ZR 2hD/NoUllfU2lI04JgDjCKglPxJiBSqLX/stFPk8ciJLqWL+avORAFv/IPy+ZCRoZGI75APhmYTbW OkyIzvPArGw5t5NsQg2artlQJlVbavty8eXhN66iOpZhNtjRQCAzlEbbPme9pQrDYxRHWJqpAQf3D c3yGuUkO40edW8/gGzM/WfD9Ki0s6/nn/aW8qaUjILoODUiXIzXoCcq/48wFcXE6oRJ9Wtf2dXIwO Pot1VT9vGCCUwAH+TQbcxXKyd2mWHtV4d+NndT+haC8TewBFFiP/JHLOuIAtnN9zv99CDE8jsL3Iy kLqQMYlA==; Received: from mickerik.phytec.de ([91.26.50.163]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdpT7-0012bZ-0K 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=1693994940; x=1696586940; 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=o2AeaKfO/opZbmo4oebZXGKMHNP+KCJn4T5bfzNDAV4=; b=QnRRUELrZc+y7a94xdxp9oW1vS+Pp1SnoZZMszqgsuK/FC/ZzXoBiUo52znCE/Kj uQE6r95Pqna0hV8IbevDYCxlXLQriwNVrktAiy/B5XBeIa4DqD+fXi3SMorGPNBv Y4Spywd6EwZ0kBBu6WJMr2SzQj8/LjyhilKUr0CwE6k=; X-AuditID: ac14000a-6e25770000001e37-db-64f84fbc493d Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 00.5D.07735.CBF48F46; Wed, 6 Sep 2023 12:09:00 +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 2023090612085985-11064 ; Wed, 6 Sep 2023 12:08:59 +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 4/5] arm64: dts: imx8mp-phyboard-pollux: Add gpio-line-names Date: Wed, 6 Sep 2023 12:08:56 +0200 Message-Id: <20230906100857.7916-5-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:59, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 06.09.2023 12:09:00 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsWyRpJBRHeP/48Ug4ePeSzW7D3HZPHwqr/F qqk7WSz6Xjxkttj0+BqrRdevlcwWrXuPsFv83b6JxeLFFnGL7nfqDlweO2fdZffYtKqTzePO tT1sHpuX1Hv0d7ewemx8t4PJo/+vQQB7FJdNSmpOZllqkb5dAlfGxmtpBZ3cFR9unmdpYGzj 7GLk5JAQMJE4u/oCaxcjF4eQwDZGiW/rFrJDOBcZJaY+vssGUsUmoCox79hEZhBbROAQk8TK K3EgNrOAk8THhq8sILawgL/Ekddz2EFsFgEVicv77oH18gqYSXR8eMwKsU1eYv/Bs2BzOAXM JQ5vWwFWIwRUc3LOb1aIekGJkzOfsIAcISFwhVHix/7jUM1CEqcXQzQzC2hLLFv4mnkCo8As JD2zkKQWMDKtYhTKzUzOTi3KzNYryKgsSU3WS0ndxAgKeREGrh2MfXM8DjEycTAeYpTgYFYS 4X0n/y1FiDclsbIqtSg/vqg0J7X4EKM0B4uSOO/9HqZEIYH0xJLU7NTUgtQimCwTB6dUA6OC wtwHpzbm/Dvmw751rWLU7d/3t/9fv79OO8h3jvuW/S/sBVI99uz6bMaw+nNUnOq/D4mG7696 6NZdyQ3KOyZW/lOzYe6ZRgv9eWa3DT6lz75yTO52ybaD6sG7a+8LZ7u0LHVv4Ou3MvvW8yYg N3Jp8bHCrd4f7rKs5V7dEDPtauhW0/6s74+VWIozEg21mIuKEwFyLvuZZwIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230906_110906_799236_A679DF3B X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. 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 Add gpio-line-names to the imx8mp-phyboard-pollux devicetree. Signed-off-by: Cem Tenruh --- Changes in v4: - Added this new patch --- .../freescale/imx8mp-phyboard-pollux-rdk.dts | 27 +++++++++++++++++++ 1 file changed, 27 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 494a40077d16..562d4fee2011 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts @@ -191,6 +191,33 @@ &usdhc2 { status = "okay"; }; +&gpio1 { + gpio-line-names = "", "", "X_PMIC_WDOG_B", "", + "PMIC_SD_VSEL", "", "", "", "", "", + "", "", "USB1_OTG_PWR", "", "", "X_nETHPHY_INT"; +}; + +&gpio2 { + gpio-line-names = "", "", "", "", + "", "", "", "", "", "", + "", "", "X_SD2_CD_B", "", "", "", + "", "", "", "SD2_RESET_B"; +}; + +&gpio3 { + gpio-line-names = "", "", "", "", + "", "", "", "", "", "", + "", "", "", "", "", "", + "", "", "", "", "nCAN1_EN", "nCAN2_EN"; +}; + +&gpio4 { + gpio-line-names = "", "", "", "", + "", "", "", "", "", "", + "", "", "", "", "", "", + "", "", "X_PMIC_IRQ_B", "", "nENET0_INT_PWDN"; +}; + &iomuxc { pinctrl_eqos: eqosgrp { fsl,pins = < From patchwork Wed Sep 6 10:08:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cem Tenruh X-Patchwork-Id: 13375496 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 443F9EB8FB6 for ; Wed, 6 Sep 2023 10:09:44 +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=p20SjGl8RqysqQD4aAZbuct45PPMx5YqA5Yd4OLnABM=; b=wVrcW/xN4AYvzT +lfqrK8D+A9TiXjH3ASYF08AXqJFs8Iba1XEcun+2pmcqFJvHxOsoV/uWMs1Hqnp3g8EllIfDcYnd EOXDv+AA8dLLDxok1P4DFUdkS2aMPlX5ef2MqHokUGZgzqGJiokJSCUEU/Sin7PwEdSpVTTnISZjF qtdhu7IViewcLXdzf7j5VXud+PUviZrR3iKGAaXQSb0i5+jf5oD0n/D2cfBJOPIIQXTbcfYitp8vU uU4XRyn7j6BiVZvItbCmOdz92ob1cuZ9qt9npppSpbSpoVONlfMWPnx4RkESx2Uz5g8ZaqkKoSGIO OASdL6fGwuFqiJ5ufEuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdpTI-008574-1F; Wed, 06 Sep 2023 10:09:16 +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 1qdpTH-00855z-0E for linux-arm-kernel@bombadil.infradead.org; Wed, 06 Sep 2023 10:09:15 +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=OoIIq4ELay83wvsicL2Nh/GzNtIbb1bUm018ZWR7q1Y=; b=OhJKYRnAl8/fWrkvdzPEZCCM0y mlsYfmK4Bz8TD7bt46r1CohIbcL//+RHQSu9whH+lslhnaTG6HpzemGNHtsPdg8qxJIbplgOAxXvA v8nQrO3Bb+kbHha8p6jnERSSrYpxlKnosIccn+L26o6tGpyEMuhwNPOUpPdYjbr1TOyNCcWQG7kAT Tq+09Wkuug9P5p3vqQ7aoBK9o4VFg5KbSTIYp01JluIdWJfs8PXNXx9NbkB4BZZBZVb7a7xRHrxxh zOcQnm1E7jhgd8dkMHfIGbS5zSYrLPwsOsGcF9ofDMrnZOFbdXqQfQIZVPuaCW80Q4LaZLxB7mLvR WmUfHlOw==; Received: from mickerik.phytec.de ([91.26.50.163]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdpTB-0012bY-2t for linux-arm-kernel@lists.infradead.org; Wed, 06 Sep 2023 10:09:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1693994940; x=1696586940; 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=hl0F/+pZ+bwJxmBvTp5xxZywrriDZvOWTyU7VhZJKMM=; b=iIcfqCMO8C+Crov7SAXGEERfJT3CAxyluIQmQILXDFQNYU1awTl/cE2JbDYBggmY nPuJstlyxipCJJY/8U6HeviRpPgcDTKq22h57583BZmVAuzNRgeuYpuK/9AO0OHh tZjo906elpMBwMCZze1KF/+Xdj+2ragC72yAgy3/bBU=; X-AuditID: ac14000a-6e25770000001e37-dc-64f84fbcf1b8 Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 32.5D.07735.CBF48F46; Wed, 6 Sep 2023 12:09:00 +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 2023090612090029-11065 ; Wed, 6 Sep 2023 12:09:00 +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 5/5] arm64: dts: imx8mp-phyboard-pollux: Add support for RS232/RS485 Date: Wed, 6 Sep 2023 12:08:57 +0200 Message-Id: <20230906100857.7916-6-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:09:00, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 06.09.2023 12:09:00 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsWyRpJBRHeP/48UgyvLVC3W7D3HZPHwqr/F qqk7WSz6Xjxkttj0+BqrRdevlcwWrXuPsFv83b6JxeLFFnGL7nfqDlweO2fdZffYtKqTzePO tT1sHpuX1Hv0d7ewemx8t4PJo/+vQQB7FJdNSmpOZllqkb5dAlfGii972Au281fM3T6LrYGx lbeLkZNDQsBE4t+2m8wgtpDANkaJ5slyXYxcQPZFRok1mw6CJdgEVCXmHZsIZosIHGKSWHkl DsRmFnCS+NjwlQXEFhYIlzh85SEbiM0ioCJx79F7sHpeATOJbX96GSGWyUvsP3gWLM4pYC5x eNsKNojFZhIn5/xmhagXlDg58wkLyBESAlcYJT6f28YM0SwkcXoxRDOzgLbEsoWvmScwCsxC 0jMLSWoBI9MqRqHczOTs1KLMbL2CjMqS1GS9lNRNjKCQF2Hg2sHYN8fjECMTB+MhRgkOZiUR 3nfy31KEeFMSK6tSi/Lji0pzUosPMUpzsCiJ897vYUoUEkhPLEnNTk0tSC2CyTJxcEo1MDKU aIYtaZ/05XS5lWqWSM+uLss2wdsTrixdmfnhr9BNjZUPo/ZX1W4tP/spM0aT3WznzYt+Bpsv bF7XVrvisNSbCUxCxhJrizYI3S8MvTAt3HG+znW5R6E7tBIPxfe8qmKVvaGxZ4FtzMXmxcd1 tnX/PdYWsej8NW3Jl2dYantl5px6ec1WuUCJpTgj0VCLuag4EQBt6T8oZwIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230906_110911_498801_AE8CA929 X-CRM114-Status: GOOD ( 11.41 ) 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 Add UART2 for RS232/RS485 support. Signed-off-by: Teresa Remmet (Updated the node by not setting the reserved bits(BIT 0 and BIT 3) and enabled internal pullup for RX and TX.) Signed-off-by: Yashwanth Varakala Signed-off-by: Cem Tenruh Reviewed-by: Fabio Estevam --- Changes in v4: - Added my missing "signed-off-by" Changes in v3: - No changes Changes in v2: - Edited commit message - Added comment to UART2 node --- .../freescale/imx8mp-phyboard-pollux-rdk.dts | 19 +++++++++++++++++++ 1 file changed, 19 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 562d4fee2011..c8640cac3edc 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts @@ -177,6 +177,16 @@ &usb_dwc3_1 { status = "okay"; }; +/* RS232/RS485 */ +&uart2 { + assigned-clocks = <&clk IMX8MP_CLK_UART2>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_80M>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart2>; + uart-has-rtscts; + status = "okay"; +}; + /* SD-Card */ &usdhc2 { assigned-clocks = <&clk IMX8MP_CLK_USDHC2>; @@ -298,6 +308,15 @@ MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x10 >; }; + pinctrl_uart2: uart2grp { + fsl,pins = < + MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x140 + MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x140 + MX8MP_IOMUXC_SAI3_RXC__UART2_DCE_CTS 0x140 + MX8MP_IOMUXC_SAI3_RXD__UART2_DCE_RTS 0x140 + >; + }; + pinctrl_usdhc2_pins: usdhc2-gpiogrp { fsl,pins = < MX8MP_IOMUXC_SD2_CD_B__GPIO2_IO12 0x1c4