Received: by 10.223.164.202 with SMTP id h10csp4701221wrb; Wed, 29 Nov 2017 10:23:55 -0800 (PST) X-Google-Smtp-Source: AGs4zMbVNgZ5fE8gAIDlkxMp+Af77an4BKZLvMIM3malf9BEb057aPSb1mu4hGjZM3tBpKXgJzAD X-Received: by 10.98.242.9 with SMTP id m9mr3864075pfh.168.1511979835644; Wed, 29 Nov 2017 10:23:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511979835; cv=none; d=google.com; s=arc-20160816; b=sjSG9FozKIQWNMEkiPgQzH+AHnEJ0MXIf2MKS6hSp77SAnzwloHPlsnmg8DWJ2+pBL zTwPNkz1nC8fZJvnctDCmrDmSDw6aJ2uYdMYHu9t4OfUBie4nNL+SLkMMARdEbHZ0pYo qOQAZxkc8TIm900MIu3S/F+7LvhBwgdh8jkh0gOzP5/cz7RwirIJ/lbL6x3agFGUgN0c zVp0jiMkGbqYG9PCH1Vq8Ce6SgioKjJmyug53bH6y9ISiMD0E0u6KR64v7fQxUpj7DsK ITmqyDfJqdGDtz/4MzFJ952w+xysWONJ2oPHEWqmFqQq+r9ghlVcyqZjeS/obl2L6W0x pO9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=oK+egfs13tUVk4YTIvUU5/aXfjVNWYrvvKNrJp+atNE=; b=AnRQ9wTeOPFx+84dABo3ux3kflkbBfLfVNBA3tWJvmK2y30KDv31PZzdIitg3vK9uv 79jQwkksXkMNn3Y/cZZgZlqEGemQtvsL0X0qogWYvnfuhvpSb+9/nME3G2oSPcLAOMT5 IPHxrLpn6ZkPVyKl3NrxvfblQROwnHRTIW6sLXBcRv+ioZjRMMuDsWSbdhpGWyayE6um HM+dOLkPVoZgwCozzBfqI1Oh7zQkrwB+wKs193hRED6VNzzyjaMdw8F/SFQLhHSm9X1M oXDJslxDtzYhOQcwjtwrwlayAe5z3zZs+tjCW72cpK8e2B8wxr7TJF56Fa4SJ3Kw8iDW OdcA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y77si1732890pfk.376.2017.11.29.10.23.45; Wed, 29 Nov 2017 10:23:55 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755598AbdK2Qqd (ORCPT + 69 others); Wed, 29 Nov 2017 11:46:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:44102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752314AbdK2Qqb (ORCPT ); Wed, 29 Nov 2017 11:46:31 -0500 Received: from mail-qk0-f178.google.com (mail-qk0-f178.google.com [209.85.220.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ECB3C21984; Wed, 29 Nov 2017 16:46:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ECB3C21984 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh+dt@kernel.org Received: by mail-qk0-f178.google.com with SMTP id u184so5197123qkd.6; Wed, 29 Nov 2017 08:46:30 -0800 (PST) X-Gm-Message-State: AJaThX4biafIPpENJJrJSzRo8ZLJNNi6MvDEv96YcdZft55B2Tict9sE f7k0lOa5ueqxDGR7P+Uz16owGZcjJUiRPlXwLw== X-Received: by 10.55.97.209 with SMTP id v200mr5474988qkb.71.1511973990100; Wed, 29 Nov 2017 08:46:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.201.141 with HTTP; Wed, 29 Nov 2017 08:46:09 -0800 (PST) In-Reply-To: <2b244ea0a09deaf50237fb8b7578273a8284499e.1509453284.git.viresh.kumar@linaro.org> References: <2b244ea0a09deaf50237fb8b7578273a8284499e.1509453284.git.viresh.kumar@linaro.org> From: Rob Herring Date: Wed, 29 Nov 2017 10:46:09 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC V7 1/2] OPP: Allow OPP table to be used for power-domains To: Viresh Kumar Cc: Ulf Hansson , Kevin Hilman , Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" , "linux-pm@vger.kernel.org" , Vincent Guittot , Rajendra Nayak , Sudeep Holla , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 31, 2017 at 7:47 AM, Viresh Kumar wrote: > Power-domains can also have their active states and this patch enhances > the OPP binding to define those. > > The power domains can use the OPP bindings mostly as is. Though there > are some changes required to support special cases: > > - Allow "operating-points-v2" to contain multiple phandles for power > domain providers providing multiple domains. > > - A new property "power-domain-opp" is added for devices to specify the > minimum required OPP of the master domain for the functioning of the > device. We can add this property directly to device's node if the > device has a fixed minimum OPP requirement from the master power > domain. Or we can add this property to each OPP node of the device, if > different OPP nodes have different minimum OPP requirement from the > master power domain. > > Signed-off-by: Viresh Kumar > --- > Documentation/devicetree/bindings/opp/opp.txt | 12 +++++ > .../devicetree/bindings/power/power_domain.txt | 62 ++++++++++++++++++++++ > 2 files changed, 74 insertions(+) > > diff --git a/Documentation/devicetree/bindings/opp/opp.txt b/Documentation/devicetree/bindings/opp/opp.txt > index 9d733af26be7..203e09fe7698 100644 > --- a/Documentation/devicetree/bindings/opp/opp.txt > +++ b/Documentation/devicetree/bindings/opp/opp.txt > @@ -45,6 +45,11 @@ Devices supporting OPPs must set their "operating-points-v2" property with > phandle to a OPP table in their DT node. The OPP core will use this phandle to > find the operating points for the device. > > +This can contain more than one phandle for power domain providers that provide > +multiple power domains. That is, one phandle for each power domain. If only one > +phandle is available, then the same OPP table will be used for all power domains > +provided by the power domain provider. > + > If required, this can be extended for SoC vendor specific bindings. Such bindings > should be documented as Documentation/devicetree/bindings/power/-opp.txt > and should have a compatible description like: "operating-points-v2-". > @@ -154,6 +159,13 @@ properties. > > - status: Marks the node enabled/disabled. > > +- power-domain-opp: This contains phandle to one of the OPP nodes of the master > + power domain. This specifies the minimum required OPP of the master domain for > + the functioning of the device in this OPP (where this property is present). > + This property can only be set for a device if the device node contains the > + "power-domains" property. Also, either all or none of the OPP nodes in an OPP > + table should have it set. This is a "this device requires OPP n" property. Couldn't we want this for cases other than a powerdomain OPP? What if a device has requirements 2 different OPPs? On the flipside, I don't think we want devices picking things like CPU OPPs and putting policy here. But I'd rather things be extendable than reviewing yet another OPP property next month. Rob From 1585425695712451822@xxx Wed Nov 29 18:22:46 +0000 2017 X-GM-THRID: 1582777349862922949 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread