From patchwork Mon Oct 7 17:55:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 175402 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4606854ill; Mon, 7 Oct 2019 10:56:08 -0700 (PDT) X-Received: by 2002:a63:790:: with SMTP id 138mr32810583pgh.220.1570470968784; Mon, 07 Oct 2019 10:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570470968; cv=none; d=google.com; s=arc-20160816; b=qZaf5Wh4SxVg3Vr0QinYqGcWgXNVy0IQKyMEIe2LVxWqVrm2ay25zFZFoLqGLZtjVd //YCEl+bevQsUdiVQ/esEbRrexTi94xNIi5gC2noT2qd4n+cfgDclS5Nw4JQUFWYUFXi BDT/s87IgIwBzTjJ38Gff6qXdWKGuXjJ6A+M3SSN7XYA22doB2LDfxduKfay9/s4+nDp BnKF2P/9yYO3jIL8ItOBvJABWH5YWfE92krGFTslAp38lX0nst/NzCMIgz0c6cn3ggy6 E0alYgmrJjWzsEfHC1symXJ4pOt0INfefRkoGYJksHWTCUCarQm8HBxpr7cDjQLrtJkC Me3g== 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=HiX3BZA4nwi3yn+vtirdnMYV2wr+SUTKPxWxhAWpxtMPU/lCAMCRXdmSii6ijyqwhj 7TfgFRjxqjS6pdYUZWh/qZ+iB+Gea9ERVSMlpVGaZRytFMvBpX/iTVphWxkfXujelikk +wsgZ444lr9E65tLsyeLiQpoKXVwTY5TllgCNSSJOXcJL2uv6LAz6x3JbrkutcDxjVSl p8++QEADvdVtBpCeMmy9kBSLlo3cTjqRTfilluKI8nJpJpF4/pAL0QlMcZbiUyfhjwos cF62T4MEDP7ZTY3R+W49eEqTomYOE+s7v+15Tyvj45q3MGLgrCTFkhBOsb3VxAqABA19 6Bmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iD2o9He3; 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 j10sor384867pjn.21.2019.10.07.10.56.08 for (Google Transport Security); Mon, 07 Oct 2019 10:56:08 -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=iD2o9He3; 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=iD2o9He3U69q6RpgqdzxaCMFlm/KSulpW5frmlBOgF4pZ0uYO5c4gejji2HqtrMSQt 8JhD9FTrk7VwS9GB2wrv8Hba0ZUIEQWc9WuQjOP7YxIOKTfoneOS2w/L0Yeb+Ppfbn79 SWF99J20b4fqvta/nclqz+QzVDbV4tZIOQhTbnETRWBCpLXosYrqEgWPHgV0nEEVG5IE T9jbitj49uv/eck9gVcH09akU4ZrdFhTPVaX7LcuokFH39wF81h2s3f+Kx5TVU38lUwk +Sz21hlnZ3RyMbV0oqLJKa6oZqZICMTUv8vFFP0PxLuGOnFixbMAk5Z4XfOwdpENVbIe XJww== 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=EF9VdHsq8/A4ryHtQkNVRJnjUB3OKs4ZHP6SxTbByjV/tXLelT/npEdTn08cu4IK/R 7+bPu8XXd7K4agP38ebHfzi3KnvawMzzqRk++fgylCHFUI15HbyruoX6inHgVh3ppApo ElOB2DIPhqc0Hx6ItFK5Af+RkMz+j84vg2Vk7lbUrzqccQR6m6OtCoolq9N6QtZTpd2a ZuzC5ks8RfKblcxXqn6foQeLZa+HkHABkZgGl6v2jb3jng4UtuTuILJgxpW+G3wYWYAL fJdxSyH45ElCLYCKdOIRN1i1n0I1SnDoRCbpU300AAIXahsiCd2YE8t0JDou3N+J95bt 2HkA== X-Gm-Message-State: APjAAAWudMwXaWkiJUiRluyS6VrY48WNx1crbN4eaLbBOpKs+4Epxvwh ERgN18qJk0TQp56DFzTrqwsc9yZg X-Google-Smtp-Source: APXvYqz1K67CyWo0e/emHrkBQnZS3p/dyk4OrQ9OdF6w4uS+MO8fNgdny3guoMksP8tvRCj3SarDBw== X-Received: by 2002:a17:90a:fa0d:: with SMTP id cm13mr610912pjb.70.1570470968394; Mon, 07 Oct 2019 10:56:08 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id k15sm3820096pgt.25.2019.10.07.10.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 10:56:07 -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: [RFC][PATCH v2 5/5] usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform Date: Mon, 7 Oct 2019 17:55:53 +0000 Message-Id: <20191007175553.66940-6-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191007175553.66940-1-john.stultz@linaro.org> References: <20191007175553.66940-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);