From patchwork Wed Apr 19 09:13:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 97612 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp229285qgf; Wed, 19 Apr 2017 02:13:46 -0700 (PDT) X-Received: by 10.99.62.68 with SMTP id l65mr1967373pga.172.1492593226266; Wed, 19 Apr 2017 02:13:46 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w20si1863213pgj.290.2017.04.19.02.13.46; Wed, 19 Apr 2017 02:13:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761451AbdDSJNo (ORCPT + 7 others); Wed, 19 Apr 2017 05:13:44 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:35834 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761433AbdDSJNl (ORCPT ); Wed, 19 Apr 2017 05:13:41 -0400 Received: by mail-lf0-f46.google.com with SMTP id 75so8932201lfs.2 for ; Wed, 19 Apr 2017 02:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=zfs6xjRstrhD1CZQf9OSE3YVVoGB1bz6ZIJA7/Mygu8=; b=XsGPqzXafABmoCisVyGnYyk6G764gkEsIg+Sqa1brN7vdq9H2HC9BY86my0yUC0PtS wYmK2kNC84tvzdsALdI2s85WFUyoqC9gIsi8UuhRQ5RQ0o/W6mMvE7nwIr9qDAeTpawh TxtSB+P6b1mggBrlqwKo46ZGoKB19RbbOU18g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zfs6xjRstrhD1CZQf9OSE3YVVoGB1bz6ZIJA7/Mygu8=; b=aU+kUchM+b601xcHMwOgacfjQZOOH01jv0tyn/n3cTa26zVfc6aS2ArWiZmIW/hQaz VFSeJCYww+n9pzN1rpXOm6x04QtrLVztrvMf7/Sysp40j3YQ/ZNTtRceAsPInWraBEBr N/rtu1BjvJ50TFsyFfICYFGqQPvH1+d9xsKK3cjiLTk/HVbVdpYAHFHxQU1Ga1dh0tHN yqFkKPC8FBdCV9IYc7twZfSeUmoovwQiuuo4RzDcpKpzIklAdcriYk9XtvpY825pSxEU ze9tGji5oJV6z+JcHDLuvp+p7GT18LD8Ri6OGsU7xEDHgAXW/C+D2UleeTsfz0ngrllU qUsA== X-Gm-Message-State: AN3rC/5FrhezGHRLCuBGYmrIOcCdwCJdmjD9khL9EebOZ5IXRAnsfcHb YPtwZpTC/VElubIX X-Received: by 10.46.76.2 with SMTP id z2mr567558lja.38.1492593218014; Wed, 19 Apr 2017 02:13:38 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id q123sm303230ljb.18.2017.04.19.02.13.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Apr 2017 02:13:36 -0700 (PDT) From: Linus Walleij To: Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/5 v2] clk: qcom: Update DT bindings for the MSM8660/APQ8060 RPMCC Date: Wed, 19 Apr 2017 11:13:22 +0200 Message-Id: <20170419091326.11226-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org These compatible strings need to be added to extend support for the RPM CC to cover MSM8660/APQ8060. We also need to add enumberators to the include file for a few clocks that were missing. Cc: devicetree@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Collect Rob's ACK --- Documentation/devicetree/bindings/clock/qcom,rpmcc.txt | 2 ++ include/dt-bindings/clock/qcom,rpmcc.h | 4 ++++ 2 files changed, 6 insertions(+) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt index a7235e9e1c97..d470a0187035 100644 --- a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt +++ b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt @@ -10,6 +10,8 @@ Required properties : - compatible : shall contain only one of the following. The generic compatible "qcom,rpmcc" should be also included. + "qcom,rpmcc-msm8660", "qcom,rpmcc" + "qcom,rpmcc-apq8060", "qcom,rpmcc" "qcom,rpmcc-msm8916", "qcom,rpmcc" "qcom,rpmcc-msm8974", "qcom,rpmcc" "qcom,rpmcc-apq8064", "qcom,rpmcc" diff --git a/include/dt-bindings/clock/qcom,rpmcc.h b/include/dt-bindings/clock/qcom,rpmcc.h index 96b63c00249e..44358562a031 100644 --- a/include/dt-bindings/clock/qcom,rpmcc.h +++ b/include/dt-bindings/clock/qcom,rpmcc.h @@ -37,6 +37,10 @@ #define RPM_SYS_FABRIC_A_CLK 19 #define RPM_SFPB_CLK 20 #define RPM_SFPB_A_CLK 21 +#define RPM_PLL4_CLK 22 +#define RPM_PLL4_A_CLK 23 +#define RPM_SMI_CLK 24 +#define RPM_SMI_A_CLK 25 /* SMD RPM clocks */ #define RPM_SMD_XO_CLK_SRC 0 From patchwork Wed Apr 19 09:13:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 97613 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp229316qgf; Wed, 19 Apr 2017 02:13:49 -0700 (PDT) X-Received: by 10.98.133.145 with SMTP id m17mr2057209pfk.51.1492593229151; Wed, 19 Apr 2017 02:13:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si1875942plk.180.2017.04.19.02.13.48; Wed, 19 Apr 2017 02:13:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761459AbdDSJNr (ORCPT + 7 others); Wed, 19 Apr 2017 05:13:47 -0400 Received: from mail-lf0-f45.google.com ([209.85.215.45]:32885 "EHLO mail-lf0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761160AbdDSJNn (ORCPT ); Wed, 19 Apr 2017 05:13:43 -0400 Received: by mail-lf0-f45.google.com with SMTP id 88so8963852lfr.0 for ; Wed, 19 Apr 2017 02:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PgETqM952biaqqfvaIoAE4aJdUmy1SCZZ9C+fbnKP+A=; b=bs+NfVxMpnJ6BnPBLaA/9CfgLqwh2ZDlnht3rNScrLvG0K/E+tLiUI8+L7fJiWoBRE ivleoLtzs4VaNjiWytWfR8E3bTsxVcnXp8gphXK/oXyyfpJZQYB9lpjmA4Lu+LUokpLv zZmVlzewY00VthBwVowQf/vzwmdNv3jgeC79I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PgETqM952biaqqfvaIoAE4aJdUmy1SCZZ9C+fbnKP+A=; b=QJhS+OQMhzFQJ4lwGXGnOMh5282RDDn9POQ/Sbb0SUNA/veEgc5KtCNSH//Tac072h 4as6IHbCj4j7PH8TjzYWAjXeqDwUFZA9jVuXRXV3C7OV2AGhtZHJ0dCyL0LvqgE+n0Qp 4sKeoXtV3sdde/vLclqhL50tU4TOUdwy9Fkl5K+jx1yddBXempX0v5g4TC5Matee/hpG aZo1VNvWm2nfUoUf0shoHg+rGHraFdgrMZ0Hq/g2a2w0d82ircYuiTLL2rebmCZ+pA5g dTmdn7o4ZR5x3hX13mSZhKm06clrnoef+PHdQpzrpiUnrclIU0yCKLmQW2P48YGu0gN8 UZ0Q== X-Gm-Message-State: AN3rC/6cBcEQcHBYBKCinRjL2IVcN0OchvdWusj2BpeT7tgJe3K45jqh ctVfciTK0UWrnlgy X-Received: by 10.25.196.133 with SMTP id u127mr742000lff.88.1492593222273; Wed, 19 Apr 2017 02:13:42 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id q123sm303230ljb.18.2017.04.19.02.13.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Apr 2017 02:13:41 -0700 (PDT) From: Linus Walleij To: Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 2/5 v2] clk: qcom: Elaborate on "active" clocks in the RPM clock bindings Date: Wed, 19 Apr 2017 11:13:23 +0200 Message-Id: <20170419091326.11226-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170419091326.11226-1-linus.walleij@linaro.org> References: <20170419091326.11226-1-linus.walleij@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The concept of "active" clocks is just explained in a bried comment in the device driver, let's explain it a bit more in the device tree bindings so everyone understands this. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Reword slighty in accordance with Stephens feedback. --- Documentation/devicetree/bindings/clock/qcom,rpmcc.txt | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt index d470a0187035..833a89f06ae0 100644 --- a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt +++ b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt @@ -18,6 +18,14 @@ Required properties : - #clock-cells : shall contain 1 +The clock enumerators are defined in +and come in pairs: FOO_CLK followed by FOO_A_CLK. The latter clock +is an "active" clock, which means that the consumer only care that the +clock is available when the apps CPU subsystem is active, i.e. not +suspended or in deep idle. If it is important that the clock keeps running +during system suspend, you need to specify the non-active clock, the one +not containing *_A_* in the enumerator name. + Example: smd { compatible = "qcom,smd";