From patchwork Tue Mar 26 02:37:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13603287 X-Patchwork-Delegate: mail@conchuod.ie 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 AD644C54E58 for ; Tue, 26 Mar 2024 02:37:41 +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=iXM81bsGUL/6qUysiRLVXA8PyweRYDQJbKd36gKPyUQ=; b=W/XYD+6Hf2c0dO VtMri9UxmOMvpmUbAwjEJftaBJJpsZ+3LckdrRhiiCQafveWpw2+2VYIg5uC3pHqr5ydJs8dJKtz0 tQSi7zGOBTqcZ5IOQyY+uLoxXo1YF5IYI9UlWSUw1vLyzuLCOicocJakM/E+TFb5cn/FMv7JY+yvZ UQYvZ6NKJXfZnF3NKBpTfcQoajHLpXeShpOeranIzUQLVUcvASeCSapcDdTDAsIEIztNHYo+o1OSI cio2eoB9Fz7gYkNjhmCjKqp9aUdTpae7okskCXE0RX3oR4gxkDttsNMYfHYey/xz+Nc2Dgee43jTP /dQmsZj7p5qS6jJ1++pQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rowgz-00000002nO7-2szF; Tue, 26 Mar 2024 02:37:37 +0000 Received: from mail-dm6nam04olkn20801.outbound.protection.outlook.com ([2a01:111:f403:2c09::801] helo=NAM04-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rowgx-00000002nMn-2ONq for linux-riscv@lists.infradead.org; Tue, 26 Mar 2024 02:37:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RR2EXPv6eKauB6NoDvLsjsnJR80v/YfSNREMeBZL0GVGvUMJwgY2Wz2S9Gs0Z3s8+G8LXFJaJN6IUuWsipSpeGhAreRoI55V+8gz3lk4oOPYFVAjOtoQLATcebgiFB4F0edm2E1wYNfJOovSkJd+iQQKLqvQtxcmWWm1em8CmwPTYq60BHJ8QUE8Bl834gzfmGaoh09yU9wjsk5ztK8WuME3Mj2NaCv1aQhEU0zGHcT2YIVulQv1+iGLs8h3eWhnBhzemS/2d1V86yCYgEHRDJy53Lged0RFn+ul/bKFj+tlcG75fcqosb7oKWViyV7z89cZZJtZx4ARooJPFq+bhQ== 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=qPkfA1Y+e7LibXvzP4jvf1Im4DAIZUKLWkuZCIZA4gg=; b=M98xq6OyvUL7IlkMuDneT27IhD0ecIEqlq1sOiXxwDpHmmhhZeWTF8l1k4qqWOOc/tF83RZFQuLAmm7R2tO9cp4Ik5pANWh9E6euMns8gEPb9gWc0n7gCld5QW3QNHO52cKQgNdD+1i3NN2omp074AuF1/Dj7AybQCNnEi516iS9apsZV1y21B++Aj+MoJnOflPHcKY7u9nGuc8oTQBSZyEYtoWyucpWHP4s4rbwp1FMsmxDYIJBx5qM/R0ak+OW1eQe5+CjX2HXTsJHF8QcEjsGI2h7rNbfVFpA4heADQ3KhEhJtOuXr0+pa5YPocM+Hh/elnS8j4XHmNk8/HTNxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qPkfA1Y+e7LibXvzP4jvf1Im4DAIZUKLWkuZCIZA4gg=; b=shEsJcMpS5rhha6bdiLCCMhObWG24sCPQf/WaZ3RAZrvP0kjdjtbmJMsjgrLtNhy5h5M3notSO2ihRuzW9EGs+BOA2AeQJ5Zo1A8G+aJVYiq/E4N/I4aPaa0E2hj4y7wcaMleJKNkortHhL38buSfcJCSVz20x2ejdKcNPIhFe97PERp9w4pcOoDK3AYUMGl/H8CEBC+nKd8V8zkV272dmsgWi5dAGbs5PErccSu5ZG09ssTQS58OX2oglFYxPm/RX9XbbHxfksKPgTsYOLKOfEIA90xniod2PXDDSkwHVHWyEj03AgVYrz/IieSJbGwmv1iqxm10G7UFs+7QOnJnQ== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by IA1PR20MB5076.namprd20.prod.outlook.com (2603:10b6:208:3a3::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Tue, 26 Mar 2024 02:37:28 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819%2]) with mapi id 15.20.7409.026; Tue, 26 Mar 2024 02:37:28 +0000 From: Inochi Amaoto To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Minas Harutyunyan , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Chen Wang , Liu Gui , Inochi Amaoto , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 1/2] dt-bindings: usb: dwc2: Add support for Sophgo CV18XX/SG200X series SoC Date: Tue, 26 Mar 2024 10:37:28 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: X-TMN: [KdgOFASCdVlHX4JUf2RyBV7ALROlGPA8oKRKJmvoYyM=] X-ClientProxiedBy: TYCPR01CA0010.jpnprd01.prod.outlook.com (2603:1096:405::22) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240326023730.381199-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|IA1PR20MB5076:EE_ X-MS-Office365-Filtering-Correlation-Id: dad492dd-3e2f-4608-61c5-08dc4d3dad73 X-MS-Exchange-SLBlob-MailProps: 7J/vb0KDx3ghsXKwRy/t5h7NdWkXmzB0niMmniiG7D1xo02q7jSS/kaDB9wsScu4G7XNpLVI2ZO2z6JHRUAkaH5YKjnX7He71DBSy1Ak8qqSHi7UX1vEGXvNgT0USHNY6amLd2qyXEGWtEQzN4cGpXwJPoNK3h9UyX8Ntrl4ZcyH57Qna30J2bzzLrcFBaYjPmzin5QAJh2EzkvCOQ1StygBdX13OJQzVPCanMMyE6D+JBMkcn02zSyO+Y7lGbCyhNd/GSAavMGou1dnz8biXi8XZohw+oZ8OyjSzIwQNr50saCxubSfz3mVx1AEYzDDkEP7qe1WKNVGPbosAyWM3RYqv7NCMXqgIgSvXSnEsDDiME0JrOmbj2MaeTgg8B94OMSKcJWvwC8x+AIXS5ubFlXditz5M4gdPSmxyJuzP93uxB9uZhONCf8MypadnN0I3VHeBdCvj/ufk0i2E0O4E8XRorroAONtX0aeAJNX5TeNIBs004CvcUu0mKhpRapRn+urandaHYU84mAdo++jaIG1Xqls0pLyHzz7HIaz+o225Y20nGlkCfzxUm+enitNAVimMq/GoDvicn4lBKJmcEfF8KulNd3IXnDsEbwEMFWTbZF4FJPICIO48f+9DR9n1pzjeXLnitPRcxadxMPYBCDu2ubR+rX5k673SpzQL8PzEV8vnGMtrSWhs+ji6nT8GRsWkZRw3w6Vo4+4ppnSjBQ4F77YUeZSO1gC+iF4TXqjDfFkLXNaY4Lh1U6HcD5nSybMJsDMsP/rpvbMKCAlgRx2wrKoNmlEoWkmSO8Qo00= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GzaHRlxAtcVAmWxmYcVkS9zHUu497FuJVuTAXaEc8ZqamLEt1z90wy17R4Ahh934EJ4RBkKZIVPvgmTuISFLAtcXmbQmpkkn5kNYepeK4avzUarr0DQuWgL81DRWqt85zAYkRzPxZU/COFs5A56w3DGEz4Ozi5q8myI3H7pZmYBWNzpPB3B6FMqG2zQZAK0GEkrO35uHioGS3dK5gyKlHIWR3ZtI6chtFLUvyEmunu1OKXkMDTddcVDujXP+9bOmzTYT7mxcpbK6dh73C7tKKNt7EZG7pKc0iKJD3DPdFV84ZWeA/6V2Hv/g+qgUjB0B3gLdbEnZDXDcvJY6ZTLaGMDgbjT5huCShke7NPJ0LP57/uO6ZO2Yduks2M1ixd2Myky1hrAALgPWQTQcRDzmfR3sHXTvDQbovG0CPFgiJ6nQeX7qEoCXQZlDcKbj2J8tICuNwhtT+998VPDmwBrADd6bpRYinEm0gKJh5qO8U9BreW2N+nmPGPaM17hTvdM2zJvnu3JuU7hiugs+4VLuJ+9Zfqrtf309D8WU2xLmMi3koCym9k9w3fxFNkyOr3teTKl3EzDrPw7pw+3NnTb0stcTq+DtSS3VCCtXG6H1FlBBFOejgTNeTWYJnDGHOhsM X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 356Re8LoyXFav/pvMAL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6KoQoE3eiLSvZ//wYNj77cXNxcZBjqXkZ/yCYWL6E5PFXphwLeV4lWWLCH6FFbuDx409WSrAU3XyHqfFO7BBtmvXV6zZ451sGwIBmL1XWQejNlHqaPudSjJ72fxxU6bPfnSIlQOEcIEQndh0mLSzEONnBkzoDqzhsBJTDvCYS6VIIl/83BlQc3owCm4iXnuV X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dad492dd-3e2f-4608-61c5-08dc4d3dad73 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2024 02:37:27.9696 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR20MB5076 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240325_193735_636297_05565657 X-CRM114-Status: UNSURE ( 7.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add compatible string for the DWC2 IP which is used by Sophgo CV18XX/SG2000 series SoC. Signed-off-by: Inochi Amaoto Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/usb/dwc2.yaml | 1 + 1 file changed, 1 insertion(+) -- 2.44.0 diff --git a/Documentation/devicetree/bindings/usb/dwc2.yaml b/Documentation/devicetree/bindings/usb/dwc2.yaml index 0a5c98ea711d..9a2106e7b4b6 100644 --- a/Documentation/devicetree/bindings/usb/dwc2.yaml +++ b/Documentation/devicetree/bindings/usb/dwc2.yaml @@ -59,6 +59,7 @@ properties: - const: amcc,dwc-otg - const: apm,apm82181-dwc-otg - const: snps,dwc2 + - const: sophgo,cv1800-usb - const: st,stm32f4x9-fsotg - const: st,stm32f4x9-hsotg - const: st,stm32f7-hsotg From patchwork Tue Mar 26 02:37:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13603288 X-Patchwork-Delegate: mail@conchuod.ie 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 EB5F5C54E58 for ; Tue, 26 Mar 2024 02:37:43 +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=XFJt+d3ZnEgjqSaHMlMxYCsenUfN9ILFzSVQuphQ/3A=; b=eGtunRxApeExM4 YXY32Axi5TbRA/+sXzX5CJoutW2rugCRYtYG9Ncmd7VsMBdGhdo03pG4h6IxBwR5naVJdxP2VCmGn lKr9PiQi1gNTMSodtRaDoQ0XQtmhgxoxYLzCzNdmb7qaZvwnPLrnz/gtzOc1DHZjC12Agg7qdhZBj wcClzZNTsc9r6hnOojpMunZlK9LcVaJFH3iGu1HrZXL2sSnr5ptvJ5nKFnt76lfmQNw0s03QSK026 ILKu7ouDg0eeEwaVY19QjpRRRzWrkop8/evMn+WyQlrk7fYkbACW8j68hLPiJO/rP91ND0iUbGVyT 3U3ZJSGvbemMcoCG8DQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rowh2-00000002nP6-27GJ; Tue, 26 Mar 2024 02:37:40 +0000 Received: from mail-dm6nam04olkn20801.outbound.protection.outlook.com ([2a01:111:f403:2c09::801] helo=NAM04-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rowgz-00000002nMn-0Are for linux-riscv@lists.infradead.org; Tue, 26 Mar 2024 02:37:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sp8T/p0yJTRsCmG4ms2R6RCb36S2rj82PjMJW17Eebq2rg92syfjbCMlFmgyGr4y1WnizSJ/LuaPcktfgic9i1b6uVTmAnHqn1QzkNTKkYTuiLJmdNi8mwKmPYhOkCwmxQB2VApXjit5JQ6y02WVixWdMk6MFXOsl2KbtxjOmprlVbmm8o6Q/G948u3gyq+uHq0Mf4eElI9CEbT8fSNdZNUaockUvOReDHovCdm0wGZGb4W9pbSZOB022729M5XS0H1+Ip7En91i7hWAHHUOAY1Xu9ZNKc4pXbj0qXgyxquq1h6JyP0p+lSReQXCeUHthXGEtPmmMBaofiKlC/pDmw== 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=DWLu/JE+u6hxM7FhsTUXaHh9ubUKf26RuDs1CI3oGtU=; b=YTrr0HXAm2xJhQlLzhYxNy0OEB8BNQUvLZ4vPnMnQyR+3X7TDkLXjBaqVPyL7ShWyb3dbi/0Jx7Y4N9YzMcFqNkzWqdhSiqvvQZ13KUEbI3oWi75veuwNAUUsC9eb7/L7XILt9Jzk/cspWo9WSYLX8dxXxvH71HtD/DBF0fOE84EfTvBdgArB12V1FrK41s8v/7YaRNMFjKVQRKXSxvgekNxC4a/ZUAMdxKa6f4JAEPQGh0OvTkgT2im7YzSQ2triE1M+wdD6te3qLxECMq+DI7j0+EsTwBOp5C11NbZ8OP+8PeW//rU1fY7cu0mUH44a8CtSl6O9c2uq/jTMJBWew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DWLu/JE+u6hxM7FhsTUXaHh9ubUKf26RuDs1CI3oGtU=; b=oMl4N0uDROUhHTbWxHl1P9qBOcXiCuYCpp8pQumiHbKySp8hgekmVpW2JViMAWSSIbvsWmH7eI4ARdeyrQWFmSSFlz9akN1bRFsc31aF6b75Rdgr+5mwmLHQm8uP6yfGHyON57XerkgZyLhZ74k+aO2MfchAUZHotBwwPdsm+4ApKnah64sK1rJG5jphLP5xQT4oi9G4lsO6woKNZMp9u3lXHU1uaQ3nKTUinCkvolIVUPqPm2/ewALw6jZ3nAf7dX9+i629tFWADCKfaLzyK36clgqhMHaHL0MS8+vsGtXJyTnX5QxtqIn8zqrcsFHGHb/2IpUqOtEu4zq+0LvNVA== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by IA1PR20MB5076.namprd20.prod.outlook.com (2603:10b6:208:3a3::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Tue, 26 Mar 2024 02:37:33 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819%2]) with mapi id 15.20.7409.026; Tue, 26 Mar 2024 02:37:33 +0000 From: Inochi Amaoto To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Minas Harutyunyan , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Chen Wang , Liu Gui , Inochi Amaoto , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 2/2] usb: dwc2: add support for Sophgo CV18XX/SG200X series SoC Date: Tue, 26 Mar 2024 10:37:29 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: X-TMN: [yWIyvb07sOHm66JIvr9PCBrHsJ/fULtGE3zskggyy7k=] X-ClientProxiedBy: SG2PR06CA0251.apcprd06.prod.outlook.com (2603:1096:4:ac::35) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240326023730.381199-2-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|IA1PR20MB5076:EE_ X-MS-Office365-Filtering-Correlation-Id: 242dad94-05ac-4a02-a957-08dc4d3db0cd X-MS-Exchange-SLBlob-MailProps: 7J/vb0KDx3ghsXKwRy/t5h7NdWkXmzB0Pm/W7vndUc5vU6T9df5HAnE+MO0oc7OKWslzlvdWx8jHP+clYbdi4kM9aH4N47QiexEqUX5m5uDL06jOkicKx0JKKZcrfuaq/AB359Mw9uGMqtb5Zs5wuW9RoaA7t/Y1WZSZXft5+7ik2m6ZyCUEIdYi+QzaYkJHizxgjtEht7csbc8SSDmqpYfFPIszjhN2x4C4wuF8+BRNgeoJXrv/+zTaYk1Ug/d61BkuL7GldUCIVHJ+Cbe8Pal9Pta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KDhHeEHROKVhQr8GtB3552rOmTZ+nHXa0NGm1J3KBSCWEldT+ewMn8kHGzfgM0q9LLaLEpp2qHQyx3or6eN8zw+xHCoPnAxCCjZzz+G0FwwRnKkRx0u1hjnz+J7pTbH3EtgqUpIvc6EqLE8WJPoQRCK0CLzg3lsf5ZY+rPDTEaBIYYT535ir+0QeO4Z/C9vgGszpyI7Yv8NdfePdMwigX3cvm44Jq64WeFFP6em/L/lvaegA5mZmgdYhoCGZooIUHwOfxlYz0hvNor05/WwsMK+ehBqxwEPN6Inl6ip5599iW5LagHIaZtkouuiAxTSEz2JbVacgSAo3EO3kn6JvFETYxi1id4DV+3RsMz7WtSCQbzX/4LnCz0++GZv9lUiH X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 242dad94-05ac-4a02-a957-08dc4d3db0cd X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2024 02:37:33.8181 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR20MB5076 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240325_193737_108883_727D8064 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add params for DWC2 IP in Sophgo CV18XX/SG200X series SoC. Signed-off-by: Inochi Amaoto Acked-by: Minas Harutyunyan --- drivers/usb/dwc2/params.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) -- 2.44.0 diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index eb677c3cfd0b..171fcb34eb75 100644 --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c @@ -201,6 +201,25 @@ static void dwc2_set_amcc_params(struct dwc2_hsotg *hsotg) p->ahbcfg = GAHBCFG_HBSTLEN_INCR16 << GAHBCFG_HBSTLEN_SHIFT; } +static void dwc2_set_cv1800_params(struct dwc2_hsotg *hsotg) +{ + struct dwc2_core_params *p = &hsotg->params; + + p->otg_caps.hnp_support = false; + p->otg_caps.srp_support = false; + p->host_dma = false; + p->g_dma = false; + p->speed = DWC2_SPEED_PARAM_HIGH; + p->phy_type = DWC2_PHY_TYPE_PARAM_UTMI; + p->phy_utmi_width = 16; + p->ahbcfg = GAHBCFG_HBSTLEN_INCR16 << GAHBCFG_HBSTLEN_SHIFT; + p->lpm = false; + p->lpm_clock_gating = false; + p->besl = false; + p->hird_threshold_en = false; + p->power_down = DWC2_POWER_DOWN_PARAM_NONE; +} + static void dwc2_set_stm32f4x9_fsotg_params(struct dwc2_hsotg *hsotg) { struct dwc2_core_params *p = &hsotg->params; @@ -295,6 +314,8 @@ const struct of_device_id dwc2_of_match_table[] = { .data = dwc2_set_amlogic_a1_params }, { .compatible = "amcc,dwc-otg", .data = dwc2_set_amcc_params }, { .compatible = "apm,apm82181-dwc-otg", .data = dwc2_set_amcc_params }, + { .compatible = "sophgo,cv1800-usb", + .data = dwc2_set_cv1800_params }, { .compatible = "st,stm32f4x9-fsotg", .data = dwc2_set_stm32f4x9_fsotg_params }, { .compatible = "st,stm32f4x9-hsotg" },