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: 136283 Delivered-To: patches@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1056635lji; Fri, 18 May 2018 03:31:54 -0700 (PDT) X-Received: by 2002:a2e:8794:: with SMTP id n20-v6mr5585248lji.38.1526639514369; Fri, 18 May 2018 03:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526639514; cv=none; d=google.com; s=arc-20160816; b=RKjQcbg0P5pvD6fKPs+XQVWfEIszwRxZF6DXSRGJobW9TmaiDjxcFtkEc/AZevS+uh Dv2nweySzcB8/K/n7h30GWauDnza+zWmWKNmH5qhv4NX8IAJTMdDRrFEMGOML1rRMkY0 aRrGo0mEsRaiWr/ruozPpJmSqiTQNTfDtLbyozhddgV1PfFpVsn6ka6vjota6NSCXC9Y loDHCM/TMZpoPhLh7HtrBqQK5CCPf2KB6FU7bnK3pJO8YaFifVCINF+USKJu5u0ttqoR ndAJxf+s0E3Gs+nrhdDlFK0I2enqxLxXPKV81cTiLhhL4lle4zukehkv+S9wBAQTg9sO CJBg== 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=SVjBUAD346aCNJoRL9NhmrACmsm4gOdU4wLskwp7B4Q=; b=nvqMX1EZAd4ZXqn+LozBYEqNLkbOGhr02aYyeFjN1KlJPjgsWUPRBKP2ICjWzaBU22 LahIXOOyh6kfvz2sTMK/nqOlqLHWjzwudx9UuD3O+aVj9gScCE6ZMTq7aB0ABDDO9yTr 52t25ZBhSBrU6c7daOupJSX/zZD6IWKI8iHMCimsWUSJCUTJLslJXcMAOecBOaSWNt6j IDxS8P4G+BAwf0lCAYlZkSEVKAEVGKTvRNGsIfBTmxvuec4FA5Gwx1k0qd91EYzXBNMw x5TEs+y1YtfotSiFGAgoD1JvdEu4E475uqpG8Rf5PyM6z/Mz00UOFfbfZ3UxcQieVeCY /j0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aS1+0njr; 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 o2-v6sor1948652lfg.58.2018.05.18.03.31.54 for (Google Transport Security); Fri, 18 May 2018 03:31:54 -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=aS1+0njr; 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=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=N48d4TBJJsVEI0KnsCL655DzsTdAttkxcAczbqY88VvQtxPC4OkY9atNNcPpFqgUR5 oSakfu5GSNvbEJW0V/rMjGLOqzEzZM0GFHsoGKqTbiY6GEu0nzS8LcwAeHWNC9ardcqV CLdQe24AqxmhtrkWT6/Bof6WuzMrhOO3D7lEqCT0EPc0DohmochFw7UJArd/DrUYfuyV CnE3bI5NYq3/E6rN+hAZLTIyLsbnwEIp0r5EKfo3g8vzpAsn8eZLAWiryEsMa9ZCWJr8 4tToUtmPHxMFU97BXotzIpe/NwLwMHuT1dzp8Rega3VWFGIcqu87r43aSR1MZdePKad5 vNEw== X-Gm-Message-State: ALKqPweWkcyU5XHn+zQGemXs4Zy3b7FjVokiMltG8Lg7FxDr2PTT43j4 p0tfQ2yINWqSljCMPTQb0iHVN/hl 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) 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 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> 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(-) -- 2.7.4 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