From patchwork Fri May 18 10:31:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 10409451 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EA28A60230 for ; Fri, 18 May 2018 10:32:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC59A28908 for ; Fri, 18 May 2018 10:32:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D06062890E; Fri, 18 May 2018 10:32:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5913428908 for ; Fri, 18 May 2018 10:32:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752658AbeERKcA (ORCPT ); Fri, 18 May 2018 06:32:00 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:36867 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752586AbeERKb4 (ORCPT ); Fri, 18 May 2018 06:31:56 -0400 Received: by mail-lf0-f65.google.com with SMTP id r2-v6so13228982lff.4 for ; Fri, 18 May 2018 03:31:55 -0700 (PDT) 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; bh=SVjBUAD346aCNJoRL9NhmrACmsm4gOdU4wLskwp7B4Q=; b=aS1+0njrQYgYF6HuGy79UcjoA4O7XOlS7mbORzzyWjWKy+R0+FKk/eP59UjDqN2SI1 pILFYSSfDa3562021cObIbp81BE+cN3jb+XRc+I0ADSVUmwLfW1jz034u4bkirRl7k/U YMM4SvC4y4g0cLWaMNk5EveBU4L/nN6vkrrEQ= 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; bh=SVjBUAD346aCNJoRL9NhmrACmsm4gOdU4wLskwp7B4Q=; b=ie1eNnNuglYnPInOXl2HEabATASTnYLOpr21+WzQLicbHEYk5PucxmBnbBjWAmNk1T XJ0xS93B/8PCSKTYkviqugawgGAH6KfS3PYO44l6FXDuWdIm8G4xudcIIoQDbhq5rCEc OrYiWyDSrQQsnYyaCcuG7CvPy1oSSQ9fOUi9ya2Lsm3OOuUVacoajWHQwY211kcA2uwG 4nFd1GQdPpebBkMEkeXH74+TVONUuz78h1OfHKW6bFkHXlSK6v64lTDMlJ9F8bMres+C gY6It12r7CEjIBatGhGbsgTPEi5WnVbu47yyEIhrttaNSC/xRaOtSa338soc6vszbgXh SDZA== X-Gm-Message-State: ALKqPwcecWk2MPsLycsZjO1LPCCtIGFG6GaLzkxWb+kM8UvzZrYTYtAa YCO+50v8mviS9AOFLomnjWDpjA== X-Google-Smtp-Source: AB8JxZpQtY/3mk2mu2NoKbovx7CxdsdaBwJLVXwKQnQEVUBi57Jtmko0CQE781wg3SUvya9Yvn69tw== X-Received: by 2002:a19:df55:: with SMTP id q21-v6mr766042lfj.56.1526639514100; Fri, 18 May 2018 03:31:54 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id u14-v6sm393447lfk.55.2018.05.18.03.31.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 May 2018 03:31:53 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Ulf Hansson , Greg Kroah-Hartman , Jon Hunter , Geert Uytterhoeven , Todor Tomov , Rajendra Nayak , Viresh Kumar , Vincent Guittot , Kevin Hilman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Subject: [PATCH 5/9] PM / Domains: dt: Allow power-domain property to be a list of phandles Date: Fri, 18 May 2018 12:31:26 +0200 Message-Id: <1526639490-12167-6-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526639490-12167-1-git-send-email-ulf.hansson@linaro.org> References: <1526639490-12167-1-git-send-email-ulf.hansson@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To be able to describe topologies where devices are partitioned across multiple power domains, let's extend the power-domain property to allow being a list of phandles. Cc: Rob Herring Cc: devicetree@vger.kernel.org Suggested-by: Jon Hunter Signed-off-by: Ulf Hansson --- .../devicetree/bindings/power/power_domain.txt | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/power/power_domain.txt b/Documentation/devicetree/bindings/power/power_domain.txt index 4733f76..b27ae7f 100644 --- a/Documentation/devicetree/bindings/power/power_domain.txt +++ b/Documentation/devicetree/bindings/power/power_domain.txt @@ -111,8 +111,9 @@ Example 3: ==PM domain consumers== Required properties: - - power-domains : A phandle and PM domain specifier as defined by bindings of - the power controller specified by phandle. + - power-domains : A phandle and PM domain specifier, or a list of phandles, as + defined by bindings of the power controller specified by + phandle. Example: @@ -122,9 +123,16 @@ Example: power-domains = <&power 0>; }; -The node above defines a typical PM domain consumer device, which is located -inside a PM domain with index 0 of a power controller represented by a node -with the label "power". + leaky-device@12350000 { + compatible = "foo,i-leak-current"; + reg = <0x12350000 0x1000>; + power-domains = <&power0 0>, <&power1 0> ; + }; + +The first example above defines a typical PM domain consumer device, which is +located inside a PM domain with index 0 of a power controller represented by a +node with the label "power". In the second example the consumer device are +partitioned across two PM domains. Optional properties: - required-opps: This contains phandle to an OPP node in another device's OPP