Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4252306imm; Wed, 30 May 2018 01:57:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI8YMivMt0nfGDKSHKURt2nLv+W1xGu/YR6zaQT7JM++eIphPulpu0RKqTSxeZckjI6ojA1 X-Received: by 2002:a63:8f0d:: with SMTP id n13-v6mr1567563pgd.109.1527670642332; Wed, 30 May 2018 01:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527670642; cv=none; d=google.com; s=arc-20160816; b=hnt3+v/bcxQPKKDZ3oZ9RHvzj02c2Y/p4Y1k3heisxq/RCS+l+bf7dLXxdQE5wNvwj ePeDK+FB5ilZresrGupUc5FL9N5ZdDyvNLGwIAa0zKuDQIm5Y6JZGjJsprjHp8wp3yrh gzMZbZu+py3BBrAqFKxJyiFo+dd/OVRx02SDnrWXd/CZXs5fxr5U1OKfrXs5m1rMHBSD RA0HxQXMmCWJrqaLLDMNHYOVFXZqsc+HKZjFS4/gXXxx8OjcsBeU7vTBZkTfV6pjqwwN FYKvOWa4ma+8ogJY1zycs2k5/evrnUKx2oPNzkV8KKMFpaT0dbWBZ0DiNsiY40F3Rl++ nZmg== 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:references:cc:to:from:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=v/LzHJUKW/+Wm1hUchfk3TNDp1SLnPYptJgQoju3v3s=; b=j+Q1DYCBDBZNyQu57qCQYc+Iqm0OU66iy4E7ha7mTtaxBFO8d6/hBHo56KiWpCDgCC Jb3WqtWyL+xiYc7Ywm+R0ukFmoRiqcqIABM3LRP0PPzhte2WuC8EoMXetPQNDMwLAc1N QDYCKl7aGRh4MDxSAu2wbgnOxRb+2x89uf3k/gw/4Dk01UWEDt/Ry4tU7N1/BcjRmKRm QybvrAPyq75uWPohsbPOYw7QtIooeThblrm2JR+r5VjpQLjTT1aLGtk0SYpvOtny3ajC s+wTb70CYOhNtj4TLm33GIHPLSJq911ajyymhpg0zXxrOOvGFfka2JTxaSKMPTwy7Srf 9JKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=JM/UME1H; dkim=pass header.i=@codeaurora.org header.s=default header.b=H3Pbqw1U; 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 j123-v6si34647581pfg.156.2018.05.30.01.57.08; Wed, 30 May 2018 01:57:22 -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=JM/UME1H; dkim=pass header.i=@codeaurora.org header.s=default header.b=H3Pbqw1U; 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 S936053AbeE3Izf (ORCPT + 99 others); Wed, 30 May 2018 04:55:35 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45080 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964790AbeE3Iz2 (ORCPT ); Wed, 30 May 2018 04:55:28 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2268C60242; Wed, 30 May 2018 08:55:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527670528; bh=JsDYzdylZ2sv7dZJvxmDpSJG7w206LkAbyIoUmuTmnY=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=JM/UME1HA+zY9A70BVExwRSZfcHlv9ShppEx4nKI/zP3VLuMScmo9Bv3iwJYGxyz7 JqFCZQ4g+QQjgAosllplcMBB/pjhFC+868T9h1629Rh7oQDX3xgP08371yf6wRBUxl eEYbhYEyoxT0dHOJIvpt6yF+potbWhy+ggucS+is= 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 ECA3C6060A; Wed, 30 May 2018 08:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527670527; bh=JsDYzdylZ2sv7dZJvxmDpSJG7w206LkAbyIoUmuTmnY=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=H3Pbqw1UA1YCvodzp+JE5rAL/p0b9QAzWileXnRZ/RXosblvnX7+EYxN3G5z2LIkk b8Iy0F0Fxg7AQT8UTWKBQM47VVyslyrI69BhRD/hRWnr92l/RsI6jDBQtdbgYQzffH XralRkoaQH763Sa9I+GvglPujwk2g30CghxZr6Ns= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org ECA3C6060A 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 From: Rajendra Nayak To: David Collins , viresh.kumar@linaro.org, sboyd@kernel.org, andy.gross@linaro.org, ulf.hansson@linaro.org Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Lina Iyer References: <20180525100121.28214-1-rnayak@codeaurora.org> <20180525100121.28214-6-rnayak@codeaurora.org> <215deee5-6472-d587-9a90-f7158162ed82@codeaurora.org> <6f8e5fe2-199d-ba1f-19d7-2faf276075f3@codeaurora.org> Message-ID: <36822404-bdf5-1915-03e7-e5ffcff05c9b@codeaurora.org> Date: Wed, 30 May 2018 14:25:22 +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: <6f8e5fe2-199d-ba1f-19d7-2faf276075f3@codeaurora.org> 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 []... >>> +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>; >> >> Can this be changed to simply: >> operating-points-v2 = <&rpmhpd_opp_table>; >> >> The opp binding documentation [1] states that this should be ok: >> >> If only one phandle is available, then the same OPP table will be used >> for all power domains provided by the power domain provider. > > thanks, I mentioned this to Viresh but didn't realize he fixed it up. > Will remove the redundant entries. Looks like the kernel implementation does not handle this yet, and I get an error adding the OPP tables for the powerdomains if I just specify a single OPP table phandle. Viresh, is this expected with the latest patches in linux-next? It would be good if I can specify just one phandle instead of coping the same phandle n times. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation