From patchwork Thu Oct 10 09:08:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13829832 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 A1BADCF07D9 for ; Thu, 10 Oct 2024 09:11:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=3+rsBZZC9zmDjNjvXt7xFGOuzWt9iuOBG3EX/9IP0Tw=; b=1KGDQhmTGZTMVR0xP6iGpUroa6 7YmI+gaWwf5RVmyegR1oB9OEveezNQ/zzOktJlmJYRswsQKb82HgesJa2V7iShnd/gMla/Z9f7Mz5 LLFkt4xMv6XwStTA8Qhxguazz0eYH85xd7/y0reFeItPciequwEIWfePdSspX3Xpqyf8+lJxwCSNC kUqNHHz7L0G212F9tu/HrcWf6qZ9Yu2mmH0dvuFnmcU7GTJWojithJhB7Aj/UEOpWBEJ1kfQ4Aw1w ysG6HqeX7sBpJpp72TL4PatDEHrdAGt17t6SF6pzozPuIp3qtSGNgS2bbGSzdoNc5bt+n3csT10QD iMHRLjjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sypCv-0000000CAs9-06MC; Thu, 10 Oct 2024 09:11:41 +0000 Received: from mail-am0eur02on2060c.outbound.protection.outlook.com ([2a01:111:f403:2606::60c] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syp8y-0000000CA6z-3Ul4; Thu, 10 Oct 2024 09:07:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SZVzTLE6LclBL8zaHwR5LKp80YkAQrWQpxcQgpWfI9K6bgMAYgH1yucM6uiqxp8yzLI1ooyp42wcEgijv7H5wVbkskkDKAslgSsvxMuEHtdXAhVcNohinikWclSZgDdW0xuX3VFli+oiUwrVpOIXtgnIb5BaSE5YUWIxvfYzpXd1F//fq/2YyTWjYdKyKPd4nXbcBUOtcn+ZUK9rwkikDJS83tXoaKWUxcXQsb0EelMdTyF+DpSw7Qf6ck6ObIuX1oS/vV5alwp42pDJIHXJP51sfVpFnLy8wvttMQFYelUs5tnY19DkxEnGGpklgv05ePi9cpzSXRsjZoAl+5CUBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=3+rsBZZC9zmDjNjvXt7xFGOuzWt9iuOBG3EX/9IP0Tw=; b=HQnMq8Zkfj8r1VJ144JjCXzPqO6ZL7RiW5pBUpzHqsa7q+Zec0L//IN4BntcbThXij84ykOqtXEntJ+ONZWw+WGZCO3FxCxmSzGMt2Qu7UBpHvdmB7OfHuNLtpu24HWftXPF2y1lEsN7BswmWH4QuFuerxdc3l8/P6Fz/J9fbwMJc/ojn7i6/2SatFDmJSA9dNkfsmX8/1bQqipR3CjW9IPijKbHKP4YnGwwAEyLfhaNycvT8nqG5qPk6MO3DDeLPgwmASJTrepOy7OI1k5tdnzn4+MnKBeLqJtDVEC+6hTL+bY57Yk+ZNJ4Y1/7tOzdn7ZMYdxhm3e8ibmVwzsB9w== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3+rsBZZC9zmDjNjvXt7xFGOuzWt9iuOBG3EX/9IP0Tw=; b=cJG+9+fIMMVAnEvox1Evvs8ggW9FU+uoF+sdWTm6CV8nTyhM05f1DNOqdmwFQgaNMRNz6U/548GGd/LB9tzaQkeCiCqLQ1hjCIewhmiWYqe2J3FtgnKLNJ3Ascouzh7jeeYHmTux6gX4pKNeUlhCmTsoJqHvjKJBmF2rwAjl17UkCQSItwUTA+DoBFxKW8MrTkGIsO4ggdKfZYg0LtKBiwbyt78sFWikC1F1B/ShG0bxJzd7FGTmmtmxdBLE6XySm7uum2B9sf7LwIKEwE4IaUNWfHO1xmAaInnO8erXqXobKDYy7LI471THzVlInoTsINyEFsuVY5nc8B6x+OznLQ== 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 AM0PR04MB6851.eurprd04.prod.outlook.com (2603:10a6:208:182::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.18; Thu, 10 Oct 2024 09:07:31 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%4]) with mapi id 15.20.8048.013; Thu, 10 Oct 2024 09:07:31 +0000 From: Xu Yang To: vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, gregkh@linuxfoundation.org, peter.chen@kernel.org, herve.codina@bootlin.com Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, jun.li@nxp.com Subject: [PATCH v7 3/3] arm64: dts: imx95-19x19-evk: add typec nodes and enable usb3 node Date: Thu, 10 Oct 2024 17:08:22 +0800 Message-Id: <20241010090822.3915064-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241010090822.3915064-1-xu.yang_2@nxp.com> References: <20241010090822.3915064-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR01CA0187.apcprd01.prod.exchangelabs.com (2603:1096:4:189::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_|AM0PR04MB6851:EE_ X-MS-Office365-Filtering-Correlation-Id: 56d5c188-ef15-4143-1c23-08dce90af877 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|52116014|366016|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: 6WVUlBfhDeesghbRrjo4VPwJUQx18FxdiGvxUxrUYKm2ZFfcNFGjtWswudZdyRC1au6cmw2CK4PTkQG7ikwVqaAnIFO/5WqhhSO4dJ71XboLnJoxp5/92QJvxQxP7eA3gGV3ex5aiJH0U/RDzOerRyhSswlf5jFBboeinsdZn9ygbz7BXkXnrbi81umZg8Jb4yqnj6HPXY//KcEA5Nw61A4Chw6Lx2ISZJSUJemkWXW6cJPvKK2ChkueEcjhp3BmKMzsTmcZ0G3/fcDxwtZSw5L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uqxRoZdh+glK/yhJDrzhbBQx2wnL5SB745L84+qQ= 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:(13230040)(7416014)(52116014)(366016)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TL6mP/hlhbSCJ6R0zvNI3JYyBxsa4jnqb5pvzJ6i2j18YMNiOsN0DeCmdUqTLx/eHoWIHLf/0322GGt2QSw03DOBZyjL2f1BBv8GaS64JanFu46gY8HTYVDXvEEBXpoXWbL8cP40o0AlLYrzUqE/0Fw6rM/JtYb2vbdYVcbQpEf6MnQm0BgeSSLlSMA0f8FpZyvzBdpEQSZYf++dAn1xkRX+aqT/ZruaFRZcKqzo8XUYZreShf7xi+GBmSDpLg1C7HVWEQAhlqZ5ZDYxzwsgnY/9mVzlczJUp2VcQ2SbEioQFlOzDKh8qsu4meouScnPk73e8DEHkn8CughyKen8CiQR2vX/AXwRki9uEeMsg4WsBZa79TudFCTbK7gSw/er8Q7iIsGuX4kJPxwh1lcAX22F9elEZ3qLm3oIl6NEMs9jZyO0j/ohg4QgnlHxxs7aJKVJyA3L5Yy+PmUEtEkB2FlKHyVjZW4zlYSF22KdUQvRi/15VEhuuokh9ASHSBNxF36c/wQG6MaRuVUZmGtHU5TvsYBWKyq/VS90tuOEpje4gl+Ff/rlRcPlhr78TSAQq8M8wqvUWH2aw/PHMMat9cuXRZlsay6ydMUViIUi1GQd7j/mhJEqJ1NxApkGFS+OA4Zvn9hE8vpToRLoBqSqeIJmy+4UQ/xKQFzcYUkwDRsa2Gue0V69Da75LenErMKqP5KoppQlSxquX8fTzPr+e2aQJjrjSlwkF/Am2bJ5IfwzwQO9EGfkfStwr3/911Tkcwmytvhh20NdyHxjyRl1nr/ZOKHhNYaR38sSLFLuBRtrUXmltoUPhu5C1TY3cPeIZXKW5THGWk56tdgUn8K0JUTnBuvifQHA9RFCf4AoXYEAyODaOUjXP3t7mhageh0YPm96YoYrKujEb+7DG8mcj106swH0PKcR6Yng+/UzxHOLjJv4hxq9FTJhje0cvijk99SqDo8SolxlheNAM0r6HAx7w4GIHHqfvZmL3KYM9hYttXVP5ysHlNUdoLiNgKbymDiZSSH8nqobDuNMxthqkvU3L952FbeIBpEG1+a+R+WEM1sX3tDp/Lnfvf3/IA6iPBLClhEWbDrFTVB22eKxPCsHAtZASJFfgM07pXB/hlJFT3fjXvY15J/Pc87+aC58dKtPF8nnSqrOXMeKgV4oPY4zYv00EsWoK6dBjEiSFAQXEbANBevg8J+JGqMIQIRuCWt3WpCUxT0THcV1gooKsfOkD0i3yd41wvtB//QD6PDec2ctkPIvdj8mEFD+tzbK+l5qoNJWdLLHjCfZolCbFrAZiFDeQFNDKzW4K/PyBLTytI5Gmlt3UTk6yepopzYzaZdEEzEJW/SOcd5HIclZ/lxKdBYwzi8kfulrkf/DJnvwWP0m1Nk5HC6NZ5lq5dtwbj5+hRzD5R9d60NveOzMqC1l8eaUVSAwq6aUQoLXCvR0Ovt001IkOqlXLzezVwvMbPof0SRUOzWw4QSDiRaMXNnpd5TokGDfmIDSHuSPwgk1TWvWUPR3gePLnKH/s1OWffVJvGgkdl0dOAmPQjp8ToLT357IIbo3Z1BI5+XqgYwF+PRe8K7XBkU50dP7TpBY X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 56d5c188-ef15-4143-1c23-08dce90af877 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2024 09:07:30.9816 (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: yS2Otkssn7HMmC4UO1hmEhwroDfwiUAJPCd7N6yo8d0Kk5FRa9sI3LT3Q3upC/Z/ERGIqOpnHYz2JP6Blu0ZKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6851 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241010_020736_905908_BFD25A6D X-CRM114-Status: GOOD ( 10.85 ) 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 This board has one Type-C port which has USB3 capability. This will add typec nodes and enable usb3 node. Signed-off-by: Xu Yang --- Changes in v2: - no changes Changes in v3: - no changes Changes in v4: - no changes Changes in v5: - correct nodes order Changes in v6: - rebase to latest Changes in v7: - no changes --- .../boot/dts/freescale/imx95-19x19-evk.dts | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts index 37a1d4ca1b20..41a4ee4751ed 100644 --- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include #include "imx95.dtsi" / { @@ -250,6 +251,48 @@ i2c7_pcal6524: i2c7-gpio@22 { interrupt-parent = <&gpio5>; interrupts = <16 IRQ_TYPE_LEVEL_LOW>; }; + + ptn5110: tcpc@50 { + compatible = "nxp,ptn5110", "tcpci"; + reg = <0x50>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec>; + interrupt-parent = <&gpio5>; + interrupts = <14 IRQ_TYPE_LEVEL_LOW>; + + typec_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + power-role = "dual"; + data-role = "dual"; + try-power-role = "sink"; + source-pdos = ; + sink-pdos = ; + op-sink-microwatt = <0>; + self-powered; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + typec_con_hs: endpoint { + remote-endpoint = <&usb3_data_hs>; + }; + }; + + port@1 { + reg = <1>; + + typec_con_ss: endpoint { + remote-endpoint = <&usb3_data_ss>; + }; + }; + }; + }; + }; }; &lpuart1 { @@ -332,6 +375,38 @@ &sai3 { status = "okay"; }; +&usb3 { + status = "okay"; +}; + +&usb3_dwc3 { + dr_mode = "otg"; + hnp-disable; + srp-disable; + adp-disable; + usb-role-switch; + role-switch-default-mode = "peripheral"; + snps,dis-u1-entry-quirk; + snps,dis-u2-entry-quirk; + status = "okay"; + + port { + usb3_data_hs: endpoint { + remote-endpoint = <&typec_con_hs>; + }; + }; +}; + +&usb3_phy { + status = "okay"; + + port { + usb3_data_ss: endpoint { + remote-endpoint = <&typec_con_ss>; + }; + }; +}; + &usdhc1 { pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; pinctrl-0 = <&pinctrl_usdhc1>; @@ -538,6 +613,12 @@ IMX95_PAD_SD2_RESET_B__GPIO3_IO_BIT7 0x31e >; }; + pinctrl_typec: typecgrp { + fsl,pins = < + IMX95_PAD_GPIO_IO34__GPIO5_IO_BIT14 0x31e + >; + }; + pinctrl_usdhc2_gpio: usdhc2gpiogrp { fsl,pins = < IMX95_PAD_SD2_CD_B__GPIO3_IO_BIT0 0x31e