Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3591535ybv; Mon, 10 Feb 2020 02:51:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzwxgUx56m7boaX7IPoomlu86kX6fwKzVCzAO2clFzoxPwbAFKfdR1162ya6D0WRM4XogGY X-Received: by 2002:a05:6830:114f:: with SMTP id x15mr554478otq.291.1581331919731; Mon, 10 Feb 2020 02:51:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581331919; cv=none; d=google.com; s=arc-20160816; b=z3fLbAjF4xNyOhsOhTUySHvf8US5OuWLjMlUXJdR+ISq5f1BVX5fHBJbyuDjKXUgNJ NSVpow1SAvTsHRIBZrt8ARlNa8eG7AFmT9tMwAADhmv/OAIk9cwZHvut3pCGjjN3plGp yjiNaAWdhODzH5gV+x8aE9msr4qnsCrPQHgqJlZ9m8TH6k/SYYUAJpP2tAtR4B1kg3Al TJN6E8zzB61Qnf+h6+HuJsmNyI6Z/8gCYRcWswPRvcGmzyV2V+XeKgsWuxRvmk2iyCpP BlGPi40phVcZoGyyrAJGZSv9xu9rJ2vFeO31jl3qBHBS87p71IOwhcgGi2Vp+kT9KhwU t+FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+I5Vz5Y/bf9NOZjHVeJmgKIYJ8e4mYf1dL2DgZM3YDI=; b=Ll45D5XWvWrEOP5KshEoajrn18wdwnFv0UGIrnnlGbSMIo9VLdwwzGaBbF6QSb44vg +1OOZD3SpImHuLRXwKTNA/l9D17t624xUAcodr2iqIRj0XCdNKKR28GWeUFkfntab4Vm nsqJIm57U/qxq+nX2IzKRAPiMcB6wF4tcUs2NW5NDKOQA98K5H8/mOqMXh4uM0L5nN4w J/7iGKqFz17/IbGt/UWvHdq1Kee5qacG2hPWG/gaoKXbk/9bLR3qKvFj9cRBC1d+1oSa 8fodmR5f/6DLCjId7TQasmpe6cFD/9D8idPlL6EHTyXswt96ycq/g6rCYVI89t4WD2XJ OntQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qyJUtXHV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si15523otk.290.2020.02.10.02.51.47; Mon, 10 Feb 2020 02:51:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qyJUtXHV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727566AbgBJKvc (ORCPT + 99 others); Mon, 10 Feb 2020 05:51:32 -0500 Received: from mail-pg1-f173.google.com ([209.85.215.173]:35356 "EHLO mail-pg1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726950AbgBJKvb (ORCPT ); Mon, 10 Feb 2020 05:51:31 -0500 Received: by mail-pg1-f173.google.com with SMTP id l24so3729691pgk.2; Mon, 10 Feb 2020 02:51:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+I5Vz5Y/bf9NOZjHVeJmgKIYJ8e4mYf1dL2DgZM3YDI=; b=qyJUtXHVXYAu/sr0GivJeiaRTdRUijQCUOsZTbvzKKsYHr7GhenvmmvTt2RpfD8iph AtjDY7jm7YX0y6Dd87t7Z5Vf07JU9wmW2AwnzbM8gF60xDyLNTkU6+d8h4MK7MvAjLvL HxYu6lKQtgQjAKXwDCnccqlVqs7JORPT2UtAa7SgO3qnEsSAGr2lu/qR8MsPc5SdAeEB QWGIZndqchW8XLtK6vso4OB+1La2W7dDfo6lxoS+G7aEyKjlzrSVmBXtd2RVI5XxDAN6 jZuk8wB8xQbE6qeYwrpChJ2zYTTmjFO7CBjEbY3xWGeWNpyLU3Ghbk3X1qFA+0965K05 UhNg== 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:mime-version:content-transfer-encoding; bh=+I5Vz5Y/bf9NOZjHVeJmgKIYJ8e4mYf1dL2DgZM3YDI=; b=mdwE1h9HbjxBr/PxOaFmdIukHsokkF/C9I73u1LmRQu20U2BJiZYAdDLYxGVWCI9Vq GZ56qkwp9f0w7sx2rqLeZgz4CuLFnrMQcM5wAuwEhPS6SToREgIeV0mSZHyVuJpn+kIi qAHma1nCG8+TiEYHB7D50zC9Axet5KuIWl8RnRvei6LQveZLMbPPepb0sHTH9POx0mPX pL7RRLzJBnaqsHdr5LM7yJUWLgDITZvKffym21AXu00ZyatiK77VsxCHwJ0qLEUXn+nF 2J4bwJbLUCPPAauCYdea9/XH3NnLJr4y4SfI2Y8YXgPqJSw9q5LJc4yjDMW1denK5XvQ J6+Q== X-Gm-Message-State: APjAAAXbdWk60uiYI5lEfFF0yX6vRpE+iUkQDSybyFVjnSGO4iwZfEhp k+gS5Vz81RYMNXXUo1ajrTCm4Icn X-Received: by 2002:a63:ed01:: with SMTP id d1mr936995pgi.95.1581331890249; Mon, 10 Feb 2020 02:51:30 -0800 (PST) Received: from localhost.localdomain ([45.114.62.33]) by smtp.gmail.com with ESMTPSA id g18sm12104833pfi.80.2020.02.10.02.51.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2020 02:51:29 -0800 (PST) From: Anand Moon To: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Greg Kroah-Hartman , Rob Herring , Mark Rutland , Felipe Balbi , Krzysztof Kozlowski , Marek Szyprowski , Bartlomiej Zolnierkiewicz , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCHv3 3/3] usb: dwc3: exynos: Add support for Exynos5422 suspend clk Date: Mon, 10 Feb 2020 10:51:08 +0000 Message-Id: <20200210105108.1128-4-linux.amoon@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210105108.1128-1-linux.amoon@gmail.com> References: <20200210105108.1128-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Exynos5422 DWC3 module support two clk USBD300 and SCLK_USBD300 so add missing code to enable/disable code and suspend clk, for this add a new compatible samsung,exynos5420-dwusb3 to help configure dwc3 code and dwc3 suspend clk. Signed-off-by: Anand Moon --- drivers/usb/dwc3/dwc3-exynos.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index 90bb022737da..48b68b6f0dc8 100644 --- a/drivers/usb/dwc3/dwc3-exynos.c +++ b/drivers/usb/dwc3/dwc3-exynos.c @@ -162,6 +162,12 @@ static const struct dwc3_exynos_driverdata exynos5250_drvdata = { .suspend_clk_idx = -1, }; +static const struct dwc3_exynos_driverdata exynos5420_drvdata = { + .clk_names = { "usbdrd30", "usbdrd30_susp_clk"}, + .num_clks = 2, + .suspend_clk_idx = 1, +}; + static const struct dwc3_exynos_driverdata exynos5433_drvdata = { .clk_names = { "aclk", "susp_clk", "pipe_pclk", "phyclk" }, .num_clks = 4, @@ -178,6 +184,9 @@ static const struct of_device_id exynos_dwc3_match[] = { { .compatible = "samsung,exynos5250-dwusb3", .data = &exynos5250_drvdata, + }, { + .compatible = "samsung,exynos5420-dwusb3", + .data = &exynos5420_drvdata, }, { .compatible = "samsung,exynos5433-dwusb3", .data = &exynos5433_drvdata, -- 2.25.0