From patchwork Thu May 31 10:59:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 10440735 X-Patchwork-Delegate: rjw@sisk.pl 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 41B336035E for ; Thu, 31 May 2018 11:01:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3AC3A29264 for ; Thu, 31 May 2018 11:01:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C776292B4; Thu, 31 May 2018 11:01:44 +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 B8D9829264 for ; Thu, 31 May 2018 11:01:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754663AbeEaLBP (ORCPT ); Thu, 31 May 2018 07:01:15 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:33223 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754498AbeEaLAI (ORCPT ); Thu, 31 May 2018 07:00:08 -0400 Received: by mail-lf0-f65.google.com with SMTP id y20-v6so9090952lfy.0 for ; Thu, 31 May 2018 04:00:08 -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=ZH39p/8/sSOGcDgWkxX291KKzmCdn80SkuLPNKHKcMQ=; b=YjFr0wp783aTrhBh84Ps/VHpMo8K6f4aGv7cDGL3ZL8Yj/cs47J7vlpeyyt5CICz1R 39GCXiDUUhVXtont1VrQlbRQ3czi+4Gs7qetDv0U3HKbCGK1LnIfQ60AuPEGCboCLaa2 9z1MzZDYipigKmguliYikQUBLfevOJSBRyq/8= 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=ZH39p/8/sSOGcDgWkxX291KKzmCdn80SkuLPNKHKcMQ=; b=N85bpJbnoC+hUEXamaQERbSFupNxbT7eXUYD8inmcj0EqX0PDyJzhNsXYfcDOLscfV /xKfUMEWR68Nw9PnyrxQB2e3NvqHoCgWozHsO7fQNKY0feCRWzG6o4JKkJ1TEJCXWKW1 jmFxeISWkLW1wZrZ7vTw701era/VAxYu10Y9N3K9Sg3iJT1rcOPyAG1iI8l40LMMWSsj Tjr+Ka0X1hfdSpLHIC6OWRETYRN+aWL4mtIGA0BhItn3x9fambwky9uEUpxKrsP8vrbA U6Q19HtGJlq+Fe7D9YPEpwulmxplCmHFd3J1zAjd4gRK31XlQmHeahid+3sgSuSbOLyS WvOQ== X-Gm-Message-State: ALKqPweX76AXjIgxPmLWOc+/c9dps0UlaldQUdF+NXKM3SO52hx1jb94 MOkGuDAQqhvQA0Qq8bdKkKFxk+9d7Ek= X-Google-Smtp-Source: ADUXVKIu02fHNyEgglOY/Vp1Pvlj6BoRvlakCvN+yV9KbqJrm3ntVx00gUxV8NyuaCvVXKweESp/eg== X-Received: by 2002:a2e:95d6:: with SMTP id y22-v6mr4786107ljh.90.1527764407490; Thu, 31 May 2018 04:00:07 -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 b20-v6sm7454383ljf.51.2018.05.31.04.00.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 04:00:06 -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 v3 1/5] PM / Domains: dt: Allow power-domain property to be a list of specifiers Date: Thu, 31 May 2018 12:59:55 +0200 Message-Id: <20180531105959.14843-2-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180531105959.14843-1-ulf.hansson@linaro.org> References: <20180531105959.14843-1-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 PM domain specifiers. Cc: Rob Herring Cc: devicetree@vger.kernel.org Suggested-by: Jon Hunter Signed-off-by: Ulf Hansson Reviewed-by: Rob Herring Reviewed-by: Viresh Kumar --- .../bindings/power/power_domain.txt | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/power/power_domain.txt b/Documentation/devicetree/bindings/power/power_domain.txt index 4733f76cbe48..9b387f861aed 100644 --- a/Documentation/devicetree/bindings/power/power_domain.txt +++ b/Documentation/devicetree/bindings/power/power_domain.txt @@ -111,8 +111,8 @@ 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 list of PM domain specifiers, as defined by bindings of + the power controller that is the PM domain provider. Example: @@ -122,9 +122,18 @@ 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@12351000 { + compatible = "foo,i-leak-current"; + reg = <0x12351000 0x1000>; + power-domains = <&power 0>, <&power 1> ; + }; + +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, +the first with index 0 and the second with index 1, of a power controller that +is represented by a node with the label "power. Optional properties: - required-opps: This contains phandle to an OPP node in another device's OPP