From patchwork Tue Sep 5 08:29:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cem Tenruh X-Patchwork-Id: 13374381 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 23751C83F2C for ; Tue, 5 Sep 2023 08:29:54 +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=zqNG0tvnhiSBT8lUc08CLc6nON+3VENiA6PPcFfJCqg=; b=Si2UzfPiC1xaFh RhOZjGVqy9lk89MPYcWBjnLJx+HcfZjjNHeE/fNppKlP0DGa7exlXKhrdaHBAfRTBrU46hPL3zYfn iBKd+Nx0Jqin/29qWUhKZHoc9qk4H3C1OavDmlu8Va6KaiU9u1oqYVhTKJRaXxIFFL+IExKaJKMgv 7cX6/gGO+4Y3Zz2FNXal6KfHvxfu9CZesvtUk63K2YIKWH6po9c3aTt6Uf9ejoQG2bwWPSdbXI2Pt TKwGpc1ndoSiByt3UGsP12mMea9zKLKvnJPyc3u25iEGpVDke3miWJJ06MsNNJlvTTUa1w+LkPOdR 0Pme9swaJTQvIM9D0dow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdRR8-005WpB-2F; Tue, 05 Sep 2023 08:29:26 +0000 Received: from mickerik.phytec.de ([91.26.50.163]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdRR5-005WnS-10 for linux-arm-kernel@lists.infradead.org; Tue, 05 Sep 2023 08:29:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1693902556; x=1696494556; 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=A6acq2lCOaUyIujhDJnC+luND6Xg9MIW3XqQeUQS9fc=; b=l9vqfUR0tg8WLE7rhEMK9uZMsgUjmwd3SgrlgAKO0GF/emFblQxahSDXmAKd5xWF ZnrFOzTkHw7hgDXtBBg4xV3BKZ63o8bBBmBTM6FMf1e61p081JxRWYqELQ/uy/dX s0x5k6VXG8qUgq9W7ZpTQ5dgF/i3wZtre1YBIrrjFnc=; X-AuditID: ac14000a-6e25770000001e37-2e-64f6e6dcf5c6 Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 1F.61.07735.CD6E6F46; Tue, 5 Sep 2023 10:29:16 +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 2023090510291646-2887 ; 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 1/4] arm64: dts: imx8mp-phyboard-pollux: Add flexcan support Date: Tue, 5 Sep 2023 10:29:13 +0200 Message-Id: <20230905082916.18852-2-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:16 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsWyRpJBRPfOs28pBkdWGFus2XuOyeLhVX+L VVN3slj0vXjIbLHp8TVWi65fK5ktWvceYbf4u30Ti8WLLeIW3e/UHbg8ds66y+6xaVUnm8ed a3vYPDYvqffo725h9dj4bgeTR/9fgwD2KC6blNSczLLUIn27BK6MVa33mQqOilWsmB3QwPhQ qIuRk0NCwERi4ZdbjF2MXBxCAtsYJQ7NX8YG4VxklHi/oY8VpIpNQFVi3rGJzCC2iMAhJomV V+JAbGYBJ4mPDV9ZQGxhAX+Jx2cPMILYLAIqEjO7OsF6eQXMJX7t2sgOsU1eYv/Bs2BzOAUs JO6cPsQGYgsB1fS/+cwIUS8ocXLmExaQIyQErjBK/Fm1mQWiWUji9GKIZmYBbYllC18zT2AU mIWkZxaS1AJGplWMQrmZydmpRZnZegUZlSWpyXopqZsYQSEvwsC1g7FvjschRiYOxkOMEhzM SiK87+S/pQjxpiRWVqUW5ccXleakFh9ilOZgURLnvd/DlCgkkJ5YkpqdmlqQWgSTZeLglGpg VF8Yu8DiGkdoVLJqgti04i8Zfo+0tVuq2YXifGyOVzyK3dLdXdJY/F5asKTRsype95Owtnuo /Kdr54TblZbaiOb0cSW3XT2jL7VPffuazZ4qKzYKNU65eC0ra3LHBsmkF5NXTZ7sIRyec+Ob WuGKfZ57tdov6LTMfFCx9ELQp6Zqt2V37c4osRRnJBpqMRcVJwIA0bxJfmcCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230905_012923_808012_3B27DCAA 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 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 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 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 From patchwork Tue Sep 5 08:29:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cem Tenruh X-Patchwork-Id: 13374384 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 47876C83F2C for ; Tue, 5 Sep 2023 08:29:59 +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=CE+GGPsCHpMBYuDlfPtY5cbqu+C3/3M6uBeNyctiTv8=; b=4GmRmy/G9gbYFg aa8+DgXblqa4mJiJ4YgjJjg3cJlsGPFTZd7C3vXw83WkMRubK1/0DqhGXGy47b2JuZaC/shf1alHp 1LZJBSeKMeqGfqVy1eJ6O+BWx+OiRGL9BBsLCPXtS3U+L9/uxW9zVZsAZ6vabO/DbwgmuTCPj1y4E oU103FkYDTWz2QwLazjyvTSj8brIWVt9G+z7PuqCRsFJ0BQ9ikuq2vnNGsFapgVIH+/r+RC8WubUV cCORPSFJvADa2+PAFePKY222VU95dFJLzhiE6eJR+ReFoeuyofSkNmCvGwYV36oFbkADJTuGJyLSF g/Ew5N9IdttMEjlZUJHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdRRC-005Wqh-15; Tue, 05 Sep 2023 08:29:30 +0000 Received: from mickerik.phytec.de ([91.26.50.163]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qdRR9-005WnN-1R for linux-arm-kernel@lists.infradead.org; Tue, 05 Sep 2023 08:29:28 +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=RB1qhDxT3ZvS8ZBHrv+qXFHdjvU5B2zMRJ7xYEJ8Ks8=; b=PSO4U0TrAd8hhyMNE2FCUwU441PXBMWhS8hPpEPM0CwoYIkhNoArOTKfOiDgJouT 1Lm5axvqSZR4iSSkYbV3fTjTiJ5vXWdDLtSUkRhd44iWxphhPvB71gGHhgeVnV4O /Q3XXoD+6dPicxISND+ii2g9iNXiBO38pOeGBMxuu/8=; X-AuditID: ac14000a-6e25770000001e37-34-64f6e6dd3e53 Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id A1.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 2023090510291705-2890 ; Tue, 5 Sep 2023 10:29:17 +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 3/4] arm64: dts: imx8mp: Add gpio-line-names Date: Tue, 5 Sep 2023 10:29:15 +0200 Message-Id: <20230905082916.18852-4-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:17, 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+NgFrrKLMWRmVeSWpSXmKPExsWyRpJBRPfus28pBhPP6Vis2XuOyeLhVX+L VVN3slj0vXjIbLHp8TVWi65fK5ktWvceYbf4u30Ti8WLLeIW3e/UHbg8ds66y+6xaVUnm8ed a3vYPDYvqffo725h9dj4bgeTR/9fgwD2KC6blNSczLLUIn27BK6MWXe2shd0ClYsObaOqYGx ia+LkZNDQsBE4s2m3SxdjFwcQgLbGCV2vutnhHAuMkrs2bqdDaSKTUBVYt6xicwgtojAISaJ lVfiQGxmASeJjw1fWUBsYQF7iYlPP4PZLAIqEkd77jOB2LwC5hJtv88yQWyTl9h/8CzYHE4B C4k7pw+BzRcCqul/85kRol5Q4uTMJ2AXSQhcYZSY1LCPDaJZSOL0YohmZgFtiWULXzNPYBSY haRnFpLUAkamVYxCuZnJ2alFmdl6BRmVJanJeimpmxhBQS/CwLWDsW+OxyFGJg7GQ4wSHMxK Irzv5L+lCPGmJFZWpRblxxeV5qQWH2KU5mBREue938OUKCSQnliSmp2aWpBaBJNl4uCUamBs XbD3e2H8j5f+HOGL3lU/3LaDqcw6LLc7O3LHPf0yzvkPZzepL1d6p7nbzdGv6P4swxke+j3V eZzvbiTaJN25zXDRS5tjfVyKyMTOJ+Xq3kysCd0if+5mq3sv63p09u2bbfM62paLm+hPU5+y uvT/y5bb/kHLTYVSK+L9lu/k/iIYfW2jm4sSS3FGoqEWc1FxIgB4F51VaAIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230905_012927_629444_B1D65624 X-CRM114-Status: UNSURE ( 9.46 ) 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 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 061db98a36d3..f2620dea19ed 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts @@ -192,6 +192,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 08:29:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cem Tenruh X-Patchwork-Id: 13374382 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 9E137C83F33 for ; Tue, 5 Sep 2023 08:29:54 +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=/BpoQmw7BEdz8eFiIjM48xbz7T5seSGvC553T/WEHxU=; b=AL9TVLef4uvc/L j6AmfM6wsSwtE2XZ3Tgejldlero8i5AaTXy8wHpgpB2NUdQnZsuxJoW2le8SkElVytdAxoXFAgOsB /Gdx3qoIifRO0nb7Yl/8DS+ghO/JreHdtw/9AM2bVkn6Og8ZqkdXc665NPYs0zAhtY4WiJRXH/L9y qPlbGHSNhSziKxeuaJzEn374n3pM9X6vGiyvl+h9kXI2Pkt7chlWyIUDNOdQTh1m4mp/8fUDorpNt C2JtAw0fTMLj0+B9HU9MAB2nvUqW5J94djf/RjmWjpat8/1a/hiU2zXjQCKM9ppDEVP/S8Wsk2MLd 2JEM1iyUYQSncCmYq44w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qdRRB-005WqJ-2a; 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-005WnS-2N 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=Kg397CrkQqG9fmZcT+FqOScCKxnI+YkyG4eKblw/U9M=; b=oSKCLoqU6ICTbXi/PNotN1a0cYMi582aC+KJGYEtqhZhNzjmrhTg2jf5fuxOPtsE yP5Hj04V/UWsaKmEk/Q/sZtZ7jOXnL/28PDtK0ZF6i9bMsBve9yNnB3mNyrsLMRl I8OhH0eBNIh0ijQynDxtJ5cXH/MJvX6Q+ui2n04ESOo=; X-AuditID: ac14000a-6e25770000001e37-38-64f6e6dd0884 Received: from idefix.phytec.de (Unknown_Domain [172.25.0.20]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id F1.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 2023090510291738-2901 ; Tue, 5 Sep 2023 10:29:17 +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 4/4] arm64: dts: imx8mp-phyboard-pollux: Add support for RS232/RS485 Date: Tue, 5 Sep 2023 10:29:16 +0200 Message-Id: <20230905082916.18852-5-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:17, 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+NgFrrKLMWRmVeSWpSXmKPExsWyRpJBRPfus28pBr8WGVqs2XuOyeLhVX+L VVN3slj0vXjIbLHp8TVWi65fK5ktWvceYbf4u30Ti8WLLeIW3e/UHbg8ds66y+6xaVUnm8ed a3vYPDYvqffo725h9dj4bgeTR/9fgwD2KC6blNSczLLUIn27BK6M/mO7mAv+8VZcWjadtYHx HXcXIyeHhICJxNF719m7GLk4hAS2MUo8O3ccyrnIKLHt1kJ2kCo2AVWJeccmMoPYIgKHmCRW XokDsZkFnCQ+NnxlAbGFBcIlWvZcZASxWQRUJM5tfsYGYvMKmEu8brvHBrFNXmL/wbNgczgF LCTunD4EFhcCqul/85kRol5Q4uTMJywgR0gIXGGUmNSwD6pZSOL0YohmZgFtiWULXzNPYBSY haRnFpLUAkamVYxCuZnJ2alFmdl6BRmVJanJeimpmxhBQS/CwLWDsW+OxyFGJg7GQ4wSHMxK Irzv5L+lCPGmJFZWpRblxxeV5qQWH2KU5mBREue938OUKCSQnliSmp2aWpBaBJNl4uCUamAM MT33+byg4p1Ajj3bxDQnHFttkTo/835BWILB7eCTdhp11zlYWIvalz62Pv8nt2mCGU/t3Lxv IuflDqhNkDspe27br8zf5X3LpLmbi+/1Ck+Y9OG456zaSM+C/Ad/+cUuL3r83nIv2+Ja7Yxr 0/UuL5bfebnavnhJpbf774nXj1y1O+D9w2SOEktxRqKhFnNRcSIAfFGG1GgCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230905_012925_913916_A794074E X-CRM114-Status: GOOD ( 11.13 ) 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 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 f2620dea19ed..0b867f348816 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts @@ -178,6 +178,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>; @@ -299,6 +309,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