From patchwork Sat May 6 17:37:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9715077 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EB3EE60234 for ; Sat, 6 May 2017 17:38:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D45CB228C9 for ; Sat, 6 May 2017 17:38:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5B0D284D1; Sat, 6 May 2017 17:38:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 52E00228C9 for ; Sat, 6 May 2017 17:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=h9Z2u6Nvu1AqYcQ9/GEPNjdw34ApTNQW1RB1zd0AuQ4=; b=ie4 qnnYCHzUQ6nfCKqR4wIjMInKOp17egcSU402HMwkpycCkhfvM5gmmqAb6uNfn+Qe/5VbtD7rYygK4 elThycU9uoBVveUQ4u7S1VWYlLmbHTB0TX41uvYycn0F9WcKgR1cBullSncSZH5MNXQGecycdEq74 TJwy37lLCqBZR2ZwzN1H74xBNRWVEucMsOFU/njDJlGiXiALt6DgU7UPesiVoK3IzLODRIrNQjmTL gaVsO03093MagHf0pdyXnh5cUoazAmJNBouhNZvZOt61JAiGx5axllwcxPb5gdENica8BvmfpETHd HRFdRyR033ymkg6RrqmNJQ8vwohY2Dg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d73ez-0007ZG-SF; Sat, 06 May 2017 17:38:25 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d73ex-0007WS-KB for linux-amlogic@lists.infradead.org; Sat, 06 May 2017 17:38:25 +0000 Received: by mail-wm0-x244.google.com with SMTP id u65so7030673wmu.3 for ; Sat, 06 May 2017 10:38:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=s6GYGlNTL6FzuLUMbGy0PXiLIVslMGGKJFCIhB1SQvw=; b=XrbbXEp1Cm0705gGjvHV22tl0aGE2ju2VHizddfrbWDpO8URv5DJR5iFH4mepF4v80 A955vUTmooFi12QT1cnTI4D9MXaCjFDcd9fawcAKFhGpONXq8F6bcyRZsc6mn882F0zz LhKP9g6ha72j69rq3kQu7w5RDEibwydBAgKg/RhIHVeUVNzhSa3oVRKekw9WGuy3/siJ KMQ1jlFP+gJdWTmO2jrJd5J1K2Hrtefa0cw1Zcmsk011PyuGD3SeWwhTiZMPLkzHUOVJ oeleNNiBaoLlx0Y8DjNYNg65N6MPzwhYvTeFA/TVibLO4Xg+iPECfeqVWmIuM+RMOnpx C5gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=s6GYGlNTL6FzuLUMbGy0PXiLIVslMGGKJFCIhB1SQvw=; b=ZXYSjQkCDTSoEITw++rWJFAO/FyO19oVYxUajjl+/KoK2ZS+JcVpqRcbFS6XOXhaLg g2Ks7H1ClcrNO0Yc444yHQq+j2uc5Uv/2edfpwQHTgjPUV0hYG5p6S8uNCWwp3ebLh/v HnLHjTKP6nUTNP71rVQfQN1E7vmyujd9pNe5w/I/E44Lk3ti/bFrmr4mGgmyaWTQ6Qk7 F0DisA5EcQOPLdhhrCpWECDlYJpiWGel5igaBN+Thmvgrvalrd+HoDhjsHZUryobpZBM B7hSl7mmAar/6nnYxe9na1U3a9lrjYoqhd8nQpXOnsCTjwCpt2mpy/DPwoThzRVEOU/S khsA== X-Gm-Message-State: AN3rC/5hL/pRL8mfJXt3WzBiEcxTBrs0RfDPtHZj2QYODTZJNPC6jDH8 eGJdkeLQWxwYaw== X-Received: by 10.80.208.206 with SMTP id g14mr9694101edf.71.1494092282218; Sat, 06 May 2017 10:38:02 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3E78B041DCA91B6F8D469E4.dip0.t-ipconnect.de. [2003:dc:d3e7:8b04:1dca:91b6:f8d4:69e4]) by smtp.googlemail.com with ESMTPSA id y55sm3136491edb.12.2017.05.06.10.38.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 May 2017 10:38:01 -0700 (PDT) From: Martin Blumenstingl To: gregkh@linuxfoundation.org, robh+dt@kernel.org, mark.rutland@arm.com, johnyoun@synopsys.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] usb: dwc2: add support for the DWC2 controller on Meson8 SoCs Date: Sat, 6 May 2017 19:37:45 +0200 Message-Id: <20170506173745.19593-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.12.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170506_103823_828924_DDFE8092 X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-amlogic@lists.infradead.org MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP USB support in the Meson8 SoCs is provided by a DWC2 controller which works with the same settings as Meson8b and GXBB. Using the generic "snps,dwc2" binding results in an endless stream of "Overcurrent change detected" messages. Signed-off-by: Martin Blumenstingl Acked-by: Rob Herring Acked-by: John Youn --- Documentation/devicetree/bindings/usb/dwc2.txt | 1 + drivers/usb/dwc2/params.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt b/Documentation/devicetree/bindings/usb/dwc2.txt index 6c7c2bce6d0c..b55be381ae85 100644 --- a/Documentation/devicetree/bindings/usb/dwc2.txt +++ b/Documentation/devicetree/bindings/usb/dwc2.txt @@ -10,6 +10,7 @@ Required properties: - "rockchip,rk3288-usb", "rockchip,rk3066-usb", "snps,dwc2": for rk3288 Soc; - "lantiq,arx100-usb": The DWC2 USB controller instance in Lantiq ARX SoCs; - "lantiq,xrx200-usb": The DWC2 USB controller instance in Lantiq XRX SoCs; + - "amlogic,meson8-usb": The DWC2 USB controller instance in Amlogic Meson8 SoCs; - "amlogic,meson8b-usb": The DWC2 USB controller instance in Amlogic Meson8b SoCs; - "amlogic,meson-gxbb-usb": The DWC2 USB controller instance in Amlogic S905 SoCs; - "amcc,dwc-otg": The DWC2 USB controller instance in AMCC Canyonlands 460EX SoCs; diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index 2990c347289f..0d6290ed66ea 100644 --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c @@ -128,6 +128,8 @@ const struct of_device_id dwc2_of_match_table[] = { { .compatible = "lantiq,xrx200-usb", .data = dwc2_set_ltq_params }, { .compatible = "snps,dwc2" }, { .compatible = "samsung,s3c6400-hsotg" }, + { .compatible = "amlogic,meson8-usb", + .data = dwc2_set_amlogic_params }, { .compatible = "amlogic,meson8b-usb", .data = dwc2_set_amlogic_params }, { .compatible = "amlogic,meson-gxbb-usb",