From patchwork Fri Mar 15 07:24:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13593118 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 E6152C54E58 for ; Fri, 15 Mar 2024 07:25:14 +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=CHPzOTeuE0UB0rtzGtWA9eY4c6tRIuY4UJRbednsAr8=; b=zXFvnLu6epTEbN DgAUKuVXIu2hMf+vxIiHA/IiRiqCZXkr8slAO7NU8KitO+lDBO4pWy+8Ps6QNf3Xt4ox19PJeDk23 /e1pLDV/7Rn3qpUhB3rDqpgGMMljjEZPM4T+C+9BXSLNddOSmI6LRSCKaATfHuKgczOoY2CAJ6vTH v3HA5cW1xsdobKd6jMkrXzprumx+NQOD2dsQGW96R3hixcb3M+ppLxykUOnGCCjDzkq6hGqYudmeB lpEzy+7RnvhqDsUNaFLeWSjrWKzMPynvSn7rEufWHu2lUZweWzwjsgf4Jc9zqQlvg3ZiWh2413LKc +ZksbkxvgRQGeuq9RoQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl1w4-0000000GxhZ-3wCX; Fri, 15 Mar 2024 07:25:00 +0000 Received: from mail-db3eur04on0600.outbound.protection.outlook.com ([2a01:111:f400:fe0c::600] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl1vz-0000000GxdH-0Ktb for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2024 07:24:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZYI/+4p/tPuedPB9c4wXz0horjEP885RdGcP/zpJ5IOLKBK1aQ1w4//OWFqRk24VEJNXH4BG1n06/TcV5LlJEsWF1u2GudmRuiJ7ZiMEvQ02xipUBOM+TeLP0e+qDFFMBcyBfAUX6U44IYnDjOugJPl85kJ9fquNNop4oP+7aDoY6AR60PaU3JzQqBOm1/8kYVOLcreUwfEcepux2aPGn4H4/4mbFRI81dAQLOotlDcVtOH8XsWEphgPORKDbIfOqiGU1wcqdnaagqnr8z3yXS5pKza3T8YDnbEyN2AVP00B20g6l2wij1Npr0SC8NzvblBrc063K+zfQWvmcmk7pA== 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=gbsVE+m0WfV6UaryDu1wPnTOZrhWmV8LcnRTSbkfBEg=; b=HaA13qnLCEzklt0R5KAq46bRRv2yvvalR1tgMFTIkjMNG2Ud+dEDhyHYdBNItsEnyyNPYGTrKFLJ2XRBOyu6qdPXhob7J5nI5NKqWsLSiw6KZ0APAnED8r+zpvt/xfTBDD1locHecDzQtjucovt/8K5QYDgPHZBrSWWC5NryFk1DMnSNDaFOmznCEwRM0njCPerf7Z1FHIGumDthtTtlizqmLzeMe3DcmvcZWF327TFlFHClM2LkIcmHE3lpHPMVK+I3m/Nw3bJqONzVG4DSR626KjYQ82ej8apFTM0yRazDuviLRZ5XxFq74quIxz24Qhs4bpShGKB6+iYVSnBvbQ== 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=gbsVE+m0WfV6UaryDu1wPnTOZrhWmV8LcnRTSbkfBEg=; b=OSw/0hapaEPfkmiwR9OokrqVoOAb0LEDEePn8edh7dI/e7sA5/XhIxHkemNX8C2NgfC23LXZqM9iOViSsZgvIXxvQwzGoBAvRSy6ZUnxYeTCIaqKlIBtSYXBFR7NDL7Ob283IXO0uaZwBESeN0bJcplp9KFXkPNQJGmrIvMYiO8= 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 DB9PR04MB8332.eurprd04.prod.outlook.com (2603:10a6:10:24f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.26; Fri, 15 Mar 2024 07:24: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.7386.021; Fri, 15 Mar 2024 07:24: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, imx@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v9 03/11] arm64: dts: imx8ulp-evk: enable usb nodes and add ptn5150 nodes Date: Fri, 15 Mar 2024 15:24:47 +0800 Message-Id: <20240315072455.2481613-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240315072455.2481613-1-xu.yang_2@nxp.com> References: <20240315072455.2481613-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2P153CA0043.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::12) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|DB9PR04MB8332:EE_ X-MS-Office365-Filtering-Correlation-Id: bb29d3d3-8a16-4eea-8fc8-08dc44c101c8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O4ayipuJcaTb2AcrSshwUJIrQtWHpmde4NP6lBRVyPU0mJ1nBuJEHrfOwjyvIcZG9eDtihuUY8xAGormtRkcHMQG3L4+RNe/HthaRbFpaoTThEeSIUXPNmUt4nTx1Oyg0y++JbieDmm+W7jbsgJ1tsR+OczMxv5RaCXbYU3/K3bBepmR6yGrx+BNz/aB/mGw5OdUt1eyCohcPnkwwm5B85WdWKqGrmYxP/tQqlyRRNqGv8nR8v8waNbj/ibLPocDj2J6gvXl1eag/eJ0cmNPJakMUq/BrdLgYBwNI7Ry08oxkoco30eXM0zhY2VeqsfhAM+P+mGPCT2QN4UXrzx/JXu+7TDGAm8VxOyLZH7clJNXn6l4fvHa6Hk6bogZB/U+tuSY3xZ+bJ1b06OQGIwqOPogRb9zqrwsf88dRNTHCflnOno9muBmDj64au+6OeWk0sIfsU9y2tAD6sLCN/1d0lbDuPgXjydY+KOyifj8pDDwFQ91Nu0fR/7ihNB9hJKe0PAZknqrYro/YbKFWM+1/QJqqdhKxOgEqc2p9+TDDiRwR5LMVogGsHe0+d/QTvhFD/cReKKoMLbvIFep0dZE0FnYDl6xLvdAOXSzx3eoHqmxJPmeoOWO+1MEyvlsy8Q9095fojGHW0wYb0q9gdkIER9EeW9Z79amLp8X0pvSZabn0H4bCu4XlK8cuFRnaaqQ/9DX7sVzZDAjQaBlefjMrQ== 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)(1800799015)(52116005)(376005)(7416005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cb6zw+Tq5AIiN7E122HwRY0EhoeaQ+b+/CcZiW1rrj/SQx4A98Mqot7r9tFW795OcrFAzcpu7q2IiuJdTceX58vWGY/lyDDI8mWntWaX+lL0D/v64UF3r4leL6n092OauDMyT2VsKTAry3BDmUhUDlFoW1Bz5Ge6IIAXW8rniwNERUy6Vm7lmQKKNznzjtAefcqX1lv95nbSEUjmk58q2wjAvy/tj7oT8mX9l1za2Jc4grCXtWqjuPw5MVJNFDXGhCl04aqEUW9fftDiQetnJElNMy/eVB1UZ+Yuq5B+2nR+S/xARFbSOGtMKPH3BZdWIUpg1TSrkbCBiS9INA8k0UTBqT4Fs+GPo2P/drRS68z3C1qmkNeeLcigf5uAFo/C7qpMmhGliyJ3hHls6wSK7Jgr982wzleyNrxr8Jb9N9Y4ykVgTS7XzeMYqdoO+cse8pczIjZUG5fk0DWmyheAN5AjzWTyutTdz9qqaYEFz6XH5NiOm1sIwoYPTv07gtMgsJtC6CgOdYsESV5tFHL686Q0WqimJVZ0Fes8CfL+R09dNvn2YhveTf2mGRem5V9GxYDze0g8pUqIUbHWCqR9LuUn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X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2024 07:24:53.1486 (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: g8qU3kc1ZPf7ALA7O2hWVAsQh9fGjYfsFZgCsPkHFW4YUgXrEkIW9mH70O7SzBCmIMOehwk2d8zI5uQ0b0bHkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8332 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240315_002455_157444_4E073D1D X-CRM114-Status: GOOD ( 10.33 ) 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 Changes in v7: - no changes Changes in v8: - no changes Changes in v9: - 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