Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp187937imm; Wed, 30 May 2018 21:16:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKRjASdTM1X8bXBDQGy2o1o8OxJl5AvGUCq3+h240hd3VSn0yE0xeAev+0SBlCcu6ISeAsi X-Received: by 2002:a17:902:1e2:: with SMTP id b89-v6mr5453822plb.279.1527740194411; Wed, 30 May 2018 21:16:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527740194; cv=none; d=google.com; s=arc-20160816; b=UifaM2WQJfl2d2h3/JAolcngrKp8jF18RPrdHn/w+hTK1UprMhohKEYe07qkeB83uT LLojBST/yi9LNK61W5d+Evjd1extpbfTsFrwQCut3CmBcVEzOgy2y3lqYkl/QL6ZTsTZ Pp364Crb/HO+/Yro0mPCCAHjfHP2iHE9F03rxDu3f+i18jnZZK5ixQOAvpPuNChLe336 zyITK6jcuit7AAjC0HzzplZFJspYQgognbc+td/eYytkcViDu9VTny8Pk04fFREFqog9 3nJR/Rw/Rf/wj/KHUbUv/sGO7ChaxjuBaoDsu+uWj81b3vxNHKQb/4xk/ELLG8zJdABc UKgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=khvO+OP6QbNZZJ0qi9MkMkAUqy6pKTJXOlTu6E4Kx2c=; b=ichPzTVrh5WJ/7PedH0MoVGF7DecpuGNnFOrkpm9z3koVxdksrt5HLikzlmxSa7TNr VluGScILSEIPfO9F4d448grKkV/86IBTsgNVWPCA8d34ygrIADrwdV6BF5Fbfky+ViyV Y9TY2DqDkiID2L/8QMeON9xHhl62nfpEB/gZnbNpLLmXwyzT8WPy/HLa8CwiZX9/5vNU eeQ+HRrQXc5pwJI67Oaga/f9BMNAmNN8OoZ/Mtf1wUSVPx1gdksvM1km5zCDCZ9xA/fh pyc+l+I/nSjvJDJx3XV8hU874Nlz7heh1L32heZbP4YEpknoijAApywIiqa8G37SIlWz QGaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Mv8dnX4y; dkim=pass header.i=@codeaurora.org header.s=default header.b=dJ0rqtlI; 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 l22-v6si11020060pgu.353.2018.05.30.21.16.20; Wed, 30 May 2018 21:16:34 -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=Mv8dnX4y; dkim=pass header.i=@codeaurora.org header.s=default header.b=dJ0rqtlI; 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 S1753819AbeEaEPe (ORCPT + 99 others); Thu, 31 May 2018 00:15:34 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44608 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089AbeEaEPc (ORCPT ); Thu, 31 May 2018 00:15:32 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 80EC96050D; Thu, 31 May 2018 04:15:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527740131; bh=nIqi1wwbMFHiXvfvW6Sr7VAz6pfuIh8baq8G31Mnxog=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Mv8dnX4yzc2RzAp+6yGMRILlW/OMqtRt9NL2Odua/EmKa2FYeoKj/CHqfHxWtI5HT cmat9HvHL7KpgQ6ldk05QKPs522Lb5Acy85KjGyDYRK60qj/xdMjQSYmMRljFXRNOZ 84/nFqWeMFS3c4b8iTII15a/GAexh4dg+8Z0mZ/A= 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 [10.79.40.88] (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5FAEF60452; Thu, 31 May 2018 04:15:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527740130; bh=nIqi1wwbMFHiXvfvW6Sr7VAz6pfuIh8baq8G31Mnxog=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=dJ0rqtlIv5roQCIHzSJzlDv93DnCj3hPH6TV9TgI1yWEXXCegzbsAYhUrYO/oRlSo s7holc/R43UTAT/y/UAbfwZT2FIdUbAnv9z3uRcYn4B32DzStyv+WndNJ8JiygBzXY LJ2xpkRKR3ReKAWzZt9GKR8X0TBGifxNnFnbi3Vw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5FAEF60452 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=rnayak@codeaurora.org Subject: Re: [PATCH v2 5/6] soc: qcom: rpmh powerdomain driver To: Rob Herring Cc: viresh.kumar@linaro.org, sboyd@kernel.org, andy.gross@linaro.org, ulf.hansson@linaro.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, collinsd@codeaurora.org References: <20180525100121.28214-1-rnayak@codeaurora.org> <20180525100121.28214-6-rnayak@codeaurora.org> <20180531033110.GA19195@rob-hp-laptop> From: Rajendra Nayak Message-ID: <9016e169-6c2a-57fd-4461-d5ec1e1aa573@codeaurora.org> Date: Thu, 31 May 2018 09:45:26 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180531033110.GA19195@rob-hp-laptop> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/31/2018 09:01 AM, Rob Herring wrote: > On Fri, May 25, 2018 at 03:31:20PM +0530, Rajendra Nayak wrote: >> The RPMh powerdomain driver aggregates the corner votes from various >> consumers for the ARC resources and communicates it to RPMh. >> >> We also add data for all powerdomains on sdm845 as part of the patch. >> The driver can be extended to support other SoCs which support RPMh >> >> Signed-off-by: Rajendra Nayak >> --- >> .../devicetree/bindings/power/qcom,rpmhpd.txt | 65 ++++ >> drivers/soc/qcom/Kconfig | 9 + >> drivers/soc/qcom/Makefile | 1 + >> drivers/soc/qcom/rpmhpd.c | 360 ++++++++++++++++++ >> 4 files changed, 435 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/power/qcom,rpmhpd.txt >> create mode 100644 drivers/soc/qcom/rpmhpd.c >> >> diff --git a/Documentation/devicetree/bindings/power/qcom,rpmhpd.txt b/Documentation/devicetree/bindings/power/qcom,rpmhpd.txt >> new file mode 100644 >> index 000000000000..c1fa986c12ee >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/power/qcom,rpmhpd.txt >> @@ -0,0 +1,65 @@ >> +Qualcomm RPMh Powerdomains >> + >> +* For RPMh powerdomains, we communicate a performance state to RPMh >> +which then translates it into a corresponding voltage on a rail >> + >> +Required Properties: >> + - compatible: Should be one of the following >> + * qcom,sdm845-rpmhpd: RPMh powerdomain for the sdm845 family of SoC >> + - power-domain-cells: number of cells in power domain specifier >> + must be 1 >> + - operating-points-v2: Phandle to the OPP table for the power-domain. >> + Refer to Documentation/devicetree/bindings/power/power_domain.txt >> + and Documentation/devicetree/bindings/opp/qcom-opp.txt for more details >> + >> +Example: >> + >> + rpmhpd: power-controller { >> + compatible = "qcom,sdm845-rpmhpd"; >> + #power-domain-cells = <1>; >> + operating-points-v2 = <&rpmhpd_opp_table>, >> + <&rpmhpd_opp_table>, >> + <&rpmhpd_opp_table>, >> + <&rpmhpd_opp_table>, >> + <&rpmhpd_opp_table>, >> + <&rpmhpd_opp_table>, >> + <&rpmhpd_opp_table>, >> + <&rpmhpd_opp_table>, >> + <&rpmhpd_opp_table>; >> + }; >> + >> + rpmhpd_opp_table: opp-table { >> + compatible = "operating-points-v2-qcom-level", "operating-points-v2"; >> + >> + rpmhpd_opp1: opp@1 { >> + qcom-corner = <16>; > > Is it corner or level? It should be level, I will fix it up when I respin. thanks. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation