From patchwork Wed Feb 28 11:30:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13575439 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 3E9D1C47DD9 for ; Wed, 28 Feb 2024 12:47:37 +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=LfTV3+3qPj+UjzciCSgFyOkIOXXK//KCH9Ujbp13eXk=; b=oWZ03kTOtcOobB cnvaPGve30u3lZBFxPaY1zStmV2kHqBnzgTQM7HNkAN7DimB0WZP81mTRLLPVNoKb3R5HQCkUzt6p +VWFBp4ncXMfdosdK0JMIPGarM92HIhxAW7LvCCueVmHRA68CcZ71hMjpYMsDKT40OILw9gSMfypP S+jXETYDyrIUVT/VKwh0Dl9/l1g/Ej/FdOtLq09I6b4YxGEcjIcBMcA3EMXtcTxE9Y77uxyJez+mM rskqMOtJjdfH8KVL/yHrE7JVLmtGlfrqobF2pdbveJbhVC8miQp0TIFQbmwxRAwXNuWC62C7HsYL/ iY4fz4sdutFRfGY99wLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfJLJ-00000009ILg-0MQT; Wed, 28 Feb 2024 12:47:25 +0000 Received: from mail-ve1eur01on0626.outbound.protection.outlook.com ([2a01:111:f400:fe1f::626] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfI9B-00000008zfn-33Zs for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 11:30:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WXOwCguIGX1qPwTEuCYYwcfFq7F/xRoK+1k8AvMDCMjs84CetAbd1AgeXI4znVL5t35Kr0XcwvODZzhLvNGL0Y/42nJKUMCJNYqr/Nfh4hMPtUdWg2u/m7XDxdM6N/xQLPUytECcJiINOtlTo2DuDKaE4ZgndDHsb0Y2oX7lN7SOrGU4is919bOD7IRiDW38veqBP4V+CrE/KYgg3BzpcFTphDqxjmza+0q6nBDyMr9JGj6O+lEVk/RsKPpqvXbpLwWowrtjOCx+1yyoTlo1fzUbXgAkAE4Sbhpzak4LBQnrN47GKqMaMlgeIjvOTH+5K8zKb+1gl/FwOZDfFDttKw== 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=Eqjyacs9y7ubo7PjDdOpN4CgLBeWEd8txf81+nJNz4M=; b=mKM/9dCvGRo+7bwYfpdNvoGu9Pgx6Sf6SefKM5TXLBGuEccmwawI1Rx5ARgQPvoJI8sd8alOARGVGmPv+gXtNh6LJM/yMV4iIIK9iZoHGSTCdyhinki5ERSYrnHm8FUKoq57uRyLNvd4nK9xnN43uCn+Qng3ER0lNosb4HHIwicDc++QZ1I35AiQWz4bpMNH/EI1nyFxSohz7xaGsXNYiJErzJ44bOrgTezJ61dqb6m4XDgbWOq3S9uoEBKQ7anQo7FjCI5qGnBda5febAHyL0ohbPgd9fAUgJCtDk8iA4e6v2VDMBaQHhWuS2upN97pw/hbwu4wPJvl7QWUl4QH2A== 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=Eqjyacs9y7ubo7PjDdOpN4CgLBeWEd8txf81+nJNz4M=; b=PHhfi2W3eqN/umXMqtAd4R5cbomGRx20/8bXJlaVYU1gPt0DtOZhCn/sOJfeQl2J6FWs/j731Sag9k1BrLcaJ96oquAcUwaYZfRi/V/9tLE5n0OD1LdbfFwJJFCfnrqm3fC/bypjt+5+dkF2AHFRrd2SdWRteb0jjUY6beTUnm4= 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 AS8PR04MB8466.eurprd04.prod.outlook.com (2603:10a6:20b:349::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.39; Wed, 28 Feb 2024 11:30:44 +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.7316.034; Wed, 28 Feb 2024 11:30:44 +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, linux-kernel@vger.kernel.org Subject: [PATCH v7 09/11] arm64: dts: imx93: add usb nodes Date: Wed, 28 Feb 2024 19:30:02 +0800 Message-Id: <20240228113004.918205-9-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240228113004.918205-1-xu.yang_2@nxp.com> References: <20240228113004.918205-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR06CA0185.apcprd06.prod.outlook.com (2603:1096:4:1::17) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AS8PR04MB8466:EE_ X-MS-Office365-Filtering-Correlation-Id: d0d7f892-4ce6-45d0-daee-08dc3850b369 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ylnX+1vic8uZ13XMVDSHqctMK4ocJUNrB2DVzSYEu5eaPE+BWgrnF1mI52VT0kolOvO9/x0T4ixroXtZN2N4bkBohpuRjFHwOfniYgZeudflOAxoE4CDiYGRdy9/hWuYNa17Sl9CAI23GXMqotH7en7g8ER9hg3MHdipqg8gA3vrK6Kg5u8/xBqdkhXiypx53LoBXhE5Ia2A8KlnJoj9BIkFlYksPw21MMplERQvnfhBsHJA3HEvuujZN35rZb7oorohRp2QxlmZtbRDQ75DP3WCp29b1GsOA9Bhv9GM0PqMnrrGMaSYxlFdA919AyCT6LBnDbhxo54Ym2/5G39PQkit+pWMewXc2inR6d+beAXI0wlK4f9nAd5d42iYfvU7frXhkOwKBGRPyiG6lL8CJUvWIit9qgsU0oUUkKyfpYZA3TPMY5M/xI7HC3R0p5k0b9uMjHGHDY99ngp28SnZxo0x4z6RtsGp183WAB79b/WYFU4hOzMAqp+HK+7oC35PKa9XvnXuCYWu7JZl9eMLz4YMb6U3goYSuSQHSo7qyXXZucPuzNCvg+un+ROeh1hurSMvxHknIq4TqknK3vPxeDYd3roRjqehaPNMqgtfHfWY/HwkP6EBIQACAXpsEbfBcviHJs4Jqq4Emw951no9e8EMGSZtgwip8KuX996MRqZwaXw6/dMF2lm0dNnN/VPaKB9Ad36PooXRODQSDH9s2TrCrpryvL9+3DdeHxeEMd0= 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)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SsLrOe5Gl/C2J+xN+A7QYHfYtDselLORNu6+eg8lI11iqnHfgMlUPUe77NXEfaQohiIp8eKBD3+PhJwwqbYZPiiiLYG+4mOylawWTiudyn7flAvMqmiRDMF2RdrrCupy+8Y9AbQRcYGiqJl00NcEmfvB8YUCCSxdI59HX+rGxim0u4r4pgvYaFlS3xK42z9PgsvsIIM8GfTixStQG8mH0syvOgqqrM9j3exxP4GeHkyybpsUevsCtU4cP1OL1yX9c/9eWf0XMwODHlPd/LTi6KAs8GS/wVeWaNTihW9kbrym66Zt6K8Xh7Ra52uq5BOeYVAG8DEIhrWpqu2KtqsCUAWkpsnmkgR01io6Xpzi0Dd4WOESoMdAk4Dol0QABrdtZeoXdPMG+XD1tUoBBHIFs/rGraM03YVrrxmfYTCi1e1BTpDhlRueAz37uZ6UavkmRIu/CdF9pQ7jxD+gAW4iqOSt7JzBD0aqRHy3+rAjhaa/OioI4GzhpnTKmxK3HWu8rloMHUqA+4fqhTiKZcIl4wdKEPzSWxffTl/9usGUFh2Rq4O1zoEZC9WIe9gvP73dnD/ZnaUzqfy7jUVNlRDdQlN9l4Btc3TKU3p8c9yOgagUsTfmOCvi1wkjE82N8GJGTxYHawp1dDkagxNj3PARvLDhdh9Mpt+e0rnlTiO7rh66opk+WoPymjKQft2YMnPqw0J2qinmAt9xz3zqrxzdosto7VG9S1ILyeknW1WzTX35vUvh8KTICUlGOT0aUeLNL52eURi5SgbhrrJI0ISvnhH1a35tzIMI9XOMxCyS2iyyXWFRRcyrsMw3K2CjCl8YuUnZyb/AlrnZEcR4AE+YqZiQUdW+JGwH5+Nr9V3GZ0XrpMvCJqthdLiPnjbZa803aKSIJP7+KHy4AFONuZtIwYFh+T1TvF4gOCyXoDYIxSh3Xf8RWN+P2Wegm/TPa4pg0+GODI3uw5xiWYRqqPa4TPPgobKOskZ6mpKnRxeLqgRO5xMieUAeiPWuzKPXYvRaDT9FSOg7YLdp67FzJM33kV9p68At1xMjwet1o1YtYpyfTHby6fOY/tfAl1UH4c7Y3UhOecHaVZjrSP06msmWvWOZKdBzYMqNhx7QFYGyIWDR3jb0WScJBCzNZPL/owHfYvdcePR4WC8EzAaaMkfmABI/5MQ8fntXO/CfGuaTc+X8t1x5MtpL5JxqQMn32mIMci8B+RDQ5Y7ohVPOtOxnFt8xW9Zz7wG09y5HA90FKnfaT52ooGaNpuBaUljowJrUgr52px5CYNSRpZT9FATpwTQK3lkSTaVKDcfbkeGw1XfAj4ttjJ1khzPIw4qxYSjDzOmS9Sz6oCRNPCzoVcT+Ok+/UrKFH5+6QYTEszZO+rW+w3Xzbhw1LCydWhwfiJ2r+2gwGAJB+XckKmHzV0ObuxV9ftfv864WCrkf8Q8j3KHtCv3evN0+PH9rSb9rsb8dcvziZgL9HVh3ayCxv7cyHVtJMs0cNINTV/+Nej4uMXjsE127o6PwbjNYdCMRGW1zodaBQ7HdgVj5yZB+lXOD1IY4TMZI9pAWARU3zwIMUy1ybcv0OPIJu3uj0UqOgfYE X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0d7f892-4ce6-45d0-daee-08dc3850b369 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 11:30:44.0274 (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: EOtLhSBZx3sraowacDd0zaFDA5iBN5l7ooazOJC5z7LlrkQaa3RpTANrjcZ9wKrLcKLe8aQIsbPznBjNJPUALw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8466 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_033049_839607_8CC8FCD1 X-CRM114-Status: GOOD ( 10.84 ) 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 --- 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>;