From patchwork Tue Oct 20 16:57:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 55329 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 6CA6E22EA2 for ; Tue, 20 Oct 2015 17:01:38 +0000 (UTC) Received: by wiyb4 with SMTP id b4sf11831508wiy.2 for ; Tue, 20 Oct 2015 10:01:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=fZpo6kA4Mv1EAvQKZ6Vey916gJRoqeSrpnL4y6pJNBQ=; b=efYnVo+HyRIHEhmNgscxYS1LOmhKkXNY3D9IDHjSQPj0aQCqrZTw0/U/kqPktmqjne Wo/cF2AWK2UjgCjDEEVBAys2BloMMf0Q+8WRLzi7OSXl1Y/MzJvn8k90Y7mjyQSWHsV2 KUidL4MY1SuLzD1aPxyX7Vgouu7YaA6bB/ZcIjaXSINxxBt8EQ1RSI28Tx3TrqAsjdxV wNaenlGr8OTPUgoPF7dIgIossMasXflNCNHcb1uugwjZfzRVL3clYpvkktikjpTYJjO+ 6symeSJ5muqLzjLbgItSQJEK0wta0NKGO2cj2pszSs6wOktYgp+haxdaa+t86/WIDZC7 GZ+A== X-Gm-Message-State: ALoCoQnjTa55nGzQbnO68U627tNi/RLEaw7ohzJWCqsvRIAktbGe1X+z2yCF4/qKzovgPff8pnCN X-Received: by 10.112.169.34 with SMTP id ab2mr892465lbc.23.1445360497706; Tue, 20 Oct 2015 10:01:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.24.170 with SMTP id 42ls104841lfy.3.gmail; Tue, 20 Oct 2015 10:01:37 -0700 (PDT) X-Received: by 10.25.209.210 with SMTP id i201mr1692248lfg.124.1445360497507; Tue, 20 Oct 2015 10:01:37 -0700 (PDT) Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com. [2a00:1450:4010:c04::233]) by mx.google.com with ESMTPS id po2si2998482lbb.143.2015.10.20.10.01.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2015 10:01:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::233 as permitted sender) client-ip=2a00:1450:4010:c04::233; Received: by lbbes7 with SMTP id es7so20106337lbb.2 for ; Tue, 20 Oct 2015 10:01:37 -0700 (PDT) X-Received: by 10.112.17.34 with SMTP id l2mr2547856lbd.117.1445360497249; Tue, 20 Oct 2015 10:01:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp2199101lbq; Tue, 20 Oct 2015 10:01:36 -0700 (PDT) X-Received: by 10.66.251.136 with SMTP id zk8mr5081005pac.143.1445360496155; Tue, 20 Oct 2015 10:01:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10si6442029pap.139.2015.10.20.10.01.35; Tue, 20 Oct 2015 10:01:36 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753118AbbJTRBd (ORCPT + 28 others); Tue, 20 Oct 2015 13:01:33 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:33002 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752150AbbJTQ6f (ORCPT ); Tue, 20 Oct 2015 12:58:35 -0400 Received: by wijp11 with SMTP id p11so57021445wij.0 for ; Tue, 20 Oct 2015 09:58:34 -0700 (PDT) X-Received: by 10.180.221.193 with SMTP id qg1mr27979117wic.87.1445360314688; Tue, 20 Oct 2015 09:58:34 -0700 (PDT) Received: from mms.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id ex17sm20092069wid.23.2015.10.20.09.58.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2015 09:58:33 -0700 (PDT) From: Georgi Djakov To: sboyd@codeaurora.org, agross@codeaurora.org Cc: mturquette@baylibre.com, linux-clk@vger.kernel.org, bjorn.andersson@sonymobile.com, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, georgi.djakov@linaro.org Subject: [PATCH v3 1/8] arm64: dts: qcom: 8x16: Add fixed rate on-board oscillator Date: Tue, 20 Oct 2015 19:57:53 +0300 Message-Id: <1445360280-2347-2-git-send-email-georgi.djakov@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1445360280-2347-1-git-send-email-georgi.djakov@linaro.org> References: <1445360280-2347-1-git-send-email-georgi.djakov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: georgi.djakov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::233 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add the on-board XO oscillator. This patch prepares for adding support for RPM controlled clocks. In order to do smooth transition and support both cases (RPM clock driver is enabled or nor), we first move the XO to the DT and change the GCC fixed-rate root clock to a dummy pass-through clock. Then if the RPM driver is enabled, we set the parent of the XO clock in the RPM clock driver to xo_board. The advantage of doing so is that the rate of the XO clock is not hard- coded in the GCC driver anymore, but comes from the board layout, so that is why it should be in DT anyway. Signed-off-by: Georgi Djakov Reviewed-by: Andy Gross --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 8748fcca70f4..355a2acea796 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -80,6 +80,15 @@ ; }; + clocks { + xo_board: xo_board { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <19200000>; + clock-output-names = "xo_board"; + }; + }; + soc: soc { #address-cells = <1>; #size-cells = <1>;