Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6819722imm; Tue, 24 Jul 2018 03:45:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdaZJxeSzC1vKGxdeU1VXKV+vv23rYS1EQfjNgoyVce+vGXWH/ffLRGkHkzJ87Gs1EeDry9 X-Received: by 2002:a17:902:5281:: with SMTP id a1-v6mr16385164pli.73.1532429159370; Tue, 24 Jul 2018 03:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532429159; cv=none; d=google.com; s=arc-20160816; b=uFfeqAkYifd84gbpl+yXqpzOdDPNCTDZwMBvKfZwYxDCwfxlB0gSPQb1pWkM18wfA4 lzCAopFN2UnfdR7LoQogi8LNdZdstViqnQI5nLm5KufCen0NAT30uwBJxjS7f7C7/LZc LZxI2tYnwvQfDxw1dX2KB0u+mANTuGkD26V2JUHqPkz6qdGo/3GSRhaemweD9eWF/n8j wywQaBzHgsqICsYQ15MrjbxO+/ovlNVzErPx946arZiBF4ioK1MtBbTYawinUI1BTSwI gXVo6FgoDLI8cxCYAQWIWcVzuktHCGo5+C9m2IojFhqgreuMpHg13btPmuI/uia8gWCg bqbg== 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=Jb8FgVdCMo5ZO8HMd0zdapSEmFf9S54Z+MpjpHSptkY=; b=bYm0D9vBdI7RmeEuvV25iTty4SPWtmEvrqPLMayqkVTrs0K47/WaQ33wkEucDyVQsX iQpd/W/T/FxYUT6nDLsCoIklI6PEBY2sOdfURgAWc3A4idIdSUyW22igH2aRatsH+LVZ TiazBxKyvX2fLGkySHDCDM45O7ttsca3ZFBW9NzOCHPJuAQ96MGR/oem5o5qMqKFtegS 1daK6jBG6DrPTrJNgcOgj83reRJIuOANcwvt//frZ6mXbtXLc+XCeF433DmqXW08jZGY anKXkIO6XqZjt7xUTy0D8i7jg8bBWvYr4A0VgtFT2tYNdarOQ+lKrMzpOnjncwU2FFpH w4QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=KkiHuYDu; dkim=pass header.i=@codeaurora.org header.s=default header.b=NdT7aNBA; 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 h29-v6si10460213pgb.53.2018.07.24.03.45.45; Tue, 24 Jul 2018 03:45:59 -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=KkiHuYDu; dkim=pass header.i=@codeaurora.org header.s=default header.b=NdT7aNBA; 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 S2388808AbeGXLuU (ORCPT + 99 others); Tue, 24 Jul 2018 07:50:20 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:56992 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388284AbeGXLuU (ORCPT ); Tue, 24 Jul 2018 07:50:20 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5B4FD602BC; Tue, 24 Jul 2018 10:44:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532429069; bh=gmwS9a58RQ2hf7jBJtR3ooUPZ/Tdw8phTjVKxkYhjYU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KkiHuYDupb/tAM9KCFr1SMmXsZlq+r3zgs4jauUrbDJdANqPoifdDyGgZriIlf7UV 3426UzoU+dDidJbr0cvMljdMhbVUxLl6f9FcdgGE+Pnmcnv8ka9jzFXXek2jwOwPPf k7ib8hB7hFJDjRaFiJNraQf4lixmIKrRMdlv3Cks= 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 60FF2606AC; Tue, 24 Jul 2018 10:44:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532429068; bh=gmwS9a58RQ2hf7jBJtR3ooUPZ/Tdw8phTjVKxkYhjYU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NdT7aNBAHi3m5iDgqZNHNFJBxO3qyyQaFA06uLtpifoIkRjOzuAiagDSryeSflxq7 OhNGI7RTvcxHucz8jXAyMt/eMEpDXtVSUAXqr/Yp9JfMXNEC/BP2XA+NGPqVcetD0C YCzQJFjLeaLkP4g1ZRXfP7X9RA/JqO7Rx3r+KSmg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 60FF2606AC 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 v7 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings Date: Tue, 24 Jul 2018 16:12:49 +0530 Message-Id: <1532428970-18122-2-git-send-email-tdas@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1532428970-18122-1-git-send-email-tdas@codeaurora.org> References: <1532428970-18122-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 | 172 +++++++++++++++++++++ 1 file changed, 172 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..22d4355 --- /dev/null +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt @@ -0,0 +1,172 @@ +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". + +- clocks + Usage: required + Value type: From common clock binding. + Definition: clock handle for XO clock. + +- clock-names + Usage: required + Value type: From common clock binding. + Definition: must be "xo". + +* 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"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + #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.