Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp138538imm; Tue, 3 Jul 2018 15:36:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdaeJtKidiwxNqYA+psXzuU/v+7XbQd1f8SvyO/lOH+YJLd5lDcrYuHMSy6K8/aFcxsI5Vs X-Received: by 2002:a65:4d05:: with SMTP id i5-v6mr22621528pgt.58.1530657415437; Tue, 03 Jul 2018 15:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530657415; cv=none; d=google.com; s=arc-20160816; b=jP60cPwXV572feNDLpUQkZyRmnUkte3/+PrEDfb3Qb5J3ioehqBGbt0nZN7pLVrBOa U3BKwgipFQ9m5MFxQbKsUmq2tG1pHhzttmh0K2Mvic0IRTMXRNTcE049Dm2mMv+fJ2so 8Tkua/FXY5QpDSl5BGMMix8rQWD+cUmp12g3DnCOEMlzcx/4LdVJlRn436TvOlkpHQPY zSnh/83Ua5NodSgb3o240QEvTeYMpEPUIot2LbzcvukQOcbIv4O1O6e8dh9tP6Sc5Oia S3nFCLcr3nMw5Qc4EGfZXyPxTRz1XoOQEzfggCVTs9DjCM9x+UNDt1R4Om1TGtyb19jf wNzA== 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=R1ySuh5OZkuaI1wPY3sXyQa5Ft6yJdbu/YK3TSu6Tkk=; b=txEM/s+5NwfoLLdJTSMAiLEvtSJaICi3cczGxak6ix5j9y+aMZpV8dgaRV7ogF+0F7 rxvqiY1H2A+iHunFGtTBGT1ZdFRCpQIkrqcrPhVe+dFo4hdPqW0Gw+jnEO0gk5ut7gv9 Nccrx+e3rgnSz5HPOHishZKqc6xGrSFdjzhuFXoP6gRq9FVgH04Vpl//Dz+wOE3ur88C r8nEMT5b05i4qAFt9a18opVyGrNhUkbAnQ0tyzxYlzgjjU1nue78YMCReC/N86y/4j1o jQrdZ4irzV27p2rqWRGuW1vuTMVz9QEOHK4/T30itEg9tw18gecV95uopsYFqrBzqtCY EJOg== 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 k2-v6si2189131pfh.252.2018.07.03.15.36.40; Tue, 03 Jul 2018 15:36:55 -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 S932170AbeGCWgA (ORCPT + 99 others); Tue, 3 Jul 2018 18:36:00 -0400 Received: from mail-yb0-f195.google.com ([209.85.213.195]:39763 "EHLO mail-yb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753105AbeGCWf6 (ORCPT ); Tue, 3 Jul 2018 18:35:58 -0400 Received: by mail-yb0-f195.google.com with SMTP id k127-v6so1348273ybk.6; Tue, 03 Jul 2018 15:35:58 -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=R1ySuh5OZkuaI1wPY3sXyQa5Ft6yJdbu/YK3TSu6Tkk=; b=oAYh0izJFctb63FRDP6p7Iw+hMUPyfpl4EsBs04RN4LLPgN9kGQx69QNOg2+VHHQOy vAEyV4ujS5EJj1Y8uq7TTibzsPBKiDWchbXtIjupBd3A5Rzf3t290u42RlBAhfKe+FDw z03bSEa3Hhl0Ltg3Zi1TbCAY8GIAJOa+liCSQbkn0x5vGnFbuxPMpjXrSGe1sv6/iqvd rvDlxp4PvUSAe7HjdakAywgPO/8AG/cICHs0GhYItEVh5r2SXNDV0eoDoXbgoz3yAsgG iRxVWVzAbpm7sbhVhHaQveIy/xtu398ukavFAnD3b2iuhdoRYuSAGoqG4qp9Hb5D7CP+ T3zQ== X-Gm-Message-State: APt69E2wG7qMZhFoHAIzFIVo2Gt9QBB1mChJQctZlSJZfaVaue/BI2bn qiEAaqdt4MOykAKyeF/dbg== X-Received: by 2002:a25:44d7:: with SMTP id r206-v6mr16143933yba.475.1530657358161; Tue, 03 Jul 2018 15:35:58 -0700 (PDT) Received: from localhost (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.gmail.com with ESMTPSA id m128-v6sm769168ywe.100.2018.07.03.15.35.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 15:35:57 -0700 (PDT) Date: Tue, 3 Jul 2018 16:35:54 -0600 From: Rob Herring To: Rajendra Nayak Cc: viresh.kumar@linaro.org, sboyd@kernel.org, andy.gross@linaro.org, ulf.hansson@linaro.org, collinsd@codeaurora.org, mka@chromium.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/6] dt-bindings: power: Add qcom rpm power domain driver bindings Message-ID: <20180703223554.GA32313@rob-hp-laptop> References: <20180627045234.27403-1-rnayak@codeaurora.org> <20180627045234.27403-3-rnayak@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180627045234.27403-3-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 Wed, Jun 27, 2018 at 10:22:30AM +0530, Rajendra Nayak wrote: > Add DT bindings to describe the rpm/rpmh power domains found on Qualcomm > Technologies, Inc. SoCs. These power domains communicate a performance > state to RPM/RPMh, which then translates it into corresponding voltage on a > PMIC rail. > > Signed-off-by: Rajendra Nayak > Signed-off-by: Viresh Kumar > Reviewed-by: Ulf Hansson > --- > .../devicetree/bindings/power/qcom,rpmpd.txt | 146 ++++++++++++++++++ > include/dt-bindings/power/qcom-rpmpd.h | 39 +++++ > 2 files changed, 185 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/qcom,rpmpd.txt > create mode 100644 include/dt-bindings/power/qcom-rpmpd.h > > diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.txt b/Documentation/devicetree/bindings/power/qcom,rpmpd.txt > new file mode 100644 > index 000000000000..8825080afa5a > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.txt > @@ -0,0 +1,146 @@ > +Qualcomm RPM/RPMh Power domains > + > +For RPM/RPMh Power domains, we communicate a performance state to RPM/RPMh > +which then translates it into a corresponding voltage on a rail > + > +Required Properties: > + - compatible: Should be one of the following > + * qcom,msm8996-rpmpd: RPM Power domain for the msm8996 family of SoC > + * qcom,sdm845-rpmhpd: RPMh Power domain 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 > + > +Refer to for the level values for > +various OPPs for different platforms as well as Power domain indexes > + > +Example: rpmh power domain controller and OPP table > + > +#include > + > +qcom,level values specified in the OPP tables for RPMh power domains > +should use the RPMH_REGULATOR_LEVEL_* constants from > + > + > + rpmhpd: power-controller { > + compatible = "qcom,sdm845-rpmhpd"; > + #power-domain-cells = <1>; > + operating-points-v2 = <&rpmhpd_opp_table>; > + }; > + > + rpmhpd_opp_table: opp-table { > + compatible = "operating-points-v2-qcom-level"; > + > + rpmhpd_opp_ret: opp1 { > + qcom,level = ; > + }; I don't see the point in using the OPP binding here when you aren't using *any* of the properties from it. Rob