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);