From patchwork Mon Aug 26 07:08:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13777301 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 B8204C5321E for ; Mon, 26 Aug 2024 07:15:31 +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=aN+CB8lunIQWJJvOwgo6E+dee90lpc+pQQewjqEOb5M=; b=M1j4prYqNwHcnpbsubufb2uzL/ hH7qXN55PIf1JuxXFCZhQHytk/9wVfnc3M5Kai2AhqjBLuczbXe9d1jSAYcy9tj+VCBsy7eOOY8Hc 7vcQqEoDtOjt4AGOmj0lUKoWTEDYQP5Juy9d/lk7ez0/rURLjo/ONqEvzaFT64XQAg6jxUgZYG24U V3i1mBUuxBNwSPP9SsO1gorBmsRVpNAYyI8RbjoI9ZHuKytelUjMOJ5DHhlmBLCz+TzebkPEzcRlq vlF40UrpqHQXXNPJID1CYYzgshOfDsczrSazydTjVspr9RPKUQFPKZPr0CidsNRfT3cL3YJrIQeO3 XQj82ZPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTwf-00000006E53-42Pl; Mon, 26 Aug 2024 07:15:21 +0000 Received: from mail-dbaeur03on2061b.outbound.protection.outlook.com ([2a01:111:f403:260d::61b] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siTqO-00000006Cl9-0tps; Mon, 26 Aug 2024 07:08:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hgepawRc5+htmQVb0socB5kn1Ug4hEYSlC7hSCAbGkjHtd9OlMv1DTvaLwBhPAD24HROZqvFEXUlKZkQdwA37lHK6Z2+c+lnlTWESMuDvgK4uoppvNRZ4SN+yaXm+MnzhrofzWIYBoW0h/keOLOF1eYOe0zWz//Df06aWikvGiqmzIv/j8+u4YKXtuO5CuaiDP85BEcG4dth2PL6qDO3VTn4/DKmr1sDQ5c2oAWtA/keQQ+Jicu0QJge68pS9r9hoAt+InPp5NNfNobrbzTa47AfkukPEoXGJ9+TELHYwT7WTrpcWPUTHEpQgG51KoFJek5B0JRzKvrZkinPtDoiLg== 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=aN+CB8lunIQWJJvOwgo6E+dee90lpc+pQQewjqEOb5M=; b=my12h7o/XgQwepnvzUroRJBlZaDWd8FIEX1Y8SMqOMGby/g3OiuG6fv60yRLkn9IxG3YWUv6cx6/QeKnuU4BzZoaUdiOoVvnndYLjIOclvAbAyDiIp++oGOlFfXJK8uaDYeO86L5HdI0VZUIsDSVtd9dW7S0xr3Ktrk5Z+vgAsxKajlZ4u/PqN5JMe6pinZoGYmj7LQQfH2Ly88z3wucTtvtS6YFN4n5vL5jBaLUZVfxoPCERn3ss+JMWPjJuL+FjkEF58slIlFoILojH2goz/w1CpYbAIQvAGHje6QfIF3fmVo6yeNFdQHyHXkoXh5QDl3w9YQmH92DLzOiUcUwBw== 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=aN+CB8lunIQWJJvOwgo6E+dee90lpc+pQQewjqEOb5M=; b=IT03c74Ral25cPPr09Y8cDNnsTkWFWtHQz9AvLtmWRSnu6Re0vet67xGo7VSax7lMLWRqBD+cYbUymOQJfltVk2vAZu38uw8LmLrr9BpWvIknN20lpuplBqijjxLEYWCqNanvLVWB0YKVOTBn683UtICZkMxjvQkIOVd7yePzyEdpYeu+T3p11oIVfO1VinJPhgG3s5pffBLoq4XhLdDH2rVpho5ReTdHKmgiXpr2390t0tZonalHLrhGaQSrHq7FLtACTZySAoFYr9E4y5UUtW5tfmI32uomxT2BzZIFpiywROdN55UvdW9yMUdlQKTrPIDwPLOLDnrWdYt3uns+g== 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 PA4PR04MB9637.eurprd04.prod.outlook.com (2603:10a6:102:272::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.24; Mon, 26 Aug 2024 07:08:48 +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.7897.021; Mon, 26 Aug 2024 07:08:48 +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 v3 5/5] arm64: dts: imx95-19x19-evk: add typec nodes and enable usb3 node Date: Mon, 26 Aug 2024 15:08:54 +0800 Message-Id: <20240826070854.1948347-5-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240826070854.1948347-1-xu.yang_2@nxp.com> References: <20240826070854.1948347-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR01CA0194.apcprd01.prod.exchangelabs.com (2603:1096:4:189::22) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|PA4PR04MB9637:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c3a4f8c-fa74-46cf-39ff-08dcc59deeaa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|7416014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: vAKxmNRTuKqtMQDxLkal/T4RvgQ3wgwFpE/MwQhKHaZbuMN79gJs5CGowhhvtFtUw/wmS6SvRbTr20qC94FHYErPPfwnx0vasYhdw/FizcplNFiVTJpxDX7Lq8+v2A1garBVjmbI0OeGim0x3oKqP/uJV8hx6xQDhxXGM0yw9SWahib5q8gxLCTYSW9cqkGiOfyWdGJH3tJz2/fokGOi5j3gcLmgkay2xkkF5Armr5PptLzWxIJqYB2lSjHAlx1gAKIKwGevXj6UrpaB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jXbeFvW5eXksVBMlzFb4yzsnKx3E6d6qKxyFxuEhOBV8S+vPbqqLNOFfyoKGT4d7+yzk/Bb4xhfQ2U9rAS9WInwF8zb2n0jxRRK0= 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)(366016)(1800799024)(52116014)(7416014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fXTPFmp6ytZVcbu1DyTx7EvsfgkFtYK6o5GEr6Rf++aC5lh1WxNHLmfFwO91BVq6EB8IOdW2X3wAJoCFtEPIM/UZT5MevyoKpQQzVutciTDwEv14OaQCZ6fqJa4wusXqHeQXVXaycUtkiaBdZ9EvOHGqg+t5hkTopaaPHecYoPMzkv+Eom7lDv/PINBCsol244mWDGowD76AYGKQzxPrL4FXlHh2ZCUJK1/BV/4ghT7Fnpegie5t5Pv2YUs6v6NrdTq6e4kqhV5b/SNL/tdzFMqHMJ6EBMTpk5plMJSNVGY/+BAJQMupDdt2d8ATt27YUel0TZgYWtMgESauX4ziXYdM0+fl8X2/wY/q+7fa4b1hA4alMj58M6nq7at8XHR1LJb00MbHucr+zWj3eX2e195elmLffj8sopBv2B6gJRYBDRs1sL693rZHe+27FqmALnEEEMoEwklaUvR20+E6iTDoMiV7r07PvbHZnuKf//IcISMSPz2/joqhXHWGOF3ND7/f/ogksOEvipbJSP2YNrN0ZcUPEMybdPsJl+B+riiqvNCteHo4dMWQmR4/HL6bBkygYYGIX4QRQRfkK+O9izBu9Z/TJATOsrTKLKZC7vfdJ3L33XUGJKjHfUsgeA/lS1BPH6z+XzbSvh4LYeL5Fz1ik6D4M7qNPtsabKDced8d8b/KfUwqn1QwnYlN763vs1O9zbP1yyNB1jopBR8dLg4rPWffZkMZ/t6mdkUu+/6eAnNranJED3kKpnwYYR2LUN/Xn0j/IF7f42/X8qbJr8wywDkUTlVCm8x2dhC3afaKpdE7j05dH5LDNLvIjdauIXEncJ9WIsGWIbAxPZkFlFpBslqzEjY8Z+1GdUhlzq415h9UCHfuBEw+DbB1/nbbJIbEznMfgT1icBGbnnwIhTqCP9CXQlmNy8HoORLVq5H7l1fOSE+CrQR80iOyv7WOg9oHTMR7UP65u/QIGNGwM/+qMRqknsMqfOKIa/BP08a8s9Sh9+r2Nc8rEsM1gElTxHbsSKQxKhiEOHNpoMnW3Vm6JqsVBcGJVShpwL2Lg+RpA0p5YcUbvfYlYB9f6GGvYfySv7SHC2vsYA5hqWU2MgoA9s5hCDPTSS1fu0NfKVOvQh9IPFR3R9s+0lcDTTB463wt9PRra593NChD8F2rvukuytrItkJd3/0pG9taxRuOd+D8nLFceOt9YgrsByrRQLkbAYjOhvUTaAUMbbwZFV9iBCZ93H4J72XcVqakYXBeiXGSzpjzyFHp+VZO7W+KI0joJ+1zyBLpKnupjmg0+my3xwO3EVhYrrwbloz+pIXgSqC3ll5A75ihq0DQmzlPziM/+AumAJBLiGR/XrlDXezO7XMZS197C5aypWiN/6ae9DNUNnsmdD9PmbmVZVQ5/tVTXZk967kPzhtK8or02bOOfZjX1M51EJEYEfS1W8onF+UDYiFt2fERe7o7F15VK5mUCy8yDbiVm1QVEMWt7icfLehjuNsmKvmbfI2Ia5/9yKctkqXyyt61Vwytx1gkM3a6npM0eXzPYe3rSvV1MNxDvOKIVl5zwYIFNygCV/DpZ7XronOvqtCfdCFuwt9m X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c3a4f8c-fa74-46cf-39ff-08dcc59deeaa X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2024 07:08:48.7354 (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: 2qST1F0+7iGRXRk76JwqM6/sIKZGH/R2Y/72VcAx3ymqsJxVq1+7i9q8GYHnpoIiNGvKoqBBp1hPCUCfCphufg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9637 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_000852_280783_0AA0A3A9 X-CRM114-Status: GOOD ( 10.30 ) 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 --- .../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