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: 13876018 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2062.outbound.protection.outlook.com [40.107.103.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B28CD18FDB4; Fri, 15 Nov 2024 09:33:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.62 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731663241; cv=fail; b=PCGTx7jbMkQI08jBjLWVZymw8vmrKyf1ITTpnq6Asfpp9mv+INu0Zgwefw5qbVzMfv1XvDgLuYe+DRqLuwmG4lO6Eczf2sdj6NjGlVGjzqsWDd1IIGVaLmzzp8/Hv1GhX1OBfBuVkVBQAIeRkCNYSlhaNIgnSe9citK9MojWQ6s= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731663241; c=relaxed/simple; bh=TroSg1CDKk6pHDzddfZ+nUSfLe82PFUdnN/lft9ES8Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=I8eAwSeDL39jpL85PqV/u9GetvGi1Hi19ZMvwGNpcER53G7YA/Op6xYDGhUJmc8hVpdF/Z054dHF/+VRsDwZbvE4PQeNo3lvbkLmaXqGhzz9UZCw/3c5zR02sCG6Aicsawd3HCzD9KiLBRg747yKe2Tm20+42It+h//CBRG/GZY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=diVbWPHV; arc=fail smtp.client-ip=40.107.103.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="diVbWPHV" 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) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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+Oqx31FQdwZL5Y4BvjyCGEa6Wi5gecdvh9mBIDEQ5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GiFzYSS15LGyMeA/vBFr46rea/jrYRBSbcgpmhy1EuMpl5Ar/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 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