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: 13692413 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2056.outbound.protection.outlook.com [40.107.22.56]) (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 D3CA7152169 for ; Mon, 10 Jun 2024 20:47:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.56 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718052430; cv=fail; b=A/adQAUjq9oqQSgIY+c7Vu9MPYPrsVVv/72YuQ4IVB1DYKM5bJU3IdDmsr2EMSLumB2gv9cekeLI22VPQVjQojLQnT5rY+3b5EzPNWmnL0h7ZMBkrp0e701GE2orHEQ41EYEsH9cQYdt+EyPJajKOkBx8ZBJrkW5OhBieqNqc34= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718052430; c=relaxed/simple; bh=BGdAl9Cw88q5CXYFPKaVtp4lX6FlBfRQpGYgJfGNwyY=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=YGfJ/vQ5sK1cpMgQzjez9fChU6HXDtvZvtk7LD1I7P1BiNziPbKAZ5ppw4ewFdgqIP8ln74k6p0cdzV7DzEebbwD/lm6v6ijTZI/ZG9W7tuwMRWw1FpT4BKZiSz5mVSkMh5PLsTT68i8EYnTYZArdsquuueogg8cUVLo1ATHGG0= 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=rGV6h6dZ; arc=fail smtp.client-ip=40.107.22.56 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="rGV6h6dZ" 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) 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: 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?JH9rLPtbZbEW3wHjaoaaBWwtB5lj2hanTZbN2CfWgjFY4oTVyKf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w3ch+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+5UEruYNqgnLBQilLvFPb5i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56GLUaO5CoJMrbETGGE?= =?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 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