From patchwork Mon Jun 10 20:46:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13692431 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 3892AC27C5E for ; Mon, 10 Jun 2024 21:02:57 +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:Cc:To:In-Reply-To: References:Message-Id: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=wBGQs3YL08hD3D70kET1hZ+yo/ZNuzAT43k4rybSqDk=; b=w69epiBl+B7la7GCFCXswwxKrh BESQcKCp+Yq5ZvaVBBXNDuxCVDSpjm0A2MzKFmDp7KE7yNFPyy5l1L6DwgU1L0R75boKnIk/r17RI CAUTL+QFPF7B/hw2FDbKyEQG5bBNcGujCDX/hIY8XxxLgl/VwIfu7QTQVoOeqznJr5ZNXGc/gTK+l ICPnXJlQwcrAhkPaRLyloVaIUrACStPFKXvzRliy5gM9tZGR7qAX8tpbrtEQHW90o8lFrRXF39UYB Ar3TlXIHGLyBhKlJG3JBHy7as2XUzG6VsnNpCi+etisowXeUn5abozZmtuJJ/xwTA6VdF5+BmAUTz N6ZSHzkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGmA5-00000006Tjk-2hSU; Mon, 10 Jun 2024 21:02:41 +0000 Received: from mail-db5eur02on20601.outbound.protection.outlook.com ([2a01:111:f403:2608::601] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGm9z-00000006Tfw-3Bec for linux-arm-kernel@lists.infradead.org; Mon, 10 Jun 2024 21:02:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DISjU6eNEQBvV/QHqzV4Nli8GGjXiS4Rsv1ISNExvAmycSsnKqfixeBiSDf2es7PsnXBJ+iLzAaYQrdigjWYrdqkBMq1MOjheJP9Z89G3X9SVRxtzphGU3fJ5RsEQ7hqj27pLG53VYg9xkanA2qqXNFcprMO6L+oPpjgZywb11S5WUAAaZEWtLorbLsrwhnTX+DuZsp5HpFG1FH/SEWcQSxmecPWETsGtE5clPmNPKnyqGNQ1AhmYJMhhIlyvsttxEkvctBlwCSOaxiPDYDlqYBlxQ6tWfEg8ZRS+VqiVYqwtEDs+dfo2glW3H5ROB1YTulCrxKJhjnhFbNbcfMKvA== 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=p5noNf9OgsZyK0Puh1BxlGX/SHf4fS2HLp0jvD3F09k=; b=KYaNouUi4FksiLWF1zfdej7orAbXXe7BEms7kRkSAoWjIuqTf23JZpyOzfR7fma28Ao1fNbn442ymmrxkZrxzkVLS/Fn68YH1aRiV7oFerf+/jsHBhsLTXsHGDj7lVe6A5woZAMv+4EhsL9eLDXMZtf7nRCcPy8mv9AJGMvqOwdGPUs7pW2t5HuPP2crhB2vvq0fXJNiTQCL3Oj7VihVlXn3ed612w4yxXakm0KnEmpPE/eYuKl9ERHabn2WFlLZ/2SA6gQhmo2Wlcw+QK9rTAs8EGF2v1eprdHjz+OjfAtTueLPmj6ONouuTQ/djMXwGmnMnKwH92y/WHpwob5cjA== 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=p5noNf9OgsZyK0Puh1BxlGX/SHf4fS2HLp0jvD3F09k=; b=rGV6h6dZIjzEKch1H/OsJI/9aOeXnhYutbbqoxf5IZj70Ok2l3As3l8vP7E9Ct8zkqO3+/rwPPRL5wQ0sGdbYdYOhJUDjn9Es9wsp+KrWWjwFOIcM6cW5my/GB597p7kXRTrVaMNhsWSf+M6JGvDc6dNt77wQPjBUS4mN+q9apE= 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 PAXPR04MB9376.eurprd04.prod.outlook.com (2603:10a6:102:2b2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Mon, 10 Jun 2024 20:47:06 +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.7633.036; Mon, 10 Jun 2024 20:47:05 +0000 From: Frank Li Date: Mon, 10 Jun 2024 16:46:26 -0400 Subject: [PATCH v2 9/9] arm64: dts: imx8qm-mek: add usb 3.0 and related type C nodes Message-Id: <20240610-imx8qm-dts-usb-v2-9-788417116fb1@nxp.com> References: <20240610-imx8qm-dts-usb-v2-0-788417116fb1@nxp.com> In-Reply-To: <20240610-imx8qm-dts-usb-v2-0-788417116fb1@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=1718052391; l=2977; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=BGdAl9Cw88q5CXYFPKaVtp4lX6FlBfRQpGYgJfGNwyY=; b=WNwIlV9Jh8Jz9EGf/thYITAxuN8/su1hBXZ1B8/mJQY9G1yn3gfZ43eRg65NX3svU7Zm9uyNM qt25zTD3dRJA7Je22e9A94R9+i0avRccqpxh6DDIdpnIA6XdSY69S04 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR06CA0059.namprd06.prod.outlook.com (2603:10b6:a03:14b::36) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PAXPR04MB9376:EE_ X-MS-Office365-Filtering-Correlation-Id: 3ae6cafa-6b61-4932-ee2b-08dc898e7d30 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|1800799015|52116005|7416005|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?F4x8zx511eo3HvY0RTPif3ouFhMFsan?= =?utf-8?q?RpH4Mbi5IU0YYQ5caY5FJKBSc7j+dro7gTNAjk2wvbvwtafzNB0wkWfHfoCW367of?= =?utf-8?q?JH9rLPtbZbEW3wHjaoaaBWwtB5lj2hanTZbN2CfWgjFY4oTVyKfTAw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ch+wJY?= =?utf-8?q?iRUgyTk0VurRtqW7/pPOHOoRkX0y7VlSFn5M/dg7UadelDzjW/MZ4maRuqFVazALl?= =?utf-8?q?ZyKFgpagg4GdeusBizH5LxTBrFQRRj8ta/Ka2H95kg6at5blGRsJxXrCHlegfGfuq?= =?utf-8?q?SzIlifPzRdu82jIJLT9h7xxLriOeF+b6rwoDaYjE/4UjuE9NkdlsHfNF8SGzi/mtA?= =?utf-8?q?UMIvTALopQLgr6NIaApudbRHQibBKE0u891fjFEkgZsYakJEI1dbYHuZVYjaDwZbP?= =?utf-8?q?I9o/Y0DQCbL7q/IRU7JWUeTyiMdG8WPNrCESes0L5Dh2wWYQAoE5KljA=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:(13230031)(376005)(366007)(1800799015)(52116005)(7416005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?4otpsr/f/exb77v/yfajDmBv6R2O?= =?utf-8?q?URfx9WwOqd78xA1fhvGZ56dqGXF0kFJlCpCngeF6xpiZsrJTurDoJ6V8PwTB1Xyob?= =?utf-8?q?zFJN1mWwxY7tOjnX/F8IG+JrybC+VM0nKzFHjgh0DquCN0JZ6dRRmNF2UaY0x6xhH?= =?utf-8?q?sejgyd76p0vjeIX8V7yUis/LgfErxgLS6j0aJhffB0boSm02WO9mmpHJrFV6KOpPX?= =?utf-8?q?cg2cJxX/TQA4Ul/UNGYDnDZGdihvuLpkQ6xIWhfe3sE4iwwkIg2cVdp/5iGMmxEiE?= =?utf-8?q?S8ECnHEqt64C6HsWpd/4hGPd3tpSHTC9q8YU5SW4fjJoo8OEn7iP3ucnI1ii1wsKC?= =?utf-8?q?ljKO5UEycoa+5UEruYNqgnLBQilLvFPb5i61Cyb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UaO5CoJMrbETGGE?= =?utf-8?q?lcTa/3qIjUHEYnAhjQzW1WiFsCr4tFpOLR9C0rzviISllz4mOyK833e9HRzQVGWdF?= =?utf-8?q?7MKH1n1AjeRTvO4b/HWtfCTJDGwDt7CqF/BnNi/mSpb1MPemqQrcj46whFYktIZmR?= =?utf-8?q?z+ZESs2HOE8rKIUGLK4GHrainVZNB2UTczTncPKZ3qbLgtbBiaqQgS3pYmL+Liqgl?= =?utf-8?q?V9/xuewB5d4LsML9/w5VadoMtTrsF5hBdy2hpPO0ydvOaH30q0liTfR0=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3ae6cafa-6b61-4932-ee2b-08dc898e7d30 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2024 20:47:05.9131 (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: ZR/Ucxrab1NkTl61UjthuUYSxHg1QbwBXyud+QyetBVAN+iiEN/ixG7E7a32FfZfa2Qb+Gp83lsR5VknfPwBkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9376 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240610_140235_874413_83C86BA4 X-CRM114-Status: GOOD ( 10.49 ) 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 8ab75cc5b9aff..0f4132f342d89 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