From patchwork Wed Feb 21 08:02:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13565076 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 037F0C5475B for ; Wed, 21 Feb 2024 08:03:19 +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=WkrTE5Iy/LTEMCnVGHdQYlsvWHYp/kDHNrogHgHtAhs=; b=OhDwmP4HT8782e XI3vuD7HLqMixcYOhL6gX5V1VT3uTEiAuNmWqe6BmNCXec8kd9MT0qSMCe1lLPg/XShtUY6ycUqzc iLCNtfD4Z1uMMqGTxtfoELDWFviekB6GPgpyi/FbTIGLHmA7j0ZbcVBpdN8ubMNOKJMLJLo0rkQ0s esN82+BF3bJOSHab4CqhK1W3Aq1Fb/47+mGFIfXMm5voVvG1moiuXSrjoJh8l+R+AxcopgqQmgBih 4zPkyAEx7rbjvfEaN5DC1RYRMK2dzifD7VGuAaBsJcF4MYLrOjGY77SAIyJb9IJSNeW/mIzy2on5R fk0+dAHlf8axIjRv2JnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rchZG-0000000Haai-01a6; Wed, 21 Feb 2024 08:03:02 +0000 Received: from mail-dbaeur03on20601.outbound.protection.outlook.com ([2a01:111:f403:260d::601] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rchZ8-0000000HaWJ-0wQP for linux-arm-kernel@lists.infradead.org; Wed, 21 Feb 2024 08:02:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZkThKvC+tABSXDafDZM3pTMc+GUzL4B93u/05BETxKxe8pRzik1nIm70+IFvY4J9hZXfPzdMjzjcaDBvmqTeeK3Lu66PK0//PQyAdT243WdSXT7RoNDrmz/TtrOFRwOQWZSgj6bI4rLWeVKuXNut89VwiweduoV5RbM86nG717YLIBHy4LrzfrpaKXxCQk48DNFIEdaApYXhJOykrAKXYXk50FRuojfXeSKKex9j7PpRRMzIR3PMq3Y4/snln6csd2mRDVko1hgO6IWL4L2izhgRku3P7BlPkg42Hkw3SVV6COrTf4P3rDo9wqgc1p8gSnGXMtVIaisNBaoFKErEug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=b4zReIWs7rc4IupR5I6CHPP+Uxix/ZgoGRzkBt7yCRc=; b=cdUAEY2/9B7VYNiHJIly+kpe12+9QZ/GMQyBuefj6+Uq5wgseb9obdFgZqEHlM8i3mm8EISQhT/iX9dqP6YIS6OJYTKzJEarWXOFKcrM6eMrTL+dG+1Wmnsad+9CQYETV8yFWqW9uc1kqb1ZP5XufK4z9/bF8JyEicFYg+7VPS3k0mdMV9Cq5Xp33eRPlmHN2iC2wAZWNkirGmBBol7SG/8zwair45TAwlYs+C6M7tLIiQpx8LAlixusdH6ySjXSVc5aWUq+Nua+zOy5Www16ke5sCTIEKi1ImRAoHB1Mxp/9wQEiKyte4nQwAaiwMfaElp7RLViVRVbKxZpXdmVCg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b4zReIWs7rc4IupR5I6CHPP+Uxix/ZgoGRzkBt7yCRc=; b=cwBQ4VkBEom8PzkXu4UEqPzHcrQZxG/rehwniXXROn5Ne/n/zdBPW8oSCD5FicfHP+qpe0hidwehHNYbiHNd4PGCShUEdj+6OhfHZoKKxV9YhjVi+IBuRjEI02C0SOjVWNXhJ+BJCWPHFLKC7EcZW+vOon2xC9/S8RkDnvUD9HI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by AS5PR04MB9770.eurprd04.prod.outlook.com (2603:10a6:20b:654::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.21; Wed, 21 Feb 2024 08:02:53 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::d45f:4483:c11:68b0]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::d45f:4483:c11:68b0%7]) with mapi id 15.20.7292.029; Wed, 21 Feb 2024 08:02:53 +0000 From: Xu Yang To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, conor+dt@kernel.org Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, peter.chen@kernel.org, xu.yang_2@nxp.com, jun.li@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND v6 3/9] arm64: dts: imx8ulp-evk: enable usb nodes and add ptn5150 nodes Date: Wed, 21 Feb 2024 16:02:32 +0800 Message-Id: <20240221080238.1615536-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240221080238.1615536-1-xu.yang_2@nxp.com> References: <20240221080238.1615536-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR04CA0017.apcprd04.prod.outlook.com (2603:1096:4:197::15) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AS5PR04MB9770:EE_ X-MS-Office365-Filtering-Correlation-Id: d96eb9b9-d9d1-4259-d435-08dc32b38140 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q8aQblnJXrYJ+PNt8U1qF3qT57gTDzQHFSVotKPC6vDPGmcgwInxKXaFJsjqEnw1wHkgNHjVWcw8PGa8k9pT2ba98UBlSVxNA6Kpf7eFj3I/9wAQUJ2GDyNuamOneGii4RL5zLBBW06JBViuZCI+22e3vfJWxLQr9Kxmwgpybp61FRn9WE1RprtMdWES7WXH5o6Sbuu5Y0dED7n8whBq+F4tvAUQri0XCMGWa7mzr+FrpffiGlO+DMPzXD2qmYxdlh5NCxHcwc/bvYgeSbO5//XBrMgtFyearlQCgGTCaiDNzbS8sgE8cX1UGgn+axLwqgtdVZqL9sE6v2oB5ZtZjVDvYGiTugmpsTVaN/TwX7qLbAjjYTBi9rd4fnSE4VHT3d8i39u88u1ZPyzFl8vSKmFpu9p9JY4qrwnA/ZHJS74q++KE7i14387WytQ72oy5HTq1oSGD2E+9Ac+TGcsTPL+M3fwuWJe3wJrxACps0JJQwb3eb2N82lDpLG5edg9dNTIY82kqNabyxqgiqtJY3jQZazEDlgnWmQVCtU6oZXh7Rmc/oj2wUiWt+tSDGO5hGJEg82Kvm1Hd7lK37CAsOdn3ssJatXGv71ja4tzlZ71rkxw66b2NtWbc3FXr/tyC X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zz5BjmW/QJ5m3040nnTfKcqlz8GO3b5W1OBaEpj3k8zXF9wkTYtINBiAOVLxTRVUTy3Jz8W8yvCy1rUdPdrAYbFS8s2G6hYqM4LlK1rO+D3tigz1IcLI1+g4FUFvlkuXhO/ZB5goIuUi/+9SBgWWbvxVYpHlRN9zjx7mHl7IW1Kml2F/CIQN6g8LYacmpyS7a2XWGvGWlo8FGNqYFmmCQ+v53Bcs2IXAwe1z71Ur6WsbCp+YYYiCvyaR/z5r31nOZnAv89mLXlQHa4sKMlLNyzOU0Dtfskkl46hVkgIH/XTg78t2kQMaRDLDA77Vfkhm++uBJBLbtqN+nkeOtFds9CgeSbstRz8DndADZ6Nc5xNRwYzQuvQuKs2Wq5RiQ0jpNkXHvR/q9qtTyEPgnaWcefD1olY4ntBE5tjTzzg2TRIZxHhLoI9Pzt3ABegqvvqNAOxvDUhHIJ1nELpt5oY9OZWZ0t79hoMrA5TVry6AyBB2Tsn3Bsb8NTVf5n0vM+zBfrweXSjVgZPcEfQoFs7SzNyo4PVMsxVLMw617DRZlKzcSNrAcSNNBOJpMijo70h7ucAQnkJnm/xhanZK4wBC0QdRQ7P+DwdyJ916VhG4foVygEhOdCEcNen27asW6gos+zPIVTXzyzV1dWoU7FTGRcO9jAd0osxnqO3GrYrV1kYTh00rAFHoNGr1S/OxqBkYKRmo9JfBjzBaMAA3RmM//HdDnUMcQY1sZQONhZF23wamIwkOtthYupDEN1h8wDPGQvrz99OdmqBVrVfaZGwtKEYe5V+RMr6ONI9OqPqlN3rFE1B2UVPIxxdLdW5CB2c9opv7Gug/fkWrYVFYg7YyIGETfOu+DMN5RxawfDo+RaXIshFvwaVrFziDtfebAbvD2OLxzF/srcO1HifO9adTOK7E4PVddPOxfux5UWSA4jzBM9v2Qq9EC9HureBYfXEropIJWEbSDWeZZzAASQAwnEk/3nHBw+lWSJDzEcAUKyCpTMSD7W9P7H9MbNMg6Q3MSJU+ycG481GRuTDtaG7OU1IHTnnJoFLhVmK/l3YR+JP/l2gYofI9rPCe0EEi9NL6dCr8yI3+qYprMw3FWujZpWxgUlUUWifEwWbpBSaZbzu8JSXKBixCn6iyRV1SSv2YMLBiMJEbUntKVyqfcUOQ1xVtEj/afIlTCmsILGoX/Ct93vpwuCQCri7wa6T2cNfbErqTH/VtDyvZoWAQsTM5/CRrPFtXquGrGNM1MwWYT5r/QFSaIXmm/7RY93cZPp6rkjQMXOHSOmMGemJULHm0V6Krrxz3C0vO+GrP4/E1n0/PiLmpXuUfxsQjcGOmGxOoRLgp1FOSVWa54nbdE89H/6tl+Mwxv6tnD+JccSUW1aCmEzQxDt3/6lcXs+vECNTNph159KZkr+1njzcP/ufj88p0t4pfIsjd+HLjXi8+FC8MbAgAQfd3hEBoFkJ1I/Vd5WWU6VUdXlzfl1bbVEmTBbI5AVQEZioe2rHFg4qUGe7ht85BgBNrg2rJ2AbxqTPWvNEhkOa7ezV3RWBj/DwJSTlHvHtQs32zM9SkErf5tqP7E++8wuTsM95tcFGIWGms X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d96eb9b9-d9d1-4259-d435-08dc32b38140 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2024 08:02:53.0430 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yGctdFlYULqdGNogxuoav8l7Nw0jFMndTnTB76vdl9bLEMYVyUVXP2aBhxnknTSx0atzN/cl7vTQGhz8yRu7rg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9770 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240221_000254_299861_C92EC806 X-CRM114-Status: GOOD ( 11.05 ) 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 Enable 2 USB nodes and add 2 PTN5150 nodes on i.MX8ULP evk board. Signed-off-by: Xu Yang --- Changes in v2: - fix format as suggusted by Fabio - add PTN5150 nodes Changes in v3: - no changes Changes in v4: - no changes Changes in v5: - no changes Changes in v6: - no changes --- arch/arm64/boot/dts/freescale/imx8ulp-evk.dts | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts b/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts index 69dd8e31027c..bf418af31039 100644 --- a/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts @@ -133,6 +133,64 @@ pcal6408: gpio@21 { gpio-controller; #gpio-cells = <2>; }; + + ptn5150_1: typec@1d { + compatible = "nxp,ptn5150"; + reg = <0x1d>; + int-gpios = <&gpiof 3 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec1>; + status = "disabled"; + }; + + ptn5150_2: typec@3d { + compatible = "nxp,ptn5150"; + reg = <0x3d>; + int-gpios = <&gpiof 5 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec2>; + status = "disabled"; + }; +}; + +&usbotg1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb1>; + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; + over-current-active-low; + status = "okay"; +}; + +&usbphy1 { + fsl,tx-d-cal = <110>; + status = "okay"; +}; + +&usbmisc1 { + status = "okay"; +}; + +&usbotg2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb2>; + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; + over-current-active-low; + status = "okay"; +}; + +&usbphy2 { + fsl,tx-d-cal = <110>; + status = "okay"; +}; + +&usbmisc2 { + status = "okay"; }; &usdhc0 { @@ -224,6 +282,32 @@ MX8ULP_PAD_PTE13__LPI2C7_SDA 0x20 >; }; + pinctrl_typec1: typec1grp { + fsl,pins = < + MX8ULP_PAD_PTF3__PTF3 0x3 + >; + }; + + pinctrl_typec2: typec2grp { + fsl,pins = < + MX8ULP_PAD_PTF5__PTF5 0x3 + >; + }; + + pinctrl_usb1: usb1grp { + fsl,pins = < + MX8ULP_PAD_PTF2__USB0_ID 0x10003 + MX8ULP_PAD_PTF4__USB0_OC 0x10003 + >; + }; + + pinctrl_usb2: usb2grp { + fsl,pins = < + MX8ULP_PAD_PTD23__USB1_ID 0x10003 + MX8ULP_PAD_PTF6__USB1_OC 0x10003 + >; + }; + pinctrl_usdhc0: usdhc0grp { fsl,pins = < MX8ULP_PAD_PTD1__SDHC0_CMD 0x3