From patchwork Wed Apr 3 09:04:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13615518 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 65CF5CD1288 for ; Wed, 3 Apr 2024 09:04:50 +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=PyzL7f8Qagkvu9GUlYR2d/rWoBzAGY1vWQTKCjgZbnE=; b=vKDwmCx8vQlMH7 UKd96ngWDNdqiilWliyYYLqyKWc0cb4erxm2ZoFiqizyG6qF/uSQOuJBr8ozGL6jod6nD0TbjuoLQ SHwdJZwrMjQivuNOfJGsDZhD2aDQaPzx9mZDCLzJVM7lZxHwEkODUTh8v2q2zxQ2fsyA9GwSZxOU8 oUbQ4t+cakjinezdKhZzwwLD52+hktvUMZKY3KVwi5IJii5r4Pa7vxgRauBZWTJVC9mGCkiIjhoxw 0ejv/dRZndlk+4BoZ/mOR6KuaTKPlNJsoZcwEmqeqwyO8rAlLwV/4j4j1n/wncWtJQgxIxcaSG0jm 0LpCMagSW1J6Saa1L7eQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrwXq-0000000F66n-0LjP; Wed, 03 Apr 2024 09:04:34 +0000 Received: from mail-vi1eur04on20700.outbound.protection.outlook.com ([2a01:111:f403:2611::700] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrwXl-0000000F61r-2vUR for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2024 09:04:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NpdSGBKLGXxAKuICEdSVYXboVBM85h4mCmYbo4TugXbOIhXfz8Aw+CEIX+0QRrtC1+l87QT5r0POFmxwrPOc9YtUQeOWpQjMv8hDy05Ed8NePBh0EdEjm/BhGSiyr98QYsFfRXhtHoZ6hDtzx+LzU0e2jyxorfJVa1axmWKrXFATceVQ8obnVhbfSNQ6tjjcjc6JElNkC4bMBlGe3w1a/ibfxEt+IhkUEjq7dWzd788vxwTXUPyesauySSfvTAx/VXjnzJzxdQFSwaBBWEgbmXYnWtriDV0FpxdTajnEZpqrs1hjO2FXeL2Oypqj43coYzF4zGb0SvgxIDUjwJqL9Q== 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=we08JKSnLaYbRun1Tdtqo0WxMSKQ0rrGYY3E43qbAgY=; b=OAI8p9ZTogpTdEsqjVj9OWmfCC4JUeJGC0s9GH9HSPWVX705PQZtfqIq1ZJmdXSwR/iSWAdonQxoGTmFtAWh8tBKC+C2GjK89CwQr+AvOtHhN7Bosotj9Tr4PQJu3GT44N9GhOKgsIT8/ExGez5aC0S/iwNxwPFqO2khUZ0SIz8poOMQjOsaVjW4vuP5Q1fCQ65/MURj+Zj+OKZbASeN77IoRzeKecY3sONK3fnUzdY/YijwpOnsiBq606SLzIokXrPkZJR6pZS5BqFMBuqclps1c0da6XXA4fFFa6ljfACaxHy2l2bdE+ViqTfW3rWPRb0HE5OQjSaIzadUpg4UGQ== 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=we08JKSnLaYbRun1Tdtqo0WxMSKQ0rrGYY3E43qbAgY=; b=iQ4KrYJmUtepQzGrN7WAh+tCITqIKga7RCUGxv7rJUgVqR9Irjf68YOh4p77Aw+OgShmOqxDyT7oajLucGbHyXy2nDGtxVn3GtCUDb2B52WYHrcaeUqEASMkO/foTiJfuC6ZxJpYTZVuD/Xts4U8dZ9mZyqXKJJRylo3AtQVGp8= Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by DU0PR04MB9442.eurprd04.prod.outlook.com (2603:10a6:10:35a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Wed, 3 Apr 2024 09:04:17 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::8d2f:ac7e:966a:2f5f]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::8d2f:ac7e:966a:2f5f%5]) with mapi id 15.20.7409.042; Wed, 3 Apr 2024 09:04:17 +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, 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 v11 2/7] arm64: dts: imx8ulp: add usb nodes Date: Wed, 3 Apr 2024 17:04:33 +0800 Message-Id: <20240403090438.583326-2-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403090438.583326-1-xu.yang_2@nxp.com> References: <20240403090438.583326-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SG2PR02CA0020.apcprd02.prod.outlook.com (2603:1096:3:17::32) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|DU0PR04MB9442:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LCs6T3tjYCRl+cWhdsRllqvNwfLhFjC+DtpgN1aASq6AAUbwk25+ToYd8nakybPb9iwCQwTNmr98eFDWrEdZbxultpQXR8z0Aeqt6C+0ne17aDIyaS6BNy97H8cyJzFDVec+ZN0/HSORYpYjM8VS1uzfteZbBaAJLHDy2PoH+Y8TALVWBlyBbICR+jpyO/KenvkngGgSIGM0Y/QyzDFFr3rkZT545AuUfLExQ7BMZ13bbei47k3OwcFAUdc1HGScRcmauM4G4VZLNcs+7UXxQs0RGEjN2I1PV1KQhSvNAjkWWIQYISkc7Exslm2MsvwoFDjye2lDFFY22GlWm5YrkVm/iA9qbrVlrGGZslnDaO9jn1rMaGFTZzO0o/b1GAhA+omM5MvMbGuA8MKp3961hvdH1P77xnls+LsY6Ypqep1M8P8rB7acYyrQp4uKiclMV9+j+iVdOwYccEzw5K/ndvYiP7Vukhz/e948zoSmUhR0Wq8818VVmIG36QOq29Jxm69hNuYzuPbhPmoZgDq8rSC0M5FcbwMP+TvMLbJ0PCAW80Hr7C8L6fFiqwYDsH4AWGen7fPRM0+QBCPTAVt8wum4hFOLwXZ87yk22xuqbnrXOT3Q7MmvGpm+q4JAbqTMB5PXP9lxwnDsFQnRkWvAFXdlMaMLz/OYx4t3KiECDkmGayygTTg0C+fhwwUcixhftTLN/je0+4gY2REocGJ9yw== 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)(366007)(7416005)(1800799015)(52116005)(376005)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9RHqSBju6o28VAn5LwUGs4+impXzVtxQQV0m42gGExQRG3xznF1ZhwUJpPpLe3w833/ildTXf4va4NHLoKf/qxdqc3C+9SbzoCoPoM+SN5g/yFxdbYY/TQUMHFXsX3xeE3+vBDc9zQ/vkqOa2+m5/ElrNjJ5YIyZatZOlcROqilZYbH9nohemq84FHOyKAxW9gSX9MSVEanl+uil1Jo7GvD4DheeSsCb5I8COSRCANt6vCNKS3z2WOt3ZZEZ3qzFCuPsDkfEkEiPk7NB1FJUi2Rpx3I60fEjSogiXKYPkrkBihveExp2qCDAF/vQKxPqtZF8IGBHIgnliL+y0nDmRqHZ3Gu1gBIJN+dZBGIdxY/dSj6OQbbMpJFiK4UZSLVApAoh8vVt68chZrnzrTKx/wMkGNEnrICS6i1XtkCg+W7k/Y6Ine8puUv6+3Db83/JSPtzQVdvcAE4LeSq55+YnedgBGjSb/AXGheqTXhDh35auHy6NqwI2lyMfckB1250I1NcKQ1xAWa36bknD2T50+VwSN4aqtR7PMw7qBIB2sqzJXM9YCUh8rnNLMMz3ZOxyya7QZsunlwnxHEnBuEEj1l3WdjWoaWWK2ml/DpFLVUKPGAB9hLym0v2ZyTOh4H/47Y8fScXXcm+z7+UMvZNfGYdv/41Ia/qYhSMlF2d5bigsJ/zEGKLemFZk983qCnfn8YeFuwwX64XUpXR5vWSIh0YPOVHI2nMksCkIiGTtqER/zoOamfVZwF+sLDQWfTQroXMjaA7NdrWRRX5kmvlIE/QsFykEOgRp8J6uUWfcdBZSJp4nn8GuWnyDap0N+9Vo2AcSzSXgZvvwUPA1iBSvKGAShm2NW5O+/MwsF0+mzs66e5CSCkjL39YOEPnYjyB4HFXrNGIXufFeFP2wykdhOo5GZWLeaTVoRvCOMjRM38hgptORqe4VCFfOPPWZ3p8QEXiYaFawuCFDVPZzN1Fp8kg56jKN41gBjDbJbkSCSAEDAXqwzfoI3sEhmFLMPnOu3BSbacbVhyFToQY+Ov/pP0b5XFEdr9IKWDYyN3c/NctOAjdr2VN+CpvcjUQ1XOhhCjd+bGnczhLNme/kInkA+stzQa8yjWqo0LxXOmeW0oEONmOdTsMCfBdtMXRQ3VU5TdJ2SznSF5CV71/asNU17V8m8wWKn7XRI6sV3q+dfYPISF8OpeKLQCNrA8IAX+8K3snSoEbbr+QM8yNmuzcadTCBrPehBypj4kMnYTLSWfflw/CbD4NAhap/eTo3MQ6+Vh4fwwfNGIN/BWbG/2Zo7bwLl/rGb2aDx/Xy+aASz45f3/lqdjUmGsSe+ruNvShFDSGq+zjSLHyPTrBMRiTvruSPbBFU4oyEil/DP1y+RtgVkf3Rv2RePckKFcU/AgKF7nfMBtVE2hL2fQJOm+vsP+VLQqDp0x7lHbW7k2y67bS65Xsx1reAlB/zdPMGny/oIpfP09EX2cyGl8KqK7qLQ+/nWbUycjYewF8jeLoKTpTVZfO5tVmuyYwjQBO61BHgLDPG7OKv0CO13lV4b0ZpxM9bejSlVUsRyZUMV6yCvrahBPKv0Abs1ndsbj7ak84 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1bc4e37-ac6b-4ffc-804b-08dc53bd0a64 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2024 09:04:17.0064 (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: q7x/epkxhAqRmzpKjqwuuvktVFUiYAMsvheD5RiFT+SfbJ2FELMEtKjyVwihL70Iiz+GPOHwXAdz+3RKQ4upUA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9442 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240403_020429_788607_9B2059E0 X-CRM114-Status: UNSURE ( 9.77 ) 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 Add USB nodes on i.MX8ULP platform which has 2 USB controllers. Signed-off-by: Xu Yang --- Changes in v2: - no changes Changes in v3: - no changes Changes in v4: - no changes Changes in v5: - no changes Changes in v6: - drop usbphy aliases Changes in v7: - no changes Changes in v8: - no changes Changes in v9: - no changes Changes in v10: - no changes Changes in v11: - adjust reg order --- arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi index c4a0082f30d3..cbed01bb8cc0 100644 --- a/arch/arm64/boot/dts/freescale/imx8ulp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8ulp.dtsi @@ -472,6 +472,68 @@ usdhc2: mmc@298f0000 { status = "disabled"; }; + usbotg1: usb@29900000 { + compatible = "fsl,imx8ulp-usb", "fsl,imx7ulp-usb", "fsl,imx6ul-usb"; + reg = <0x29900000 0x200>; + interrupts = ; + clocks = <&pcc4 IMX8ULP_CLK_USB0>; + power-domains = <&scmi_devpd IMX8ULP_PD_USB0>; + phys = <&usbphy1>; + fsl,usbmisc = <&usbmisc1 0>; + ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x8>; + rx-burst-size-dword = <0x8>; + status = "disabled"; + }; + + usbmisc1: usbmisc@29900200 { + compatible = "fsl,imx8ulp-usbmisc", "fsl,imx7d-usbmisc", + "fsl,imx6q-usbmisc"; + reg = <0x29900200 0x200>; + #index-cells = <1>; + status = "disabled"; + }; + + usbphy1: usb-phy@29910000 { + compatible = "fsl,imx8ulp-usbphy", "fsl,imx7ulp-usbphy"; + reg = <0x29910000 0x10000>; + interrupts = ; + clocks = <&pcc4 IMX8ULP_CLK_USB0_PHY>; + #phy-cells = <0>; + status = "disabled"; + }; + + usbotg2: usb@29920000 { + compatible = "fsl,imx8ulp-usb", "fsl,imx7ulp-usb", "fsl,imx6ul-usb"; + reg = <0x29920000 0x200>; + interrupts = ; + clocks = <&pcc4 IMX8ULP_CLK_USB1>; + power-domains = <&scmi_devpd IMX8ULP_PD_USDHC2_USB1>; + phys = <&usbphy2>; + fsl,usbmisc = <&usbmisc2 0>; + ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x8>; + rx-burst-size-dword = <0x8>; + status = "disabled"; + }; + + usbmisc2: usbmisc@29920200 { + compatible = "fsl,imx8ulp-usbmisc", "fsl,imx7d-usbmisc", + "fsl,imx6q-usbmisc"; + reg = <0x29920200 0x200>; + #index-cells = <1>; + status = "disabled"; + }; + + usbphy2: usb-phy@29930000 { + compatible = "fsl,imx8ulp-usbphy", "fsl,imx7ulp-usbphy"; + reg = <0x29930000 0x10000>; + interrupts = ; + clocks = <&pcc4 IMX8ULP_CLK_USB1_PHY>; + #phy-cells = <0>; + status = "disabled"; + }; + fec: ethernet@29950000 { compatible = "fsl,imx8ulp-fec", "fsl,imx6ul-fec", "fsl,imx6q-fec"; reg = <0x29950000 0x10000>;