From patchwork Tue Mar 12 09:17:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13589698 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 A2961C54E67 for ; Tue, 12 Mar 2024 09:18:08 +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:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gwVudywjV8EPJy5ipyGNXyjvF5kDo2TYdODLk39v9fs=; b=LKqxVed0tqOpv5 EQkTSxo5MbAqJWCdYGiHPBXkaUEP88kH/S9DWsbiTN7OjZa6R//E7P4fo9CloRyRAIV9Tc7rVywO1 pxs/rRtbTZ1MtP9ZmH4w6OMR6Zb0sNJXlUMKL7H/b8N+6XxF5PDrIxM4pxqznnGlmYqh83ydFhpzH jUj2+mM9Vc9YcaIma5SAwK51B9L2igiZD5QCyZJ3YILJaiHuUQ2hitjz9S+p1Q7x3CLhk5zix1py1 1BWuPGh1FMh+Fto4aOt7+8roOxgcJTQA5I7YwS+f+3tJlF7MzXL74r6lfqT2w93g3jgQhCaph6moV X/LzsBkcswqBWxImgxAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjyGb-0000000548L-34Bm; Tue, 12 Mar 2024 09:17:49 +0000 Received: from mail-am7eur03on20601.outbound.protection.outlook.com ([2a01:111:f403:260e::601] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjyGP-000000053yq-3LBH for linux-arm-kernel@lists.infradead.org; Tue, 12 Mar 2024 09:17:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kr2mRj1v8N207dXRHVA48ECbfYnQC0eGRgsmezFbqjeUaTE21YpqpFU9ksuTI9gyi9QdMBPIfg+m1w8f3ly1rQNWY/l6CmEwWEpwR03AzM1kHC0QQzYXyAHc5g+gWKE7JguRhL5hsfTt+pCVAjEXb29a/Y7/lCaPoH8ta7BwZBeotHi/zb23X/V0Orjmw+ZqTpTOHvZ4nPTuq/nvRIDyCtnXjIN751I3+Xx7YyZxNlqVCL3/kWzxdjw9rgyRUfKy81BHPra8aBtWM1jnhpZcnevKsNnavmq/AF/BYp0CVSti16lwME4MhgbkVM/BGq/RmZiaZ5BwreqtGBLr8axPGw== 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=tHHFWhWkgPG2hHrytmze84YyacUB7ukMkIfadblW1wk=; b=Mfe9FU3b6NNZKtGI5JIXKIIRWaY1IVNwo6KedCFoD3VIOcDk4gh9uQkgjr0jCZ3PMleZQfer9nhjWkteGJWHS1KOdhMaYsbF6HKlv2ZZARzQyjTcDUlQcICdoMUzLKNNS3KVtj1eBQZh83dxji3oAF69e3wl4OZ8TqfFvGA4CpHm1g68YYUsSkiKFB3g8XY46zz8dAGQ1rDK0Op7CdS0FNtYbgy0LCcZlx3I37J5TEqa8Yla6PVfbbFEJuRbdaFGF6c9xmkNUT/rGt29SHVdIDC9ZFyJAbD/SqFxx/nC7riee1ikpNSK1nrpH9oLoqdfHUdtazY5CGeLOiN2lmLrSg== 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=tHHFWhWkgPG2hHrytmze84YyacUB7ukMkIfadblW1wk=; b=V+5nmWl0gnh1D/juWjADYcBuDhrvgcLtjmr9HeAblBLevF9h89z0FUWTYg0Ycw+XWZ8wN8nl9OXBg0Pjt3jto1sLBh5k5H2a/1RZK7P1UzFdWZUTEd4pctsnBk8HJtwMpbDgaEaCp1LYPdXZQ09WzEp9jam1+qALetlS3KY71xg= 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 AM8PR04MB7876.eurprd04.prod.outlook.com (2603:10a6:20b:240::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.18; Tue, 12 Mar 2024 09:17:32 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::d45f:4483:c11:68b0]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::d45f:4483:c11:68b0%7]) with mapi id 15.20.7362.035; Tue, 12 Mar 2024 09:17:32 +0000 From: Xu Yang To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, conor+dt@kernel.org Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, peter.chen@kernel.org, xu.yang_2@nxp.com, jun.li@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v8 08/10] arm64: dts: imx93: add usb nodes Date: Tue, 12 Mar 2024 17:17:01 +0800 Message-Id: <20240312091703.1220649-8-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240312091703.1220649-1-xu.yang_2@nxp.com> References: <20240312091703.1220649-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR02CA0026.apcprd02.prod.outlook.com (2603:1096:4:195::19) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AM8PR04MB7876:EE_ X-MS-Office365-Filtering-Correlation-Id: 3bf0e97a-a4dd-4e59-98bb-08dc42753f23 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p1ZT5B7gDfaIDQ5m4GyCLN5izmzAahDWl1xq3fHHthdhD27cV7IvXoU2zb+hfvPSEb4GFUQPm7aPnRMpOQRlWKVB79JSh5ceUNrum1ofmvB7RhhVQDECo/2UJfFL5zAHlAXEBCqmXk35DJ2VR0tUlWwj0ta9NlfnuN3BUpA8/RePKOASQ314/LKkxOfcXB9jVuWjSXq4fDoM6qt7Iyl2m/zTWtsnMbyOk2/uQLd9JQDSUH7TLEkUIgdgyR47M7XoSXpmwJXafLzxfpOjQYLv91+v6IIN43Qw7+L36RnkrwNSMuvRE30bixDyy1EPz0SdMXX2qunbk3ePpd9jlPD3+D64EXBS0XKF1GahmhpDlTtSK4k1MYwZZZkJ+NhsWc9lHLuyBlpXc60rX0Nm6H6DKugKWB3fZIjg4AcRfFgzhLQ1CGpB3OPXINsm+TlzMzPQaDwcBRZlaEYWgFaFGCeENjlXkcLC3l/+Plj7Qc+SNeiTPZb+oZD1RA0slcnTIzaTq/XegHLUoPPq4xqcD/EKE28HqUxo0y9UVw2goLKcrEZBdqrS1gKjVLLyRNweej9RxKwCy5f5xUK/eiNxf3UxPRKXZuhQdRjqUuj5/ITT0UAURYJge50Ve2/6OUDvkeuLiitG/fqShPLN2kyCQcruhC1uOnJAoq682pbPCk5FUOsXYob9lGvy7hD0Fc79gA0DLbpHytf5DEyQ3KAAHCND29A6D2TNJ/jGTtJRFyTIpzk= 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:(13230031)(1800799015)(52116005)(7416005)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2qNc8cWUUcg+FIfCIW3q0mqNQLN0+dfY5ftWsmjGfDwAfF61rA9Noy+kDJt+62J+D7vuN13Pim0PZiotM82o0F/ezj0EJl3Z0GNNwnrCbZOsew8iACfsQR5xvhOo+GGL9ROZQ9aYlRvqDjyMZ9kERd96CKZ0W1gXb3z8WkyGvMx11MW21Epb2gIMPTlBUJV/gH0HkGdVYjt7fu1F1E17TevAOcmjjfAAJH1Eq294FUfeW4o8JpAS5HR2ZPGN4soo02215P5sw7LXfc5o/e3L7mExNL/087qRmYjCIQIeiJ22p9kvgAzzkoT/GEYuKHnPfYdYjCBmlNeTRaKdeB6V4sa17vgut5u6vnFZ6jZmvGAq1OQsE+FTVKUl/BWfj4zcgUzxq6CTaunlCGIyggwtcpbUfeYbAXBM/f1ggf8vahv3546iF5KjpfVC70JpCBUoqn4e80p1kes56TCE7wB1DVeGnw9qQx1R+WeMZCb8UJjedN0Z2KFnnQ3GbeEulKn+ezRdVNpzlrZzoeTenwbiT9A50d6Y+B8YEftX3HaNVjBTccjbiksZUnIF+P/tNJ1pMAl4jmKHwuAm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f23 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2024 09:17:31.9963 (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: 0dbD56jWmRWbWuYVwmsAw6rLC/V5VUUgnILHmks4rs/njIPCqjBPl7hshE8wnYjtDoh0cZiMqVsoADspg1DO5w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7876 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240312_021737_980612_A33F0A80 X-CRM114-Status: GOOD ( 11.02 ) 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 There are 2 USB controllers on i.MX93. Add them. Acked-by: Alexander Stein Tested-by: Alexander Stein # TQMa9352LA/CA Signed-off-by: Xu Yang --- Changes in v2: - fix format as suggested by Alexander - change compatible from fsl,imx8mm-usb to fsl,imx93-usb Changes in v3: - replace deprecated fsl,usbphy with phys as suggested by Alexander - reorder nodes Changes in v4: - fix the alignment Changes in v5: - rename usb_wakeup_clk to usb_wakeup Changes in v6: - rename usb_ctrl_root_clk to usb_ctrl_root Changes in v7: - no changes Changes in v8: - no changes --- arch/arm64/boot/dts/freescale/imx93.dtsi | 58 ++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 8f2e7c42ad6e..4a7efccb4f67 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -183,6 +183,20 @@ mqs2: mqs2 { status = "disabled"; }; + usbphynop1: usbphynop1 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + clocks = <&clk IMX93_CLK_USB_PHY_BURUNIN>; + clock-names = "main_clk"; + }; + + usbphynop2: usbphynop2 { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + clocks = <&clk IMX93_CLK_USB_PHY_BURUNIN>; + clock-names = "main_clk"; + }; + soc@0 { compatible = "simple-bus"; #address-cells = <1>; @@ -1167,6 +1181,50 @@ media_blk_ctrl: system-controller@4ac10000 { status = "disabled"; }; + usbotg1: usb@4c100000 { + compatible = "fsl,imx93-usb", "fsl,imx7d-usb", "fsl,imx27-usb"; + reg = <0x4c100000 0x200>; + interrupts = ; + clocks = <&clk IMX93_CLK_USB_CONTROLLER_GATE>, + <&clk IMX93_CLK_HSIO_32K_GATE>; + clock-names = "usb_ctrl_root", "usb_wakeup"; + assigned-clocks = <&clk IMX93_CLK_HSIO>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>; + assigned-clock-rates = <133000000>; + phys = <&usbphynop1>; + fsl,usbmisc = <&usbmisc1 0>; + status = "disabled"; + }; + + usbmisc1: usbmisc@4c100200 { + compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc", + "fsl,imx6q-usbmisc"; + reg = <0x4c100200 0x200>; + #index-cells = <1>; + }; + + usbotg2: usb@4c200000 { + compatible = "fsl,imx93-usb", "fsl,imx7d-usb", "fsl,imx27-usb"; + reg = <0x4c200000 0x200>; + interrupts = ; + clocks = <&clk IMX93_CLK_USB_CONTROLLER_GATE>, + <&clk IMX93_CLK_HSIO_32K_GATE>; + clock-names = "usb_ctrl_root", "usb_wakeup"; + assigned-clocks = <&clk IMX93_CLK_HSIO>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>; + assigned-clock-rates = <133000000>; + phys = <&usbphynop2>; + fsl,usbmisc = <&usbmisc2 0>; + status = "disabled"; + }; + + usbmisc2: usbmisc@4c200200 { + compatible = "fsl,imx8mm-usbmisc", "fsl,imx7d-usbmisc", + "fsl,imx6q-usbmisc"; + reg = <0x4c200200 0x200>; + #index-cells = <1>; + }; + ddr-pmu@4e300dc0 { compatible = "fsl,imx93-ddr-pmu"; reg = <0x4e300dc0 0x200>;