From patchwork Fri Aug 2 09:17:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13751325 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 00C50C3DA4A for ; Fri, 2 Aug 2024 09:20:55 +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=rNddA1rkEiftGjcD3zl/m3iFopu9UlG+2gGTplY2Qqs=; b=mlvqE4tkeSeGoJoblQ2VC6Xnnt ahiO2WO2zo8wvO9mVAbrNcl2VvHKDMjotHOnBE7fMAxn8dAyLw9iOSh3avg13s6KW2SsszMqDD4RC gkA4KflDAmXJQiy7vOprJ2crXjL1820JFMof/ugs14EG18oS4SGmlZn9ecMjdD1xNBej8W83NI6Zp sftcf5yM1fGeeeERKWlZocVe2/WeupIBqg6R/o+q3/D8iV5rh1Z9M3kqqUsVKOK1a5J60jWBVu/jD AIUb1UDKs3g2r8TDO92p5FcccKm7U1G0IfvPX2+luNFXYpJGVB/32GA0w+06On5sgkGGglngzW2/w +o0xRTgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZoSp-00000008FoB-2COp; Fri, 02 Aug 2024 09:20:43 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZoPL-00000008EoW-2ZZf; Fri, 02 Aug 2024 09:17:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kB11mWamGc0dQIsGDYZIhDx3JfvYg84tPg+rGGZ7cdiM5Wih9XxIoAwov5n4pG+/K959Li2Cl1KLuVKeCFK4yoVkKUaOSqmewrfU3HvyzKfhJgO9s0bsOwLndDIsDrkm9w55tF05Ji1jqN6V2aaaBcMIvRMzwYpiK9hfl+6fwL46Ei+hZIF6wXApwcIU2PDpWcpCIP44OTDKUfY257hi2Uv/uZoDv1y57gxTY203TWPSRRLzbfbCfUxVb8NGRbsBiVduT0aPvhOAuhwHfYZtdRYEFiHkZHfAqDFWgBnNRzx9a6DpC75xc4GgcUDV0Qev7UlPYr+3+HzNFftKLZ/5Lw== 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=rNddA1rkEiftGjcD3zl/m3iFopu9UlG+2gGTplY2Qqs=; b=FyGv4emAQi8/hAEtIrxlIv2vMQk6q/BwRO3up87R3/v0g7jg5IcLkzJRCWjJ57gtRk27tj14dGGMFBZgSvRAsL4geHma04ffGwadWNMZQzGwLRzS6K8mbbIJ3rJmMXEQqOu6sPgFrzLywxVTxSkCr1Y0MQAWnLKVfA99Lg88RqLOIWduqMMic0TKxH+NehpIJopYch0l71rHdqUT5v9j30k/ls1v9DIw/TCes1j2k/vLj2rIgRyGnAaNiNe36HNKQqmiiMNi3hgEuZFzuD1xOyz6LqlVsf7E2HBDx9tb3GKnXRdQGO8bs/JlPeXzyvYwiyLJMT4a4FMlFn5UAz9lDw== 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=rNddA1rkEiftGjcD3zl/m3iFopu9UlG+2gGTplY2Qqs=; b=RkvCEmK81DXlVPhvYoBk0+l6mGnSJ++pwGx6Im9Cw1tMko5rpXNfy3iquHwB+JECpPqqgIYqM15HyNTRru87kPSmKI7y++u+3ECPNDz4T+uIS62eIpHfhOuiKqYxMw5AHMiLWwEulsv2w5mfh4UDClr9nLn3gZOc3nnXXZM8KfF42G4oGFRaqsJ1rTSz4XGDbxFdvtfys2yu3e2qHcPHr2kpoet3oWS+YCnXlrDh3/c9AZd8cqll+fOHn6Td5gsEik+PTKvxqq7bhO18pxgulK8xliYm4rmUELV56gzTMKhR9qJ1PZhw39g/sy1nbPoBqo31R7P3l8GBPrWASYt1pQ== 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 PA1PR04MB10577.eurprd04.prod.outlook.com (2603:10a6:102:493::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.21; Fri, 2 Aug 2024 09:17:05 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%5]) with mapi id 15.20.7784.016; Fri, 2 Aug 2024 09:17:05 +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, Frank.Li@nxp.com, jun.li@nxp.com, l.stach@pengutronix.de, aford173@gmail.com, hongxing.zhu@nxp.com, alexander.stein@ew.tq-group.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 Subject: [PATCH 5/5] arm64: dts: imx95-19x19-evk: add typec nodes and enable usb3 node Date: Fri, 2 Aug 2024 17:17:02 +0800 Message-Id: <20240802091702.2057294-5-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240802091702.2057294-1-xu.yang_2@nxp.com> References: <20240802091702.2057294-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2P153CA0021.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PA1PR04MB10577:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c90ebb1-1178-4e09-5e84-08dcb2d3e017 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|1800799024|52116014|376014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: IdHIFA63FyLwnybH7JKS7pDxV2zD+42FY8YRYoIRUFolRbvXeTmsp3IZ7/XIbj/GgXhQV+gnUE4jmEuayRxSrfSxLCzNEn8tdePUZqZnR4yQix78zKwccdDPWpYc2qQ1EA0XvMbFApdPIYqpQMh3+X/o2gBfPswxxzpzJw1zp5Etm6BCq8gU0Bztlaaf58k9bDv8y05S3rszPJSGP6X1GP2jA4jtcq9kJbwtFzm63yUbjK+3K+48CRVXwl/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TDu9jPxaXdTH1BKQMTsSS6vI+0ueGoNPJ4s9fm4kFuB7yot62rrwWIaVZg2ioPzL8Wq9cv0vxUkCA2pTWJap/yoElHVFlKQEubN91cZc= 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)(1800799024)(52116014)(376014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FgCct+j/PjviZGvpBSwnwSoS37wKY7EzfNQPxna3fXaYTT063DOpj6YUguEsYxevImyaJy+ZrSD6DSk1sWjUJ2LPCzMY1TF/xyxSPOr4P+rHOamWEm9RMEcmL4xNv8WF7KAQYwwi3/V0t3HyAykb1h0Na1mF2jyvKOjmWWYeqPye73k/QjoOUe8B8Scec+NjVvkDxFUjU/Ly+jOyK8HVeWpNWgWDrhgySX3+rDdMKsDOALPOIInSRakbOXsliCf70+S1En25ZhaQRiPzYoGxVXtL/on/rvdbHjWVWunDctw1AwKIfL0VcxIb0FNNk/noVxaQAZ28Bm9jr4lI9r4QEUnfmval21VE0W7MZlpL8iPPe3XAjBtciw7cXEjLvfLGwwFOPE9pA91fLt98hhQwVN6mjtVGiXFbxfO8HAOT/nYdn8danmtKxsLYduziXokt2V4wSKqUplAdcNrT23/56H1fQ9AAZL+pWJ+M4ptSWMnwDzt9GpbJ+dtOybCyVYc1mib9V2pgEwJ34OzG020SD8ulyuenbDcguDFJRXxVqPndtl+jykIS3u9T7PW2TM9BbaiBK+SCfOZqbHFr1xVwcI3CRtYqTZm1Y/6/SWNRE3BHe+qahix/Y0sLAtqeILut/OLrL2HBNWhh6308fVW9YvtijR6qSpOfhs7KjWyjXaIX2XWZ2XbvzABEQwM/flYrSGG41n++WmC6vrREDNyMHMOgdprMmrFum369UufW/6tuoIOmJOUhQr5SwZLAa8RZER1rFQz5VX9+Vom2efHVoUUoUlOa7jWjIQDJAamrNeuJ4kaKgJ4EY6IVtmH0FWKcPpuDJwNuBZu8qKEhs4j0YvBnnCkehztkc0T7Oiuhay/EpLZJdZCL+hKnEMInkP5L0AQm2uLzyURMfEKxhvIkhJmDjJctH3CsEK97hYcPibx+0sXlckS2jeUuGCMG8mBh3LQPIxcgN/iyNChr3NkvKjgZKLdhHJmyT0mF6mys6sntsy8eA7MbikYb3n02yINuFIAa8x6ifwgA1gij0x4ePBg16EDm/smcTvxu25uvbW4T46jVdkyMnJ5kb3yUG8a0HkET6hu67O7S1Kj4DE1LomsRo9XdGnb//enN6g57pDzDBnhAzZRQdRJvBwErO4kT+S3kZTKBk7ImgHbZaCgFvPFIcp9zttrE2YRl16KxQNpgqdA05XEH23jsrOoh2FlMtwh8diYM8ojETEnA+u4Oc+P0xLIf3NnYYQZjiTYU7rGGItCCGDOtyH4sECiGDBi3c/g8zYz5bGgW1HvUWF3cdxN2rh+2QTjyvFAkw4ewL3vh6frJ241SKqBhkZ6DAhv7k5nkaZS4QtWZgGGQddJY+g1EHzKjHHrcci9vHdHGyPyOgl5SKHBLaOmmS4pDPV1QdTivgpLo88Zos7tws3blWNEjpD7T8p34oxZGNkvTKnV6DPjq5TAfiB9DYKrvzkxWpprzX20Ef/2QA/RVW9UZHzUx0NJaVTXpEaQ5+EW+I/20d2hKCBdsqG20Se4q6HgqJs8OdOiBNIviPLCNXG30V/AMfyRywe4S+IRUDEKS3oVMW7MFQqn1xlEXI+6Odu5y X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c90ebb1-1178-4e09-5e84-08dcb2d3e017 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2024 09:17:05.0009 (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: n34QnvbP5Xqkkrd593y7F/JX7l8EKq+u+49sSyS08Y/wknM0uhZkdOKVehuELcNfT78SYrDkU/EF/907aRtU5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10577 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240802_021707_683564_2DD7E03B X-CRM114-Status: UNSURE ( 9.95 ) 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 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 --- .../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 d14a54ab4fd4..46a9cd3d4403 100644 --- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include "imx95.dtsi" / { @@ -99,6 +100,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 { @@ -128,6 +171,38 @@ &pcie1 { status = "okay"; }; +&usb3 { + status = "okay"; +}; + +&usb3_phy { + status = "okay"; + + port { + usb3_data_ss: endpoint { + remote-endpoint = <&typec_con_ss>; + }; + }; +}; + +&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>; + }; + }; +}; + &usdhc1 { pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; pinctrl-0 = <&pinctrl_usdhc1>; @@ -245,6 +320,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