From patchwork Tue Oct 15 11:10:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13836193 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 AD769CFC288 for ; Tue, 15 Oct 2024 11:12:10 +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=azHnCRYS82/JuaZdLNy0C/Qi2z9nekiTALAKSxJjJxc=; b=YC3RvEsRVEeK9B 7YSNAA3eh/gc1Ll4TJ8J2Z+/zobPBoBL/J2zNl9SXqD/56cISmLvR5OuZB/qXU3ZBMAAGVGh3TDoU 9EyrdaDhARc7Q8P4VlLJ7weqpIJgdV0U3aQ3oWzPQ8RoMlmzGlthO/V6y2ejuLNPY5ncFonH9lCkD +NJNWZ3WmTqv/oLPT1CWo6V6+RPRHnHOdbQte6TloB+lFam8fwEpYNPPlGrlze9MLNQ947BagvSs/ wZARrpRJGFXKrDCaHpCVUWT2bDSpwMZAafywheIWOTmgb0kQ/7o4yqRMXbwnYJ0SB5KRO36ZbkgfC 4hbiKp515J5Dt8QpmdqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0fTG-00000007yUH-1lcG; Tue, 15 Oct 2024 11:12:10 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0fQV-00000007xoS-0Ye9; Tue, 15 Oct 2024 11:09:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JGtyXKtks8fbRZxcKJVVAFlge3y7Tzt52hSm/fCxkj82NvNnRlHrJQLH3RPKWt+P87zQiwmO9HwBt+/La2I5JGMXqSpLnHUlsISpDzNdtfOTnuqiIq1jtlnjip4603xOJHvSG6bNCoo3n0amHf9QHmYDdYNsVGWzC6UFr5lELURufsa7BXO6cPopAu43bBRv2E1qG4IXeMsbhU3ni0iDAyyPbxuT35KO5uGTFP/fqpqHNEQ1sefoW9CcgtDKOch+lQJF5XWorJbGq3xYnQ6mLWUOR069g0WPTl+mFMW1Qhu7TENHYdQHcTP0PWQrrry/8ONMVv1vJvT2VqxFmMhoCw== 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=s9GBIrA1Z2FAqfNyjsaauVdh1HyWj7rIsACFTdHGRoQ=; b=uFrRC7lEqGPq0ftO0SV7LrzCK6UYR61UhChRoJ7SuWUiPmUAQUihDq90C73cOm/grP13AL8n2ahrTUwicAFZAkknBqeHUIiWclP9hHTG5V7Ftswmw9KKiKRm2cAX5bJiaROED0b7f6E/PhEUqKChBVAC42Nq3iWbmD+AaYPLlT71VFL7GqJYoBRp5sMowlgetK9y2BjDIBx3PGqge5td6sbmaQ0dZIdI4wRWNL/rlXK19MDqgANRJssY17KBTNFqKYYdHgiKEdJz5Xmr3yJ7gxMsn+AZOX5ccHmO475XsaebYGQUO4gPScOJCo0pEtF3hwqBcOsf2p3Tc5w0TnGNVA== 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=s9GBIrA1Z2FAqfNyjsaauVdh1HyWj7rIsACFTdHGRoQ=; b=TONr6Aee1mVO0KXVK+vwquFNAw6AE78/U6VRq//EVPS8Kz9OyJ/LgZt/eyWxbSIuejo5ofBJOYKomyEvZ4ifVF9QQZnJeE5c/zmZxbik/gDENDe9OE8Zdhw0+JpAsxSEIqrYgb4Lguk6dv9GF/eTy8BpBjIuWDoYH41ppqPZBr6C5tHNanH82vdLFQlfWO5GLmjIMaO5CB5cWKmZOdSlySwp88B6LrC4AFncQEzv9NgsGXLVb+YKZDjCpgBNi+EJywppKfGeWM+WGQyBI4yPY/VAsRrp10MbOfAughdcz1LFsyFU4Oj3WwUKV9u1JyxLMkE8YCDT9XqUEDEqnNMWYA== 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 AS8PR04MB7701.eurprd04.prod.outlook.com (2603:10a6:20b:293::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 11:09:15 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%4]) with mapi id 15.20.8069.016; Tue, 15 Oct 2024 11:09:15 +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, peter.chen@kernel.org, herve.codina@bootlin.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, jun.li@nxp.com Subject: [PATCH v8 3/3] arm64: dts: imx95-19x19-evk: add typec nodes and enable usb3 node Date: Tue, 15 Oct 2024 19:10:18 +0800 Message-Id: <20241015111018.2388913-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241015111018.2388913-1-xu.yang_2@nxp.com> References: <20241015111018.2388913-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI1PR02CA0009.apcprd02.prod.outlook.com (2603:1096:4:1f7::10) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AS8PR04MB7701:EE_ X-MS-Office365-Filtering-Correlation-Id: 20bb5aa5-9101-4de2-8cdb-08dced09cea0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|7416014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: /pXge5Na+NchsdgkjIaYfBdJdxmV3/Hg+AggojnX1k5rsNQw50ibgm5fNTJE5VFrTBKXC5u7BaeGYv9DWeN7qPRksoChmQnO5SCPlJzDJ7V+pdnQpx8tNqGvDLprki8m9vrnMmbvfexqIfa4XaZPP6shotpy+Zilv/nT504KK0EAddFZzdAAwOBlq3Tf1lMEFWtPm/wC0BKEggB8LqXdVq7wgyj1xYBPGg+cfxthz9vjnCxk4FjXBVjp9d9wf6yuTJPs0ITlYfUKFAy9NuF+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YbUTDwOtd21XMEE5xN62+m5JNp+2PUtgj9O02irNY= 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)(52116014)(376014)(7416014)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HL+wXR+/rtHI51GpTUY/88Hv2Q1OliYBHZDlAZoKWrUrhNktQp4I4+69aFHauceYp82yNnziYY0Wp6tMlpFD9uEMk+nVy3LhWNiqD/b8M1duNsDZQ5WwesoncQ3nkmTB2k3bfcJllRqLX5WHbjse2eSpjH9d9XCqzYsrvbti7aEML8Rn0efYUI75OUHZg92xnq0ePBodd7oNYwz43utGnMEPeb4RdYluSQZg2PLHCkf7Tmvl5dUR31E9B9wu12JxaPZil61sJfM/A7L9X70LPaPK1JQd1GqsUrCewF6TXYjSHhotq7SCnblyhDrRMLZo1dHW7TkXSZBohufULLA92SJC+9PPSMF91P8I8MXmWN9iO9DHtHJaj//T6nxSk3NWvSuUEsdFlrasW5di3/e5pp3YB79u2GHwAEmProt9r3rUeL3O40IqVidO8MvgCTbbpSDk7G21QXf2AXgUIC3N14NoIhiz8zZOjd59D4XRBxvAyZ4UDRVv5LJG18T+xC2tPLBaXZQe520byav+8hd3jlNImvTKqwOK/She51p8m/jhrO7mkb13MJ3lFcTMGwsHkuzVmV837ho4a4uE0Xg+tqWLSIxthmVEpTqy/XT3F5z/yzfoF4XA5XnU8It6NUw/N5Gz2z7Jlr/ile/SK+pctNoodUFHxInEPOna3XzgcRmCqNzw9MvMOd0+kG1/4MtXYr1dCMvg4Xt2hQZCHZbUQ74P2ZmH5JDimWXTD1BVqiIQGjqPVLSZS4eVbo97G39eXLhEiSVJd1I/0xH8HJfF31bOMMK8DHm/+Eu9J2oCj+hmmlZy83+4+BrBjjCFyGMtoLFws9zCqeS6dikiV6bcplFFNC84ndbOe/6PMTp+dSnhRKtBrBdFW1g71YSdxWR9SmT53qs/VFtt+pt+hkHU6oL9yQ17VPjhB2DOuAlHOA6ht8XaD+d1bN/GS+Jup3qn30gC/g/Ti+fH1jckURth/b7Gc4T6zZwTv9urQBug0665ObG1s0aV4XZWy2dsUSUPfk5JRMatIQ2rfCIlrJUde7iHY1LQFdWkhUCfCLmHyrP5EUDCzVHAfgQEXianlDaiFuqJtJaCjxM6Osy5MNBRPohgJrLMoZURZbZJjLV7dr0WE4GwjQ49/TW2y6/KrgfiuAG8ZKbh7ZifiH/4G+QGqAjI0HDg1f1x9K8kuGbeeQRPNVSCObFF4YyN2ChJeBAbhB0jHDoYnHODDQXz5afphD1EWuqo03DWYon8OvLp1FpzzPyfUUErK9oVORZ6993w4cEVEb7/zeh7BjnIYSDWAwWcf5Y5cnk74pwJkqz0ASzAQH5ElN2yI4gY5ILahhnn9h4rlDFKRxXGSK78Tcj4XElh1XtdFuTUl9DsdrM2du+qhXu+rHyhmT3bx+Elnz24iqAhBKJADyNHxsAzqRFER3MwHy9pSOPL30BMYGGpvLFTM/SiddEQdFbwe+/pRp09d9qwzxBcGy10xfVSMZBfFUPYds1YJlv7y7z4C3JtFUhnjis/YCmUnzy+hXJQbo4IT1nVg6hAiJ0hEhw9Yo5xtGhp0XP46eHenAk7xnHSpbt1ougoyWH937LhMzm4Yva9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 20bb5aa5-9101-4de2-8cdb-08dced09cea0 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 11:09:15.8519 (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: SB2MfDz+/tecgTvl+tx8A2JaEze524DLiIhbku5arDbixnB2I1KJE0GFfs3t8Hu6HrI8UzqxHF5EGUZeFEwfNQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7701 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_040919_196079_E7CEEDB5 X-CRM114-Status: GOOD ( 10.62 ) 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 --- .../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 37a1d4ca1b20..41a4ee4751ed 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" / { @@ -250,6 +251,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 { @@ -332,6 +375,38 @@ &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 { + 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>; @@ -538,6 +613,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