From patchwork Tue Sep 5 14:25:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cem Tenruh X-Patchwork-Id: 13374515 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 C27A8C83F2C for ; Tue, 5 Sep 2023 14:26:32 +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=mK3cGUvWseXE2Y+r1feOipapfXYiaGl65aWna0kcBJo=; b=PAGJU9FK9cf+cy cN94m+k3Hg93hoTb6BmhzD3ZBjctYLa5odwjAr49KkRV+PMznwO7VP4We8Ir0imSEGtGmlgKAo8Lo Z0V+IIBbe6+vgNB9EeDHMGetJNr+WxolRUR622rTkcr32pt0E45SNo7IwZwroUkhazIcpTxZ5+Gk2 absB7q6bILrBHaP5MfZap5kftqxMJlWd7TcBUWyhtmcA8l0CKT1R0183P1o2PzWNwqIP0K/GN4ouN FoD+BBHhj2rbvqOps+APy1hwjpIVer/SB95UpXouwfqwvP6/WnGRoGL5AkV6MUXLsJN5/xobqKNrb HQ2sw0zoH81fCTfy2RHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdX0F-006AYe-20; Tue, 05 Sep 2023 14:26:03 +0000 Received: from mickerik.phytec.de ([91.26.50.163]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdX0B-006AWM-2U for linux-arm-kernel@lists.infradead.org; Tue, 05 Sep 2023 14:26:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1693923956; x=1696515956; 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=zLS3gMsjo3Fy6/Oci0G5mno3YkBMgXXjQzeaU/+nFDY=; b=nT0tHgPGCtPPDfxEmnbWcrP41yjfI8SWHaFIluiXOcN05FXVLgpJ2DqMYk5HsXsh qcpQPW1n55EAmQfv+ydosbAeQ0SJCtIuS34SxipHTz4mLISShuHyUTw7PcYjI9tR 3dIGSmjCppePbRxBcDfM9mzx53a4PFdlyY6zV/sdins=; X-AuditID: ac14000a-6d65670000001e37-27-64f73a740785 Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id A3.E5.07735.47A37F46; Tue, 5 Sep 2023 16:25:56 +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 2023090516255629-5701 ; Tue, 5 Sep 2023 16:25:56 +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 v3 1/4] arm64: dts: imx8mp-phyboard-pollux: Add flexcan support Date: Tue, 5 Sep 2023 16:25:52 +0200 Message-Id: <20230905142555.27519-2-c.tenruh@phytec.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230905142555.27519-1-c.tenruh@phytec.de> References: <20230905142555.27519-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 16:25:56, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 05.09.2023 16:25:56 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrALMWRmVeSWpSXmKPExsWyRpJBRLfE6nuKwbsdWhZr9p5jsnh41d9i 1dSdLBZ9Lx4yW2x6fI3VouvXSmaL1r1H2C3+bt/EYvFii7hF9zt1By6PnbPusntsWtXJ5nHn 2h42j81L6j36u1tYPTa+28Hk0f/XIIA9issmJTUnsyy1SN8ugStj9dQzbAXTxSvmfZzN2sC4 WLiLkZNDQsBE4u+2z+xdjFwcQgLbGCXebD7NBpIQErjIKLFvij+IzSagKjHv2ERmEFtE4BCT xMorcSA2s4CTxMeGrywgtrCAv8TkPXMYQWwWARWJk2uWAw3l4OAVMJdYfz8BYpe8xP6DZ5lB wpwCFhJP15qAmEJAFcuX+IBU8AoISpyc+YQFovoKo8T3zUYQtpDE6cVnmSGWakssW/iaeQKj wCwkLbOQpBYwMq1iFMrNTM5OLcrM1ivIqCxJTdZLSd3ECAp1EQauHYx9czwOMTJxMB5ilOBg VhLhfSf/LUWINyWxsiq1KD++qDQntfgQozQHi5I47/0epkQhgfTEktTs1NSC1CKYLBMHp1QD Y/CyTx8FVxf3zfI4kFn5cOrBxv9O9y6768r9PMU+472+Evspaf+vjUHMX/7tXRXavmhveNLf uXd2JZafqn9b4Rx//valSr1TUl4rFu3INpU85c10cMnhCT7xl7J2NnrUrVgxPb85Oujtqe8v lL71hX7v2fznjbamWor8qbBXopeeOL56cHeqspYSS3FGoqEWc1FxIgCyh0LjYwIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230905_072559_954726_19217F60 X-CRM114-Status: GOOD ( 11.28 ) 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 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 Tue Sep 5 14:25: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: 13374514 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 D2B4EC83F33 for ; Tue, 5 Sep 2023 14:26:31 +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=E9V3pZHhxoDIGL9HrJeSAw0qt2gsrGuyYoshRLT1QP0=; b=EnRrL4wowrj09w EupRZBATqR2Cf0Jy2bv7ypgnKD+v8deHRV9pmq6akCWGzECnWGnIt704suJKJ8IHPpg0S0HcPSsH+ /+mHzmGd80Lrx4hFK0tVrtq9ZcUnRZr5TDrDUa++8uFpHZVP/GwR5qyql6+Vev2woUUDwLIZWWKHn M/zB5dvJBClB8ZzFxs8jlhbv8wcRK4lfen9yhoxS/y+3cdfC0rHSxaHJnDxZIAdFC4OliKrQp7AUZ 83vGh+1nv/XNH/PUMcJ1v+7KkEsDgOEeGzrZnP0Dzg1j3ZK1UB2T80HSJGD1L7X36dktFqFgbBH8r F+8SihXjxaXZzQxg9/GQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdX0J-006AaC-19; Tue, 05 Sep 2023 14:26:07 +0000 Received: from mickerik.phytec.de ([91.26.50.163]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdX0E-006AWJ-05 for linux-arm-kernel@lists.infradead.org; Tue, 05 Sep 2023 14:26:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1693923956; x=1696515956; 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=qkp2IJeBY0yzxFlLZJEZC4fXhVxF+oyrTozi9Utrp20=; b=pcfJHgBhWeAngkE7aPRM9X+X96MLJ5+8gHUY6ZvpEytPmyBqkCBXYZv7vVb1BioE G71zxDkZAi/Kd8bCuqbcvbq/Y3FAVCnHLQfjQemEXg5jh5r0PuctkR9tuPsNQT0F No67Y6vOfD3VGbMFcI18OaUcSjsYY/gauDhzpJ/8mfI=; X-AuditID: ac14000a-6e25770000001e37-28-64f73a7423fe Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 54.E5.07735.47A37F46; Tue, 5 Sep 2023 16:25:56 +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 2023090516255659-5702 ; Tue, 5 Sep 2023 16:25:56 +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 v3 2/4] arm64: dts: imx8mp-phyboard-pollux: Enable USB support Date: Tue, 5 Sep 2023 16:25:53 +0200 Message-Id: <20230905142555.27519-3-c.tenruh@phytec.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230905142555.27519-1-c.tenruh@phytec.de> References: <20230905142555.27519-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 16:25:56, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 05.09.2023 16:25:56 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrELMWRmVeSWpSXmKPExsWyRpJBRLfE6nuKwauLxhZr9p5jsnh41d9i 1dSdLBZ9Lx4yW2x6fI3VouvXSmaL1r1H2C3+bt/EYvFii7hF9zt1By6PnbPusntsWtXJ5nHn 2h42j81L6j36u1tYPTa+28Hk0f/XIIA9issmJTUnsyy1SN8ugSvjwL1mloKnQhVv/nWzNzAe 5e9i5OSQEDCRWDBtBVMXIxeHkMA2RonmAz8ZIZyLjBInD79mBKliE1CVmHdsIjOILSJwiEli 5ZU4EJtZwEniY8NXFhBbWMBPouvHLzYQm0VARaLx2h4mEJtXwFyi+8kCVoht8hL7D54FmsPB wSlgIfF0rQmIKQRUsnyJD0S1oMTJmU9YIKqvMEp832wEYQtJnF58lhliq7bEsoWvmScwCsxC 0jILSWoBI9MqRqHczOTs1KLMbL2CjMqS1GS9lNRNjKBwF2Hg2sHYN8fjECMTB+MhRgkOZiUR 3nfy31KEeFMSK6tSi/Lji0pzUosPMUpzsCiJ897vYUoUEkhPLEnNTk0tSC2CyTJxcEo1MNa9 aF/nGWehs+dn1X71XwfuWrrEey/cuuBP1QRnv/JZ34omf/bLkH8i7mu8q2VV0rHNLkaOkU5M qgYtUR7StkePvlgjv3yaXcxB37OPl3f28Mmv7mGcfnFD/ImyEy8yfj95Zbmjynr5hA3LxWfK 3Sj+fZVt4rsdcjvyli7bksJm8HN/6up5i3cqsRRnJBpqMRcVJwIA7C9SG2UCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230905_072602_237875_ABBF97CD X-CRM114-Status: GOOD ( 11.11 ) 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 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 Tue Sep 5 14:25: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: 13374516 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 2B70CC83F33 for ; Tue, 5 Sep 2023 14:26:41 +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=xgUNlxF+WJ2eGfKdHVjMUdCXihRZJsRjFLW+gm+/tEk=; b=RE9/62XvWGUidd fiv2E5ASMdWnp/00vLmmZIj/P9Bnju3iokp6vO1B5UV4oHYdVVUDoJvzUiW2UoUmIcYEANZ16ghut yoDOS0aXcrFFYarM5Dy7gmBdjBBseUxYT5kUmgnSiMOc3GXvmqUSH/XH3xcPlGMP/g9gvzotkTtaJ IwmtY997jAHNkuTYqQxb6zk8GaZ1+bXSv+qDUB2qLyRT6EtPphJW/CtrTov1cihRjTeSrBNoA4TU/ tccuvj9Jl3gLf2jImUM8wUF4Ef7DU0VpcJCdpU0W1OcSkqdhyq2k1Vj/+aIDDkVcNib5XeSqWLf99 IE2qjPOmZOhmJrPckYPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdX0J-006Aaj-2w; Tue, 05 Sep 2023 14:26:07 +0000 Received: from mickerik.phytec.de ([91.26.50.163]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdX0E-006AWM-17 for linux-arm-kernel@lists.infradead.org; Tue, 05 Sep 2023 14:26:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1693923957; x=1696515957; 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=tw0gf5hYCSHXxvp2eGolhDqW97el+vDkZw1SQBL4sNY=; b=Yhn20NU4oOL8+VlfhNfg86LpcsnsaDBuvB4W6hLMQmlWVoA1rFyPi24IwZ2ie+Gw suhkHlE0YekyCSw9joewZBCH9zOApxq3KpF1Kp96kmyKdcCoaDtGvb5zGJwZPhHA yGSjUGoariBwbWPv/kzQiVNAojD7rBCBdnXmqG2C4Ro=; X-AuditID: ac14000a-6d65670000001e37-29-64f73a74c0ba Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 05.E5.07735.57A37F46; Tue, 5 Sep 2023 16:25:57 +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 2023090516255668-5703 ; Tue, 5 Sep 2023 16:25:56 +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 v3 3/4] arm64: dts: imx8mp: Add gpio-line-names Date: Tue, 5 Sep 2023 16:25:54 +0200 Message-Id: <20230905142555.27519-4-c.tenruh@phytec.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230905142555.27519-1-c.tenruh@phytec.de> References: <20230905142555.27519-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 16:25:56, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 05.09.2023 16:25:56 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPLMWRmVeSWpSXmKPExsWyRpJBRLfU6nuKwY6tTBZr9p5jsnh41d9i 1dSdLBZ9Lx4yW2x6fI3VouvXSmaL1r1H2C3+bt/EYvFii7hF9zt1By6PnbPusntsWtXJ5nHn 2h42j81L6j36u1tYPTa+28Hk0f/XIIA9issmJTUnsyy1SN8ugSvj45JJ7AW3BSsuPTvC2MB4 hK+LkZNDQsBEYtWyiaxdjFwcQgLbGCUe9b6Bci4ySnx++o0ZpIpNQFVi3rGJYLaIwCEmiZVX 4kBsZgEniY8NX1m6GDk4hAXsJa6sKgQxWQRUJK6s5QQxeQXMJQ7cFoNYJS+x/+BZZpAwp4CF xNO1JiCmEFDF8iU+IBW8AoISJ2c+YYGovsIo8X2zEYQtJHF68VlmiJXaEssWvmaewCgwC0nL LCSpBYxMqxiFcjOTs1OLMrP1CjIqS1KT9VJSNzGCAl2EgWsHY98cj0OMTByMhxglOJiVRHjf yX9LEeJNSaysSi3Kjy8qzUktPsQozcGiJM57v4cpUUggPbEkNTs1tSC1CCbLxMEp1cDIvb07 4t8L7nu/6s7NNXqU6RAt61lVsczgykPL5Cd5x+dlf2hyDZKVFE+zaE5wkut1MHxqOc3/6+Y/ eZM7zVYHFL4p3qD8edeP6/5bbri/ddbaabdwpfqf850tze0cjiW+R/eoL/0itmkif4DW779h VR1H9lQIfbBKm8Ti8SRe94H58tNzAruVWIozEg21mIuKEwGdNJ/xYgIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230905_072602_526576_3628179E X-CRM114-Status: UNSURE ( 9.43 ) 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 for imx8mp-phycore and imx8mp-phyboard-pollux. Signed-off-by: Cem Tenruh Reviewed-by: Fabio Estevam --- Changes in v3: - No changes Changes in v2: - No changes --- .../freescale/imx8mp-phyboard-pollux-rdk.dts | 27 +++++++++++++++++++ .../dts/freescale/imx8mp-phycore-som.dtsi | 13 +++++++++ 2 files changed, 40 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 = < 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 Tue Sep 5 14:25: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: 13374513 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 E0E6BC83F33 for ; Tue, 5 Sep 2023 14:26:28 +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=/8lnLxcrGzM/VnGMhZazigPqE25FO1kHSnMytsGm2Is=; b=URTkKjoZROzU1B XOJ8TiT5PAK0dd7vUCNnwSCPS9AAQKZY2k86+2xwyceHMfajcTTFQkaY805+TDxYtqHLxg4siKZaN CEt1EQjyHJVDySJV44hQzFwsAx30ateyQzujnwnG80I83It9TuXZZCI5ACpzf/Kt2i278mc9+sqzM tzlRFOlTQVVeT857MzP8/G5vWldlRNiUlP4TYeMTWYRjUvrLPEwozYQWTgztE/hlufLGjfJm1L4yq rJwKu/vK8eve7b9GpvU30qxftCjxLJGd1FrLewaNShD6VsLeANqHG4I3ONX9OmFbi1qZuSlHbwRki +A9DkrtM1c91REV5+2RQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdX0K-006Ab2-1Y; Tue, 05 Sep 2023 14:26:08 +0000 Received: from mickerik.phytec.de ([91.26.50.163]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdX0F-006AWJ-3D for linux-arm-kernel@lists.infradead.org; Tue, 05 Sep 2023 14:26:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1693923957; x=1696515957; 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=rr9Ssu4VA/Ed9oMsg+vh2xz3Fru36V05VvJRDJu4dl8=; b=DKSX8xyt2Hnvx+WNz7wulXTsFAXTfC+brHnaDhiCMUybHDS2rHnvshxJjni+RhPq DkWLhS6DxUOFrkmd6+3VC7z65A58eS/LaIpm4cwYJX0b+sn727dzvC08+xCp7gbY b0npOnIk2rV0d9RreD4BbBrqAj+dyooLL9lZj5DpBJ0=; X-AuditID: ac14000a-6e25770000001e37-2a-64f73a75f15b Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id B5.E5.07735.57A37F46; Tue, 5 Sep 2023 16:25:57 +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 2023090516255696-5704 ; Tue, 5 Sep 2023 16:25:56 +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 v3 4/4] arm64: dts: imx8mp-phyboard-pollux: Add support for RS232/RS485 Date: Tue, 5 Sep 2023 16:25:55 +0200 Message-Id: <20230905142555.27519-5-c.tenruh@phytec.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230905142555.27519-1-c.tenruh@phytec.de> References: <20230905142555.27519-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 16:25:56, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 05.09.2023 16:25:57 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrELMWRmVeSWpSXmKPExsWyRpJBRLfU6nuKwcdlnBZr9p5jsnh41d9i 1dSdLBZ9Lx4yW2x6fI3VouvXSmaL1r1H2C3+bt/EYvFii7hF9zt1By6PnbPusntsWtXJ5nHn 2h42j81L6j36u1tYPTa+28Hk0f/XIIA9issmJTUnsyy1SN8ugSvjbe8VpoILfBVzWt6xNzBu 4Oli5OSQEDCR2LVlPXsXIxeHkMA2Rol3x/8wQzgXGSUezVjODlLFJqAqMe/YRGYQW0TgEJPE yitxIDazgJPEx4avLCC2sEC4xK33e4BqODhYBFQkth8MAgnzCphL/Lr0mA1imbzE/oNnwUo4 BSwknq41ATGFgEqWL/GBqBaUODnzCQvIBRICVxglZk2/AtUqJHF68VlmiK3aEssWvmaewCgw C0nPLCSpBYxMqxiFcjOTs1OLMrP1CjIqS1KT9VJSNzGCwl2EgWsHY98cj0OMTByMhxglOJiV RHjfyX9LEeJNSaysSi3Kjy8qzUktPsQozcGiJM57v4cpUUggPbEkNTs1tSC1CCbLxMEp1cDI 1POZJ1186oHs+6Lhq+6s8P22+su18Pjzrj2vhSf7dguoz9repiPQ8n1Fh777qdcFk3i+xBp/ 7fh4w+URp+9N65oL295NO1Vs6JVUXrG5ylqNZe/nmjXzjk9JSX2lIe4bxzF57fdDGR8XvZ+t KRL37IWHce/GVUkqr49t0VDjeuabVL5c5tJ0JZbijERDLeai4kQAZkfezWUCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230905_072604_180847_0611212D X-CRM114-Status: GOOD ( 11.12 ) 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 Reviewed-by: Fabio Estevam --- 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