Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp187139imm; Wed, 30 May 2018 21:15:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKkYcwCfyjPlRe7J8WgBGFje8oQMxMyHV7810coJ0WcIel3SkLm6j7biqmxhWtLN6AchiGB X-Received: by 2002:a65:5382:: with SMTP id x2-v6mr4255506pgq.160.1527740117122; Wed, 30 May 2018 21:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527740117; cv=none; d=google.com; s=arc-20160816; b=pWlT4jpxlqAfInYaVqe4eOEgwDMFUmnVidI8kiadQy7sGbIV4DImu06wYBhoYfRzhb mfk1ssumb1/kjK9J1oNilcSaUSFlGosdsGVWw4sN2NWePL9s/TwzYemOd2t1fatkVqLh Urn18nAJsYXQHAZIezz1jogq8lOhVij2906zZWdb6a1JlRjQe3cZKL/Fh0UxKhejlr3W 2wAf34jaTC7nMNvobVetsHUOT/H9RbMXTeWxgcVbiPEoB7G+7eI01ZOsSvLVK6rGkhbv 7dR1dgccm7QAZKpiB26VyagqTKjV9OXUgBJ+/Yya7RiAwrQq4QET/s7/Khdn+kA1i3RE 6O5g== 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=y/ngNGVyIR3kgoHJnvg1FqAdWwyJN+8XJzovxGNsVNg=; b=F5OaKo7bH2Jwn6GB6OO36plVELbMGr6c8kV7lpEEl1Q1bs8dZrM5omBp32D6NdZoZk qMvNVnh931H+fD237E51d30PZd7Kka7FcFpClzxxDJCHVDR39H+gUczYiVJuFNU125wb xwM8gDmysic5c4U9d+VKksYRVV5Y2XpC7iQn5BSdxg7nqT4/lDwqY1iui9pZ7scf61Tv Of+2glqqzWzfj4cG8IR1sgIwCX03tsfKuG78axR16vj7DifQUuD00U4H432kkUZrcyiH o6r+Sy5rHQsFWbgDh8R/exI2iQArmu8T6WSQpYPXFO5+iRUxGna2GZfQWMD9z6tXHFwi 4n7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=aAzgUunP; dkim=pass header.i=@codeaurora.org header.s=default header.b=bJxaN5U3; 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 q2-v6si22469604pgf.432.2018.05.30.21.15.02; Wed, 30 May 2018 21:15:17 -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=aAzgUunP; dkim=pass header.i=@codeaurora.org header.s=default header.b=bJxaN5U3; 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 S1751518AbeEaEOh (ORCPT + 99 others); Thu, 31 May 2018 00:14:37 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:43734 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750868AbeEaEOd (ORCPT ); Thu, 31 May 2018 00:14:33 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0BFD060452; Thu, 31 May 2018 04:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527740073; bh=HtbZfP+5a8t28E4auVBIfyIshLwb3ubxDANAOh3fb0I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=aAzgUunP1Jisp++Cwtf5kcLELvOxFvnzoSuDKSGL/530aGIIefjxbwwIXxOmYhquN yMaiDpjgOBJjW8JrDot/xrGONoK4kQwD4K1ZucVh/Ps3PYDKNarVnnZMgg/2o21SI5 ja4FvxqnRGzyPJC6SjMgZyM0yc7458poArnDoX6c= 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 CB9A9602BC; Thu, 31 May 2018 04:14:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527740072; bh=HtbZfP+5a8t28E4auVBIfyIshLwb3ubxDANAOh3fb0I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=bJxaN5U3kBqHIE9eNwGH5W/Aahvah62ZYEw5J49hf5u6NOth1vwACvCA/Urg5gJji mMmcz4Puxxu+bM4cqecydxbHe+ZF9sREhMBTszWIxoupwuW/5fLKNrhQ0WY+XJChG/ PXj3U/eNGNkpc4Jc8KxiVRqbwjoKajwT/coBGDkQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CB9A9602BC 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 1/6] soc: qcom: rpmpd: Add a powerdomain driver to model corners 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-2-rnayak@codeaurora.org> <20180531032709.GA13554@rob-hp-laptop> From: Rajendra Nayak Message-ID: Date: Thu, 31 May 2018 09:44:27 +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: <20180531032709.GA13554@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 08:57 AM, Rob Herring wrote: > 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. Thanks, I'll drop the unit address above and the compatible here. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation