From patchwork Mon Dec 18 10:21:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 849969 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="O8gaDOy8"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3z0cYJ0xwSz9s74 for ; Mon, 18 Dec 2017 21:22:44 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932676AbdLRKVl (ORCPT ); Mon, 18 Dec 2017 05:21:41 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:38652 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932673AbdLRKVj (ORCPT ); Mon, 18 Dec 2017 05:21:39 -0500 Received: by mail-pl0-f66.google.com with SMTP id s10so4533862plj.5 for ; Mon, 18 Dec 2017 02:21:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=29BFueaUqnPAvIVGidV3zrJwSsTZ8eHf7P6+XKZVmuE=; b=O8gaDOy8GuYgIS2/o2fKNmx6HAU1Px04vX+aZZQEUHWcB1Y8WacYAfk7YlV4tyoFqM G8f1euPIQEHXtVfqa7tXqzIEjcn+TDU7Wk9ZLHlOzhI2iKyaRUyQmlq8LEoONjSPwvp2 DIH4WVDHA/tjjXj/iFHfG9KvPe8N44qeaH2AA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=29BFueaUqnPAvIVGidV3zrJwSsTZ8eHf7P6+XKZVmuE=; b=dBoX3QUmn3/CygVyeebh+1Qow2kZiJFfuCebfxoo7hsKzMTyqWrDuNEZgeiAGPlJVu akJtv+Nz1WNwQdQL0STG4oPA7R8goRyYyK/cNZqxcPwBkdfH5NRmcYfScS3qTWzDzQmP zWkae8A/MnG2ifeLD5NsihFSObnpCxD+pkLGqGbpuCCrigXh2CI2E2r1abRGWHALWkb7 ztnkGzTFBlkzpyqaVPJebQOlrn5f2VKGdQlYgwkuFlR8cQIhcahcaXc1eyKOycsq7JKP ufQ8LD8EdtuPmiQHIXP31R6ldJEWrmqB2pcRhV/k1kKdG9n9qlDFwyy1Gu4g91gUDJpc IRmA== X-Gm-Message-State: AKGB3mISM4EulWAIO8EwEdc5h6ZNiJPchjq3UF9AyRrvmGKxvuxQxLJx Gfw4HuCK0wVIynwaWVeZbOv8Qw== X-Google-Smtp-Source: ACJfBouMwIXxgBjYR4BD1eZKwQ04Kb9FurUD9WHgDtM4K7cB7/t0xTlNeHZDPEy76K1Y4RL4uWv5SA== X-Received: by 10.84.129.37 with SMTP id 34mr6074849plb.86.1513592498566; Mon, 18 Dec 2017 02:21:38 -0800 (PST) Received: from localhost ([122.172.99.7]) by smtp.gmail.com with ESMTPSA id 69sm25489795pft.11.2017.12.18.02.21.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Dec 2017 02:21:38 -0800 (PST) From: Viresh Kumar To: ulf.hansson@linaro.org, Kevin Hilman , robh+dt@kernel.org, Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , rnayak@codeaurora.org, sudeep.holla@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V8 1/3] OPP: Allow OPP table to be used for power-domains Date: Mon, 18 Dec 2017 15:51:28 +0530 Message-Id: <9cd1e90c782a8569d098adb63bee7dd1387528c4.1513591822.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 as is, with one additional change to Allow "operating-points-v2" property to contain multiple phandles for power domain providers providing multiple domains. Reviewed-by: Ulf Hansson Signed-off-by: Viresh Kumar Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/opp/opp.txt | 5 +++++ Documentation/devicetree/bindings/power/power_domain.txt | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/opp/opp.txt b/Documentation/devicetree/bindings/opp/opp.txt index 9d733af26be7..a3953a1bb1a1 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-". diff --git a/Documentation/devicetree/bindings/power/power_domain.txt b/Documentation/devicetree/bindings/power/power_domain.txt index 14bd9e945ff6..61549840ab3b 100644 --- a/Documentation/devicetree/bindings/power/power_domain.txt +++ b/Documentation/devicetree/bindings/power/power_domain.txt @@ -40,6 +40,12 @@ phandle arguments (so called PM domain specifiers) of length specified by the domain's idle states. In the absence of this property, the domain would be considered as capable of being powered-on or powered-off. +- operating-points-v2 : Phandles to the OPP tables of power domains provided by + a power domain provider. If the provider provides a single power domain only + or all the power domains provided by the provider have identical OPP tables, + then this shall contain a single phandle. Refer to ../opp/opp.txt for more + information. + Example: power: power-controller@12340000 {