From patchwork Mon Jul 29 08:10:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13744530 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012041.outbound.protection.outlook.com [52.101.66.41]) (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 2B5F413213C; Mon, 29 Jul 2024 08:10:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722240627; cv=fail; b=FbgDdGesEvsgqbXAQ8VoJt2zRzm+x4xbjC7zSsX8MTgwTwn9wfHyfCfWOefTZgXpvffgAgeMnoyoR7MX7R55gpnwylijXlklWN6KuqPfrzcLobxt2pLsf/OXuBVmS8Oh8RmpXWQjydXal8trLfQtToqhaLkdyQY9PVM/VJYbo9s= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722240627; c=relaxed/simple; bh=NlMz9IiXmzpzmCb8NP+Vjl+/AXwCUGtVat9OHyv9jAs=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=MI1/xvr1EuovPLn064p8W/wDXQ88hk+o2Zn1ji7TZ+Ad7yRwfM2AzKRZ1dtALZP3n+QO3P5SuE8ZWo9cT0gRYorLftb/7w2926WuegGzWw4o/bI/jcFYQKnliUfkCtYyl4atxgzjz6qYYul4ADg/vzNnTwWSk3w1deOOw6cuDM4= 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=GndOvOc6; arc=fail smtp.client-ip=52.101.66.41 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="GndOvOc6" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PWhyHSYg/0Bdi8c6+95NHnccBQr6lDIOhvone1ujPEwVJA57uUkC5QARWjkJ+Nq+UKzijiGu6zxuaId0bHXr8HSB2oT/MLPa51+1lqdwulJJoU4v27mG+5mRNk4FUchFDgIZ0AjkdZJF3kf/1/2Xy+HQzQjf6KmA8YLUW7D9NfjffduATvpOhEe3I16o3GPk0k6vSh5nb0a/78My77KWThKKOG+5lh1AsHEYZB30gdPeGf7trSX7ubzlV4DZADvYUHVCHKsVbWrPMpwecLSJXj1JMwobzBgHBHPvreUzLI+V/5J2OEjbF0VL8JulJdZr+PzN+pR1acnjC0c8yqpdiQ== 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=G9PKakBKkTVa4CZfQp3BcEjq/YzkDjPEODKkCji+3VU=; b=FA7Y5e6+sneA63Dvkn9uUi7alixBwHXIG53SRQTuOfNzyJoQx9UVpq17Cmr5JFrvKVtqpwa0qUduVw5THPfWDC1ELdUW1nTEn9ve6p0uBNNY8939tR4ZcQtwZD6w1kZio3G4S8p1t+ViMkievdFf3VW3vvAKUr6rf88hGpGs2wZuizYcKd308TiS0F86V8rV2T9sgC77AGxnkWwjtYP8IpjwPPl/JWiK8RR+vHX5U7mEHWo9xmNOQBVrKNdlZTXl7IEKBRgde//jvfHm9wqpf31wmB/5dXKTaEgIEm3w0cuwipTDI75eOTekD6V3D0SE/1RGcaHaTlQJ5zRi6PfmdQ== 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=G9PKakBKkTVa4CZfQp3BcEjq/YzkDjPEODKkCji+3VU=; b=GndOvOc6lzE1vnWcqpcWTsAjyvyPy5WV8urgfY3uIGzl/88hNLohLbdsgzmp4/qkBgWaKCURr9V4o19ZpZveDDIV0BP/4bfb4jd/ohgObUz7MbT8oJ2Soj8PpMoopJCTs3+mi6ZhUk6U8+/1piovwodfVZq3rQuC6o3KHKPk7b6esxsxc3zC+0Ya5x1KLOtQo0g8sNTFN8/OlFwXg1LDDDJKMIsWKJmZ78h7/Z+DaBO4aAvqtH/kZtX7/1vcVEOvfi65PE8SMyhyGPcSToPq64jck9r+83gHS0Ta7kSNVL2Ht4IwranCwiL9R4tZH8S9E6V2hufAg9trdng6k//HMg== 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 GVXPR04MB10302.eurprd04.prod.outlook.com (2603:10a6:150:1e7::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Mon, 29 Jul 2024 08:10:19 +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; Mon, 29 Jul 2024 08:10:19 +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 1/3] dt-bindings: usb: gpio-sbu-mux: Add an entry for PTN36043 Date: Mon, 29 Jul 2024 16:10:37 +0800 Message-Id: <20240729081039.3904797-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI1PR02CA0003.apcprd02.prod.outlook.com (2603:1096:4:1f7::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_|GVXPR04MB10302:EE_ X-MS-Office365-Filtering-Correlation-Id: 2db44222-81ee-4cac-b326-08dcafa5e2af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|7416014|366016|38350700014; X-Microsoft-Antispam-Message-Info: LeIVQQ2qX3CMw8K8QLoLyg4FLBmBUhINTMNJCU7R85GaM7y5/H8VwfdLZpZs61uZcAoyaS2DwoBvJDtuUAhqMPsDpMA5a7Uf7qjTYu1IQTGxnQs5AVD5R6E1mit5G6JvdLFaE3C1ymX8a1ZtDFtmWZBVtASoHkwfvu7ZYxRBuEtB5U/A4LNo2CJxRR4YJBgGjZ0mYQ+WK2wofYaBODeF0k5Gva12rblMgGOY/ZkrtWuoaFfA7/iqWErGueonVTz2F16GRrj8ILmauodxve5jW7zj62J27VO86e2DYvsgyv0fNqDV1qiowkjChO2qQLdl7t0eXnwEnKypiqEzgDPqrZvMV/KLYncgEqyR0+FpdhZxG1KIA1I0ngU+0Mm0Rg9BVEZou+swHU09Jt+9ufSgellX3BSpf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PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(7416014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AKZxCUJnDIdwwH9Jswn1jyRgK1ozPC8tNNYkM0iqXERueLMMpr3D/6NhfVLJmC0KHyygkrEO6+s2OpXQ5r7JKOckNlpqm53gW96q3NzRITTVQvlN9VJhxuBXAsMYD4/hKwjwcbKcZXk+Dfp6whiiF3OtdJFwBfxpR43GjJd5qx1oqLEX3pu7/01n/L0OCnmbqYDirQBVFr38wJCA1yAbn2jUENx77mYNa1U2MWOQrbszcvXLUybAHHrms9sbk7Ct1cM+qZtsAr90E2wlOlvBLpZX59W53B20BHEXDlY6eoc0STtypdKsSfMm5OY57dRvpBOe5JHAmE3IqksA0sD0DzXLEf8OVHgQosf5KtcHq/bD69/eUtOd4KfeafxSQ3zqF7l0XWtV4rlrphcjZE3UvdJPh2OwtMwWkUCcAL+kixUROJLAvvxwTfUbed+qBuFK9OQ2qKLrtJ9LVBRQNmWLP9jJF4/LUaim3esZXepXRIH7qiiTTPztFLMzlAqGvH5GuVNCMFqWR/pqCPpDJwAMF/5Vq+kjFE7J/tyUD4DWBP4ZCl+MDEBN6Qk7zNXTduHR1fBB7Zij0mdJjlLJS5FcqIsMse7gTa6/PPZlMcPskG9g6XMcAOw48ua65Wm1m5Ci+cdXqh7zcR1bJNGYQkMNtvf1MeGVcB6kM9zuCfaXgohNnJVmKNtPXSoeeZKnkLQ2doO9FD1VVPg0MgIMuRkcBA/i8IdWhhAqhPISx8wn2IJYtX7TcOess+pqTmW4oIJAjz33hnE+kDMLTH5+WReKlWFzQDDq+Z6FiFg0a6zfjzmuwpDAW8Jx9jX58KRzi1fdUA9RFoI1DGiQTFl2FVEynyjuRYTOBwaztcheXqCg9jqTpOwd/Z205ArQTy7HthEbGyw07G91UDSlg3dd6mXMvJ2oJNRU9D681567ZbXTD4mRxQt6EaDd17p7fZduvPITOOaBBKiwl1ea8GOCQmff9TSF6W2eztUvV/t3QdVqCIXgBnovTQMNwgKtXGLWMy7lCQndvtj+YvjLN2kj2D+4qFdXvK3YT+T5wWshg5FHxKoXM4BL0Oc8cnLz8apUt+rQMMoDBiO14zvM6wy5XBw2eAnz0IVmFGvAMVRiX68ugT70TJx3I8qp3OhJ+y9kzJ+0azOOlN5yp94xts/WJHEeLBzCkuhhBBDCt3PdRcputNqfhnMnJcIapZajMI6PBGL2pQeIOVgxPQ52O53ZAlXodqzPWlcA2I6iFO67kiP7nx+7b2OAbEHq3UXTJv4qwTl2q6oJMjDRXExEiCqozAAyaWRUydgbAnYtr7vQKZ9Bm7JD7vq2Gxm4ElWAOzjzBpayoee90IH8Ft7kpdat7SIs7Uy4rIGEHGHQg/5EHpmaplM8U6D+sGD8z7GWlvgMqc5G/UewJJ2bELOlCZVlLI6RJpCYGBd55NIKhiYJiOnvsAUolEJ4ufaBLqXNko2hgc2qdIKI48G+lIpbLp8Ad1HIsXAqPOn+IZJE72q1s/F5IzvjQpBNlJUVpfUa6imWAezWIfuJbb0ooW/p19kVzjQrNSKdnwVtXSegpp8SRVCB/TEskkkGFt4PqG5CKwdkYLjD X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2db44222-81ee-4cac-b326-08dcafa5e2af X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 08:10:19.0805 (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: ujh1B14HHlVj908wObNAEt+So5VJGVUVcdbzndui3n2/Egwdcir5SpsJ8ihdPrBB3JEFDaL2NKMwPv+x1T7Hrg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10302 Add a compatible entry for the NXP PTN36043 GPIO-based mux hardware used for connecting, disconnecting and switching orientation of the SBU lines in USB Type-C applications. PTN36043 datasheet: https://www.nxp.com/docs/en/data-sheet/PTN36043A.pdf Signed-off-by: Xu Yang Acked-by: Krzysztof Kozlowski --- 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 Mon Jul 29 08:10:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13744531 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012041.outbound.protection.outlook.com [52.101.66.41]) (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 48F5C1384B9; Mon, 29 Jul 2024 08:10:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722240629; cv=fail; b=tk/TttEGlCJ1/QifpKK2hnYQn06uVodnXXomXduPUaa43jIIPJrStWQ0xxLgevoSSxW3fYC89Kh/6DzokJNKTfbmG5QKb4/K3wExVlUwDCS8IV7KsC6oOP4ojrdSLX0U0bHfSD8qDsKHcL55ogqUbZIILWO4cDKP+kmvOct5smI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722240629; c=relaxed/simple; bh=eITdotS8t5C3ZSv4KVIogf36r2ws5yEYoH/qGFpGGRE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=U5ROB5RFuL7lSDNummoYsTQ0Oz6881C9dFHnOdZmnGTQfQG4UkN9jWCwK5mUAMk21hQ9JNHNnvt06iv99MvKiVwkbyPMb4KkNmYuqjw9wnYxDmNlGp1WWzSB2pXwDBWvm+apHbqDXAE1uoao0PADaqU2YhwH28rEmq73P0aT2bE= 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=agsDQB1B; arc=fail smtp.client-ip=52.101.66.41 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="agsDQB1B" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vabHbbOtwxPB33483jPNt3uSYJDLu1haKZMeqASYu5zgcovjHU3dr93C/3ZAmaY1L54iuKR3QMy6Llr0R0KEHLtkHC//LqisnYbuIYpbGc/6n0EyQ9RVDTru10YAmJBdrpOpBVviJd2wH9N1tJAaCzBWi3LXq/w+fPJIW4V197QgF1iYbgsIpZdqgS+CkjrqqzjQyOM4qVeQyKLLlKPzBQ78L9nqNGAMcyU0xtmx1VxYpsk5A64ZAeg6dcOrI3KRs9v+T2LgLmVI7rLMo5KzJEd8hLEYzTY/oDInPAsSowFk6+Hu1pw0H0BIl7P64o3QxwSXUwR0fuRN2x476Cu+yw== 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=aICEZUcPThMvO8M4yZM6VgNq278FBQYvhHtIlnwwsHI=; b=rAvawPg3SOfXbrzR0tgOlhSSttGXhjv0AJS9wKt4W8Wt/o6EEY69yRuDlJX8g3hI0mLrCwMU4YugXytQocCyFkLFAFvDuXZGGcGuSuCHAR/H15ZLGHElsP/rNRUjO8ibStdv8Us4Zq3D0aBHg0kUTcwAsr6hb1wkCRnQp5N19dyMIxL18RWxag+H3nNUeSvmT7YZQzrYYvzePqlUl8/ae1eh+gn/gQ3ee+lrFAJInxnGPbw8Z9GCdSa3zXBCpxbFnbXcWMiYrIjb2aqUovxVIUscMko5Xh3P8aTVVSn5BAesOwEE/ZYUv+V7+d4UvBdC1QBa/qRh33e6W8yBFcU38A== 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=aICEZUcPThMvO8M4yZM6VgNq278FBQYvhHtIlnwwsHI=; b=agsDQB1B1l79OV+RyIhE3jWqfmoFw2qyJF//2kbMyMwbAsBX2cLC0BP2WXmEdvgDOl2jY2wRoR02SZD+I/6FoqXNjmjy3tdX/oWpCkTMCGzvqOjdQfdAhGNFFruLnPItlBvL/OvtKgWrQsXBO7bns4v1eS6oUghgvvvRyF4OUe4n2w5FMx1OGBxczKLhZO+GFSrCLmWPrVaZTmzbCFz021k7fwri42q8mugZYVu2Ku6/ZJuMJKXxVSUUM2XUXJwtuehVc9pEojogvCeDB/oSdkQW5PLM1mi57JPmByBdbmqPRRztBasuAD7RMWhzK8628OHc9IRWfqeheY7oTGMI2g== 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 GVXPR04MB10302.eurprd04.prod.outlook.com (2603:10a6:150:1e7::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Mon, 29 Jul 2024 08:10:23 +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; Mon, 29 Jul 2024 08:10:23 +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 2/3] arm64: dts: imx8mp-evk: add typec node Date: Mon, 29 Jul 2024 16:10:38 +0800 Message-Id: <20240729081039.3904797-2-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729081039.3904797-1-xu.yang_2@nxp.com> References: <20240729081039.3904797-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI1PR02CA0003.apcprd02.prod.outlook.com (2603:1096:4:1f7::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_|GVXPR04MB10302:EE_ X-MS-Office365-Filtering-Correlation-Id: 40ac5fef-2d87-4ed0-ceda-08dcafa5e560 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|7416014|366016|38350700014; X-Microsoft-Antispam-Message-Info: JHuKyYs+dHGJ/wp8F+N4iauBSPGRlQ6EN/cVvG6FlKmP2fwfWbZFPJYO8dr1nwtudUl8r9CZ/fSMzkIwPh5CdQWYZ69bKyYA293u7iBG9RJLBdadoUElZucFfWqpLofwlWAQoDhMAd7bl6KshM8+YxzwnJjMgYZr4AhjTBUgjkyqmdq/R64V2M6oPcyPd+3H5cLIOIVa3lX4yWtREcKK4HaTgEXySrlkqPVUbsf63i5/QziQX0gu9KGbjX9f2kXVXHQ6l3Ey7vXMn1UY8h3Rh5mUDGgYSP3SXpRS7KfoAm7r3l6ziWjXxvR1Mm23Qd99MUzLup4lcoqo1A00S+hN2/URYjvDDyNMnpO8VvTDjj1qluyTFg4F5iC2NlrpaPksi7BeXSfGJkSW7LJM4QZ32cGeU6Ei9wBt1F6Mb3Lu/00zs6yf5DljQf7LV9DbF41UxyXe3O7c9RXnNHWpOVaaxF4aCOgagzvpneh0y5m6bgTLCcTwpK9DdizXAcwTfuVwvWKKeq1Jo9TL8uShrF3AsJDvtQsBOd27gcbVrlGCVDGX1WcFcR8uR/QS3CZvoWmbg9XP89kluIi+t4pAM8IIGuwCmeMAarVRnXe3F9TZGc+KidR3jCtKeSEfzuy6JBMMy9dO1KCGa2ZUhLRBOdyuVt0YdSsoPstBceZ3A7RabUcFHSI7qlsnf5Gw13JT7V6iWPAFfGdgO7vpLhIapB0n4PbWxM/GnATS2XFM9GrqOP6iN5I1O4+zkRViccZVLfadZCcQsAPSswtsC5ear/JQK5WnWzo/6H4B2Vv1Zs68kk2Vdamm3eJ5QrOQg1JeSHFAV/VsBN0nDrlvhPIlCMh2xeWw3g6G/hKZL5A5EC5SxI948WrSAhilREy6/SFNHpCSvzo1DXLvT0cJecKS1fzx+v1G7ySbubQ08OPu6ZMbZ3fuFVQ2qC6yA6rN75EEpguIFPVPXgs0OsM2GhPjUxqb63av6ZT7Rhbd3zSx35Q4b64DXDT8RDTSbMBbPtMyWR7eWlsCyEk+rXpVK0Mm8tUOd7L6K0zt6fI+Iy6JRyw+yBGK3jxpRT38RYnWBzvWiWHBjefpIzRJEHJXKvynmR+ht0hnrtYT2TmFjgjrEcnpitDnlEaJ6Qks243M0c11XhNkubI3RCzleo0TjALFJPMKczxjGG+F/J/Uvr7hDw29v9VqthBB29SQ44LRr7DNO6sQ6c1JKedFjFtODMrCFdDbF380yWMHiaTQiI6U2fVCE6XaAmRCoatRgDOklfA3uf4zOnaQMjnlV12Un3iTfiF1UxcoEgIXaKGjIZZknkfbZdYj4dERfmithq9xzNJVc74YJkrhY5EVtckldhAfQAcucute89eZlWqAJomGyE41NOcvSVXdVt3XoPXE7tdPdpL2Y4a/6dg7fjVTfZEu/p9+Pg== 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)(1800799024)(7416014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZJN6ENe0xS3Mt2FQXIefQLeOQs13x0WPLVyK6cmEp2/Ev+Y1ap3p5jrdHvQ/hMjyHTKdPl39aWnH8NhEX9Jl9SCrc0NNsLR5vsEFICnHfB0A2pjTTjUTKvY7HkH3MvRRXS48NUplfpTviQJ88oa5gtnERqGJyXbCzAgtMVGXA2Mik/UEztRmw23FBAnpLk9VwD+EEm8LZrZgOcc+0OallAs/vxiakrV/1Rucari6CzrqSUhERzx0CCn5itLdSwd7TyNL+j8FY5la/oubhlvxWD3HmnWhgQ8ZoUJOemOR64ixxELoQWW5DfYkNT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4WpgaN5YbcDdsERRS9ya30yZn4tCpRVQWZVnZRrQfAmM0rm6dgyg9vKbv9V7lsYDfcBwOLY35U3H2gl3wuP8e6YItie3Hr0KR3H6zq4gV/FouFEn2gIlTVketO6nm/q70je7OuW6thBdq3iXENu+ZY1Po42S0YNm87nisxBjryXYD8lwTAyHQe8i/Cwea9e8DHr0quzHqL+ufdOcZZh X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40ac5fef-2d87-4ed0-ceda-08dcafa5e560 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 08:10:23.5525 (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: GkAW1Ff4fuii7R9PFiflKaN6X8uaTR3hssmj9McE53jcVQprSMmjXrgFGWwwuuwy92TdyveWBe8MgofGeoS9NQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10302 The first port of USB with type-C connector, which has dual data role and dual power role. Signed-off-by: Xu Yang --- 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..e38b59af5f33 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_dr_sw: endpoint { + remote-endpoint = <&usb3_drd_sw>; + }; + }; + + 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 = <0xe>; + fsl,phy-tx-preemp-amp-tune = <3>; + fsl,phy-tx-vboost-level = <5>; + fsl,phy-comp-dis-tune = <7>; + fsl,pcs-tx-deemph-3p5db = <0x21>; + fsl,phy-pcs-tx-swing-full = <0x7f>; + 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 = "none"; + snps,dis-u1-entry-quirk; + snps,dis-u2-entry-quirk; + status = "okay"; + + port { + usb3_drd_sw: endpoint { + remote-endpoint = <&typec_dr_sw>; + }; + }; +}; + &usb3_phy1 { + fsl,phy-tx-preemp-amp-tune = <3>; + fsl,phy-tx-vref-tune = <0xb>; 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 Mon Jul 29 08:10: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: 13744532 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012041.outbound.protection.outlook.com [52.101.66.41]) (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 B5F5A13A3FF; Mon, 29 Jul 2024 08:10:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722240631; cv=fail; b=Whpm6yJmCScJicNxei4hZ7buj0Ld4VTesxXGDh1pXq2XJbv/DD5Zw8ojaBFYj3F8R0pKL2DXpUHCRLBq6aoPPe4Z55yzRCJSrxr6PVFvGi3Ej3sWBBEzAaXl4Qh3GUiFOypdDzYcxGERV6zzbMGpwXBU2ybpHHILYe6tIk/kIGU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722240631; c=relaxed/simple; bh=ExsKvW1iqvW2hqXelXXCe0yi0Ji//VGvpVQWD7nEP84=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=H73kC7te+5Qa9gf9Qdy5WHHwhr1gC/Rw59aOqllVD3GzgU8cNF+tXoYAtUNA4V8hKGc9iSy+i3iV/pHl9E070MEuNG1OwOCYYHbxlaxENlOwQ/BnM6HL9lhaf6Pvsdun+wEoCJoI3cMh8tXN2y6o11sdZwNLGZ0HQY466VH1yXU= 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=CEfrBMtN; arc=fail smtp.client-ip=52.101.66.41 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="CEfrBMtN" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ByzShBj56ZzwKa4hSHInOdEnx/qyNMAiwlbzf3HeMqzgfy3+GJc8UpnmNCQLxxzJ6I2YYYt3+YrnqrsyxBUuuw5/mrmnvlHbYo6ppjkPk2NOWv3UEsAqXV+vldgzCbJpHrs2LexhpbSlGjm+1cm4dkFlBej0CLWRpRSRovXQkfszD8WqVUDNcTI+j51uG3f5+pc3kl05gYThDRJp1ENMVx16grbnGUHcNtJffYJf9mpzIZS1ThYxU/f41fGNHComnMTCugtbasHIKgLtH1PyJ/rTH6Z3M9zzvK06lOEBYwUfDP3pnjk34+hhInjMm1CrePZaZ7Pf0Xya5dAUgsIFDg== 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=uP7NzfByutMIQxzbVIMX1HnJeO30iF8QTUodHTmR32s=; b=g10D5+zP0tyY6K+drA8KW+I5yy/EU+dTAdgjWP+mdUdafMLzEQ9gt9Gf8ACHoSeSnBQBb2Xws0PGfTZfNonTzLJ7xKUr88k8PTWmNDXvKRPyIRwW7vsB3NtmYfJAUB8tudeNCCGNHOwKxckOOrksKmqCpyLhtT7ruGcIjMw1FezznKzQo/ZEH4qQjP2ql589d59zbR9IWgAlCtvgRmd+bfU7QfS88oAX5hp2ntReaQLBPMcQm3lVl7s3XWvj5Vr21s33qGbz3WudR3asmXQAc3e5kGpmOmGrKUexzgHsGQ1X8IW+oUvHh9SncR3Gp3+7R3+nz73ZAIu21PDqP7bq5w== 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=uP7NzfByutMIQxzbVIMX1HnJeO30iF8QTUodHTmR32s=; b=CEfrBMtNwEuJ5QspV1isbKTqdt5twPCB3hiMy3GQGdLBvr8IkE6K6el8q9mWyVzsjDYQPzNgTvOH53arbeRDSRnQp9uAxU5NmZcnBzO2vx89uxBiajI8rdDY8n+N3/sttVYpZBb/+jjsm/K1o/sc70bAakIUABHWJo6jGZ3IU3YQ4p+E8PAdOKBbpG74eefIzIbrLXMA5BAf4bxFigPhCZp1Z0iYjN7Ich5dEGTzlDwS7KdhZBrM8Iya+9JGblsDHj/V+9QPCPXZHDz1KuBu+U+SWt9h9Av4AFwXXsu1NzoWy89DQHpYA7bNZzJcEIuJFAAhIOc/0NXWFdYZ4chOAQ== 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 GVXPR04MB10302.eurprd04.prod.outlook.com (2603:10a6:150:1e7::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Mon, 29 Jul 2024 08:10:28 +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; Mon, 29 Jul 2024 08:10:28 +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 3/3] arm64: dts: imx8mq-evk: add typec node Date: Mon, 29 Jul 2024 16:10:39 +0800 Message-Id: <20240729081039.3904797-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729081039.3904797-1-xu.yang_2@nxp.com> References: <20240729081039.3904797-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI1PR02CA0003.apcprd02.prod.outlook.com (2603:1096:4:1f7::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_|GVXPR04MB10302:EE_ X-MS-Office365-Filtering-Correlation-Id: c3c33800-f5d9-46ea-d188-08dcafa5e80e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|7416014|366016|38350700014; X-Microsoft-Antispam-Message-Info: xlHpR4od1I4sE4ajET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+jRKpfrWYRemzZ4UyDjUP/LoSPii03XfsBK4psqL+AMHzYE2J+OGvKJ61vzl5JkgqsoCY5dwdGUBTqS9w2U2a+5zz7eU3SNJ6BV0/XEp77B8Ll/994jEfMk6YvfKtx6k34LgXz1y4dsd49NHTPgtH0h6bHWpiPTb8vBfUyrth26c9OirCtQ5Y3SNan639CvEOQBi6bubtXz7OvtXOUUudRyzKCij4luOXzPOvYv4eZXjmkbcXVjDEFv2GUtMgBCdmbynXlnm/HiNChJGaWlIeigjO1+8f3BIWnGhbRb58hdK4Ffz6O/miKBsE52juQL+TNsk4FWUQQUv/7eIp16/QR3Mb3nA== 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)(1800799024)(7416014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /7Xb9CTExPA4fCzZIhwqVFhxNQzaztu3WLEJdmo93dZc3BxhXMt07i4A79wxp7Sc+BIvET4C2YQbv1wZBYnhOamwXTRVbWovqG5lIOGwMfTeV/agesOcE+UIChDQCe2zOErXTnAGCMFo+Y1GoRFLUpgQzafnZvZH/HVgu1D+NqtrHaTzOFTszyG7BTEExQQite0sfzzQcDhzclnU3eBhpQb2HOuQdp6Pgm8q5o6W8pLhUmVdJGCiqwevWKEc9ZGVfAKcTWdrKiJigtK+l/1njgH1JXxTVlWLXuCbGdvCLBX1CxGDcSWG4VIGVFlxdwYjmyAC7uWdX6ek5DBy5ZTRUqeNf6fjeB3Bq1NWheDROCf6Z8fZtzZyhheC6KPSphROmytDsUtU143NR0pLoKnkTbk4sKry6Lu5LyqwzOWz5ZM4B74T/er+JDjbBDARFEJSZGuhRMucSfjW9FP5jjZ94tH35DBGTcrV/TOvUAmlBp3929dNayMvrHjo8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8uq1ZAWiX3Ksm/gSmVCihKcCp X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3c33800-f5d9-46ea-d188-08dcafa5e80e X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 08:10:28.0044 (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: smgDBqTl5y9iiFK3/WdOjnmhdXnfLOJBtsL58nXqCmcagRZsFZVmS7NyqeBvZISS593pGd6sCfl6VFRClanCCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10302 The first port of USB with type-C connector, which has dual data role and dual power role. Signed-off-by: Xu Yang --- 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..008e8c37c76b 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_dr_sw: endpoint { + remote-endpoint = <&usb3_drd_sw>; + }; + }; + + + 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 = "none"; + snps,dis-u1-entry-quirk; + snps,dis-u2-entry-quirk; + status = "okay"; + + port { + usb3_drd_sw: endpoint { + remote-endpoint = <&typec_dr_sw>; + }; + }; +}; + &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