From patchwork Wed Feb 21 14:58:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13565005 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 76797C48BC3 for ; Wed, 21 Feb 2024 06:52:09 +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=seNaTLdCUns4+6 sHRw8bErt5dMQ5tf7FuRYZTui72BHHlz9x5888aqeaxeja+Pd7kUz/o0NVKSfHGj+EInCcyshJb6S QDEEk9bAAcTDNPrdCpDJxY3mUfkm/U3apzy4+bKQ8rgC5MmMsAMLgBNY6E+vY0NrLQkT/uCO5BqwR A9gN8R+1pNASVUjsy9FEiK/R3/TnWNrTASX7XFGniUrNV8Aod/07Mbnz0oYQ7oWW5Wy5Jtfo0AWlu cLjjdLW2Syhfom8+z42PW42ZGTGzPrmC7ZYXMkKO7rCnydduQ1tdwOJ4tQgaIo7eV1a7enbWufVd1 17/W8pSUzA9MtjPTvczA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcgSU-0000000HNYd-3iha; Wed, 21 Feb 2024 06:51:58 +0000 Received: from mail-db3eur04on0623.outbound.protection.outlook.com ([2a01:111:f400:fe0c::623] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcgSN-0000000HNSN-07zY for linux-arm-kernel@lists.infradead.org; Wed, 21 Feb 2024 06:51:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MJdti1zECQUKRUg597zR6QcdIx0UCOjWhAUiBeKzrFFKNEzGXid+TahITe12vVlbnPj16qj+4UsVRqJUy21FA1EajBPSZJe4nq1H+4e9/SI/nDjCIxwva/N2Q36hTB5PYP2d9KGIEm5AVmTcx6pftlh+SVeaEao6Kem1KOj6SI/MLIT9eRTVzKXPCsb8sDd3yKEywz1hbTL13P4PXHULsqASyIPVnvOZoXvqMGmAFZvs/o21OI+zn+CGNo3wxo0s57VKPdDA2jmdb6gy1pJ6nbafThCn/MUGY97sdQlYXOv+uxORU3/WIfSeAuSdeNDBV95A5VjHTvYybFATAVoM6g== 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=ib6tdNF3ePLfhHNM5Rgclml+YqBCXs+yoQR8+E/iqpyeDe0cKGAAKl5JbOMcjuEMP2GGI9cnWHkYxAflN545JiN2oSWq15FEk1bFaxbyqgtE4u7Edutz5xlp3rI0IMsUBmuEvZpwW86xXX3nY9L/YKEhfR/mvA183sA5fCbHVjCVOIuALY55HcRguIGVzQJEBuXaaxKsc902Ixd3fcnRFbCNhyaZfyGQ07cviSjQiLljp63aopER9W+dFsiU3eEvPW9SQumi9Dk+gRKEmDqGIziNdofhRFTbf1mcchO4gZqWfbnylT1SMpmSO2VZcD7pX5YghnrSJerBUIaOD6xqXA== 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=W8JlJZGwTz9aLCWGO/xp/rPri1JnXsYWd3m6md5L3yyhMUkhWHhCNrOzgTobJ8/ugOEs1kqN0yR0tt0g6Z+AJ5n1EP/qZQzOlYc73teGG1offk2ZU754gjBk27XwC75QgKT98wMI1wpnALelokBBPYv1HMeVUZ74MUAYojikOlw= 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 PAXPR04MB9304.eurprd04.prod.outlook.com (2603:10a6:102:2b6::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.39; Wed, 21 Feb 2024 06:51:45 +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 06:51:45 +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: [PATCH v6 3/9] arm64: dts: imx8ulp-evk: enable usb nodes and add ptn5150 nodes Date: Wed, 21 Feb 2024 22:58:40 +0800 Message-Id: <20240221145846.1611627-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240221145846.1611627-1-xu.yang_2@nxp.com> References: <20240221145846.1611627-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2P153CA0014.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::6) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PAXPR04MB9304:EE_ X-MS-Office365-Filtering-Correlation-Id: 26be403d-2bbf-4203-2afc-08dc32a99140 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tziXB8j4jlZCDdeO0z2fsF3jkN6itbB4ENSQn9wSZoNyUwCR+71PD0ktQg4GKePY1yMZ/6nHTtjAk8NOMFZtQZpwvhLHjvMNIbzsB/K5VUKhFDo76mN0gbOz9ZN4BcSU3JhtWlGMJEg9RxQuxj9UGkggoZrIUUxK1svm2aL7K2w1Sx+kkHqOg2C2wvyMID4Ydrmk0g5yben2Cj1VfuEcaCFTQEiW4ba+y6soLe2px5SuQEelvKUsP7luh4Ey4d3nBE5QpImwxyC7EDCGH2Gf5sjvGc1PJnpKC+edRQ2JVozd0+XaeKlTgjEm7mbqhmEsk6Su0o1MCZGjBo+Wo9VHE4XDeasHTdq2HKH6scyd30rLDqfJUPD46S246VdZZFLg8oMvnhIgx6xEiCH3RZMokTiGke1vIXJGk7K6FCWOHntZMq0ObZ3y93L+BKHfCBDA6kc4t/a/5HWdDo8SNTCk2ODkUuYGnlv/QOtgyqUn6sVhIYMBK8FKHMNiTJresLidlrJlSycKHpmaGkxu5gkZ3gO1762VJ+3Z5Na8HvRT7MptlpZFi+pVxP2sA+PaRE7zSoC/WEcCXIrsK8OCqfZjeg/qsUTDhfFsB3OtBSUMakZq6CQCNGqO5LBVnZ2LSO9B 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: VIWJmRPkYcrCX8YDhD6jRxGgXpssvtVIhtmXmztK3KlAxwvSYs6QlxTXCMIUaD1+RaZSOw/ENhiAXhDBYMpOVF51M8kKqLtd/Vqp3/fPnX4Ei8XHmiOu8/CXyw1VIWn/AR0qlCQ2+mRPYEPYJ2v80XmHpgEbh3ifOnVQ9b7b2IM+1sxPKEKR61LbC/QS1M/5cEGdrlRyh+vcbR7ZWnmfMMPMu3vQlexE14NQUpaLF7ZcFTIFkyFBBPDxthrwbvCXBXo1MzC3zArG52JHoRy+zfD3uACS2nSWQGi/zb9J1c6osnobaVzMtIZTQdhmglSiEmXouSy9r1eUOLI5P0t1jCGrNZ/KsVv6B81ifVYu8/6JlhlgUI0zRXS5G9riYGPojaiyPS9WjYgDUtrAAjeQ7qtvWUydStrMpnPgaumx9fJXZxtCKJ9rBdoy/3ey23zws8SeftHdo1RFsVqLP27RB/hmZ1DWXg/uynzkEacUFI3W/jD6UpCHDbfAw/0AtUm2T/Q+ZWNCyHWekDwVpPw/VySfYYwjC1Cmd6uoskV8S1I/lO44fnsDoMUwbYPnLro1BVCAH7bLCwuwCI9QuDWcQo55fzZYbyaIx6QJ7alzo8MSHU+x0EEdFLkLpJ8DC/QtdOnmpp+WWIrnCUW3vnhoAd83kDz4/jpAOS6FsNfFKHLRmGpokbP8/TR9IB1nEAQUjt4UVJu7NA599LxhGtu8xqlh4X00q9JZTDEdBA3n9tlerPDScCJTfSdJpQy8etSeBXlHk26XQh+UoGmfWxENivhqattvSzIw+KnczvYEyl/hXu9DSLsG2me/YoRYJ+vA30nRWdPf1t4/2HqQqTJgcGzfgUPYThVRqFNVjJhAekWuOez5TiTJw8Bx5mx4zBRfqGOcjRznfr9qzVj/aBx5VizoqToPLacbQv6X+95FcDzn83UtFM+vv9P9JSf4TxMzE4sFaqhSi15frcQyDhJoVS6Y8K1TOyOR5YfJW2fYkPyDvfmUiVvgLH52foRyixqou9+wm5tHBom5G/wEbXzs+wj9lEeXmOmiq/KBrxtK/tcduPxHcOffpML8uPyLPoj9pkwdtjaz98qt+b612Z9lspOpZoMB8hvSTwkOtOYOBYt57VdSYmhJLneMXcKdnNNTmdYUq+me1xyijIcNL2ja7RI2BlLnqkfA5Hxu8qgz8konuciTrPiQEfnBQUsAwhzabOYYTprsUTWf1EHYJKxNoyC0+HTCZ2kgCzAN89+I3PN9FK1N6tNR/VmfKnoiX7Jo1+OBI+M67Yk30gjsrDYPG5Wg1Gceaec8qSlUaWg2ngyb6NQnVyrPwSo18ZOfmpXpCGyM3wdHRmoJ/ULBs8kh2XDLZbxlviNNWEDT35M6iAB1JhPalUO/6x87omENetXBC2HrqjdY5udJWglCWoBZTAHDkmUyrfxcfBhP0ALxbeLYjJjKFMJ38l3gFPpHI4LUbn5aQJtm7xx1qOeKuThcbO+hNvDJlTWQRqySmP69/zvXzOc0vIvhPq5+vuGGPuB5ccnGh39ALPUgnWAS4R8WAD/L7TUoKt1KOOUeNgmTdT/FbPW4AZollU2gVpnzMGzO X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26be403d-2bbf-4203-2afc-08dc32a99140 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2024 06:51:45.0151 (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: S9MT5I/B+07OpdBMP6tnMJCOq4RsAv4YrRGtY6a/SJro4ggtBkXztQRGVm1XAaP7DX9rpwTTSaVspBhzgCSnzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9304 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240220_225151_106785_099D34FB X-CRM114-Status: GOOD ( 11.37 ) 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