From patchwork Fri Nov 15 09:33:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13876022 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 B5647D6DDEA for ; Fri, 15 Nov 2024 09:49:08 +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=b4sr2zi0M72or6TK6CPJYSimdmrXnWOhzFh/cElsSWs=; b=gXnsVu289SAI7n x828H2btt4bxovWxnSIH16+pIX4YfzqQCBZvaLLlED/acolkCgaIKJbrZRs8Ut18xcl7gOzXiFHvG 7+6+dHIo05c1FxiGpuiRWegXGr24yWnB8+WB+lNRGxbbFUILfA/YHGBpkSOAKBa5sI7WXTwIIOEDs TpacjPnjFtr+vX4MsA1VFs+j4zotVCSFwrazgmn1djBoFf8nE4loKoURbPQh4Cv6cJd5IkHQrU16C ncb8PBJXIsi7A0nzXsSngWQchMpnPcTrTJv+HCrAG9c28BG0WUFzXE5GIjRyh/mmsJXqtBTkEq13F J2L2Y84OAjxRPJQCBl4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tBswu-00000002F5R-1yPO; Fri, 15 Nov 2024 09:49:08 +0000 Received: from mail-am6eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2612::600] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tBswH-00000002F32-0xRB; Fri, 15 Nov 2024 09:48:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WSogbxT6v4j96h2qLUFpiMJ2JlA2Rl7MpTZdZUaB/kN0YJD8xYszz+bDa8UpaJmKMAmWCBE5YIA0pKrcJZFlnSAeguDgCgpBVMAih1lC2fDe5TPzTPztpKtCI6wESpFPgeMDj9wDG3uhD7aaQwuu3knYDf1xkQiZIl8GImugfcREzPRADDZrSaanYxpsCFuZDBGB5Gr6ey9FokKdlrBZbzG5kmREIFRmb5E98g0uBYt7N9dG8pkKfHijMEwVs4Wrdy/2mUOwKJWxMcnC2MXoQVqeQdYs1QLZVBuXRUf92JU3F/jXPQk6zLMsrhnsilG8M+LVAUgXDOMZ3m1Bb7V0SA== 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=8Umst0GgCE8XGdAMk4QyG+/1bS4eZCNRb788ibcKmrc=; b=CvFoiNtmTkVOSJ42o8ZOwffTtPhKGtQgRB2GYqNIjBXQZrzoqWyNYmQN4awtkrvAS2atqUxTsXw2EDqdHFw2NYCIFKHvPHfrBItH2dTYI5oHqWl6O9LYrZu0Ac44SFugiLFRU7TTrTlZ1ea88yve4Yy+J0PRE8pm69z8rqC/NzjiQXuERGZAHyt1yN8ALnJ5ZTGhx3GYG81r1nvuTLoD8m8fNZAw84Mh8+UWXoV/cpHAvXQsJs1gb1kD8DN5UjEgqR7tUt7VnpYoAjBQWRAScmuMg4r+RiBmSGaGnvDvZ6VFOKza08DqjhddUGykBcU+hTHrn41EsLECrup/LzzH8g== 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=8Umst0GgCE8XGdAMk4QyG+/1bS4eZCNRb788ibcKmrc=; b=diVbWPHVotZOquq1FuPdSRKf8x2Yn91Jfce7aVTNRvQzyHKVHAoRZwCULP9E4mc5Uf53wU1px3rgqUq96UV2ZimsTC3+10GTfO/ObDmBbNFz/qJUUOtM9gq4ISxm1Fq/mkLM1kCI+B2dkPMV713gS3WUH5BTGMvGXTbfgi81gMeVlPDPANCcDLAYyz1uE1OFwm/kEEO24G3zNjTQIWu11QYmIWFhOe81T/YDdM9mwCnW08xRzakL/BspvdhLE7wTJVd1bzZHqwtqYHSwpRkDxca5vxSc9c2H/UR6kHn1CylclydW2L1mz9Kzy1zksug55ifxzVLj3HOsEE7IJ+b5/Q== 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 PAWPR04MB9743.eurprd04.prod.outlook.com (2603:10a6:102:384::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.20; Fri, 15 Nov 2024 09:33:57 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%6]) with mapi id 15.20.8158.017; Fri, 15 Nov 2024 09:33:57 +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, jun.li@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 v10 3/3] arm64: dts: imx95-19x19-evk: add typec nodes and enable usb3 node Date: Fri, 15 Nov 2024 17:33:12 +0800 Message-Id: <20241115093312.3407815-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241115093312.3407815-1-xu.yang_2@nxp.com> References: <20241115093312.3407815-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR03CA0116.apcprd03.prod.outlook.com (2603:1096:4:91::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_|PAWPR04MB9743:EE_ X-MS-Office365-Filtering-Correlation-Id: 28c81716-5b7d-4485-9b69-08dd0558a132 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|7416014|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: kAJ0pyb4SrKjacx03EkeSbjG/zlpKVuCpsB+xSbdgKtq0JXCodL5MjPnLTmboc0uJ4Yj6ua11U1tS4Ult4SQT54xz0sN7TKtEUNQkDHWEP2dtnTScxGZWdLAETiMOtUOXuW0ds/ZjVDZWS187m7R9cJqZUJIARY1DFJ3rjo1E90k7MJztt62ACnRT2fFSWSzoaEn5uPYSqnGG3mlSAMWi315/vLKvyp3ORsmTSj+Oqx31FQdwZL5Y4BvjyCGEa6Wi5gecdvh9mBIDEQ5TktakDaHYqdvBqTmbBrIyLwryyJWmgsg/+IjP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hy1EuMpl5Ar/5qQELaI 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)(1800799024)(366016)(376014)(7416014)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nlz2aqtsMzyqPWNRuj9JUaVSRNVCftELw80rcYf/m3Dle7AfeEZkIzH/2HAgwUsgeqYJloVxc0u9ctL5S/u9tBSZDREq2wk5G/O+E7ZL8PixSziT+HkSeWflDH8HVxsXVyXW29dSfxCNrw0oDb4t92X/N1DUJ1nJUUIIuyGiGy12+Zclj2NMg84cOqW8SrL/+YPjbdjemfqvvNXsbWWbZCO3ZUS0gZvF5I3efmI8gSmlvqk8/DEViZq2q7LPLJrlWfT/4m55GdgAUYEBS/67SPUwBUAMQeYysPxc8iQUcAr5KrntimnUSc1U6p/aHCRDK2myb0DkOHw3eRN2mGWZ9jJt7WcC0PCHeoc+bXstoLyLQmNssGMuEr5TKWv2kar14ehw0XPAGvc8jwKMsOmgPYJLI7OeKF3S2+KI7peajcrAr+T2iIyDBYVPfmGDM8ZYtGw8LQpjbIexUbGQ+xeFFvyqFeeBwFybEI0B1sJST8a78NN6XzwuGFeQydQM301nLvHk2ZeH14QwSEY76PiCBRue7aXk6ih3k3K/PG5ZUuEP8i/delaKdpyMC4X0/XUHv/Wviy70oNDhyJ5W1ssIx/vrcm4jrQj6Ir+SDZZ9jEDjWADCtUeQRGZ8NAURM9pST7tupJiqImYTBp/MDRLANEqHzzeK7pug4+5kNKWs0q0xZkFBHIQ2ao0LDn63UwheDbChzw0ol6Mn+qDuzriZfR4E12lp4RzL2JVuhrlB2/ykZeL/KVtnZC6JBfXcpb3vwAIGIibOHpFq1yfcIYqUfQpPsgoefiXhIjmuCUIHuwbKrZqI2h07uMg87GEtaUXroiLssBG6u60GDmd/XsBi/ccz93NZo8BPMIsGhnkd+ieBDbqKXxrqqTf7lyUnT3la+SmCiuStaWvj50xW0SUQoizdAqneJf92f9dL2MFMsYp3Zr9QGEOmxRheslpoOINJDQSWX8ZNdYZGOaLnwaEBVYIClpmV09Qw6g3ShHG3OhWVuutOn7U4Bhtfq3BrvOoDSwi8JpXOngDHPxX9C+x3CqdYuZq0rOyHq6bS+N1r+HvegHV3ylU6e5lGfQwQBB5ta9uRhutn2I6akLk7nqiO3e5cD+r5+VTnQSv90EqlFy0Rw+jwBTg7y4Fp8PxkX5QGHzRo+PtLEZXug78FlOttieyoxjVYf98ZkoPTK68UkOJrXoC07WbXNYvi3TyvUtyR89IKtyf3a5hykGkJurESF27k/wPZKKb6W3ojSLTVnOwJwgrCSukuFue1rhCrBjCnW8DeTs+o3u+SBraXIMA4d2GW9zEXmL0jVYHyQcUqk0HjdZZcqUgCXRBdNbzBaIz+2lmaQvfEKBiQftXUcPuMFPs23yYwapjUMnKMVY03jANjB5jW3CTHndmdc7H6gLxdAxPYvqUsB8B2tTgsPEQTvdPqixYAxmLqc4gTyPGCQeD8kcL+SJB4kvmD78EcVfS1E1kH9Oj3PxgTloJ2mr2EAdon8AYsLzJvu15hiHtHH9va0StsOGtBXHM2morGNTOBuuVRuLgsbdNWJxUJgm3TKVCSaaBzHivozS5z/MLblvBPRYN7gUOUWUw6rVXembYP X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28c81716-5b7d-4485-9b69-08dd0558a132 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2024 09:33:57.8528 (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: IcxdcXio+A7UtFV8XC30h8j33F66twnl2jHw0aPKg1RFll5GmU2j/10hDwybhz+jhvgBv340Uzb+bdpDHzOMJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9743 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241115_014829_318491_2118C6FB X-CRM114-Status: GOOD ( 10.99 ) 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 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 Changes in v8: - no changes Changes in v9: - add tunning param for usb3_phy Changes in v10: - move orientation-switch from dtsi - rebase to latest --- .../boot/dts/freescale/imx95-19x19-evk.dts | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts index 6086cb7fa5a0..68b2ae091279 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" #define FALLING_EDGE 1 @@ -308,6 +309,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 { @@ -390,6 +433,40 @@ &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 { + fsl,phy-tx-preemp-amp-tune-microamp = <600>; + orientation-switch; + 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>; @@ -624,6 +701,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