From patchwork Wed Sep 25 23:42:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 174432 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1313453ill; Wed, 25 Sep 2019 16:42:32 -0700 (PDT) X-Received: by 2002:a17:90a:c096:: with SMTP id o22mr305307pjs.29.1569454952343; Wed, 25 Sep 2019 16:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569454952; cv=none; d=google.com; s=arc-20160816; b=g/mQiv2Oul6+OhA+vVyyy5IJnduQkMeE4zbh4uY6rwfmE4nTlXnJG4MJByMb81e1B5 1VlfqgKa8WU/tshghXnIKHitNrpRJP8MsOgcKuWcLTAM8BvLVJbSA4ce4eSi7HRLeDx9 SZY1XlpcDbCDTrBd95j9oL47yWoPuPB3Zq3c0E2v6ZjYhQVr1tpZSE9vPmn/yWcKkktM 39PMxZxq+m/VCir6vZNaYdgIK5ph3tdVWiMsmOZa6B9yfC4PKnIhuR0f7c3X/3Kzyqpr 3hlIV5No+jpWr2Uxfi2UiOOuFCtxWYukV5B4VLw11YLtkP9kyxBWZqs9OefYh5xxkcHg DtsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BqAPbs/wZUWEhGivyo3NLB3Z3ocJiJHq8gLjsQrSOVI=; b=ocG19tf93MBt7kF69g23wLT+OYwLF8lf9gmgSgdhgbIlvd9rskxZKzYih1xi9S4QCN XvvTK9zbQc9lQw72t26hXZ41DJhUtQdn0wL8fQcSZA4a1hr4lFdzEOC2Y1GewuJv6TD7 04zaTTJTv7Oe42nnwG+iqcmJYJn2hr2JpQZr7ZIIZdKl/EG0lSMz9pOKw33XyBNw9YcY GtJtMjNIKh8iIZEQ4bffiKLwFF13CMbn4gBf73sm+MwkKbV7Mfh9ZJkrOrUK2X+VTSbk d5oBpeMAZdPKG5JfzBFekwqH5Rp/kOwbtHWr7buI/vklPXJ5EmQ88QAIZbJmA70aYdhJ HAYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l2vPkiRm; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h6sor261317plt.63.2019.09.25.16.42.32 for (Google Transport Security); Wed, 25 Sep 2019 16:42:32 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l2vPkiRm; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BqAPbs/wZUWEhGivyo3NLB3Z3ocJiJHq8gLjsQrSOVI=; b=l2vPkiRmlXdJHN6GeFN8Z8GiZhmhg12dGgNyE97gFX1t7ha+98miz02tsg7Iek0dCg YoIg336NYQakybahq3pjXQV13OnYmh9bWgL1jRY5E9CDaycXkOrtT5JroxmvjkHypxwI gnxiap1CkAzXLcRY+iCMlLe9fxDBjp8FCX88MgFfNwx8Vr2u+lX9qbsEuSBaq2xUjRcm znMZhxhAgK1OX2g9PYKludIijQYdXzfey0dI+iQlBB6LHM21pWsoyNUlz7DGJE/4PwO3 E1Bc5MEG371EEWMJNAGOFduBccgOxXKkgNPh/klrf+8pgvOIaRzM2e43J2lr/WYyce8k JjZQ== 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:in-reply-to :references; bh=BqAPbs/wZUWEhGivyo3NLB3Z3ocJiJHq8gLjsQrSOVI=; b=Gj2RZ+QZ0zEOtzN00Sy015SWBcEsJy22xCF8jDieS0tARggxCWW12oqsnePZFWq6do s52uw5fom3Q8LhDTepRWdk+s8A7OGFnIzj9pLx75QxQJvmT/Bw9+FBVy1JHNorGmO19K dNddfDfIA+LfPPLjUM7XAczwRq/DXnQzsWlEjRyJdHmoyh7RnYGrmHRZjuByb/qa3cWq XV6NAOrHoXe9M+OzpobICjPpciXPkd6xPvvs4YpvUkyWT5hBWGOxQw3EH/bVa0Lx4C2s oID+o4HiE8oMq1uTfqRp5LtvboTkopR/WIfOldnyD/WVC37PoCJxQfSMrFuSeDYwr7Td C1PA== X-Gm-Message-State: APjAAAUHb1vM4bCN+jDt4uhDlHBWBL3Cu99Za+Febfn5liI1FvmmbcVk vssxcaJ0mkddOTvlQxwCLb/lq042 X-Google-Smtp-Source: APXvYqzMUd03gD/db63Y3t5pD+j0LGb6omLi0D1rmvHroR9ZzP4ylqsiPQgYxlYCCvBxuIxa9kobfw== X-Received: by 2002:a17:902:6bc5:: with SMTP id m5mr707175plt.169.1569454951894; Wed, 25 Sep 2019 16:42:31 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id d1sm131127pfc.98.2019.09.25.16.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 16:42:31 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Greg Kroah-Hartman , Felipe Balbi , Andy Shevchenko , Rob Herring , Mark Rutland , Yu Chen , Matthias Brugger , Chunfeng Yun , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/5] dt-bindings: usb: dwc3: Add a property to do a CGTL soft reset on mode switching Date: Wed, 25 Sep 2019 23:42:20 +0000 Message-Id: <20190925234224.95216-2-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190925234224.95216-1-john.stultz@linaro.org> References: <20190925234224.95216-1-john.stultz@linaro.org> Provide a dt-binding for quirk needed to do a GCTL soft reset on mode switching Cc: Greg Kroah-Hartman Cc: Felipe Balbi Cc: Andy Shevchenko Cc: Rob Herring Cc: Mark Rutland Cc: Yu Chen Cc: Matthias Brugger Cc: Chunfeng Yun Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: John Stultz --- Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt index 66780a47ad85..cf4ef6c22fb3 100644 --- a/Documentation/devicetree/bindings/usb/dwc3.txt +++ b/Documentation/devicetree/bindings/usb/dwc3.txt @@ -77,6 +77,8 @@ Optional properties: during HS transmit. - snps,dis_metastability_quirk: when set, disable metastability workaround. CAUTION: use only if you are absolutely sure of it. + - snps,gctl-reset-quirk: when set, GCTL soft reset will be executed on mode + switch. - snps,is-utmi-l1-suspend: true when DWC3 asserts output signal utmi_l1_suspend_n, false when asserts utmi_sleep_n - snps,hird-threshold: HIRD threshold From patchwork Wed Sep 25 23:42:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 174433 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1313478ill; Wed, 25 Sep 2019 16:42:34 -0700 (PDT) X-Received: by 2002:aa7:9e01:: with SMTP id y1mr304028pfq.175.1569454954784; Wed, 25 Sep 2019 16:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569454954; cv=none; d=google.com; s=arc-20160816; b=Fui0lBA0EOGT8/wGpXm/sBkQPmc8toNCj18wVpRQywvFLLo2y0sDP6qdeqbKnAygSK On1L7gSbSjht805Rog/0Mrq6zQNzX1aMMIW8zAU0w3BT2LYyckgeW8pSfC8Er1xr0Vz9 xki4fWt09PfnP3qG/KxQ7nIkMFNPG4uylJgWpDf0X7frqYOJuynbh39tevsLxwTwcWwY VaGMLwuzGC9R+B0G5uKinLW+GBlzJVAvuWEv354ifiMk2AiSRivuBuxA02MYqDdli78o LMFgyreYN0iFBX2MjWPNIBSxoSBptFygp0GZXfR1MCtkXCywZoh/k5E0q4hY6yNZ9DIW 53BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YKLbWLWjJ/GA5qz2gzrLI3oAv45tZggVEaoyYmAEWtc=; b=sBSyYqcjX11/QPi5QfRNFJi2oY//aSO2OgxNLfER46bkCr3t4BKbyBF1tDhwxgK+Nd AKcvemGnA9FxORHtSXHLeXFmx/vnHGxezunIJOrsuIQitGW21nO7XgO1IHcyJOX8YC/q S0TjISKo4S71x1iZCok50U0TRwrHxyiOQja7o0JE45KsK46fwQr45LYKI5iGI8lk24Ho 0HK9wTdNSWr0PhMRzo9+32BKGT+Q8AlXbzptSNmd9ihzkW1reuNn7vELu+1s4hC1Sk4r yMYrDuNZjGFuMsEc+5/gDfMrHdX52SkeW9zYbObmiMq9Z6rI/EkbhCLaSagtJyET2ev7 Y1/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l1rHJE7h; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id r6sor249441pgs.80.2019.09.25.16.42.34 for (Google Transport Security); Wed, 25 Sep 2019 16:42:34 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l1rHJE7h; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YKLbWLWjJ/GA5qz2gzrLI3oAv45tZggVEaoyYmAEWtc=; b=l1rHJE7hxxmeTFkh1J9YV8QMV1yV0qFXV/DmDWNsLVb2CYq7qYSUgzimth3Sm/WpfC YWcrIQUFR2O2toA2iR/QzLOROQiwG171rBZSbi0sjNtVqYU9zdends52ay6d2mJkaVFC FtShBLWc9mElkWRSKgv70PgTH40gn+Tc8nJi53MKUQNJZuSmlje0XLRZvVRfk85PwRL0 W3vhi922biTqSjfQTQnZD+R33u6YXHQoFZ8QthoyMdEBFMRdrQrhrzyFhUDHaSDfyRVv EP6IDGGBXKPs00w/3avZo8yti/H9cxL6e/7vcJNssTDqNu5lRTEuw3edBZQUJPxyoXYH XP2Q== 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:in-reply-to :references; bh=YKLbWLWjJ/GA5qz2gzrLI3oAv45tZggVEaoyYmAEWtc=; b=VXYXmyprp/y2MP3veCcyURSzz5jeM3gTEEKRluZfUs7+w63czBXtgE2HXasD2iXgcp OkNoL0cORLO8Eo8myDgUY6vCDq4xs7CR6Xu9BMhnPBacwZMn8SXxTAS8kt3oe2dA2VZd cXWpiO2C4qLZJ29iz8EmTP+l1sgf7xfpNC+DigKhhDI5F/UJDeVMOd/M4A2xTy3iH8fU x81aSgQRSx+t57cG53XQgfMDz+OVgUkHNnl3Ig686g8vli/7PcvF3SMcJFmQ0dpFu/3K BYSL4rIdhmoy1oxYxCj9fRNI4SSnPdJiI3fOZOrUMZuBHT50fxfPvpBGFpPgZn6v/wIR b3aQ== X-Gm-Message-State: APjAAAV2Q6A3P4Dh+eUVejWI6O3nZ7TlCITtmJb6A5RH4bSbBoLfTigB pPHXi3iBaKhozThZotKdsviEqGHX X-Google-Smtp-Source: APXvYqx/aC5q8MMHMmA8YIA0gNGSPcJcNCThJHGYsY3eE0QwFH+ToKX9bx4/+M03ERzZoDMMHZ0kbg== X-Received: by 2002:a63:ff1a:: with SMTP id k26mr471666pgi.154.1569454954359; Wed, 25 Sep 2019 16:42:34 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id d1sm131127pfc.98.2019.09.25.16.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 16:42:33 -0700 (PDT) From: John Stultz To: lkml Cc: Yu Chen , Greg Kroah-Hartman , Felipe Balbi , Andy Shevchenko , Rob Herring , Mark Rutland , Matthias Brugger , Chunfeng Yun , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, John Stultz Subject: [PATCH 2/5] usb: dwc3: Execute GCTL Core Soft Reset while switch mode for Hisilicon Kirin Soc Date: Wed, 25 Sep 2019 23:42:21 +0000 Message-Id: <20190925234224.95216-3-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190925234224.95216-1-john.stultz@linaro.org> References: <20190925234224.95216-1-john.stultz@linaro.org> From: Yu Chen A GCTL soft reset should be executed when switch mode for dwc3 core of Hisilicon Kirin Soc. Cc: Greg Kroah-Hartman Cc: Felipe Balbi Cc: Andy Shevchenko Cc: Rob Herring Cc: Mark Rutland Cc: Yu Chen Cc: Matthias Brugger Cc: Chunfeng Yun Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: Yu Chen Signed-off-by: John Stultz --- drivers/usb/dwc3/core.c | 20 ++++++++++++++++++++ drivers/usb/dwc3/core.h | 3 +++ 2 files changed, 23 insertions(+) -- 2.17.1 diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 999ce5e84d3c..440261432421 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -112,6 +112,19 @@ void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode) dwc->current_dr_role = mode; } +static void dwc3_gctl_core_soft_reset(struct dwc3 *dwc) +{ + u32 reg; + + reg = dwc3_readl(dwc->regs, DWC3_GCTL); + reg |= DWC3_GCTL_CORESOFTRESET; + dwc3_writel(dwc->regs, DWC3_GCTL, reg); + + reg = dwc3_readl(dwc->regs, DWC3_GCTL); + reg &= ~DWC3_GCTL_CORESOFTRESET; + dwc3_writel(dwc->regs, DWC3_GCTL, reg); +} + static void __dwc3_set_mode(struct work_struct *work) { struct dwc3 *dwc = work_to_dwc(work); @@ -156,6 +169,10 @@ static void __dwc3_set_mode(struct work_struct *work) dwc3_set_prtcap(dwc, dwc->desired_dr_role); + /* Execute a GCTL Core Soft Reset when switch mode */ + if (dwc->gctl_reset_quirk) + dwc3_gctl_core_soft_reset(dwc); + spin_unlock_irqrestore(&dwc->lock, flags); switch (dwc->desired_dr_role) { @@ -1316,6 +1333,9 @@ static void dwc3_get_properties(struct dwc3 *dwc) dwc->dis_metastability_quirk = device_property_read_bool(dev, "snps,dis_metastability_quirk"); + dwc->gctl_reset_quirk = device_property_read_bool(dev, + "snps,gctl-reset-quirk"); + dwc->lpm_nyet_threshold = lpm_nyet_threshold; dwc->tx_de_emphasis = tx_de_emphasis; diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 1c8b349379af..b3cb6eec3f8f 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -1029,6 +1029,7 @@ struct dwc3_scratchpad_array { * 2 - No de-emphasis * 3 - Reserved * @dis_metastability_quirk: set to disable metastability quirk. + * @gctl_reset_quirk: set to do a gctl soft-reset while switch operation mode. * @imod_interval: set the interrupt moderation interval in 250ns * increments or 0 to disable. */ @@ -1219,6 +1220,8 @@ struct dwc3 { unsigned dis_metastability_quirk:1; + unsigned gctl_reset_quirk:1; + u16 imod_interval; }; From patchwork Wed Sep 25 23:42:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 174434 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1313504ill; Wed, 25 Sep 2019 16:42:36 -0700 (PDT) X-Received: by 2002:a63:78cf:: with SMTP id t198mr440875pgc.227.1569454956481; Wed, 25 Sep 2019 16:42:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569454956; cv=none; d=google.com; s=arc-20160816; b=02RNunYc3KbnErJP/TwCJXJkBMWDcDx1Vs85JXIx0zEnvrK5kHvrrdWOo6/BOVjaxu DT7dVeiBRgM0opolUx23uk40KdLXmdMFqfOhTpNM2XaUIdR0r0DX3WIXUa091huDqEAm f6WDOvD4gzFYO4JSoAzS8CPpb2/uHjSclQuUInMN5SBRTsEuhZrgAiokEBsVSKeh5LPM T60f0YpxlZrXYEEVr9vjGQrmrJHSD+7z/0ECRxcF1nrF5TMt/JAgf+nQAT9iurBN7NnG osF59XvmyoloCp+uOEiPETrzYMDmN8J/Z7I77bq3ADVVJiFBpiw1mqDOdMA+c98T3zqy J/0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oFS6SaDoQ5fogHAHlhUMYfV/B7rrjNj6XYxhAXSXdHY=; b=HRzT+rpqJHU/3oZQVniC5Po3WmIOquq9lBDq8wRqjfJb23FLy+rdUK41C9Rm/dv52H 0Q4Bv2++pbw8Nv0RzKPQ7STEqBtCJHQ0XBEkqyLF2wc7Mt7FBgwGeZpCYGPt/pUIe4dl RTTKM0xpVH+Oii/+FB3b0FKBlsiBNfzM/qABMxJsm+P7km/LcNSFB8WML2+kSilkIX9p P+knPYPN9LpWvlh/HJ2/LOHe5Fx2A4n+IASRaK1hxQPvhdkEIgpMzieJJp5H/4hDpdsf z7GJLNCwy2/PvIgxiApM+zOe56ZQqlK0wGwljIlxdJPHVxx+KG7/ldUuOZryaAhfmluI v6rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XvDA+NkZ; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 32sor314599plc.6.2019.09.25.16.42.36 for (Google Transport Security); Wed, 25 Sep 2019 16:42:36 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XvDA+NkZ; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oFS6SaDoQ5fogHAHlhUMYfV/B7rrjNj6XYxhAXSXdHY=; b=XvDA+NkZlQlzPntPpjyLnCwo/WMpiawNV16X6mS3GsH4vcvrLxIwDzxYjPuOD4qfwe bTRHEmnPfk0/rdKZnFAtoCQ/uIhxYV+bdRcwqF4ULyV+nZYiAAeF3Hi+sb9L4Czig47U /yVBx0tgtnVfRk5pxFgslL0VtxWhQD9bw6cQnOCIGsZHsRmU5hkfrqI011qcoF/iRPYA i3HVbdthKqwyEnRg6KjgxzIkY/XUU6CHm6+e6rL7aUTdfykUhIvWnKW4kc9siqTAtV45 O2D9wxGy8ZzlLJort0W50oCWJ+aH9H4HR9Veu43IDm7Sm29yvfGM/qaBLLF3Fzsi11R4 0JtA== 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:in-reply-to :references; bh=oFS6SaDoQ5fogHAHlhUMYfV/B7rrjNj6XYxhAXSXdHY=; b=sXX5OTfyAB2H1Ooc9DaoDCnUNhU03rLioIfmawmHUkamSATR/LOAxnkl4FcnZdfnlu RCJfqLe6wadTwjgwvWgdrpcQULeU7VDTZVyUCErfXb/ulmkIP+l8khdZjWNLbtWacdjl 7fX+EDj9CciH/OvYAQeE4DRVnlgZ4kWMRdEExfqYZo6bsGc64LueNygBKjNRn98GjIef svwUQ7WtQSGFtc+dX3Hadoxu8Z8Sn+GY/3Dlx1Y+gzDCFj6gHnmw/6QmqDfZIDHoz9Ig aF+QhL0Vl5kbjGFKLpnIQU7uK9OaCTTPLM4+pC2ORLr76t0vWdAaXxiFWC9toh2gg+zV F3iQ== X-Gm-Message-State: APjAAAVeKdZNIFvJRUpGhRhQ2ktzLUe+WJYEqubtgTCTFKSo4VhPbCj2 TJQ+r8cQNLM12zMV0hif1hSuWZzY X-Google-Smtp-Source: APXvYqyOtcEZXkAQw/XIO3JzERDkezLxycWYYHw08A6acjxATTtdAu3X9Fx8RAKp+WZv6SnW21J0rw== X-Received: by 2002:a17:902:aa07:: with SMTP id be7mr738556plb.172.1569454956010; Wed, 25 Sep 2019 16:42:36 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id d1sm131127pfc.98.2019.09.25.16.42.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 16:42:35 -0700 (PDT) From: John Stultz To: lkml Cc: Yu Chen , Greg Kroah-Hartman , Felipe Balbi , Andy Shevchenko , Rob Herring , Mark Rutland , Matthias Brugger , Chunfeng Yun , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, John Stultz Subject: [PATCH 3/5] usb: dwc3: Increase timeout for CmdAct cleared by device controller Date: Wed, 25 Sep 2019 23:42:22 +0000 Message-Id: <20190925234224.95216-4-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190925234224.95216-1-john.stultz@linaro.org> References: <20190925234224.95216-1-john.stultz@linaro.org> From: Yu Chen It needs more time for the device controller to clear the CmdAct of DEPCMD on Hisilicon Kirin Soc. Cc: Greg Kroah-Hartman Cc: Felipe Balbi Cc: Andy Shevchenko Cc: Rob Herring Cc: Mark Rutland Cc: Yu Chen Cc: Matthias Brugger Cc: Chunfeng Yun Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: Yu Chen Signed-off-by: John Stultz --- drivers/usb/dwc3/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 8adb59f8e4f1..81907e163252 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -270,7 +270,7 @@ int dwc3_send_gadget_ep_cmd(struct dwc3_ep *dep, unsigned cmd, { const struct usb_endpoint_descriptor *desc = dep->endpoint.desc; struct dwc3 *dwc = dep->dwc; - u32 timeout = 1000; + u32 timeout = 5000; u32 saved_config = 0; u32 reg; From patchwork Wed Sep 25 23:42:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 174435 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1313530ill; Wed, 25 Sep 2019 16:42:38 -0700 (PDT) X-Received: by 2002:aa7:9ab5:: with SMTP id x21mr329404pfi.252.1569454957987; Wed, 25 Sep 2019 16:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569454957; cv=none; d=google.com; s=arc-20160816; b=qxjR/WLILJPSTDg+LTLX1f7jkuWmDZC7z2OUe978h5su2rBnucd79SyKn9saNLH2/S UAbIRQIPoVAdLZDi277ZCzYIqUmkfV6UX5+RgQioqb8CZ4GCXOfyQw0NI7jYSjEbVptS xtWm2YMkzjlvQbrI3Fx82rWQVnweZCGirSshANKZgnF/xNhoinezMpw6VFdos7W7+yPe Q9NYpeq6ZMclfySR9/57grkFH8zE9uYFydpU7UzU0HkFuTi00jWU4mHoy0HgryGg1oQj Q7XmEX4wed5oMzlqcepnMPwYeOucM9+CvLOwPeSE3zc6eDF6JKIdIMqFktAwUMXQI2qB qn+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PmHyEUv1I7IOVWdSAFJf5v6u4/LdnM00Z/zUoJS1vWs=; b=r7yhFYSmrfuOWcrg9Fc+dvYQBSvNTnvvzQnHyIgEOdUIexKicP4ggjgyH8Ia+ZuY+2 hkOGji45oNMfgMebwuLlf92DKs9nI+/6hUBaQ1dbyg1o1X0mhjc5FzdMOtraZj60Jp70 PZ7wGwlOJg8k9c5ivWtLLkAugCbujUeH1sb4DwDgRMZ+RDWcn4/kIxp3jbSZWPcu/uV8 gZj9VoHvwKhiiuuC6FrJFzmuSKOpPbRNjfsqk8etzY11JyrqVgGcwZ+XOmr50gOQj5hK Y3mR9uDCUqGimf4pzRKSfFz9BwhC93VALeSfhwiGULVi6YYtDznuR9WsmzymYAqxeLUP H/RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F2fzRlaL; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id n10sor574024pjp.2.2019.09.25.16.42.37 for (Google Transport Security); Wed, 25 Sep 2019 16:42:37 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F2fzRlaL; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PmHyEUv1I7IOVWdSAFJf5v6u4/LdnM00Z/zUoJS1vWs=; b=F2fzRlaLxb7Dor1xMHruTiW3m8u0J71MgkiCzmctu3CaYBMx9IqtG0t1zNrX+rO5HU Lmm2w1A7qm0FeajykEQHXtAEU9inq9YurkMfU5LlHwVzUfkQ4cjhLNqDae8zgQnHjmWS XxP4pApy0dbOcpsjTnPOOS9M9aGKKRAtCeONkyUl1+VCst4I217sYUWXL607uYicsNqA 7agGaZFFLEzvqTbsXgYcs1/F3F13cyeI4mwamCJyftXMV7a1gzHmDptgKaP1YnA0m73K nJfO5SbB9E5w4KLCqkKegUw3tjhBE9LwErWfabsl6HStujRiVYKvSZo/DDlEZJ3ljK+H F4pQ== 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:in-reply-to :references; bh=PmHyEUv1I7IOVWdSAFJf5v6u4/LdnM00Z/zUoJS1vWs=; b=I90PRhCQigF+SbZ5F+vSe85n2LQQ0cFA18gHyI69QdLNonHyvXxwEsvc6083RIzO2q 36OCxIw32KhbLMrQcArJ5ub5kP0hEHIT4cySvdnXKLHBO5bitSCuJMwB9zW9dUhm9som XVesb9lR9x9ie/oZZjO3xFYolP0Kr6/l2TKZ7U6RXy9pw6bxYNPWEytW8UnylX+YTjlG 09dwL1rrCX8Fm3E2TLSWQrAbuR/d9fEsKVt5NvWltUlxRFK35zemIZSHl6ILoEtgh1Dj CF77QHiFR+hzapVHcpAP5sCm/ZmS5RbOezyb5gYeYcKWAeXYzd5Q0a8ZrgRVqbhc3t90 QGeA== X-Gm-Message-State: APjAAAWlxBrnMk6oWetHQUAxI0zEf/ox7AAyPNl+7NRteDTijwTyJAv/ KIdIW/8xPxOI9+5Xwi0rFekzY/jH X-Google-Smtp-Source: APXvYqzckYaJvastZyMKVUDhmfHnddTevUdoy7ojBqVA4rHuXKdLY2ZSTQjIvMnlLnPMg3zPgDgdaQ== X-Received: by 2002:a17:90a:ff18:: with SMTP id ce24mr267275pjb.123.1569454957565; Wed, 25 Sep 2019 16:42:37 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id d1sm131127pfc.98.2019.09.25.16.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 16:42:36 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Greg Kroah-Hartman , Felipe Balbi , Andy Shevchenko , Rob Herring , Mark Rutland , Yu Chen , Matthias Brugger , Chunfeng Yun , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 4/5] dt-bindings: usb: dwc3: of-simple: add compatible for HiSi Date: Wed, 25 Sep 2019 23:42:23 +0000 Message-Id: <20190925234224.95216-5-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190925234224.95216-1-john.stultz@linaro.org> References: <20190925234224.95216-1-john.stultz@linaro.org> Add necessary compatible flag for HiSi's DWC3 so dwc3-of-simple will probe. Cc: Greg Kroah-Hartman Cc: Felipe Balbi Cc: Andy Shevchenko Cc: Rob Herring Cc: Mark Rutland Cc: Yu Chen Cc: Matthias Brugger Cc: Chunfeng Yun Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: John Stultz --- .../devicetree/bindings/usb/hisi,dwc3.txt | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/hisi,dwc3.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/usb/hisi,dwc3.txt b/Documentation/devicetree/bindings/usb/hisi,dwc3.txt new file mode 100644 index 000000000000..dc31b8a3c006 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/hisi,dwc3.txt @@ -0,0 +1,52 @@ +HiSi SuperSpeed DWC3 USB SoC controller + +Required properties: +- compatible: should contain "hisilicon,hi3660-dwc3" for HiSi SoC +- clocks: A list of phandle + clock-specifier pairs for the + clocks listed in clock-names +- clock-names: Should contain the following: + "clk_usb3phy_ref" Phy reference clk + "aclk_usb3otg" USB3 OTG aclk + +- assigned-clocks: Should be: + HI3660_ACLK_GATE_USB3OTG +- assigned-clock-rates: Should be: + 229Mhz (229000000) for HI3660_ACLK_GATE_USB3OTG + +Optional properties: +- resets: Phandle to reset control that resets core and wrapper. + +Required child node: +A child node must exist to represent the core DWC3 IP block. The name of +the node is not important. The content of the node is defined in dwc3.txt. + +Example device nodes: + + usb3: hisi_dwc3 { + compatible = "hisilicon,hi3660-dwc3"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + clocks = <&crg_ctrl HI3660_CLK_ABB_USB>, + <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>; + clock-names = "clk_usb3phy_ref", "aclk_usb3otg"; + + assigned-clocks = <&crg_ctrl HI3660_ACLK_GATE_USB3OTG>; + assigned-clock-rates = <229 000 000>; + resets = <&crg_rst 0x90 8>, + <&crg_rst 0x90 7>, + <&crg_rst 0x90 6>, + <&crg_rst 0x90 5>; + + dwc3: dwc3@ff100000 { + compatible = "snps,dwc3"; + reg = <0x0 0xff100000 0x0 0x100000>; + interrupts = <0 159 4>, <0 161 4>; + phys = <&usb_phy>; + phy-names = "usb3-phy"; + dr_mode = "otg"; + + ... + }; + }; From patchwork Wed Sep 25 23:42:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 174436 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1313563ill; Wed, 25 Sep 2019 16:42:40 -0700 (PDT) X-Received: by 2002:a17:90a:7f95:: with SMTP id m21mr291670pjl.73.1569454960478; Wed, 25 Sep 2019 16:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569454960; cv=none; d=google.com; s=arc-20160816; b=EbeO2mVNAlVI2mWcedykE6GqNnxDE1DJ05Siw65mrnu7/FGbqYVx/+H+Zdq1aMHlrk UcG3eq0d3n1FU/+/kNLje/dujS0JQroykPWqge1raLXDhuJxTvd2f9C/fBCohfPJ0vUC 8tF1XakWeew7Kc7lnKmsj0sCBpi/ucBdcONLH4b8MrDQqJmJ9uR/ioe13cTrctsRuliD zplOAtKo0vSWyErPSS8cr84SYQLtvj+exAyMhIIyt20W+tTpYryusyqydJmgzy3BsvoE imOPaiRKcSWyhCebHsqSw2llETMvc3L5B0wL0SGOyf1uQRM3XWgbc+n21IUUTYFSt7th CTVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1oH7lj03wYz79i/zPzaUWTT6QxHftIiKZMYorEdLMBo=; b=lXYzAw3zKUF1cdxmEvLymMwt4gCCD7eyJY/g7u+/U8GsBYR0rmXMIc54ru6vdbB7W9 D+kkFqTilWnhthAO1l+skmyJPQwchojGeQ4guCEBa7J2N6M1FmhG+wcJn/SUOblLi9p2 z/9cb1rkt9iCzKtnd5MUoVzkQY/w4Fdvtcu9FoXBgkFbz5KAplngWuM39WP4fCvpHkIF UyhmyF7AHeZTGIeT+IgNRID1Z/HxoG+UNSQbHt7qzS0X/bWtbRFxeSwysohXt3rdDKBK v7FSCFFMqOW066eDh/XRxEJo+1RGn4SCJU5t2q2xXANpc4Ss8JQYtSxEy0RJqZPoAtrd Ft3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SwSWOlZd; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id c12sor250415pgw.75.2019.09.25.16.42.40 for (Google Transport Security); Wed, 25 Sep 2019 16:42:40 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SwSWOlZd; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1oH7lj03wYz79i/zPzaUWTT6QxHftIiKZMYorEdLMBo=; b=SwSWOlZdAHc54NN1P9/DI2Ev3uZ/2WR8GFuUWdKYhLAOmYqLprdUfFmMCJEqLxlumz 3gOwyocfMNPC5M7hckWXzk3Rb4ZOTIPwsJgqDLfh/tJuTauP3QP7ouMIgG2co4Dxsh2N ONNf//SkblbTzF6TOSU4VjZUHtJE/eqTSl+FUEtAm/JAnmTR7oFsPZnkStJMlK3EmNyU x+D9tbHrBIS6nv+BjgNvZ2Pnzwkar4rUHApgf6W2gTINQOWudc0WUMvfGmCPFC4pDIcP ztFQcEf7Wwl1j8gw1Vtii9E6qVYU6UfUWSHm+di9rXUEWL1caDGAOutBXIaEGkH8m8tx Jstw== 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:in-reply-to :references; bh=1oH7lj03wYz79i/zPzaUWTT6QxHftIiKZMYorEdLMBo=; b=lQQjY++8hrpE+sjFCdUF84lNc6Cgzbr7kMA47Aj4zJiD7wTrHa3d00mUlcwrxREaxv NeaCrfymetZ9FvlAU8VfJkVVGOsmd4r6YWCAHaMkQFY/yxZ/58y3zZhUIc/TlXj/Ub8b ritHKAhBgmWmZprBvQJhKXQG8Bun1/yAZ/Irzr3b0EX18cxJf7MxkaWraxayJRisM5dP Q7GwCxpmFQbmohGtVK9WutaUgdKz3Zhz1d9kpSagtOWULNM7m7n2Jf0aqWc/Cxel0MAS zvaLBqcSow30PY3xvQkslHNbm7JxZqppzsWQ2ai+c7bFn0WzHhTi8hOwqx7dtgLq0IKI gRhg== X-Gm-Message-State: APjAAAWjTuCufVO1TE4HPHAVlTzssq20kLl5th34Fhj6X1QR1ffOJorM YXm1QvxFybK8Xir5yPjCcCQIE8zA X-Google-Smtp-Source: APXvYqxBu00R/fhIXx8pELMq6NqJTAGfty4xq7C26/kBFDvAHrojlE9S5uCP8hyRBRU/G8IJBrwdGw== X-Received: by 2002:a63:221f:: with SMTP id i31mr441694pgi.251.1569454960022; Wed, 25 Sep 2019 16:42:40 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id d1sm131127pfc.98.2019.09.25.16.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 16:42:39 -0700 (PDT) From: John Stultz To: lkml Cc: Yu Chen , Greg Kroah-Hartman , Felipe Balbi , Andy Shevchenko , Rob Herring , Mark Rutland , Matthias Brugger , Chunfeng Yun , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, John Stultz Subject: [PATCH 5/5] usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform Date: Wed, 25 Sep 2019 23:42:24 +0000 Message-Id: <20190925234224.95216-6-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190925234224.95216-1-john.stultz@linaro.org> References: <20190925234224.95216-1-john.stultz@linaro.org> From: Yu Chen This patch adds support for the poweron and shutdown of dwc3 core on Hisilicon Soc Platform. Cc: Greg Kroah-Hartman Cc: Felipe Balbi Cc: Andy Shevchenko Cc: Rob Herring Cc: Mark Rutland Cc: Yu Chen Cc: Matthias Brugger Cc: Chunfeng Yun Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: Yu Chen Signed-off-by: John Stultz --- drivers/usb/dwc3/dwc3-of-simple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index bdac3e7d7b18..78617500edee 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -51,7 +51,8 @@ static int dwc3_of_simple_probe(struct platform_device *pdev) * Some controllers need to toggle the usb3-otg reset before trying to * initialize the PHY, otherwise the PHY times out. */ - if (of_device_is_compatible(np, "rockchip,rk3399-dwc3")) + if (of_device_is_compatible(np, "rockchip,rk3399-dwc3") || + of_device_is_compatible(np, "hisilicon,hi3660-dwc3")) simple->need_reset = true; if (of_device_is_compatible(np, "amlogic,meson-axg-dwc3") || @@ -183,6 +184,7 @@ static const struct of_device_id of_dwc3_simple_match[] = { { .compatible = "amlogic,meson-axg-dwc3" }, { .compatible = "amlogic,meson-gxl-dwc3" }, { .compatible = "allwinner,sun50i-h6-dwc3" }, + { .compatible = "hisilicon,hi3660-dwc3" }, { /* Sentinel */ } }; MODULE_DEVICE_TABLE(of, of_dwc3_simple_match);