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: 137357 Delivered-To: patches@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp6441269lji; Thu, 31 May 2018 04:00:07 -0700 (PDT) X-Received: by 2002:a2e:9c08:: with SMTP id s8-v6mr4929946lji.97.1527764407654; Thu, 31 May 2018 04:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527764407; cv=none; d=google.com; s=arc-20160816; b=e7dCwPMkTwClM+uSM5yM9E+/hLHJskuxLJqfHbNR6+PWobLe0diImiED2figr5WMcq dBEdCVx2B1JPUKVHgq2pjbjA+aSJesIojG0lhTX9r570PVwLyl0TSx1/F84BJHo0B7v9 4FCSv+RPHEyOlaWn1R/WpkEYjMBin0idFxlDhs0WLQjv2TaBHwmbKXzIvCz4AvUNstbl wqg/s6+fZ1HL2owbZBeunNG29vJ1ApRn9Lh5lFUGgbk6yGCASxKkI50ejOyXEgO07xPy /FYSx7SDlwR+y1wtHyH+T0e26//4Z5dzDUrPJBOidZU/XwW9Bv26O9oc6FuU+LdMBZsH RGYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ZH39p/8/sSOGcDgWkxX291KKzmCdn80SkuLPNKHKcMQ=; b=zL7+luKMzRw3XUQJ5SkOuY9t14eGsKJm6Fiul2AAd3Xp1U/NfazcsidOB6IxzPMpIt IpF3jQAQRygYj3wbPx3y3ZuJMHBpleyXzmUxlh56DaV1uxPAdxw/LuLMyqi2NP/48hck 1WqVm4nYxTxk1xodDNgQUO3xVfYxsqD5c9n9G3/hGc/XUVD/XHnBAs1v3XFV9kNPO2cM gdDYBV3AuehIu7g/V26ysLrSHuZ1Hks4+SHJZvbid9AiVT5OR94sEeXxXq3rtg8K8ziH s+eagDEUlFxCkV59xBRtymjObgVoPg+Tlaem3mV+uFzh154FtA8bJeuyfV4NoIjbQ2fs Cm/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YjFr0wp7; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id s7-v6sor8796540lji.74.2018.05.31.04.00.07 for (Google Transport Security); Thu, 31 May 2018 04:00:07 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YjFr0wp7; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=OuZUoe9b7wA4oCN0m5DPC7R4MLkv5pwDXiMS9R1s25IhKVD/F6PHGZbBTTX+GgmAo9 EjqJ6WD8cc2aZWjDZW2MTpGXoU4npAIX1XxmbQJrnFmaadbsjFwDGNCgImDROg0uI7mK Q8PdOuhDN7TI5nNLiRf4Mxoiwn/9+dPbJCDIJds+6G55Hpl8+JRG6bIoCvaQveMNWrBu b22bUgee2nmLf0MHMZ/bMLCbMxikDTa7nivbiaLcgqwmyWH97KH4xkEklK+ntd+B9Een hXOAwStlcajIrfO2rRMrja9Yju+1y7A3nMV8/n9whprgRyDOt39PiXbsF44i8IIThZJ/ BVDw== X-Gm-Message-State: ALKqPwdWv1rsPZbJV+P9adKxqWZxj1Td0JrXVt/h6n/Tm+weAY2bZYMz J/gkU2DUMHz0+mN7O/zEnAHW9wTY 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) Return-Path: 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> 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(-) -- 2.17.0 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