From patchwork Fri May 13 20:50:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 9093611 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CC5D5BF29F for ; Fri, 13 May 2016 20:52:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0079D201FE for ; Fri, 13 May 2016 20:52:59 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 333E4201F2 for ; Fri, 13 May 2016 20:52:58 +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 1b1K30-0008TB-BF; Fri, 13 May 2016 20:50:58 +0000 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b1K2t-0008R0-EX for linux-arm-kernel@lists.infradead.org; Fri, 13 May 2016 20:50:52 +0000 Received: by mail-pa0-x22a.google.com with SMTP id iv1so44068325pac.2 for ; Fri, 13 May 2016 13:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=RsRiAt9TnMDPXCwgaJmRfXET+8w2Wo7kSjUbcYF0bCA=; b=Hh00yrDMkSbtCu+QJ7ezcOKLoGvl4ET6V3tjoCaplgJk8B7a2Fr0MfrP6WwQRtj8d7 AZWiM0luBPEcmVr3RcNpzwQaph0s3Wt5Z35BZgLebQ1LhDyImW7BfHeLMKUgSm658XRd Dy2gVF5F/wONPkWN+BNld/CLLncDrYAxy+wgc= 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; bh=RsRiAt9TnMDPXCwgaJmRfXET+8w2Wo7kSjUbcYF0bCA=; b=fPzL1PT2ybJYiXwnIJ7LXvk/FiE97q7TLjwRTncdEnyHVSOYTEsUaWN4maqbmdAPTl m4o5Gf+wFiVMUH5FAyTt4F8ka4lznOcsYJ6Ln1QDYOyFY3/Y+vUcr9fo8154UeJSquAv LJEkwmYNPL5dgEZeYzAOi2x+swA4EOMqrd/HSpxcMaY2MMaG+pCQy1FHX3ACpRfp0AeY jGkhAuYFQssU21DE2SZrh65c/B5BFZDzdyhad4ekdYAj083Uruc5NjHQnv4KtrIt74+4 aYho9T7uOvXBNuE4dNz/00DKEku60ms7+otO9H1FFtV3HZxA7AvoT7SPbMn+WGObVtSK xd4A== X-Gm-Message-State: AOPr4FWLtC6PZcl2UHve+nkpxc8QW/upkfSC0jDGXDNMOcjhGdaOlwibMk9rByB4LOrgcDji X-Received: by 10.66.189.135 with SMTP id gi7mr26268910pac.158.1463172629623; Fri, 13 May 2016 13:50:29 -0700 (PDT) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id t62sm29483291pfa.38.2016.05.13.13.50.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 May 2016 13:50:29 -0700 (PDT) From: Brian Norris To: Heiko Stuebner Subject: [PATCH] ARM64: dts: rockchip: assign default rates for core rk3399 clocks Date: Fri, 13 May 2016 13:50:18 -0700 Message-Id: <1463172618-96001-1-git-send-email-briannorris@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160513_135051_545750_6FA391CB X-CRM114-Status: UNSURE ( 9.20 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) 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: Xing Zheng , Shawn Lin , Brian Norris , linux-kernel@vger.kernel.org, Doug Anderson , linux-rockchip@lists.infradead.org, Brian Norris , 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-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Xing Zheng These clocks are all core clocks used by many blocks/peripherals, many of whose drivers don't set their clock rates at all. Let's assign reasonable default clock rates for these core clocks, so that these peripherals get something reasonable by default, and also so that if child devices want to select a clock rate themselves, their muxes have some reasonable parent clock rates to branch off of (rather than just the boot-time defaults). This helps the eMMC PHY, for one, to get a reasonable ACLK rate. Signed-off-by: Xing Zheng Signed-off-by: Brian Norris Reviewed-by: Douglas Anderson --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 46f325a143b0..6fa9cc332482 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -478,6 +478,22 @@ reg = <0x0 0xff760000 0x0 0x1000>; #clock-cells = <1>; #reset-cells = <1>; + assigned-clocks = + <&cru PLL_GPLL>, <&cru PLL_CPLL>, + <&cru PLL_NPLL>, + <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>, + <&cru PCLK_PERIHP>, + <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>, + <&cru PCLK_PERILP0>, + <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>; + assigned-clock-rates = + <594000000>, <800000000>, + <1000000000>, + <150000000>, <75000000>, + <37500000>, + <100000000>, <100000000>, + <50000000>, + <100000000>, <50000000>; }; grf: syscon@ff770000 {