From patchwork Mon Jul 1 15:03:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13718285 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 93AF8C2BD09 for ; Mon, 1 Jul 2024 15:06: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lOJI1iaee9Jymwz8AJUUbGkJ/EcdSWtdrfuapCt0PQ0=; b=kqfhzGbbBY4I0UcGzjgh/p2jnJ 7poH4+UVvF8HZ4aIwq2tWS60cUajqSMyBoFxO9lyLspNLM3kaND4x7SyXgsSfYeinAYF2CPZkOAPJ Z60V/F92jIaufxOLr70JZVtiv+4BXde0ogP1Ko6kvvww0gi7LIUbsBo9IdtwQijjm3pWAuzdJtHh4 UxJMoZfjNIx4FMdmgpywpwrIkJNtOgTlag8KphF5Wyr3ttlbVv9Hxi6c723yK4hWLHmXPdJPkVpvG F+IoJaVCed6Hn3VPHunDvvF02akKIre2NvOhUwjCWvfaA36bP2HIGrXS3IgbHzz+2RxOtS9P1Uak3 ni06T1cg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOIbJ-00000003rb9-1aZR; Mon, 01 Jul 2024 15:05:53 +0000 Received: from mail-db5eur02on20600.outbound.protection.outlook.com ([2a01:111:f403:2608::600] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOIZm-00000003qjj-2CFX for linux-arm-kernel@lists.infradead.org; Mon, 01 Jul 2024 15:04:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KPKm7upRF/KHfXk1WHpbh1DRw7ndocUh3LRSoXhc53i2pKgRsQH8gGNoOmLZvVuHCSwIYuVRWJHPp6H5hb8d4uxFLoeIQc2zx8/jf/Ju/IpQNZsj+rN77+rnUGPa2zy7NoVIkCleSYJpuFmFYUHVGxDPG9G3skaD0h9yuZC+7R/S8kCa80IVZUOBXbgFJyCxTt3DqYaS52i9o8IfGReZkZ4hmAyM6ULV+zR33XD4K5voQUup2MxBn4lTpcg+fA90yOYULabF4PEpvE9A9cMPiQJmI0bU1rXIHl/fI76ukShqdRRXuk2vmqILItb1GYsHRWGQtFnbRqohZqhXhNvRNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=lOJI1iaee9Jymwz8AJUUbGkJ/EcdSWtdrfuapCt0PQ0=; b=HtgkqCVpwg/117uyVEWfxtKGYxOLPe5qYbE9e0t/+734kvgInSKyW22Wr+YpvWrj3JuNNxJXtvocm/tJPqRf5n1rahwJBkQWmENTQk3Rl1xNpz+3R+rdPpiL597PgyKAcohxsn73ooSWqDvJOYXC24BRv+fTU9N0ni1ad+7ijI/zyK9+lAR+h5oozaYQ1Ekh9eSo7hX/XebgskoFSS77yysTCsjO9tB2YmBMBPKevt1g6oJccv0HSVYt9uVDNiXb9O2h3Ce9I2ysBaynxZ4DvEqfYzPlfL8u85zD6+0S1NPgYPrpK3rf0bz+SpmnHZArikQkHc9yXsomzEhQJIY2Yg== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lOJI1iaee9Jymwz8AJUUbGkJ/EcdSWtdrfuapCt0PQ0=; b=oA/bwQJInYPi8oliMRPHR9YrXnCANND5pdQPy4WRj5mAGeiT1RDq3gHyEqnsHDSlvFSg9atWzQ5Rj0EjVxQs59ElQgooZsiIMsLBh3rRd/bHXxvE3smyouNdd/xO2SHd7GfFzL7ECEEktjsKc0uGjS9ZbmdIzYWBwZI1QoV4cig= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DB9PR04MB8169.eurprd04.prod.outlook.com (2603:10a6:10:25d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.32; Mon, 1 Jul 2024 15:04:15 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7719.022; Mon, 1 Jul 2024 15:04:15 +0000 From: Frank Li Date: Mon, 01 Jul 2024 11:03:34 -0400 Subject: [PATCH v4 8/8] arm64: dts: imx8qm-mek: add usb 3.0 and related type C nodes Message-Id: <20240701-imx8qm-dts-usb-v4-8-03cdbc8c44b6@nxp.com> References: <20240701-imx8qm-dts-usb-v4-0-03cdbc8c44b6@nxp.com> In-Reply-To: <20240701-imx8qm-dts-usb-v4-0-03cdbc8c44b6@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Dong Aisheng Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1719846224; l=2977; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=rhHOnBdLWO/Nj1642+iKpqwtg1DgGHaLd4UhUTEaXtk=; b=oXnnujpT6Om1ct0gNnJMuAjEEA0SJVu+7FbfnrxtVOLrrKlclX/26q8QVl6Ayiq/2KhjP17wv CZegtIMIZDWDVQFpTwU3sXXFUXcB4A8NdHpX7vbaxDr+bwr5fY8QdBv X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR13CA0149.namprd13.prod.outlook.com (2603:10b6:a03:2c6::34) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB8169:EE_ X-MS-Office365-Filtering-Correlation-Id: 31b1cf78-2a9a-4acd-c2fc-08dc99df1310 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|376014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Cfr3DUXo0z74xsmKwTFA1JXVtJD8/bU?= =?utf-8?q?KGzHnQLCT5EZHRZlP2fFMdUwCh03D7CLE6yFd9L17zlNOIX+vq/fmo1p+V7+o6iK9?= =?utf-8?q?tqkU1ro0I7xGEP0xvaHDBx9TKzR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W5g/FfqNk8ogeMym9CFC0b/GHupITfnZrEs?= =?utf-8?q?5kM7wgEbizWqd6Kod82ayl9MStPyf0jvh8NdnXx0EXQ3mIe9JCFqmPIGbSPBgzqXC?= =?utf-8?q?62gHaD+FbZ4MHQK6j793HYjAG5lA9jcQo5ugM9VOoEO3H93GIal1qftlqO2wsaOD0?= =?utf-8?q?eJlux4N1wNoxJfkDtlT1lAMsr8INCdBKRxTj9ud9VDDJMNKb7F85k9d2DCWi26Xbs?= =?utf-8?q?8zXCIJxbqOrWNUwpimVpPnMdKUcqY/8voWXq+IdQmdpOqVqHiUqwZzTjJ3wXgfRHY?= =?utf-8?q?3PvMJCykArVnvmGFjm7VyvV6Moi98pJJAcSjNw/LhXAs6U6SEhsQeIHYyN1wQsH9m?= =?utf-8?q?nHWLOvdQoW4we/MVObgWfcqjmo8DRbZtBw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(376014)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?4gJ8jwdlOcZi6KmVzUpi9koMbvWf?= =?utf-8?q?+/8yzSUEEMrfIWppFBD2t91k0IUUUAACbQNlyJzPQGsFIWPSqUmFQs5Cbvm0LJHKj?= =?utf-8?q?gpkIPc2eAZ9sXjirW7az6h/1o0+bMCFY0OodPvG22afef0gHh3TbaVq1UUAFqdAiX?= =?utf-8?q?176j7tpJW5YVD9wP9LnVnDgacFP1p3GM8aY3YNyeuCNXHHuACMIW0cjc8DloG+ZsK?= =?utf-8?q?zyUvmAJZdo0iwFMEbUuYXyCTdNkhtSV5DDLHbmu7cZ/WP6YaUAAddrNI0AfsyrPPR?= =?utf-8?q?wFnnSE4yfsKvNZQI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ImbchQP7rWE1o3JJUOSJQgxmFxbIyoqTR/OmmSnHxh/oxq?= =?utf-8?q?67c4fNbE4VMpXUmf/5mviuhMrxNl63DxGXX9bXf2QYt/k4w1Du9UQ8RYvHkg2/HZm?= =?utf-8?q?iJj75FaCSFyGH7Fh5seLDIOwgcVZNEparsNcmhra0QJ/UvX1Ip5mGSF2BRHq5EEYz?= =?utf-8?q?XjR/UqoRD0B6jUNmBYFxFJATESH9UUuEB/o2KAW2eqyx8wjlH4l5xLvHYvTBuXw3u?= =?utf-8?q?6RxDxqVSgE6Flaw0FClUbjKHRcvvom98Q7shwqA/6owoK+N7HRKUlY+yx7lWMqI+m?= =?utf-8?q?z0TT5ejSFd7c8IH6Hj54xL360aP7GAyY7imnOxJQkEWj+W2lys0otxXCr2tw+XjKH?= =?utf-8?q?mokelJvqROaA?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 31b1cf78-2a9a-4acd-c2fc-08dc99df1310 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2024 15:04:15.7131 (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: crML+HwWYs6XxVVzTtGmJcKwrG2slyxhUceI5HBxVAPP80ikUrlo/eZyDzmthkn2ELeslQvcclZfZUXKxgFsdA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8169 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240701_080418_609523_9B5E8828 X-CRM114-Status: GOOD ( 10.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable usb3.0 and related usb type C nodes. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 87 ++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 7ceea79f658db..aa874576e974b 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -6,6 +6,7 @@ /dts-v1/; +#include #include "imx8qm.dtsi" / { @@ -109,6 +110,21 @@ lvds_backlight1: backlight-lvds1 { default-brightness-level = <80>; }; + mux-controller { + compatible = "nxp,cbdtu02043", "gpio-sbu-mux"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec_mux>; + select-gpios = <&lsio_gpio4 6 GPIO_ACTIVE_LOW>; + enable-gpios = <&lsio_gpio4 19 GPIO_ACTIVE_HIGH>; + orientation-switch; + + port { + usb3_data_ss: endpoint { + remote-endpoint = <&typec_con_ss>; + }; + }; + }; + reg_usdhc2_vmmc: usdhc2-vmmc { compatible = "regulator-fixed"; regulator-name = "SD1_SPWR"; @@ -321,6 +337,44 @@ gyrometer@69 { compatible = "st,l3g4200d-gyro"; reg = <0x69>; }; + + ptn5110: tcpc@51 { + compatible = "nxp,ptn5110", "tcpci"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec>; + reg = <0x51>; + interrupt-parent = <&lsio_gpio4>; + interrupts = <26 IRQ_TYPE_LEVEL_LOW>; + status = "okay"; + + usb_con1: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + power-role = "source"; + data-role = "dual"; + source-pdos = ; + + 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>; + }; + }; + }; + }; + }; }; &i2c1 { @@ -525,6 +579,26 @@ &usdhc2 { status = "okay"; }; +&usb3_phy { + status = "okay"; +}; + +&usbotg3 { + status = "okay"; +}; + +&usbotg3_cdns3 { + dr_mode = "otg"; + usb-role-switch; + status = "okay"; + + port { + usb3_drd_sw: endpoint { + remote-endpoint = <&typec_dr_sw>; + }; + }; +}; + &sai0 { #sound-dai-cells = <0>; assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>, @@ -791,6 +865,19 @@ IMX8QM_SAI1_TXC_AUD_SAI1_TXC 0x06000040 >; }; + pinctrl_typec: typecgrp { + fsl,pins = < + IMX8QM_QSPI1A_DATA0_LSIO_GPIO4_IO26 0x00000021 + >; + }; + + pinctrl_typec_mux: typecmuxgrp { + fsl,pins = < + IMX8QM_QSPI1A_SS0_B_LSIO_GPIO4_IO19 0x60 + IMX8QM_USB_SS3_TC3_LSIO_GPIO4_IO06 0x60 + >; + }; + pinctrl_usdhc1: usdhc1grp { fsl,pins = < IMX8QM_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041