From patchwork Mon Oct 24 16:46:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ahaslam@baylibre.com X-Patchwork-Id: 9392671 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 98E046077A for ; Mon, 24 Oct 2016 16:56:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8775C291AB for ; Mon, 24 Oct 2016 16:56:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B2A3291B2; Mon, 24 Oct 2016 16:56:15 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 14A0C291AB for ; Mon, 24 Oct 2016 16:56:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1byiWI-0000nu-4t; Mon, 24 Oct 2016 16:54:42 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1byiP9-0002Ke-Cm for linux-arm-kernel@bombadil.infradead.org; Mon, 24 Oct 2016 16:47:19 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by merlin.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1byiP8-0006JV-8h for linux-arm-kernel@lists.infradead.org; Mon, 24 Oct 2016 16:47:18 +0000 Received: by mail-wm0-x231.google.com with SMTP id c78so125395584wme.1 for ; Mon, 24 Oct 2016 09:46:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HiBzz+0H1hF+o17fLhNiidJHiFVy6Y9NIYhHYInzGzY=; b=oi/pycy7JspOM/tksCZ+3mE3KCYeUFUX5kZitmo+JR+WC522DwflIanXGYZnadqokM fUQl2zPxGwLS2m0OyXJ8XsKVS7/XrXZkFzsM1HcLTSVMQy59YRl/DwBQZTM5Id+lA1J/ LcTxq1aW5fPJ+VKeetufrjLqZOYLvfBjEIUDTZQsoE2u5CMgfnZbyoN0rSqEF7DLAiRf bjqVe9qG+ua4lZwITxCOUGPoxIhvyIBfWJ9I/VRK+t6uE0ZEsao/r00tiNurjOx6WWoY xi1+73VSmaZkXb+PiOZF8cLOJOROKcXfcmvrO3syi6WhpnIuowsN1siWuViwjI89Brkh h3AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HiBzz+0H1hF+o17fLhNiidJHiFVy6Y9NIYhHYInzGzY=; b=COkD99OMq3vVHy/omnR0Ldfs9nscBREHKu0rSAKkZGlRlRV/BCpT8wj7NLcdzyPRJL DhLIazU4tyhDnBHLo+m6BJZDl5OiyxhKMfw4bxiPwfouXmiVjnwfJWOJtZ3lL1ltwnEC DuRQEW/dHeI1eKy7NR7ILA2WQWSJLfc4JysnUUh2XOyMz+tViGi6cjL5aFGIjTWsetNc Rq7FzSIUXBSo9pRoc6Op7oP6MP37OD92W9l45eRjw+lWlGlJ+JfajjZ4eqeT+jH6HJqI ylCz3rzHQWz5Ryyru9gCpZAg+tBS/Oq73QOsePqTCrTSTrBRnpsoNxMuqnIa9Wbuouqz cbDA== X-Gm-Message-State: ABUngvdqKOdP+Vpfsg4zW5r/OyFqYfHWUtzF8qIX+Lu8knXyI8YRBQmpRrDlXFxLezdr+4+8 X-Received: by 10.194.205.136 with SMTP id lg8mr12414889wjc.1.1477327615558; Mon, 24 Oct 2016 09:46:55 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id o62sm15710148wmg.9.2016.10.24.09.46.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Oct 2016 09:46:55 -0700 (PDT) From: ahaslam@baylibre.com To: gregkh@linuxfoundation.org, johan@kernel.org, robh+dt@kernel.org, nsekhar@ti.com, stern@rowland.harvard.edu, khilman@baylibre.com, sshtylyov@ru.mvista.com, david@lechnology.com, manjunath.goudar@linaro.org, broonie@kernel.org, abailon@baylibre.com Subject: [PATCH/RFT v2 14/17] ARM: davinci: register the usb20_phy clock on the DT file Date: Mon, 24 Oct 2016 18:46:31 +0200 Message-Id: <20161024164634.4330-15-ahaslam@baylibre.com> X-Mailer: git-send-email 2.10.1.502.g6598894 In-Reply-To: <20161024164634.4330-1-ahaslam@baylibre.com> References: <20161024164634.4330-1-ahaslam@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161024_124718_470936_A86DA10A X-CRM114-Status: GOOD ( 13.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Axel Haslam , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Axel Haslam The usb20_phy clock needs to be registered for the driver to be able to get and enable a clock. Currently the usb phy clocks are registered form board files, which will not be called during a device tree based boot. To be able to probe correctly usb form a device tree boot, register the usb phy clocks form the DT specific init. Unfourtunatly, davinci does not have proper clock support on device tree yet, so by registering the clock form de DT specific file we are forced to hardcode the parent clock, and cannot select refclkin as parent for any of the phy clocks of the da850 family. As none of the current da850 based boards currently in mainline use refclkin as source. I guess we can live with this limitation until clocks are correctly represented through CCF/device tree. Signed-off-by: Axel Haslam --- arch/arm/mach-davinci/da8xx-dt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c index c9f7e92..7947267 100644 --- a/arch/arm/mach-davinci/da8xx-dt.c +++ b/arch/arm/mach-davinci/da8xx-dt.c @@ -45,6 +45,8 @@ static void __init da850_init_machine(void) { + da8xx_register_usb20_phy_clk(false); + da8xx_register_usb11_phy_clk(false); of_platform_default_populate(NULL, da850_auxdata_lookup, NULL); }