From patchwork Mon Jul 6 09:44:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 11645313 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9EB4113B4 for ; Mon, 6 Jul 2020 09:49:53 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 781E32074F for ; Mon, 6 Jul 2020 09:49:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="11MjU4Hz"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="acCjCaXO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 781E32074F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sPay0c8KDGAQ9LC4kYkjYebGuXhhb7rqSqms+pe8/ls=; b=11MjU4HzgIyOX7enQNERR4lc3 3+JzQeZjA0F0pUX2wh4UtoW3kC5aoKz+lB62PLgklWBDzpCHtl9dfnQTOYdswDt+LyMQAX7ZHApiI Xm6LOl6HneGWv/kjb7Uq3hz+Sa7eGI35l50EoX7uFnCSfmnJ5S8qstQr8AmIZq30SmqgpHzNsxZs2 wW3rGvYh9Nc9Jw+580sX3IB6Gb4ny6631Ud7HMfA7tNnbXF+QholfC92F2joMaMMB5oP/KM6PPCg9 iaTPbSPU23JtVlJRIPQFxFhEkBu72l4pXAqeaR/BV7edMIpNI7A+2othNEpgNx0TysdZ7JF52umxi UX3LSDlaA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsNjf-00077U-Gj; Mon, 06 Jul 2020 09:48:27 +0000 Received: from mail-am6eur05on2057.outbound.protection.outlook.com ([40.107.22.57] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsNjd-000765-0h for linux-arm-kernel@lists.infradead.org; Mon, 06 Jul 2020 09:48:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dD6u3dofN886K4/biiPuTowCGCdint+dkMH9XZ3aJvDx83DtJm6R5WJZ33IVVOpFkfYdonPKUcZscwb+L/DbmEcm8VKfUKGYzvqTzUE90FqyZIrOvkTPaJzMOooGojdXxU5eL9NtKAR5iO6Si3DqLLSHdK95KFaqgAS+xCr1fkesv30d6Lbu6/4PAwIhqYXJjyfKZI2R6xLP7QsSbDyHxwfHtjztFWSkwvHqCWDUIyIn8Nh/O0YbrgpwghLscNcCA6VPehFWwaBMhN6B6jorp6HGRK+CizPV+xiFPhYSTTPGo76JsOSpU/EMAl/AjA/I1QvQQb5i1zr24wZ/8G9yZg== 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-SenderADCheck; bh=7kXDC+0Ag4Ui6l5XrVs8CEH/nL2OJ+Jw1VmgLloVCFE=; b=FP7mc4K43v/zl4F4Oc8SSdETJ/SpBnXOCtDADAqgXiWmJSGXN08YpnWuilPmkWX/DXy6US0qadUzhODTgYqmZ1MKerdELS4WyzpcKutKE2sqBEBDLNEs9Rz0gnk55XWHkoLG1KXPFJ8buOQewG8zqPiWsM6YkLl/uqVz2q/ROvyMsv6gRdC8FiHC79O+Bw2nDyyfircUSNXzcgJ+Z7gr35tC4uGY32yx6bXBzOY/bxXXc+vL9h+ipqDnTOK+fzwXRqvGpGVRqTuG2mejQT+LOdcmSxNTnPyobfFIQE5Yt4lCefp5JmFtzFopge4XheqSB2IguqRjR5jGXuQBwn+M6w== 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=7kXDC+0Ag4Ui6l5XrVs8CEH/nL2OJ+Jw1VmgLloVCFE=; b=acCjCaXOSe/H2X9eKh9XIWlHqODDt0K+cTKJoO6qN9zy5ILW5Fo63gVDTjf8xPo97QMSA5REXE7cKeQddOsEwQSSH1lmfXbBkP+UXUGc2RlxE0XYP+8jYiO00BXh9OVtZf8x9/ROATHtpwHNd0hFXxnEax+aec9NLiUX2R2EdTg= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) by VI1PR0402MB3520.eurprd04.prod.outlook.com (2603:10a6:803:6::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.27; Mon, 6 Jul 2020 09:48:21 +0000 Received: from VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::30e2:71b0:ffd3:e39e]) by VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::30e2:71b0:ffd3:e39e%7]) with mapi id 15.20.3153.029; Mon, 6 Jul 2020 09:48:21 +0000 From: Li Jun To: balbi@kernel.org, shawnguo@kernel.org, robh+dt@kernel.org Subject: [PATCH v2 3/5] arm64: dtsi: imx8mp: add usb nodes Date: Mon, 6 Jul 2020 17:44:57 +0800 Message-Id: <1594028699-1055-4-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1594028699-1055-1-git-send-email-jun.li@nxp.com> References: <1594028699-1055-1-git-send-email-jun.li@nxp.com> X-ClientProxiedBy: SG2PR01CA0117.apcprd01.prod.exchangelabs.com (2603:1096:4:40::21) To VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.67) by SG2PR01CA0117.apcprd01.prod.exchangelabs.com (2603:1096:4:40::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3153.20 via Frontend Transport; Mon, 6 Jul 2020 09:48:16 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.67] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8fdacbfe-47be-4d9e-c723-08d82191b7a5 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3520: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:849; X-Forefront-PRVS: 04569283F9 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wEqB7FV3ezhtuVRfGMQ1DXh5wBnRUcvnh3pIFpNVANgzRJlg0pYLbio1UbCyGeguHs/we1dKej/QEZiUNwvLH4mK4YSIapSa5d/UTVSZ4wm0Ge4bNXwdX99Ygsrf0JfW2WWno7jkn22nnD0BtggDBug6GLT1PJT1jOurpm+wDiwXucl+55+byuAilV/2YX3zJKe0T1n5sylE9Uslg0nP7SFkRULZ+dPrRQvc23WWLLColPC51tO/NsEnO/iQF1g+EfDUVLOiPyT9LG/7i42Ea+rt+N5rVdHnswgCIVODENTFT8DEROe1IbtdFCUs2WWRh2ObCCl7RuPabq+5T9W8zEDtlh1Lip1xmI2kzx8Nam2dVY3+YNRRRr/2VO7k8+bd+FgpAmvesrlYYXW99E0ugbTLjtpeavRNYUh1xwx0o8o= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6528.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(136003)(376002)(366004)(396003)(346002)(8676002)(52116002)(8936002)(956004)(2616005)(186003)(16526019)(2906002)(6512007)(6506007)(66946007)(66476007)(69590400007)(66556008)(26005)(86362001)(83380400001)(478600001)(5660300002)(36756003)(316002)(7416002)(6666004)(6486002)(4326008)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Vy9oZInww7FZJrwX8bu4jJz8RQqEdjXfF0Ta/GVwHgyT4FA0Tt7txXIqWCOmcDvUw4vIvkYI2Bs4Lk5k9OinG0RL4WJkABxERNdXHhFqiqofnkdetB6hQWCXpBAaS3KFWcTCu52pYkA05B5Bu9wbYGL+H9bPEjZmcf1J++KO47YbjL09LGHoOc07ySQJEgmbdAkthwimZTIk5iqWaOwM0Lj0n3H5Z0l1eZI+NRkj7aAMgjYp11BUQrRspAL85KnqpBgRyUNpF7A0sbvdzG1wdgzNxzZfmQaPhI9nivqZbphix4isMpDB3CbxlpxjOWT2VRAj482Vbe8lIlxZ8wyRYFP9Z78ljEk43BRL+xQNkNsuhNZ+Z6WpLpgYHLhkXzFD/PCJpcYAprCuSiiAALct9e9fFGVRe93FujC/89sTfLMgEZRzKpCEQhWhU+IlGYTizTTgGq49XZHyVTYx2agXpZL8WPo9BV/O9zrHPdVLy4k= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8fdacbfe-47be-4d9e-c723-08d82191b7a5 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6528.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2020 09:48:20.9523 (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: W0AINcdysME8qWsOGXDfw/yBJljoacgDfwOmsv1Ay2GywbU05wuEgYqIwnFAk4yn X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3520 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200706_054825_078758_9D6D429E X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.22.57 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.22.57 listed in wl.mailspike.net] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, peng.fan@nxp.com, horia.geanta@nxp.com, Anson.Huang@nxp.com, peter.chen@nxp.com, gregkh@linuxfoundation.org, s.hauer@pengutronix.de, linux-usb@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org imx8mp integrates 2 identical dwc3 based USB3 controllers and Synopsys phys, each instance has additional wakeup logic to support low powe mode, so the glue layer need a node with dwc3 core sub node. Signed-off-by: Li Jun --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 77 +++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 9b1616e..f3d671f5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -650,5 +650,82 @@ interrupts = ; interrupt-parent = <&gic>; }; + + usb3_phy0: usb-phy@381f0040 { + compatible = "fsl,imx8mp-usb-phy"; + reg = <0x381f0040 0x40>; + clocks = <&clk IMX8MP_CLK_USB_PHY_ROOT>; + clock-names = "phy"; + assigned-clocks = <&clk IMX8MP_CLK_USB_PHY_REF>; + assigned-clock-parents = <&clk IMX8MP_CLK_24M>; + #phy-cells = <0>; + status = "disabled"; + }; + + usb3_0: usb@32f10100 { + compatible = "fsl,imx8mp-dwc3"; + reg = <0x32f10100 0x8>; + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, + <&clk IMX8MP_CLK_HSIO_AXI_DIV>, + <&clk IMX8MP_CLK_USB_ROOT>; + clock-names = "hsio", "bus", "suspend"; + assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI_SRC>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>; + assigned-clock-rates = <500000000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <1>; + ranges; + status = "disabled"; + + usb_dwc3_0: dwc3@38100000 { + compatible = "snps,dwc3"; + reg = <0x38100000 0x10000>; + interrupts = ; + phys = <&usb3_phy0>, <&usb3_phy0>; + phy-names = "usb2-phy", "usb3-phy"; + snps,dis-u2-freeclk-exists-quirk; + status = "disabled"; + }; + + }; + + usb3_phy1: usb-phy@382f0040 { + compatible = "fsl,imx8mp-usb-phy"; + reg = <0x382f0040 0x40>; + clocks = <&clk IMX8MP_CLK_USB_PHY_ROOT>; + clock-names = "phy"; + assigned-clocks = <&clk IMX8MP_CLK_USB_PHY_REF>; + assigned-clock-parents = <&clk IMX8MP_CLK_24M>; + #phy-cells = <0>; + status = "disabled"; + }; + + usb3_1: usb@32f10108 { + compatible = "fsl,imx8mp-dwc3"; + reg = <0x32f10108 0x8>; + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, + <&clk IMX8MP_CLK_HSIO_AXI_DIV>, + <&clk IMX8MP_CLK_USB_ROOT>; + clock-names = "hsio", "bus", "suspend"; + assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI_SRC>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>; + assigned-clock-rates = <500000000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <1>; + ranges; + status = "disabled"; + + usb_dwc3_1: dwc3@38200000 { + compatible = "snps,dwc3"; + reg = <0x38200000 0x10000>; + interrupts = ; + phys = <&usb3_phy1>, <&usb3_phy1>; + phy-names = "usb2-phy", "usb3-phy"; + snps,dis-u2-freeclk-exists-quirk; + status = "disabled"; + }; + }; }; };