From patchwork Wed Feb 21 08:02:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13565080 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 F408BC48BC3 for ; Wed, 21 Feb 2024 08:04:07 +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=+MrfNN/YDMbIk9V66z2ybnB1JsGtKo32caaf3JHk9nw=; b=GBFYZDBUJ6Hj98 A7Kn69dyshoeK8e3mgYFpA6FAu5fzbYLb6jJQuxDzAkVVv1usPNbJ2SPTfqh45bEq0VahxTE3Hd+8 fjRGOavamV8XO0GAKVNT4662yupt63qReoeljIsdRgVQujS98k92oSagQqfa8ax2entlHP3cTYuZd 2YJb0i5dK4yKDqgH5rfRk49xwjosSdj3Iq4vnQ4ai80yfDueZyAfATewd8vRWImXe7o/Adqo/6V9f NKOE6JA7bTVXFe9jT2k4v9NLC5echDE6HZqvJmuBpI5ESP/rYbZF4Dg7Ekhqt1axkxGdmZ2NAB8W8 sxFxgsxwLeUJH1w2oKhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcha5-0000000Hb41-0THD; Wed, 21 Feb 2024 08:03:53 +0000 Received: from mail-vi1eur04on20600.outbound.protection.outlook.com ([2a01:111:f403:2611::600] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rchZY-0000000Hajz-1gdE for linux-arm-kernel@lists.infradead.org; Wed, 21 Feb 2024 08:03:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e5uqCqTK7eInEmEP9kPtAeQmhMI/tnBChQt/PVENFP55S44S1whDnkQYWowP5uzksE2MmdsPycY6pu1uCKojq7PG9k+opOU9UK9cSmvb8nc110vO/hRof5dbvisF5R1OsaBQfTjv1PecFLRtb+H3r4X4YufKoaZIaW5+qw9UAtku52iVphUAQQYXfaeTpMPGT66ahmy4PiLs3bAbPFuhO3mA7d6yecjJKu0RQyfqFgC5AZRf8rsaDJAGX8mVYig7UK3y6GqFghYHxMUd6fiDaLxCoSClWpZbfTLZRMsUD2sK3IzMQQhg+5uz52PINTmfvbXN6kg9Fz2u+pUsgDMFkQ== 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=CZk5CIesGMDmmmZaQzckc0HoESG5V5PKQKLRWtDUAh4=; b=VUtftz+ZxvCO2hg7G/yIYkfWD/b1MUK7/bP0dZxQCgucqbjFQMjxLK+AFhWFhHKdoflPqinfGdwCMKjCJb4m/Cl2NCbTbQ9kUXkKobEkuLU5AmEh/oVQCvwFqZHWKgsTkDbTFAJ4C9NGvE95EQZ6h8T8wIeyRyDSb751V3V/xTGg1+FxH36V7RjwwXQhXy14zIxYu51voy9Gpj3EJOgGkcdiYyXY9OAD32hKa7wv8mYYbFlQeeao7bwxFLlUJe9J+obAlVlkB9mIkN42HclESJ8mBRxvzsnmB4QOXZwreVSdsvI6BmvqH93dpyCmB3HsUGOOnJyytlInitv+IQtSig== 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=CZk5CIesGMDmmmZaQzckc0HoESG5V5PKQKLRWtDUAh4=; b=YVBWhehoLzhU29PqYV4rfZEWOHaeEcoAuwrObU2YyFUcJNKh8tUgX2W7KQcc6EBM264vcltCZZKE53A0pHK3Q72wY+VJchaVesBBXDBaWKArqrLsXz3hChM4v2MlotQnIXDp1mOgis4i5Gt8bM+krcXXM//QDXeDsvfhZnLwaaE= 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 AS5PR04MB9770.eurprd04.prod.outlook.com (2603:10a6:20b:654::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.21; Wed, 21 Feb 2024 08:03:14 +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.7292.029; Wed, 21 Feb 2024 08:03:12 +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: [RESEND v6 7/9] arm64: dts: imx93: add usb nodes Date: Wed, 21 Feb 2024 16:02:36 +0800 Message-Id: <20240221080238.1615536-7-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240221080238.1615536-1-xu.yang_2@nxp.com> References: <20240221080238.1615536-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR04CA0017.apcprd04.prod.outlook.com (2603:1096:4:197::15) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AS5PR04MB9770:EE_ X-MS-Office365-Filtering-Correlation-Id: 4a14803a-5d2c-4b97-9941-08dc32b38d07 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GdcHGLeXfrZp2hAbFn9XhMS7JlH0BRaMb7V4IRPzELO6G5s3Y78aPaF8TYobd47R7UhKbSMZlGA05v/yC9YKmpZXxRHndnpLm3vnDd5HcU+BK8NF3K8yCcM9fe6C3wBl6Yo/kZy+7iNIyUPPX8/lxNeCr3jPHPEOd/+ioUJG9WFxHdP/LudE6QLtk0NbmyxfldY5xxhknQYJTbzetbcMbrCa1JpS7JjZvwAlscHCSuGICw1GCNqDP2pvE4nSDMTGWtUmwgF+n+PQDpO8B858k4kc8eMJYcZN5mgO4ytSBqTqArZNnChaWHn17JdL4zFv2G5ZOkHId+G//XPn9EGiIeSco39Hb8JxcH5s2BV36vF865VzU8/OFpvj2LGtTsUNt6aPXEXQBr1F4Yk7ZeZlWcHxYMjAOGVMJXR5lInMT+iKgXzviwMLk9zR6P1e8GagGr1X0sU+p4AOSyzn5Sb8FV9N5uZP8nnH3CD9SzBFgqs3XEuPLRDYgiTboMQYyk/oo2WvX2EHyZUcNoZZhgLY4nlX1wSPJqxCdFZXkhjAv+qg1voMFwfN8EKlcbH1+4a7wuqDWyLcsW64rXBhENnxTqjhB7rYOm83fEVVhkBw6WBYq7Rxi7/12hYsmbJS58n0 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: mr1Gfb3TVS0aSAxGqa4iMA03DkqUsAqN975jAC14AVqA2mZumJ5T7qsjX0qe+vgW0viZSjzsn66RJ7nreZVWtZW0rm5BjljCD1JJVVA08lpKHNc7W7E/yGchdCjvkralB9Ehkzb3pO14OUicC9cJOMU378HTBTD1Yv/aA85bKZJM0lPw91Gtegu7NlUU5O1bmqcnUoKtUcnDtiKLdhLQs9eG5pq6M960n0yT4JKdtlgDfNJa8SVDYeirh7hFy2280waAp6Mx3m7o1+HwSKDZMg+o0NsGAoxpCcCYmwX9zvq0d0dQIctqLv3Yy08cUNbcedjNKzzRkK792e14Yo4opwcpgUCL2trh59Ix90BU/9gJJo0c1GCzB6cF9VC7sDTKFn/KIDqarQNoqF96hhY0UQ0Aw/cqRDfxkl0QUtZKNDHEeUdzpkxIRVr3W3JoCuAbwoyUT7EB3CdydxohqyU+ExsDisd0h5oM+R7pfbx9uZUojgbvXzYVzmAGcfCkleNJV+zWbpI2y9ir4M+j520Umm3XU1F5GhYrv0AtUWfHx8S99nkNb67p2UYev1WmpAvQ5HjRN7W91uJkHQE67YywMQYFZABbwAIif4W1w+AVGnkce37JzckvrfjCuoCouDt3ppcYaIgYdnwAhwc2704sLcwoCtH2aEzuegP32U/iflO31ZC8msypClwoKYWxBcTbY2GGYtW4xoCBW75t+uEDrw+qMRDEzpYb3ghNs8nzQ96+mmBgD/BheS59s4den/cK0lycPZEHWnqUOtiCd4ik1wHEH3YZM9BFEX+liuXz52nLZGIME5xhTO6bPiaqFAP34vLQTk8KNuxwirL50fGtR2BsfhLBwegrp4y3Okwt7wqFo6fsx5iriLFKrDAyo059Uh67bTLnDj2+YToK6NHTkQFAyzrgqO6umVO7od87aOVXucHGFD2KxGzYUsU04AUccgJA1nt6w+9OmIN4U+svd7E2qy+cqMRqk3qUXqrFGQ4TenTp0AJGAKouJ2mIgrwXUvPD+K8WZSEToTwXt1iWlp+EYHxHAv1ikTykySuoAbAT/hQjGotl6h0moZDH/ofsVEqHIWuCrkB8InSYiZah/uvejo51FimxnOT5mpl9sDaQu9s+kjJvF6Ixo8T/F0mbmJNxWYQjLihWG12S2pVJfaYDWFkMS2X8vZJEQnxB7acN7K3w/mSaGSclHkkXO9KDdjzCicAESqBYLPa9rnbjtIKM64frslW6cMlp5Xi6orL/L9QyTuKboWgod/nw57oYrnmilzKMF6+N3wlEbpQK2pDc9tKp+IJyJUpD1O+yYKKh0HTXiyX7Yf47XbkNb6OemHMQtQDzCEkm0nQR1+EmCQAtrooE1j0+xyJLk9YqeqatZrWxol9dbd67zwAAnVaXCFUaOMXFWSGiibZLEre5khVb3IHQ3sAKPNRIiLaLRb0dQL4L5hYI03+Y984aeM6H56nRmyqxakmlAJKrj5uAWF3L2J9srvcCP6wnS7ZyLKCjcYEeNqW8YsodLUzDT8wHGTt3Y0tLesIpL44q88kDExF/KtXIs0BxoIJcZJNe68/Pj2LYhpoJz9tzew96FWux X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a14803a-5d2c-4b97-9941-08dc32b38d07 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2024 08:03:12.7935 (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: 97FkrNPvAOsodikS74G4YoPxfd7/LB6XsXIvIZ+w8V6ph1RIGFfqR4gcggk0vWYAb77Y/Gri80d+Rm1CgtdhxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9770 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240221_000320_621493_24E21F7E X-CRM114-Status: GOOD ( 10.65 ) 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 --- 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>;