From patchwork Mon Dec 18 08:54:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13496401 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 035E3C46CD2 for ; Mon, 18 Dec 2023 08:49:58 +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=Y/rYThF+xBcasHkVTP1zTWpvFjYBPhcDb95LVjmj6bg=; b=krVViAyczoc/Pe RkCtQyjsh6fLGa7oA21r5Ihqh/geE3mV3xr588h3DL68oqVaW0r5PO2HfcQlTbwK2HZTrIWTd08Nc MDAlybhadXWPi8fNiQFsxcGh/K6G0/eS9yu+H9KPzoQVp4QsibtvgmPAGrrkzecqikVQzOYGkxRpd AN1OpsgLckdNMFSuD1zPoAHdUnxPZrr3sU2os9xAknpEeoUGv9LY0ikqDp7OTtCMLxS9DyGVY7/fw x+thx+2DSml/HtnQr+4Omtj1qmlmt9YNFdChH2/klBz9o1h+T5qcLFlOIvlrbcaW2mu6ALZXbcKI6 KexRvSJlODKU7Sj9nICQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rF9JW-009Wje-2g; Mon, 18 Dec 2023 08:49:26 +0000 Received: from mail-am7eur03on20600.outbound.protection.outlook.com ([2a01:111:f403:260e::600] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rF9JR-009WfC-0Q for linux-arm-kernel@lists.infradead.org; Mon, 18 Dec 2023 08:49:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i7y5sVNuyrHzuIYvr2chorrcYJa05oxJziEgZa084OLwvUAN752H0ZvkABCQXvm+juCbhFV8STK2tXcA1S/4NyMqb3MLtrSg5hhtqr/Adbayapd9qK788KLz2j2mnB0jyfzCAr2Sl+KgTaufiXtXTUrNQLzxx2scL5rLJ/SHh0bojfJBaoUzpThYYCcXXBWUP3UtQZMQvfl/7jaaUi/2uRtw66r/JofwlviNRUzTFrwqc9LhGocVNqpsVmC38YURtRi/BidX1HuRv51oZ0qOdzT73ZS9lDRx/UiJ5rLgb529EIBWC+rZxELMA6nwmfQOTMPUrHNAsO/Wg5+fU5btvQ== 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=56VFFqxuWFjT8ZdSt1Xec0Jb00TF/4bmV9528WIcOuM=; b=ZY1w/5nZKcFPgr9ijZkIxG2r/R8tQxjc/jNtKJnlR+MDkPktQ62xtq7T8GkAyPjFgfk/9E6vYcS6m1ybsA4WpWpJHpExrNvrKIHsp9QOU7ruAFwL/EDf0RPenin2ddL74EYFirOnYgTvOy7gvGXghDvOimZDV+0Nm2VhVyLar19G/Z6aPZrV6EZe21O17D54JgI1Ids7PM0PKh+bIkFKukmHsnlCDT25/TV5iBlMmIyf/H0ITHjEWE04Aebar/ov3sLjHZ9VJnK72eSBg7kedvpovOfCWaR8qzt6P2iIFKIxBkDFQxnrzxyzOS/hFYhPD0FuNNUC9UCaHkBMJhmxzg== 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=56VFFqxuWFjT8ZdSt1Xec0Jb00TF/4bmV9528WIcOuM=; b=Z0AxsWLZN2u36co+n3PYNLBCK2zCblhoZqkLUtwDyBA4tKkNXM676t96JeNjEobwKVbAPfNPnYKdfaNfU0NTZVrDyfTo9Set8E2B78MNeohIk9gd3A09bfW80h8Q46W3HGgKAE7d19dE/OfeBvDBWcI3wjqG/cVJId+1fQA4Sbw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) by GVXPR04MB9803.eurprd04.prod.outlook.com (2603:10a6:150:111::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.37; Mon, 18 Dec 2023 08:49:19 +0000 Received: from DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30]) by DB7PR04MB5146.eurprd04.prod.outlook.com ([fe80::709e:6876:7df0:fc30%7]) with mapi id 15.20.7091.034; Mon, 18 Dec 2023 08:49:19 +0000 From: Xu Yang To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jun.li@nxp.com, linux-usb@vger.kernel.org Subject: [PATCH v2 4/5] arm64: dts: imx93: add usb nodes Date: Mon, 18 Dec 2023 16:54:55 +0800 Message-Id: <20231218085456.3962720-4-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231218085456.3962720-1-xu.yang_2@nxp.com> References: <20231218085456.3962720-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR01CA0189.apcprd01.prod.exchangelabs.com (2603:1096:4:189::15) To DB7PR04MB5146.eurprd04.prod.outlook.com (2603:10a6:10:23::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB5146:EE_|GVXPR04MB9803:EE_ X-MS-Office365-Filtering-Correlation-Id: 994faf29-8d70-4621-ade2-08dbffa638e9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iEHEt9fYefl4oAUu/WMY0NE4OZjxzxCg+FlwkwTf2FFrpqd8W2gf8afCYOojcT7KBzKGT95qrymrhUJFCFxq+Mo/yJyyN0Iil68jFuc/u9/ln10VwgnpB2DPu4fSi+JUUE0sVylmtffcNrVFu7S0kgYf+oGQBeRuZY65LEatznSaZhKW23/modIguyCsA0kEIascYDqJSlcH8V95FzDq7q4jB5+T/Cmn2WbsTIyRnGL20yju0sj3P6gps1ti+UebYvvuNYHtStAaJnpc1Ez+1touIsHuLDj80jxos3F0xRa19JQ5Jhq6puuXWqLUc5SfvjbFZ1WswYR/mMwyrze/JYnA9VarsfHL7OEJqoShF6PnHSvDw6A8p5d7TaexH8+a0EtKn/DIm3Nmw0Hh42sXc2+EjxThJcd9UpRLhB3MmeVeXr3L88LWlWJwBq23AKiOBH2EW4rraRnVSfvQ6auNt6dQWJV9v0of4Aml8i+WwKNHg7kWZcbmPgbC33Z/eYVxPQ78FMRKESro2ANI2aDo2qYZ+Lm03CIx3a60hJENBeFQXLsY9uf8JDQrXKZlJtG0XzppooZOGvwe1Gtnuwm60+waox3NXlj5/wC7aPvGHo//XkfbIuGWIMit7zlcZX0J X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB5146.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(39860400002)(346002)(366004)(136003)(396003)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(6486002)(6666004)(8936002)(8676002)(4326008)(1076003)(26005)(2616005)(478600001)(86362001)(83380400001)(6512007)(52116002)(66476007)(316002)(66556008)(66946007)(5660300002)(6506007)(38100700002)(7416002)(36756003)(38350700005)(41300700001)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jPfUaDVRbfI+t/O5KHVmaHuWdtvZROl0gtH4ublK2zg60TyMSY1ShF35t4FTBqn5fZAZDYe7vQnCFmritR4rwMO4fnp+zKvuuWftJkC7xUAr+LkrF55c6bo+Ugo0K0ewiL4sJUbTu9nIqKJKZI2jdXxQTi2x+jlCQ7nWMek2F3w5Sylh0/29ZhKpS9TWzR9rVxOBkl/99GKcB3Hl4TNG+7wPD989fzCx1o2VgVrwDXJ+MrDK7IphOjGWIrroNpsSK9Edc/r33Ba/adM1DRoXb6SXt/RaRo9wDq5u23g5+ISJpoxAmxYjXL3WtxEtz/XG1/A2F5d3uYR5BzlxPY8i+orDcYwh8JqwHE5V19v9WTZX8oehnM44uEHDFsr8UimEaLAMp476FWZGqqYeHFeHaomA4B2/sKNWZBI0I/BbiTJJtvSfzau4C3eiZCzNaQmj/oqqQ2HKuicLsrs4wRByVQWPBdyFjJs0r+fucjxJuFYQfbasSp720ukkqY6G+f5jcCwjspP/EK7Ch5roirkCLsKoiBm9VMxdPcUJrxnWIneIUj7aIqRRF7J3TOX0mpsZFN8tCrwGeNd/wml9lncXkZ0BcqWqmtGVa3QfAXX9haQE7q4iATQoHF9TSujJ63AT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prd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 08:49:19.0449 (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: OI7UHYmbEn6FKDfH9bTyG+e/pE79i6C4eNYUPBflA/e44B4QExw8wn2ljf16ZINLfKTBqHZS51WE6RZbZjQT+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9803 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_004921_172193_544A96E2 X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. 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. Signed-off-by: Xu Yang --- Changes in v2: - fix format as suggested by Alexander - change compatible from fsl,imx8mm-usb to fsl,imx93-usb --- 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 34c0540276d1..043ec8dc9aca 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -171,6 +171,20 @@ cm33: remoteproc-cm33 { 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>; @@ -1059,5 +1073,49 @@ ddr-pmu@4e300dc0 { reg = <0x4e300dc0 0x200>; interrupts = ; }; + + 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_clk", "usb_wakeup_clk"; + assigned-clocks = <&clk IMX93_CLK_HSIO>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>; + assigned-clock-rates = <133000000>; + fsl,usbphy = <&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_clk", "usb_wakeup_clk"; + assigned-clocks = <&clk IMX93_CLK_HSIO>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>; + assigned-clock-rates = <133000000>; + fsl,usbphy = <&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>; + }; }; };