From patchwork Tue Oct 7 09:33:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 5044361 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 81B409F30B for ; Tue, 7 Oct 2014 09:37:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AD1CA2015A for ; Tue, 7 Oct 2014 09:37:11 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CFB8B20145 for ; Tue, 7 Oct 2014 09:37:10 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XbRCg-00067t-Iy; Tue, 07 Oct 2014 09:37:10 +0000 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XbRCT-0005vk-R0; Tue, 07 Oct 2014 09:36:58 +0000 Received: by mail-pd0-f181.google.com with SMTP id z10so4822665pdj.12 for ; Tue, 07 Oct 2014 02:36:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=tcEBlQMV6ic7ZZm0+I65LMKUAbNqARSYKJrg92HHWpw=; b=dV0ilmZUn2AOi1WQPE3mTfAxtsnbPzmZxT1mjdK0ZQ9V+ebV3e5EGsoG9EqZ82yptO v4rAK46VGfpsXNgUihpsBvrEJ7wRCZ4frH8tBL2NCt9pDJfhFgzpGZUR0tkIqXIAyWMi zk4nUdW6A/ubxy+zdk6doM0SSEGqwyPw5ltS/3b+keQEIpvnv5NIU36jS/wUThLw/8fK L9S2CxOzdcYvyT2VFGulxvVKJ+OZnBQHZqcL4DoKObrxLq+77TOQUJjL2gzsbxXNS7ID SAutDmJs8g71OBi+uzi/kHCAPfVX79DZtDbgdPgt4Zt5ZAULHA1LzTKhMGonLO54HhUs 5z/w== X-Received: by 10.68.173.101 with SMTP id bj5mr2451904pbc.15.1412674596925; Tue, 07 Oct 2014 02:36:36 -0700 (PDT) Received: from localhost.localdomain ([58.22.7.114]) by mx.google.com with ESMTPSA id y16sm15377528pbt.17.2014.10.07.02.36.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Oct 2014 02:36:36 -0700 (PDT) From: Kever Yang To: heiko@sntech.de, Mike Turquette Subject: [PATCH 2/2] ARM: dts: enable init rate for clock Date: Tue, 7 Oct 2014 17:33:58 +0800 Message-Id: <1412674438-26160-3-git-send-email-kever.yang@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412674438-26160-1-git-send-email-kever.yang@rock-chips.com> References: <1412674438-26160-1-git-send-email-kever.yang@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141007_023657_902968_CE2761B8 X-CRM114-Status: UNSURE ( 8.94 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.0 (+) Cc: huangtao@rock-chips.com, dkl@rock-chips.com, addy.ke@rock-chips.com, Russell King , Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, dianders@chromium.org, Rob Herring , Kever Yang , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, xjq@rock-chips.com, Kumar Gala , cf@rock-chips.com, Mark Rutland , hj@rock-chips.com, sonnyrao@chromium.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY, URIBL_BLACK,URIBL_RHS_DOB autolearn=no version=3.3.1 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We need to initialize PLL rate and some of bus clock rate while kernel init, for there is no other module will do that. Signed-off-by: Kever Yang Reviewed-by: Doug Anderson Tested-by: Doug Anderson --- arch/arm/boot/dts/rk3288.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 874e66d..2f4519b 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -455,6 +455,16 @@ rockchip,grf = <&grf>; #clock-cells = <1>; #reset-cells = <1>; + assigned-clocks = <&cru PLL_GPLL>, <&cru PLL_CPLL>, + <&cru PLL_NPLL>, <&cru ACLK_CPU>, + <&cru HCLK_CPU>, <&cru PCLK_CPU>, + <&cru ACLK_PERI>, <&cru HCLK_PERI>, + <&cru PCLK_PERI>; + assigned-clock-rates = <594000000>, <400000000>, + <500000000>, <300000000>, + <150000000>, <75000000>, + <300000000>, <150000000>, + <75000000>; }; grf: syscon@ff770000 {