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: 10440737 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 8EB386035E for ; Thu, 31 May 2018 11:02:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83F0128F25 for ; Thu, 31 May 2018 11:02:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7756529125; Thu, 31 May 2018 11:02:24 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2C21C28F25 for ; Thu, 31 May 2018 11:02:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=3aOZ+2cFm78h0QPCwwoukpShp5bSxaQOrOrh6gXhTmY=; b=Sf51vgbRFrVSpWoLOncv3F8DTd Bq5bHz5UBPe+ctdfK1dRmAHsOFJAy+sKfbAzvtc2vpo29/KtHmss3+YTUY4F607kYwoNZHHjWi597 ROT+I2JK/7RI2foClDpmYS5EgUjfenWiq1zLBg2fqfx07pYmsxz1hA/RTO9ewRCsnJw9BJBlijXYL 4oBn1EuchpjQrzbhqIuooruMuLd0iIV4AMRpMb5yEtp0DKy2DsL6diyh5y6jSBl9tyxbQexdAVn6E d9E2hkh5bEeA27xO001mblQ1TPGpOjj5lwFS6MZgNvH71ACcd+xC59pQJ37rF1k+Qz8EKXCJaF0ky lEtZJBAw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fOLLQ-0004Tk-4S; Thu, 31 May 2018 11:02:12 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fOLJb-0002nu-Go for linux-arm-kernel@lists.infradead.org; Thu, 31 May 2018 11:00:22 +0000 Received: by mail-lf0-x243.google.com with SMTP id j13-v6so4656409lfb.13 for ; Thu, 31 May 2018 04:00:09 -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=jRlyjmWUOT685IkVOoirPc+lVded7x1t+DaL2rHswKk2p+4UEQAgHTrGPUAwtyVRc8 Tmv1iED+1nB2aFeCNcN3GdzguscHlff9EX/aWqk85Aap8Og+rFI58RUe6kaTCG/NcR3K /y6r1PrMDUxk8tYWluLfTrFIJRHP7n6J/Uv1McX4NDLkFTxjFlgvBiRY2y1rgh1//lkT d/rMaQ/4U4r/W5h7kbN8z+goUaVWXAsy9jKc9lhHS4VLz8Ti6DL5jn2R42oIs6StTucd xxNNg3ebp8M9bvsaOyXbcwapofILf4da0C83mQsOiDqRsGNNN+XPGxqW9zsX/whxfyDt 4meQ== X-Gm-Message-State: ALKqPwfEWZ6tz5Q836by1QcKFuBS+Uy7dnWUfXCLaNvM6mIltSCVbYvG h8CeoOIr4k7FZdFenkG36jWdlw== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180531_040019_606081_13391577 X-CRM114-Status: GOOD ( 15.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Ulf Hansson , Rajendra Nayak , Geert Uytterhoeven , Kevin Hilman , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Jon Hunter , Todor Tomov , Rob Herring , Viresh Kumar , linux-tegra@vger.kernel.org, Vincent Guittot , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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