From patchwork Tue Aug 6 05:06:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13754458 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 7A70CC3DA64 for ; Tue, 6 Aug 2024 05:09:03 +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=YXZsR7zns/pCvj409acJj9Ggq3j5Mjwd7Yd50vqPcYY=; b=cF08qGer2xz+9H 9tlG5lpmUxmbk+bw5vxL3KwIzHGMvdzFzh6H3bQFTR8s3ib68GgyooiCILb5+JiWv4S/iwVrjO3as iekh+NW+zPOVWU/UFF+jJ5rricPZjBmseIFMOJMXt3ADaN75/RsEYfLqFU2f7WMGQ26jRAm4GnxJb U0L0gdaICAzXWMu65quzgp093yJmwuTEKp8UIT4AzRW6mxQC0J25EFyUVZAAiH8e2mFZX299iPkdf 8YJqqIXrBOUhSPHA2/gOknBLCxt6pWVN3dcAcU5pOxhwJBSfoxuLnNuh+nfsndRQR8hOog58mK63A FfJebxMMEC/ixmk5QT9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCRT-00000000YGD-0uBn; Tue, 06 Aug 2024 05:09:03 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbCPD-00000000XjH-41KR; Tue, 06 Aug 2024 05:06:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ikDrmeVkUjoDYGDfYDfvPG9G0OeaoDOR2IW84wyfBzLyeBqxnOyXOy03vbu6myHIxwwlqIQmcb3T7fxnuJz5hR6I7xzCYvRcUbCsWNrcb4A2p/hdlX+rDQdS02T+GeifyuR1MUcUzV+YWMIyRTzh6jUNU5tCK6ZdkkXwr7iUUEtsqrJWXM6w+qmoKb+jwTYeCeyA2Awhby13dNK4BdVAvF//lL56k3/R612rQw2LyImWFakvsNk410KJFKKN1K45DZZHG1iOoD/0h4tVoO+nq/pcaJs3emWds9L6VCjp3UtjQ//pNpKf0haG+sKXCgO9rkfaLTqvqmYbvrtFTNZIHw== 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=PVptErpdxS4Mb3skpVZRlUdQzigA3aGQXUlPPEx11ik=; b=B9dX8+VRLdwxRjN40PZ084ktTeJ72t5rsoHCWmYO9/fmyTjcOI5SjAEEsP0uEGjBoIgsaPxW2qSnWCePvZBiDDeymVZ175pxbylR68W2pMxPlo4pZRZy4jk8HS36zCBcnRByEtW4tRsuiAGGsa7UD9QTWSFUboiENohF4vUwL+S+1VRb4x4XRFZNYak3wFc6EJGvCEbkPKiKih0/zw3gcP8exf4bz6kiJXbWk9TIF3blac+2EoYeD1yIrMj7J7W43gc9vmX6qqwBk9HPrStvE0XTh6MvtZa9Do67GI6oKTaRGv5YE+DY7AVTbjwLJU1jDlsbxcgk5qacpHN0zNqsdg== 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=PVptErpdxS4Mb3skpVZRlUdQzigA3aGQXUlPPEx11ik=; b=MC4pUYwy9UUTpN3IJhQXQyTxJb/qGVfeDcVjgvUbVznnzJbA5ckwr4CxisvX+SpJDYKPb7tmMn5y8hDJEvVYLvAsOZsjaadO7TdnX7/XFAWETSheXD3H8tqIYkYh5vIOVRf6mnJTJwVjXqhdUrez0yRmMQ3lgIsQ+Poy86wOAKzeidSLXvsKpgBb1EjP2leeWh35B7e/hksw8SNr+JB+9tpuG06RysWBgyTGtxeOxCcxRheoHh+xknI95BxigaAlO++YvcL+LSvKCa54ufK0P3FXdHHGAYwSePNJfFhnuyvK//x3zfRmY32MS8bOxlaA/EsNhOz51B3LKaFtyE//Hg== 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 VI0PR04MB10211.eurprd04.prod.outlook.com (2603:10a6:800:240::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 05:06:41 +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.7828.023; Tue, 6 Aug 2024 05:06:41 +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 v2 5/5] arm64: dts: imx95-19x19-evk: add typec nodes and enable usb3 node Date: Tue, 6 Aug 2024 13:06:39 +0800 Message-Id: <20240806050639.1013152-5-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240806050639.1013152-1-xu.yang_2@nxp.com> References: <20240806050639.1013152-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SGXP274CA0021.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::33) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|VI0PR04MB10211:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b07edfd-1ea4-4226-7ab4-08dcb5d58ede 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: EzEGVjEnh/VLp1R4vBWvUYotdyhfaDKzUgeUkOTn3ut+SrCwYMJ3zCEOb+9YyYLXOtkDO6mPX+JJzdkeJd5iSQdcK3wG5OKOyaYWp+k2JSQRWW+mRDpxLftOsYKBw079mZ+DYj4qiJKPiKgkrnIZ7d8EdyDKsajxIVOBeq65jozWms2gCqW68r7ZAR1gpkeSyDv2K7jJ+kJDOUJhxwdHSKeREH0ia4mDXVQNU3SwIcEVFHTQiKrz+CS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q3H4Mf4TXgxC8MQWvcVYopmlaFDFIuOCXUzAf7p/uc9oHqCwQN5weTPZ2wsruqRDxsQ7sj+eZNW+AuHvN/xMJRhDGpH24I5Rd8mqCiK7D/bGI= 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: y1kauGl5AnmjPq2WgZdtu0/qUcn+XKlywgJHVagCfMSdiPXVIkC5vJ3N3StwlF1g1pnI8AA1hjiWlEDEVA6i4o3wPhsxtMtzcjfCCdf/fAzT/lke08xrSRE3Uqzl2dKEhn+OYGiVE4MkSu139wD5BvL8z2TIAplkzBJDRXEapse0KKXzXpdMzvREcvf48HLQVki7J4A9EgLWOYAoEbD4cgVgj/DOhCr7f9P/3NI6NPQB4QhEnrM/cvGd9eJlNk9Ov+dQgWVqTFvhQXfS5duLynX3+gYH/hAOfzs2AoiWHYCPqDNDLilbRgOWim5FTbNTU48aPgZ9cRhqGMhqtMfntO7M6aUGYiM3VGKHlgCloTc/N2HfHQBG0wRrL00V2eauIsLzbLQ/d4vyghaTxAn2/3o33KOaacpRhAcLb0ZQO+R48FvnMdxO+WrDnUxx3N8vxvfrdVhTgxDnF29ydWIZd6RrlVsjfJ3nkAqRubyTglUF8htu7UtYd5bXAkBDrfjfFNCcYmbhCK6rUgBsN9uaeqTYYG/R7j/Z8YuKLgc2NeIlArwjueG7mRUOmGXahKwNwnGp1yKtaUaNotCBE8eDHm1ZBZWdDi5qsDL12X3s6M8A1QVNSr03L8pjVA7SmVe9owwxE7OGo9KtFEaQpfVAMHABDeMnWcCIkKE8F1IRnydEwzknzP6wJQr4mLoazULSuzDBMI+YmVAKhGNF9DFbIISgu10Y6+AcIQ9kC1uPZl7Hdo354R43Pdy/gN2uIIk9ax8vAZ5HRTha8UhtT7mffa3VoJGJBVxU+FXFbLG8kbhcEfKkSAba7p+pnhZWlmsRe8sssKhGwWTN6Ao1w8uqsFfll57HScLkV/e6hnaqA3qNWrdU0qLQB1vZNyngt0eBs6FvINwGyFVfjdn6y7B/uWVkeIlpsa4BGUBxOalWK/yswLJyxLEjw3WK0cIy38/ycp2l+rFleN/X9XbVNUMLQ9mY4BmkXu6f/F2JiXeQK81bij8R9K3+aPXOGDiSu79ryTxm2w0axp2LYsLx8CbTtfkJFXfNI8PXexVFq1WvqZH0KdLHaC4B2o5LYB3r6yQGiGultPJhPAA80y5QAiqXP+/2iGqZaK4mDn8ry2dptLa0M6FGU5gxk+ydV5jJfn5dP6fC2OIEWoEHg+Rs8nPom9VQqsDcynfIsBDNFpLlGnPTiQ7z4QZsku7eEP1vg0Vqpu7Lyo+BD5kQokgifAvE7srGGqx0ZBjPgZ0sAErZyVBk5LaafXH1yJatX2zgFOGmZFyYKYe74odyC3Dxxec4bJJ6D0PyQQuV8ZwGhbBgXEatVvnwdaZAHVVROhi7IESr8h8b7wdKX9ODuTAp4OPwqnkTNipV7dLro7/kqRdgkcDR31ABpUOlIrDdJHMSPWeVwW6aemYE6lVdY9O1NJfJcsRJfsNkeeKaDKyOtWVw0gyv4FJ0tegcU+jGHbQvvLb/J4VHE8KvaxfL7295MB0rhO8tMAm51muCmMjyvbzgh2C9QIvU9S2snHEoka/sc0OSZPpzPh3yyloUrH7VK6SQ9a8PXu4kTHhESUMraACvwwMc85f+Xql7kE46QcyVysvw X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b07edfd-1ea4-4226-7ab4-08dcb5d58ede X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 05:06:41.2012 (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: RhfU1o+vKgOAQy/ByvTsRUcabO3nEXG45V/EB8IC1oid0H/1D37bjqNFLXR2/M5eWkZ0c+J4g5zr5GP4lMiYzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10211 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240805_220644_027098_731644D4 X-CRM114-Status: GOOD ( 10.21 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=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 --- .../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