Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1988078imm; Thu, 12 Jul 2018 11:07:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeb1OGWXZOpnC5dR10YSjNDM+Ak6B0PbwOrwqN/u7BKLF8+BIZBCSp3l9YHvGVO/FmjqyLk X-Received: by 2002:a62:1815:: with SMTP id 21-v6mr3499024pfy.227.1531418827232; Thu, 12 Jul 2018 11:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531418827; cv=none; d=google.com; s=arc-20160816; b=ftnsqC9JDcRUYSHaWaOkAnq4ws32mez07WtX/83o/GTv8RbMbJJ8cYaDhAxmnBOTto c5eUVUZrA7eygCKHUnKXSp0CawolTIO39NVWx0ep87M3cFKvJm0ZLbiKoqEI+sntZLCF dyM/eDq7YhTKLBgDLLETtDeK3+Nd9y4JI8fdggTUe0rpv3XqlWWJcFIsCBfOwDSWxrfp a/pQp0H4NE5wM1TCuoZTtUmzEv1kaB0Iwh4qMiEeCNqASFxkiBnBrRQAsjW6prfTqDEf zmuS6f20nVBCGOQoqj6/NKE+k6MemWSVJJnqYCo7pTCGCGCHoBLLjfVhiJbPF9o1HY/t 0iSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=FkFeOzgFYa6+RCsuLLbJdrLP3kdkWraWm4th3QEUheM=; b=B7Jo+mfIzxEWKIIcMh7GdOqrLN6TB21uaruKCperP0So6ZfQBJTZAyMcwM2rN2koWd fxZPdUxnul81UYEJKxEtBdCLL/dIGGvmVl2nr0mySatessq6kzaA++PdJUWiHPJXMrym LTb0nruc9w3xHkxEPUs7V49eBFyDOoZ/y/VQjecn/1LA0eZr/K3x+lG1nSYIila8Zurn wSY+RxIKE1zr6wUfD5NxMQA3mQPXLNpdlD9zox2oe9Ij1G/u/FCcaVRKCqJdDkcIjDFq kR3dG1TROpegeeRf8+tLEgJpcY5s3VIkJu8iw1pK9ioyq6VXSY/fS+KkSi6LRPsoPnTP UbYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=HbLP8nqn; dkim=pass header.i=@codeaurora.org header.s=default header.b=ihyFMjE7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64-v6si22037645ply.476.2018.07.12.11.06.51; Thu, 12 Jul 2018 11:07:07 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=HbLP8nqn; dkim=pass header.i=@codeaurora.org header.s=default header.b=ihyFMjE7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727497AbeGLSQo (ORCPT + 99 others); Thu, 12 Jul 2018 14:16:44 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58000 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726444AbeGLSQo (ORCPT ); Thu, 12 Jul 2018 14:16:44 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 61CF460791; Thu, 12 Jul 2018 18:06:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1531418764; bh=m8R7DY47uMVWH4ZPm+aEupLzOQmrHUbCYX43/M6Zcpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HbLP8nqnJFVCRpOkaU1iypWjZAh1vGxLy7gNlgM80yf1Mx28+PE0XLvGfJMc/AyQ2 TOJPaeHmp7VcJJEDji0EqX76hcfA2O1x9qZhnNESFynhlBLUVnjy1aAvVluaT4je7U 98bE6Fe/UABpMmbqQD6elLXwsWfA6BcTonruj3Cg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from tdas-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tdas@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id AD9E160B74; Thu, 12 Jul 2018 18:05:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1531418763; bh=m8R7DY47uMVWH4ZPm+aEupLzOQmrHUbCYX43/M6Zcpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ihyFMjE7iXMpeUrx5I9aB0nExpm1rvgiJ6Ggub1ioNl0B1kuNdPc79sVBOxy6yWYc XxWJwC1mlFhR523kvnVdenNo93lR5Bf62J2Oc+EUlhXSnul5W82F5BaFMo0D8cnVLq yJttbQ66iIc6Lp/vzb3Ilzo53ZMzDoO76x2TgYkc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org AD9E160B74 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=tdas@codeaurora.org From: Taniya Das To: "Rafael J. Wysocki" , Viresh Kumar , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Stephen Boyd Cc: Rajendra Nayak , Amit Nischal , devicetree@vger.kernel.org, robh@kernel.org, skannan@codeaurora.org, amit.kucheria@linaro.org, evgreen@google.com, Taniya Das Subject: [PATCH v5 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings Date: Thu, 12 Jul 2018 23:35:44 +0530 Message-Id: <1531418745-19742-2-git-send-email-tdas@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1531418745-19742-1-git-send-email-tdas@codeaurora.org> References: <1531418745-19742-1-git-send-email-tdas@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's SoCs. This is required for managing the cpu frequency transitions which are controlled by the hardware engine. Signed-off-by: Taniya Das --- .../bindings/cpufreq/cpufreq-qcom-hw.txt | 158 +++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt new file mode 100644 index 0000000..52a53e1 --- /dev/null +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt @@ -0,0 +1,158 @@ +Qualcomm Technologies, Inc. CPUFREQ Bindings + +CPUFREQ HW is a hardware engine used by some Qualcomm Technologies, Inc. (QTI) +SoCs to manage frequency in hardware. It is capable of controlling frequency +for multiple clusters. + +Properties: +- compatible + Usage: required + Value type: + Definition: must be "qcom,cpufreq-hw". + +* Property qcom,freq-domain +Devices supporting freq-domain must set their "qcom,freq-domain" property with +phandle to a freq_domain_table in their DT node. + +* Frequency Domain Table Node + +This describes the frequency domain belonging to a device. +This node can have following properties: + +- reg + Usage: required + Value type: + Definition: Addresses and sizes for the memory of the HW bases. + +Example: + +Example 1: Dual-cluster, Quad-core per cluster. CPUs within a cluster switch +DCVS state together. + +/ { + cpus { + #address-cells = <2>; + #size-cells = <0>; + + CPU0: cpu@0 { + device_type = "cpu"; + compatible = "qcom,kryo385"; + reg = <0x0 0x0>; + enable-method = "psci"; + next-level-cache = <&L2_0>; + qcom,freq-domain = <&freq_domain_table0>; + L2_0: l2-cache { + compatible = "cache"; + next-level-cache = <&L3_0>; + L3_0: l3-cache { + compatible = "cache"; + }; + }; + }; + + CPU1: cpu@100 { + device_type = "cpu"; + compatible = "qcom,kryo385"; + reg = <0x0 0x100>; + enable-method = "psci"; + next-level-cache = <&L2_100>; + qcom,freq-domain = <&freq_domain_table0>; + L2_100: l2-cache { + compatible = "cache"; + next-level-cache = <&L3_0>; + }; + }; + + CPU2: cpu@200 { + device_type = "cpu"; + compatible = "qcom,kryo385"; + reg = <0x0 0x200>; + enable-method = "psci"; + next-level-cache = <&L2_200>; + qcom,freq-domain = <&freq_domain_table0>; + L2_200: l2-cache { + compatible = "cache"; + next-level-cache = <&L3_0>; + }; + }; + + CPU3: cpu@300 { + device_type = "cpu"; + compatible = "qcom,kryo385"; + reg = <0x0 0x300>; + enable-method = "psci"; + next-level-cache = <&L2_300>; + qcom,freq-domain = <&freq_domain_table0>; + L2_300: l2-cache { + compatible = "cache"; + next-level-cache = <&L3_0>; + }; + }; + + CPU4: cpu@400 { + device_type = "cpu"; + compatible = "qcom,kryo385"; + reg = <0x0 0x400>; + enable-method = "psci"; + next-level-cache = <&L2_400>; + qcom,freq-domain = <&freq_domain_table1>; + L2_400: l2-cache { + compatible = "cache"; + next-level-cache = <&L3_0>; + }; + }; + + CPU5: cpu@500 { + device_type = "cpu"; + compatible = "qcom,kryo385"; + reg = <0x0 0x500>; + enable-method = "psci"; + next-level-cache = <&L2_500>; + qcom,freq-domain = <&freq_domain_table1>; + L2_500: l2-cache { + compatible = "cache"; + next-level-cache = <&L3_0>; + }; + }; + + CPU6: cpu@600 { + device_type = "cpu"; + compatible = "qcom,kryo385"; + reg = <0x0 0x600>; + enable-method = "psci"; + next-level-cache = <&L2_600>; + qcom,freq-domain = <&freq_domain_table1>; + L2_600: l2-cache { + compatible = "cache"; + next-level-cache = <&L3_0>; + }; + }; + + CPU7: cpu@700 { + device_type = "cpu"; + compatible = "qcom,kryo385"; + reg = <0x0 0x700>; + enable-method = "psci"; + next-level-cache = <&L2_700>; + qcom,freq-domain = <&freq_domain_table1>; + L2_700: l2-cache { + compatible = "cache"; + next-level-cache = <&L3_0>; + }; + }; + }; + + qcom,cpufreq-hw { + compatible = "qcom,cpufreq-hw"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + freq_domain_table0: freq_table0 { + reg = <0 0x17d43000 0 0x1400>; + }; + + freq_domain_table1: freq_table1 { + reg = <0 0x17d45800 0 0x1400>; + }; + }; +}; -- Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc.is a member of the Code Aurora Forum, hosted by the Linux Foundation.