From patchwork Thu Jan 16 14:45:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amelie Delaunay X-Patchwork-Id: 11337191 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 EC4E9921 for ; Thu, 16 Jan 2020 14:45:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CA4C0214AF for ; Thu, 16 Jan 2020 14:45:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=st.com header.i=@st.com header.b="WhGcOXtN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728928AbgAPOpk (ORCPT ); Thu, 16 Jan 2020 09:45:40 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:3756 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726370AbgAPOpj (ORCPT ); Thu, 16 Jan 2020 09:45:39 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00GEc9df028289; Thu, 16 Jan 2020 15:45:31 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=MzhYp1pTTAFs6phM/AXFgfZU+jA+iDcfjidwqVIbTe8=; b=WhGcOXtN3R71jqyfyCDB3m6yNwa2jZZ3phzNCF/y17QbIzICBWF3oHaBxnkBoct+/19W 4btgHF008LAsBx6R4iZ4884x+SwjIQyVOfkuH/Ven0NmkLw7Kn4XdJanId/qgSfD8G4G 37queaoZ/Gh9U4tYV/y/6gwcZTm7x5E4PIwQOHlYDycqeY3uWEL9jWz1BpQmUPujlmej vV4ulYkyEYW4FEOQkPPC/Cj4NfIekfJNvuQ9M8DVGE0gMR8jUx7hbj7In9qAlHJ0Rvkr 0BCZS3l0P0oWlArw3b61RKAx/+H+qAcn3Dpttg2JcnmuQtRTlFUXcCmIseKAYSaGEYNV 9Q== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2xf78shvbp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Jan 2020 15:45:31 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8E64B10002A; Thu, 16 Jan 2020 15:45:30 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7BC7B2D3798; Thu, 16 Jan 2020 15:45:30 +0100 (CET) Received: from localhost (10.75.127.45) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 16 Jan 2020 15:45:30 +0100 From: Amelie Delaunay To: Minas Harutyunyan , Felipe Balbi , Greg Kroah-Hartman , Rob Herring , Mark Rutland CC: , , , , Fabrice Gasnier , Benjamin Gaignard , Amelie Delaunay Subject: [PATCHv2 0/2] USB DWC2 support for STM32MP15 SoCs USB OTG Date: Thu, 16 Jan 2020 15:45:22 +0100 Message-ID: <20200116144524.16070-1-amelie.delaunay@st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG5NODE3.st.com (10.75.127.15) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-16_04:2020-01-16,2020-01-15 signatures=0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Adds support for STM32MP15 SoCs USB OTG HS and FS based on DWC2 IP. STM32MP15 SoCs embeds a DWC2 IP that can be used in HS or in FS, and uses an external Vbus and ID level detection to support OTG operations. Amelie Delaunay (2): dt-bindings: usb: dwc2: add support for STM32MP15 SoCs USB OTG HS and FS usb: dwc2: add support for STM32MP15 SoCs USB OTG HS and FS --- Changes in v2: - add Minas Acked-by on driver - use dwc2.yaml bindings .../devicetree/bindings/usb/dwc2.yaml | 6 ++ drivers/usb/dwc2/core.h | 8 ++ drivers/usb/dwc2/hw.h | 8 ++ drivers/usb/dwc2/params.c | 33 +++++++ drivers/usb/dwc2/platform.c | 94 ++++++++++++++++++- 5 files changed, 147 insertions(+), 2 deletions(-)