From patchwork Thu Aug 1 06:49:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13749874 Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013033.outbound.protection.outlook.com [52.101.67.33]) (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 2F52F157A61 for ; Thu, 1 Aug 2024 06:48:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.67.33 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722494932; cv=fail; b=hXv0M8VS6iFmmihwNYlwZnDpUho1cZKC28+Gy77b1r8GEW1qxkmeK9ciUESoeBd12gkf/x5+9sPLerjAVF2gX7cxWu9MbwTS9nWpwZKTkOz1vmTobNvdIncdN+xKMIBymq1XTawhX3lP+sMeJ3I5EQMYBSEmIQPI0SO9j1feNrk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722494932; c=relaxed/simple; bh=f4jzhagkV64krS5KaBeP4qWU2eknfi3BpbgDnDuW+jw=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=AOPLdo9r6YKKwDJKH7mFhT29oGzHfo4BnUetIGsvn6BqcWGUCDuxA+FBjMyqsxVwN+C7gePeyVZAnq7HKg/HgJJKtGsn6Zb0eMmq8iOAQrmv4kKH9gKSYzo2nTnumB4gfaH4iyK7rEHZO21Xl8+K6GZnz/sk6xnAIfhwMUHDP+Y= 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=lMfuu3GR; arc=fail smtp.client-ip=52.101.67.33 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="lMfuu3GR" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FL/8+yiy/hwCHkKrUlDgxHcIlfl/59MMO9Hbd6SBeH2tGStSjNCgnRaXa2CnH00YRY0Xg41hy1WB7Pe7ykA2Y8A7Q3HUUAzuZeJRYyyvDhb7xGfzMDz8Kiccve/39KUlbTshfRGLjQp4iva6CoysU3/glAoo7DVGAJTN7QFcVX22aoJRv4g27uuZHVKG5AzDlmsRIvAdrimkkGSOHi/2/umb31/hRXcUjWipfIIZSaHfOPn3knJ1IFil3Oa9MCPHLe/7AsU5DxZNbCSsZG83geviTFORcuD1VBdMPy2NVWmI7mDny+PF4azk0sJL6USyHp61m8TQ45jZxjaI+tfIhQ== 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=OlkFZv7k/RvlVJ7xhNTnUbByDhIGLhPLSMfn0bXRuSM=; b=HPflrGzGOj/cwQxG7xLvIpi/6GJvUbHMlIJIEaVLF8YuQKP7uMmDqNBD5mO24uuA7lnv5xR3YIh3hXahRKeP/ZTPiLUOjzQAscDr2O2vzCMM0UB5rmWqiuCWsdMALviJOS67f4dH1WhX19JiRyCiPCtP/4uQXKk1xCxqevkE1kOBoaSI512mZGVfvIbZKJ5v0Jo1/tcaA5Odo+0Yai5SfxMueYzzOl38fd0KjfquwLDtLfGg4bf+5c/bNb0XOKjS2PnH+g/5jSA6qUMDZDTowXbq7O2EYWIxI67o+gE7cYbGXww2CGPk0m4cmbcrpitW9M82A1v3yOIO7YqmByWBug== 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=OlkFZv7k/RvlVJ7xhNTnUbByDhIGLhPLSMfn0bXRuSM=; b=lMfuu3GRJs7swoalHVpndk9EHxNBk/kvN3SVelLlg7ARBmtMg+CjyVkLTxlR//NuLaJb91gBT/joLT9wijtgL5+hJ0IK/FgTM1DfJ9ZwBgpbraUFzWJ/O+Df7fRi1EExhtuJk3sI7pdiUDBQXwd5RIkOjQ68u836EcyFWaZdTL1j9XnqYy+leGGc1Nk9uctEdr3iLQSDkctx+f3ZLd0Kq0DoCYSZILqYsUxlHato95dNZj3IR+IWfkWAlr0TAZ7l6ooOwkH0b4QdYj33kI7dU4Sm+BPErsTfSfBYEo2Kdk/20BeaoUC0376Q3outVgQO5NBZPfFjg6IDRtmhjPmMZA== 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 AM9PR04MB8732.eurprd04.prod.outlook.com (2603:10a6:20b:43f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 1 Aug 2024 06:48:47 +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.7784.016; Thu, 1 Aug 2024 06:48:47 +0000 From: Xu Yang To: gregkh@linuxfoundation.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 Cc: andersson@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, jun.li@nxp.com Subject: [PATCH v2 1/3] dt-bindings: usb: gpio-sbu-mux: Add an entry for PTN36043 Date: Thu, 1 Aug 2024 14:49:05 +0800 Message-Id: <20240801064907.3818939-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2P153CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::14) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AM9PR04MB8732:EE_ X-MS-Office365-Filtering-Correlation-Id: e569aa64-e693-4175-76df-08dcb1f5fdfa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|7416014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: OAVMO4cNzu0L/UPHpQWSxN1/uq6eEgIh1V+8rMqkZ/4S2ZnKV69vV3K9fLrNOSjZE+yB9pZ8SZCF3gUgFZ0le038HWHYLQJ1SzzMxhx4EQy9W/+FbJOCW8tKSWgPxWw85hcQCUalKa3BmKzVP4BqdKDsun+869SFKw8qQK55a57KFNuyNIKjFQOSFDqct63KRdVbYET9NILMXkpwh1F3c4Rq2JEcFmMm2uyV6LJP1gMzuozNTKb/X7qS9LpkNxAMlrEOJGdyDzAlKOItlA/VYFrvjXksb+1pbndKGP3Cf66BNdsFu/NYWmr9L+TC9sycjrXd9NDzPe/AuNK35NVYs23Ybix/YhNQKfxY+ZCubX5w2H+a4RYn9qFQg2SXuV6bMkY+InX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PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(7416014)(1800799024)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hlU37+8TuGCoaCubXEz+P0WVmAQ83kf2ZajeqVlLBDsUeOZ0muVjIPxNvPrSWRqse4k+Gh+d3x9Fvv5JMbyu82O/rAG1gkea9VpmnAhEO9E1/8vZn1COtVtTibAQFnuEosUJB8LHR6jtD9fnF4MkB5/31ORzL7sfbUCt6mhrJBM5c1ulWVVvzQ3UdbNLpeWozVvUmtV3t7VqHymAhxz0agrrbTojX5PCeS5JGordBOpXYtWNVwHF7ko4wXrRL9ebfxhM41MJobHzb6LvTsAEswn0zF5+KFlxmoReT33w5K/xpFixd7nT6OgOkUPM1EnK/jjfq5+DtNRIHDWZJTsycnO2sX7I3AH8ypPsLSAgRZ58OflHXKscMxKTN7YQXzir8qfig4aHkxhZNWH2fPSGMmNPUBZdD+UEtvfa7EJfi1AU9UPMXs+X7spdSXkhEnwihEdMEod1pvKD6P5c4Y2j2CI6IG4WldNE6UUnQgXSxfhI2I62VO8qGDCsS93YbzM9vhXISsqTjI0NPSuVX2vTlG9H47hyGZiGMkBDfpsvNuPyibOq98BKsAt0AgFmH59BOi2eiYqi/8So4yCVhjYMSnKuL6lVjuE1vay5ce4PRayQOmRxWeoM/KNYfEuceSGExx2FymgRdtMSeQH8BEjo3XNZIwb6gNS9kZcPb0vSkPAYvqv1+XtxPWLNotJLfn21DK0VtmJwHeNTj8oX29uh3E4Ld0DgZjLE/GrL59oOm/jnqWD+y9AkQoGuutDl7W0GMymM7yKxbB1FdjZS/s506SHipV7qQ1ttQXRBJkA5qVeLhfrUqrB+cXJYktxqXn15ER3aWGs8VFEuC6Q8BRZ7fwu/Patsr20af9W64VRyY1hk2tHxUoTCgiPYcDg65o2O2YL1fmjDvQvGLwLcu88kmi/4q87M8YFSHjpcw3JwtJkpNFwnl71rEpIcbXEVeu586+NBftqO1oH5liBUW5SkTKmWHpgRAzLoB0a3JgJSMWB54RnXxnR+8OZIiJGEHZbCzxtza//o0nqdeFc8Z2S9PmFVDUphLbkqQQQkhqub3ZhuazbsskTKKveJWNMcf1KkXzCtktQxj2YcVP+a6cr7g9FerAXUMkhkhdeEcETzLZxqFfDl1ktW0aSM1b1eqz0rRHawsATmtoE+xvEqve7I9EWQqICC6hYOVzW+y8t3doFF9X1H8mi8CjKz3H8XKINEWzgpNNWY9lZ7JMd6zGaI7aN7pGa8BL2qj2SjMQrELzfjOebjeOqrYnKBHbxCD7doXquwD+8GZAAn0ZQaQlhpqO3aJ/k68KBJ+vl/8L+Spx8wO5+BadjEXrs7iJ8QtyPxBnRcOViaVUdQhslwTVMKbM7a6lSZ/ijCgn0NKyymLqG+oH8/gU6+iEAXHhyxClJ7UFowMjEz3ZJ67T0pHd/L+EORmMC5T4g85GIy91Yim2piVYDEBNpkcVG+VjMU1BwqagAiZGT6hotPzMAG0K3BCrTMOWpMf1neBImGhHyVRJWCG/gOy2HoyeRGH9CqhgvV64ALT8iLu1BOBwi5CZv51bHSGZjVwKuekZxapMJ9cd14Jp/k4KM4RBfRrY9WNvxz X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e569aa64-e693-4175-76df-08dcb1f5fdfa X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 06:48:46.9848 (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: g0LJxzn7fOVifg4X+QyydrxTsKa9rid9FswgAyc/4CNWNTULJ1xDCvTqHR8DxbA5xN+gzdjw3aU7s892L9lY7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8732 Add a compatible entry for the NXP PTN36043 GPIO-based mux hardware used for connecting, disconnecting and switching orientation of the SuperSpeed lines in USB Type-C applications. PTN36043 datasheet: https://www.nxp.com/docs/en/data-sheet/PTN36043A.pdf Acked-by: Krzysztof Kozlowski Signed-off-by: Xu Yang --- Changes in v2: - add Acked-by tag - s/SBU/SuperSpeed in commit message --- Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml b/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml index 8a5f837eff94..152849f744c1 100644 --- a/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml +++ b/Documentation/devicetree/bindings/usb/gpio-sbu-mux.yaml @@ -20,6 +20,7 @@ properties: items: - enum: - nxp,cbdtu02043 + - nxp,ptn36043 - onnn,fsusb43l10x - pericom,pi3usb102 - ti,tmuxhs4212 From patchwork Thu Aug 1 06:49:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13749875 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012070.outbound.protection.outlook.com [52.101.66.70]) (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 8B296142625 for ; Thu, 1 Aug 2024 06:48:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.70 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722494936; cv=fail; b=nhVi5z47k/+cHmSvbElvLcQ0OVRNZwZZ+04/mAn17qdj8xLnc4VIVzilJje0Ipkh97q7zcHAP5hT2isCcLITLFj7uiNx7UVnn6o6RNXdbU/sbIjMMhxepvmEGCiv3JOgcKvOCk28Wrt/2j3IGsFufU5Sl5kJd8DHLTlP51Dvh6A= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722494936; c=relaxed/simple; bh=N0GjfV9482mBEdHjtQJp623i0aGI/fXuajGCYmTVi0Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=QVGB0WMgL0nWTV9S1mRPs+P1HXYcYllomggqMD+83GAxxloQdWz9CddFpEvJ3UZ4VMwFWhtvQiuffApRvlF3wByFDBd6XMM53j1FDqxAgLY8Fxae2IgCao0qIl7KrQOQDTQVxp0dR73/a3PkxCorCjUV6SK1g88EikpfIKbAzTs= 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=D+sUSVmm; arc=fail smtp.client-ip=52.101.66.70 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="D+sUSVmm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=O/6hiisXLGGPnOp5TbqSKCO5FWOXX1bKrMxIVbih3BSv0ez3plIxzVkJibOTAy7KIaoqfBKBre7lkoU+rTVF0sBizrScVVfl2tQ2JowbHXeeghSwn59xPIuAbbS4mRI7Vj4rlOvgmgsMY+Re4z+Zfs4HyhdWFiprZhTIAR3KzjcmZLsfgFT7KPqWe1pJQ7fOyV5ZGZh33QBth8qmIuXCDlsady2gBa7HxwHUllRGw+no8SLmBXw6udFiNeq2Q08o2Lm6xVG75XCzDSk5A+x1If/x2oEMZBNMOKOpMlrmiXp3uBKRl6p3/dNfVMjogGYTk01Ai+dZ3m+7OwiP6as13A== 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=85WtmWXygpY1Ih2kxJ+mMaFCcimv54LMoRZLqTQvFmE=; b=uvp7zKC90IQePeM39PuP6v8IMdUlmXwa+GLn7wcbjgzhFWVYTklFS0Qoaf47lGw2Zedx4iY7YaHNliCoIjeU/+OuHZEYHW9/rt8dl32oQ1rL7Tsaj0y7aEU1qidXIQ34XO8mtL0ZwpaI5wLSrQXgk1BZl+OF8Oswrk7TMU3QNfwmxuTgd1e+vBtAwyfkCXhAZ9TtCNWplHQw/1xS6xPb3e/zfm5hw3KmNO5vO005ZW2AHibhvfRjAEEpNVj4KmdtVo4twxjMbvljg0QU+U9NMIH0YOa7A0X1zs6jiHTYrsKMprWRrGJTt27Bt+wj0TU0GXCcG168inIdhSdL/IZ5jQ== 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=85WtmWXygpY1Ih2kxJ+mMaFCcimv54LMoRZLqTQvFmE=; b=D+sUSVmmBPcw/XifFL9kvKQDUfRdvVU3a2isC3Bm1OuHfJ4wJ6omIr5elfKJH1mz9WlnoUqy2V24UBUY1txjBYve5U3Tb6NyaY/9EPV/lwa7I5RC8W1c+XUeVBGKVEL1LT+k/sIYQKZ6O8U8DdFR82ZtSGW+g05z/xSQHCuITZ5jnToa+/PvmabUefaUwjHEZ2bj3jSS3XYPe2Rf0C3uLMlmysjj75t+SS5X0iCWY7UnVzE3yU9phDV9CchSDu1TgvFUKuYvpGZqjoa9V83wedBVLugQmrELiK0IVNLMAjzYF2i+FxApl3dTHZgQ9dueMoF/zZwHHVgQmk8kIkfpuQ== 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 AM9PR04MB8732.eurprd04.prod.outlook.com (2603:10a6:20b:43f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 1 Aug 2024 06:48:51 +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.7784.016; Thu, 1 Aug 2024 06:48:51 +0000 From: Xu Yang To: gregkh@linuxfoundation.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 Cc: andersson@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, jun.li@nxp.com Subject: [PATCH v2 2/3] arm64: dts: imx8mp-evk: add typec node Date: Thu, 1 Aug 2024 14:49:06 +0800 Message-Id: <20240801064907.3818939-2-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240801064907.3818939-1-xu.yang_2@nxp.com> References: <20240801064907.3818939-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2P153CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::14) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AM9PR04MB8732:EE_ X-MS-Office365-Filtering-Correlation-Id: 82c5b271-6678-4edc-cb27-08dcb1f600b7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|7416014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: jbP7CzR0y7PybpOEc6d1dgr327qHclCMEM6tiB0YEtOqnKOi0b/qG1cgXedJ8Qp3gMVmMFu2eTVXDoowM/IRBOchtHFAARNGTFsiz3YcQ+Dpai6o7fusKuGKEsQ1dKCAq8INw6ZvPD9GPO6IFzbs72PXKyk/ZVbMNO5OUjQb9sthLPRCckP7jz69ANb2b/D9dztfCeOqXoHlfRr3QM57ibp7clu6fYpgg6tyVLlZeR57d+VCc2dbuXf7mZdYh/NoaecjHoPHnkS7Ol8b71fcVw4Z1FhIc75a4QzsCCs35cgSd9+gURBh/7fGTZ5b5tXfYbH4SVcBJwrnsXhZV3nuG7Ejl0xAtnfN+vtMJhTkdKTTpL+OATRGo6hzlOAKpiXSjcy8+/rV4fGuPEEMhFmdd0m9cSf2AZKpLmvJrcsJqneeTgkudq5Z1fUJC0irgmrefBedHB4E/xyysswomEsLr9oTY7Tj5NkpzjZ/LPuSWtCFDnzNMw3OxJ0Ych7pWb/sBL4IVlPOL4kWTQbidrBqR8KAVttf+Dk+T1O2V3Y/1UrCvvQ1PakjXTXLPGn6LTVxHFmu04BB1WfUze+gkfnhSWJpr0wDsi3M9EZazR731h9130Mb2rPE7J9eRHTW+wLTAemqwTF2B+SFkYEs/+bdqixo6rqk0Ve2jWS63P1Pp8AHnB67qaKEtL/OK2Z+Lim2D6iu27pBynnIKIVu6ziZvQbAa+IRwp+0SGJY0MkU8b6jYv7f/eAe96uWjuNjGxpsTXi2KaD9OOBTGxhLPR9OmPH4x7KbSXU7p/jlLZMOCSYynN3SXGj3xhJUCc9fqBH2kaO8t1sGZ4+7TQ7BYVLbnCJjVi0QkpoSZk2xpnFixLmgcD2iAUbQrNb1p5SxLuFtIWBh3vxL9I4GBhLVdnweHPbSrbS1+Yz0uKJOKGzeY0IKRsGRR1KtE/sXYyemDn1hX86d1E81G4FmtJkkl3NMwpQDowTkC8PcSCgFng7/BuD3T0NNyi4DE6sY+Vp6psbSbq9odG5Xfvf7Yv6sxx9LjHCtVBpPpusUObzeIXyuwXkKDHzMN6F4I1xz/UdlxaV9c0goDw1hcCwyLCEUdz5U8UAfHwLewDo5U/1HsWaGehm1dPav1X+shQI/qSZbZRKbh+UKeuvHaVhigA/3yJqeT7U7CN37mNKpNF34Vx97MO+amcdcGC77IoSqn6rVZE8RzEW+WfX9IVWGorH26y0AKn5xYVHsLjXYFmDL6LdBfY2PNpINXTBV4Afv+eIrcstizylJTLTcn4xPc0Sqa33e2/sejTeNzZF96LK+slMrlHJYn8OyuNE6fRDf3fN5/iLLMBDmV7oU97ZyeGXEBejmYo90xxpCN8P720GXhPg8/d5GJwYclNZCEVP0pTor8w8Gd0qjGDPhEAE45U8LTY96EA== 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)(376014)(366016)(7416014)(1800799024)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kIWJSqjalVio++m/O94osq3Waj6GSOPYj/1/MAfbi3XX+Mn1mc8YMZ4TRsw3f2/S1l2qlMPsc+RtTDOMPxmw0luzFJ4ctFHTzOBpbIJsY4+76WsVQuEBUzcuFr4dOV/SukDGA+JNTLEB81/djLLL3iq7FcwSS7r7fa2+IMjOz/viSic7zlSsIfvxSkEbSAuq5/CU/aWiJT8EOnlGYPTW7ZsxuIOKt3v207GKjU7O9XQ4rvU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uQbhHQ19GmlLzIfToFWjkindQO+b5XvoH3yc/mrWSee2K/SYH539k9po94t4Mp/EDywY5Bfo2k6C5WC2q4y3qcU1Er+X8vzy6mfVC/bic/48f6YtO9OJ3672eEIPyEVDc7xwtxVqeav7x7IMdhxnZIxia0g0v/mkstoyEqbvRSyosgs1kvM/zuGhR3yEHz0Em0Cu9PIi5uqHFxyZSQShaY0Mo3UHEBB7/oFCVDceD6juRUAsi7v7j+/nY4RXl5sd8F5OvmvakTNF X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 82c5b271-6678-4edc-cb27-08dcb1f600b7 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 06:48:51.4597 (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: 8bBJmSR+y8wOaDbBlGtbv0LHSFRYRNngVVzDqXbG1LGIZR7dP+ZKNHrhJbXygdcnLjBRC4UEiWj3FsCj8j2DiQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8732 The first port of USB with type-C connector, which has dual data role and dual power role. Signed-off-by: Xu Yang --- Changes in v2: - modify endpoint label - fix usb phy tunning property dtbinding warning --- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 104 +++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index 938347704136..ef9b821a0ae2 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include #include "imx8mp.dtsi" / { @@ -26,6 +27,20 @@ backlight_lvds: backlight-lvds { status = "disabled"; }; + cbdtu02043: typec-mux { + compatible = "nxp,cbdtu02043", "gpio-sbu-mux"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec_mux>; + select-gpios =<&gpio4 20 GPIO_ACTIVE_HIGH>; + orientation-switch; + + port { + usb3_data_ss: endpoint { + remote-endpoint = <&typec_con_ss>; + }; + }; + }; + hdmi-connector { compatible = "hdmi-connector"; label = "hdmi"; @@ -535,6 +550,49 @@ adv7535_out: endpoint { }; }; + + ptn5110: tcpc@50 { + compatible = "nxp,ptn5110", "tcpci"; + reg = <0x50>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec>; + interrupt-parent = <&gpio4>; + interrupts = <19 IRQ_TYPE_LEVEL_LOW>; + + usb_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 = <15000000>; + 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>; + }; + }; + }; + }; + }; }; &i2c3 { @@ -704,7 +762,41 @@ &uart2 { status = "okay"; }; +&usb3_phy0 { + fsl,phy-tx-vref-tune-percent = <122>; + fsl,phy-tx-preemp-amp-tune-microamp = <1800>; + fsl,phy-tx-vboost-level-microvolt = <1120>; + fsl,phy-comp-dis-tune-percent = <115>; + fsl,phy-pcs-tx-deemph-3p5db-attenuation-db = <33>; + fsl,phy-pcs-tx-swing-full-percent = <100>; + status = "okay"; +}; + +&usb3_0 { + status = "okay"; +}; + +&usb_dwc3_0 { + 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_phy1 { + fsl,phy-tx-preemp-amp-tune-microamp = <1800>; + fsl,phy-tx-vref-tune-percent = <116>; status = "okay"; }; @@ -986,6 +1078,18 @@ MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x140 >; }; + pinctrl_typec: typecgrp { + fsl,pins = < + MX8MP_IOMUXC_SAI1_TXD7__GPIO4_IO19 0x1c4 + >; + }; + + pinctrl_typec_mux: typecmuxgrp { + fsl,pins = < + MX8MP_IOMUXC_SAI1_MCLK__GPIO4_IO20 0x16 + >; + }; + pinctrl_usb1_vbus: usb1grp { fsl,pins = < MX8MP_IOMUXC_GPIO1_IO14__USB2_OTG_PWR 0x10 From patchwork Thu Aug 1 06:49:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13749876 Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013015.outbound.protection.outlook.com [52.101.67.15]) (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 C217115853F for ; Thu, 1 Aug 2024 06:48:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.67.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722494941; cv=fail; b=aZAZyxzbjJcPYayu4e8jwHztwBr6gUf/EWNgkYVvAgDHMAyKJomD92VNEZ8ZsP7GI2e/H3Cv8Xg8mtc5kfn4IhFo2EfnQpSWLoVx3PqCYIogniZEamkvhupQLNfbx7Boy0fqIRlJHT9aCrLA1Ty0V5pM6zBZKqFu28bfWw6ResM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722494941; c=relaxed/simple; bh=6Og0oyQgcWza4t5cQ/eK0Q4lM3PT386+BCI+Dj64gGg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Fq+CvtUAnhxmEAQGOdgFLgoe3MUH+RvyHD6Un6OJshH2QaIS9D9LfCtDtCv4DZlZ7Qr2o6DUMRsq/scJ5rH1zg9SrcsxDeny+wJQ5PcoPhJQv6U6KQZjh89ZtQuZiBWVLvJez3x2rJ3p+xPPM812wQIpE125sbYNo1qGD+Uf2Ws= 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=mSzYBltB; arc=fail smtp.client-ip=52.101.67.15 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="mSzYBltB" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GMmIHHHXKOULM5we4sgBeN0RWmdxoMrVsS5LazjuO/3o+5iacERgFjTSP9M3qlP/GJ8PJmQyW2XTaPB+ihaDS4MQmj+qCyK8o7uXdtWuEfP/BS9+TA/rLT7irsSljgFdK8u5sBas4igg/RSNg9nvjOFysXm3IHrAd2DM+oNpmjts8mqNVPNvq54xmChgoAljSMTvi8A9ZFYjlLfb8p7tIABRDXDAzeIcYvOwhP37WlKTHjIroTnz2AmhfdRw2DS8oCBLO5IlZTB4dWfcVHW5UGYNqbUSfLvHq/dG+Hs1dtJ8tFsLh5vV8yx9+nMAvVk1mbDbDbhMBby6uFlHqziktg== 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=yEL6XlZCPmyxH5Xn20lMlOCjvMSCMq5lt0IW8kXXVI0=; b=h1bKdrpoG9+jT5DxIsQAoBgwhPPtjM76HQw+ZqDDrYPQiTXgchtvqaLmA3lGEZXWMILcdi5j66WUsyw6tjwVlIgGL41DIWs2cydaIBjW3cns8U3vr2qrysIiL1aai4pqaZiKqMH4OvDpNWsYXKPT1tNrq5TEQsx+wu8sTa1LBKSVpxoviHBMiQQisKgTGSQPtOen9MIonc4H/Nq78E8IrYwxLcsg8oQPvmJENhBkHPOlTTt4H5j616Yy3myfzYFNQgWCKpamWQtyTZon6L4UhMKu3iKkdp4RLvRqJhAY3ytAzeO2EpZnn2qrGHJb3h6EexYsJHwOy8U3a6ml/umO/Q== 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=yEL6XlZCPmyxH5Xn20lMlOCjvMSCMq5lt0IW8kXXVI0=; b=mSzYBltBf7jaRe9sxDR68nlfeivZfXGjTEcYr/aqdaIKq9H9z2i+W7FBWAoAgsGL4+yHyM2uhZ9OU0qjg8Bp+j4jvJ/ajQnd6If2g/9KM73JgAHMJj5pXk56bc7kSK77QdsV52OuFRRbXFz+nxPQNBg/QXcH5BhnfFQxK20Pbx1H+wccH0RuNJrUsXscJEGuyBmSgwk//rl8Vdu99UoJEdut+3O+i+EVjLKBc47kokKdn+kk2bcx6kKb+q2OLy7GqqHR2WAoyLClF9M/OVHVDWRsirK7r7j1/noCBeAdVeyl+X6ioMxr4WL8RMCiqloDMqK7AA3+YeEx+AnhkUxXgg== 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 AM9PR04MB8732.eurprd04.prod.outlook.com (2603:10a6:20b:43f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 1 Aug 2024 06:48:56 +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.7784.016; Thu, 1 Aug 2024 06:48:56 +0000 From: Xu Yang To: gregkh@linuxfoundation.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 Cc: andersson@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, jun.li@nxp.com Subject: [PATCH v2 3/3] arm64: dts: imx8mq-evk: add typec node Date: Thu, 1 Aug 2024 14:49:07 +0800 Message-Id: <20240801064907.3818939-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240801064907.3818939-1-xu.yang_2@nxp.com> References: <20240801064907.3818939-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2P153CA0011.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::14) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AM9PR04MB8732:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a45f871-bb35-465f-e4b4-08dcb1f60363 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|7416014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: ztDEWG+hHX3RXkfH6EPM+7NeWhaWapkQ3fvKvj6PQxTVCO1yhkZX7/bobkq52KB0L80JW7wcpT+0+6PUpuxCMm2Zgd/PIH6vs5YE17wVkoGcqeD4wbBPjb6LQbDpf1j8WMt9FakQsvD02x1IXmtZQ6jTmgvg7dDQlu2lN+2wyEfkbOXIZ41rVy0Emq1CuRAJiiG04HIiSUAI2I5nc6B+0qAiUUEWy9MsUNedDtYtvVBxk5IDyGzmW57vbcSONDHp8/cupCtMIJKw5mgaJ456XunW4WvAd+5RYLX1/ek/76aoRcBABj/mxOhm/9am6kVUNo0Jr3V0xKGe59R7XrM6l+Nlpnur5jPi0XA+ZJjng03Kfgxoe8uwPUIGY2rVCLkMdNIzUWfulcrqf1Iz192J3Xt0nYeAu+5w9Wa0h4FvWED/of0weJJ/T4xMcKWCVP91rRXGqQoHJnRlWf2drlQp14jA/d8wAQiJxL5p/QKnZlQKJvfK2A/qVJbAGrwGOhwxEb61Wl8WN/JvMjmycWM0ybmU8VUQLLp7KfPzZ+0CMrmzHKhp2f21HoTjVUQJw2hXv5yTqELora0cgY/NyefHkSqaakV28EEzY1RK48N9CWxF4zPCCoXg6QY7VK/+AGF2iMYZXJMk95lfYga9Dm1Q/8l/pcSr+4pLFD/NzdQhjtH1OtOly6LmtGgUJntMSjoyrpvM1hu9TyURPpLDHCTrqkWCs74fXQE4scX533Q6GS9iYb/YN31tWH1DRqO+3vNznfuc/EOGi6R5X+hplAlrpqRJIetbjVny43GAHI4EP6bw4ppsok16vsNlXqInQ4u/zwWC8VA0ZWiCUt108O/6JvLQGUMuSc3O3F89LrAclKkaT4xwlsiAnIxFBH76nPzY6q1FGyedYeo2TGzmbgbDT7Y6OuxR2eL0kcRWLG9poSYZAE6lU6xyjy4YsSlhkhlAw3JgOwOmQ+2I2296hOz5BAvSOuHd0Xk59VctdB/KElE/BStSC6mjcwVqgXyX5AX984ZP2rz3MgLZki0hwGHmVFrJWsmTPpCoZb0c7n046HTnP0TuTF4VXzFDD2J1PAN8YXADc7wZLh+p2X3pYEPCKX8QroVunoDGcBSsD/l5GaXeaAyzVXv4Rqmg/2yZQCEnBtb9u9QhuWf6Y5+ME50klP2Jwm39d8grur4L64tDz8J1wKfJ0fku7n90xU1HEc0a7MGYxfxmqk84O7bqFmteYa5b3tfkymL9c3pKkgwib6O7WblX99IcrZPwl6L0Jjk4BsVQRCEHcDBi7u7agwKBhKMbG/S6G9MylWnZHBihht+dxNjYWP3dhOa7hMG1N5vU2b40QDfVWxPiZaQesqbwUz0ddX/GEsJdaHcchjjKTwEKWOJvsWhCYt2m0kWozXwgSNm3019yJq36YJbv36gZiQ== 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)(376014)(366016)(7416014)(1800799024)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: d3n+KHUZ2pw1wuW3VOWRsTTokEpqDk/cmQPY7Hr5dNAgjjihv2FYHDgJYQPtIB3e6inYBktXbm4FSKct9nLrKwrev98DxqHtRiEwh6ziAIhZOZpw6pTZYB7WVVNMneaWIHXLNAJMXJXR1Yhyzl2kUSW3SvttYwa2ECZnIxkEU/AuapZtj78NHzMod9dM4dN1ricIV9kBQWY/U06mji0TmiHrDOMjR9hNIg1p3Ez3jp736CfWu0e0YjYFImha8vk6xUyKoGDFuevRMcDjevQU9oH4cVicNKOFezBIcuZc+Fo3e/Qds+HAjSscxwvupD6pfNgoKSJxj1IroS0gkMMnjGCxSuYhwUyyQ2sdBozmtUDIVOmUaezh5VhWFT9hoj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LtAFFlAnOdiHoq+WXbREeKHikvVaf2CvYfu2i+aU/4NJ6a70sO3ePeSAhSVpOj8N5EyFApAYgRmQnmDIyL8+x3wMwL5LFXq7UIx2/I9RAO6/9LXMtLW7nsZiNn+/IcIYj8of/r4/0n64m X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a45f871-bb35-465f-e4b4-08dcb1f60363 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 06:48:55.9870 (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: RE580ARO1qP0BRrPDZKMx8/L0eBX3GJLnw16uht1HdWwc3b8WJA4IrzYFTqDovHxNnax3x8oBzfnNqXlRJWgyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8732 The first port of USB with type-C connector, which has dual data role and dual power role. Signed-off-by: Xu Yang --- Changes in v2: - modify endpoint label --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 93 ++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts index 7507548cdb16..8169ed7c7968 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts @@ -6,6 +6,7 @@ /dts-v1/; +#include #include "imx8mq.dtsi" / { @@ -27,6 +28,20 @@ pcie0_refclk: pcie0-refclk { clock-frequency = <100000000>; }; + ptn36043: typec-mux { + compatible = "nxp,ptn36043", "gpio-sbu-mux"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec_mux>; + select-gpios =<&gpio3 15 GPIO_ACTIVE_LOW>; + orientation-switch; + + port { + usb3_data_ss: endpoint { + remote-endpoint = <&typec_con_ss>; + }; + }; + }; + reg_pcie1: regulator-pcie { compatible = "regulator-fixed"; pinctrl-names = "default"; @@ -315,6 +330,50 @@ vgen6_reg: vgen6 { }; }; }; + + ptn5110: tcpc@50 { + compatible = "nxp,ptn5110", "tcpci"; + reg = <0x50>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec>; + interrupt-parent = <&gpio3>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + + usb_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 = <15000000>; + 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>; + }; + }; + }; + }; + }; }; &lcdif { @@ -445,6 +504,28 @@ &uart1 { status = "okay"; }; +&usb3_phy0 { + status = "okay"; +}; + +&usb_dwc3_0 { + 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_phy1 { status = "okay"; }; @@ -597,6 +678,18 @@ MX8MQ_IOMUXC_SPDIF_RX_SPDIF1_IN 0xd6 >; }; + pinctrl_typec: typecgrp { + fsl,pins = < + MX8MQ_IOMUXC_NAND_CE2_B_GPIO3_IO3 0x17059 + >; + }; + + pinctrl_typec_mux: typecmuxgrp { + fsl,pins = < + MX8MQ_IOMUXC_NAND_RE_B_GPIO3_IO15 0x16 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX8MQ_IOMUXC_UART1_RXD_UART1_DCE_RX 0x49