Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp160251imm; Wed, 30 May 2018 20:29:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKtVIeb0nHoMEGUvrCDISCZxELh1hR+KldrHc1Kr6aRGYNtgqK1yMMXUW38PzGy53fIdw/P X-Received: by 2002:a63:a401:: with SMTP id c1-v6mr4149519pgf.110.1527737347074; Wed, 30 May 2018 20:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527737347; cv=none; d=google.com; s=arc-20160816; b=i/6lkHBBEb0t7efeW8pGtTHM2Qo831wtn695uS+NJsWbtc8ZR8csLRlfkgIS9AVXig qmcvnRmKeSnK4kJuXa4QGSDn9vkc/oukk/ObdYobI81Doh6EZ5EGk5MoUKXEifaqQlJg R9LaFbBWXKdKg3PueZUFnypUJ38jooOkzFNKZ/gGBfY3sUuYHnAIgodfcPKhHnWjpM1o H1qNWC/bz8Oy0NSae4myiytdknrvRoF9jd0vSRp+tMllIPu6R3tGj/S/8lk5lv16v72z xsfQ2741S5PGKQ6CUjqodRR4yjlk0RqvXkDlLjlo1ZlsgbMOvDbejzcTTbSrcmr5D6PU LWPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=wbC4C3MwzBYaljeXrtPzRPcEe/KQTxbfvsynQs4yegI=; b=vF8uAo99P+WG5xq0rAv8UPKXHSJE4yHbb1CQISAruvbm/yTd3pPE388/JMXPwIo4zV cclL0dahHP1sAHxyCfIRc2OwzsXO9xR5vYX/KqfckEK0PS7Ett9IzREeORFA3JLWq7Dy Tg9juzdVmAHxN1rBkgw5TkCrl8ZI9UrEj6QlZkXGIwOa3ny8pRnMYkeP9+7vQ9OJ0NFP m+OZx5FMh2ib3Q9incR8nbLXvwp59TH+vHkfjn7RLPJ3dDD0uNeF0dyNkTYr1j+3oXBC kKzsdYDju66nHmQ+Xc5lwU3VcShQL7aEEu4IXbrSjEYyjRstWswG2YLz07xvp8gO7ER/ n0Kw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m4-v6si35406951plt.561.2018.05.30.20.28.53; Wed, 30 May 2018 20:29: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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932720AbeEaD1P (ORCPT + 99 others); Wed, 30 May 2018 23:27:15 -0400 Received: from mail-yb0-f196.google.com ([209.85.213.196]:45218 "EHLO mail-yb0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932637AbeEaD1M (ORCPT ); Wed, 30 May 2018 23:27:12 -0400 Received: by mail-yb0-f196.google.com with SMTP id r13-v6so7103961ybm.12; Wed, 30 May 2018 20:27:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wbC4C3MwzBYaljeXrtPzRPcEe/KQTxbfvsynQs4yegI=; b=rQq8zZCpK06k+vlp1Dsumv0Ym9moYeOW/womw3vR9+tp8vD4PejXpBxuoCLaU5fo/9 YbNjS5xZjL6qsRsJtFlSdjIgeJgRZvMFNTxcKJIJNVT4eTbG/y5ttGgcCb1YUcRNCei4 ZYIR3ddcSeqFs+jaa35NbNDKSL2PBdYPXcN7sMPeFmVG3e+1ywsqekKFWdFv2qKWarRQ ut91SSmiraojzVgoYlzFNziEcoThim1471z3Olq9QCR5dViKXhb6PBOL1TYLE27uJ+XV VvjxI1RsuaLuCFjdmsPk65QX1t4RB13j2Kmn3OhiezGTR6NVZKIgbYB7vSdtx61CRdp3 7N0w== X-Gm-Message-State: ALKqPwfMWl55f8TFxZ3PZHlINepq2hIMJs+npRtMgoVyx2rVQdoNZrl+ 1CORcGrPkMGZQqRYEc3fPg== X-Received: by 2002:a25:1402:: with SMTP id 2-v6mr2857233ybu.454.1527737232268; Wed, 30 May 2018 20:27:12 -0700 (PDT) Received: from localhost (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.gmail.com with ESMTPSA id t63-v6sm17187936ywt.56.2018.05.30.20.27.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 May 2018 20:27:11 -0700 (PDT) Date: Wed, 30 May 2018 22:27:09 -0500 From: Rob Herring To: Rajendra Nayak 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 Subject: Re: [PATCH v2 1/6] soc: qcom: rpmpd: Add a powerdomain driver to model corners Message-ID: <20180531032709.GA13554@rob-hp-laptop> References: <20180525100121.28214-1-rnayak@codeaurora.org> <20180525100121.28214-2-rnayak@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180525100121.28214-2-rnayak@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 25, 2018 at 03:31:16PM +0530, Rajendra Nayak wrote: > The powerdomains for corners just pass the performance state set by the > consumers to the RPM (Remote Power manager) which then takes care > of setting the appropriate voltage on the corresponding rails to > meet the performance needs. > > We add all powerdomain data needed on msm8996 here. This driver can easily > be extended by adding data for other qualcomm SoCs as well. > > Signed-off-by: Rajendra Nayak > Signed-off-by: Viresh Kumar > --- > .../devicetree/bindings/power/qcom,rpmpd.txt | 55 ++++ > drivers/soc/qcom/Kconfig | 9 + > drivers/soc/qcom/Makefile | 1 + > drivers/soc/qcom/rpmpd.c | 299 ++++++++++++++++++ > 4 files changed, 364 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/qcom,rpmpd.txt > create mode 100644 drivers/soc/qcom/rpmpd.c > > diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.txt b/Documentation/devicetree/bindings/power/qcom,rpmpd.txt > new file mode 100644 > index 000000000000..68f620a2af0d > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.txt > @@ -0,0 +1,55 @@ > +Qualcomm RPM Powerdomains > + > +* For RPM powerdomains, we communicate a performance state to RPM > +which then translates it into a corresponding voltage on a rail > + > +Required Properties: > + - compatible: Should be one of the following > + * qcom,msm8996-rpmpd: RPM Powerdomain for the msm8996 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: > + > + rpmpd: power-controller { > + compatible = "qcom,msm8996-rpmpd"; > + #power-domain-cells = <1>; > + operating-points-v2 = <&rpmpd_opp_table>, > + <&rpmpd_opp_table>, > + <&rpmpd_opp_table>, > + <&rpmpd_opp_table>, > + <&rpmpd_opp_table>, > + <&rpmpd_opp_table>, > + <&rpmpd_opp_table>; > + }; > + > + rpmpd_opp_table: opp-table { > + compatible = "operating-points-v2-qcom-level", "operating-points-v2"; > + > + rpmpd_opp1: opp@1 { unit-address without reg property is not valid. > + qcom,level = <1>; Is this the only property? If so, I don't see the point in trying to use operating-points-v2 here. Rob