From patchwork Thu Aug 10 11:46:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 9893327 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 DC11360384 for ; Thu, 10 Aug 2017 11:47:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEE0928AED for ; Thu, 10 Aug 2017 11:47:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C31FD28AEF; Thu, 10 Aug 2017 11:47:41 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2EB9E28AEE for ; Thu, 10 Aug 2017 11:47:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=ypsHCR2ovtG/pAVflxYgXqL+SwNGZKK12VAaoX/zGiw=; b=M8A caqxdOqFYGX8RKx51AYpYdOi252k3xtzyWn8hjjX7NOISxoP3zCX1GbKb6+D5AeDJ3g+eq7jlCLps yGzzY6hdV4B457BEgTITyAgbI9CGt4BniDB0PFQ6ukweny9ztqJ6qP3dGe+VbP5/Htw1puK3XVCxn qS25Hqpe6A/+qyEucF3oMxxgzAQ0mm3DqyTi1+jTEqAxZPhhuVl5Y8NkDgMtgTnHdI4QS3Nq7J2Bj Up1xdT25iau7Z081CuQVfFFR+MlgJLzBtZbcjKR9njXb8XNcCVWZ4yk4LSPRQzFigLe7NbV9kzsFc CyjQE0Xy7BlK1tTqHMW4a7sb4xXVWAw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dflvi-0006q6-2Y; Thu, 10 Aug 2017 11:47:10 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dflvc-0006n5-6d; Thu, 10 Aug 2017 11:47:08 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: rperier) with ESMTPSA id F11C426C78D From: Romain Perier To: Heiko Stuebner Subject: [PATCH] ARM: dts: rockchip: set PLLs and core clocks rates for RK3188 Date: Thu, 10 Aug 2017 13:46:25 +0200 Message-Id: <20170810114625.28823-1-romain.perier@collabora.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170810_044704_402959_17543C93 X-CRM114-Status: UNSURE ( 6.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , Kumar Gala , Romain Perier , 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 Currently, rates for PLLs or core peri clocks are not set to a specific rate when booting the kernel. Depending on the previously used bootloader the state of the clk tree can be good or not. This commits set PLLs and core clocks rates by using the assigned-clocks property in CRU (like for RK3288) Signed-off-by: Romain Perier --- arch/arm/boot/dts/rk3188.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi index 1399bc04ea77..de6bde651cc2 100644 --- a/arch/arm/boot/dts/rk3188.dtsi +++ b/arch/arm/boot/dts/rk3188.dtsi @@ -160,6 +160,17 @@ #clock-cells = <1>; #reset-cells = <1>; + assigned-clocks = <&cru PLL_GPLL>, <&cru PLL_DPLL>, + <&cru PLL_CPLL>, <&cru PLL_APLL>, + <&cru ACLK_CPU>, <&cru HCLK_CPU>, + <&cru PCLK_CPU>, <&cru ACLK_PERI>, + <&cru HCLK_PERI>, <&cru PCLK_PERI>; + + assigned-clock-rates = <891000000>, <300000000>, + <132000000>, <312000000>, + <148500000>, <148500000>, + <74250000>, <127285715>, + <127285715>, <63642858>; }; efuse: efuse@20010000 {