Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3205027imm; Tue, 29 May 2018 03:06:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrrPrzIZu5aRcsu/kjSIjMGwlEZ160TV0edDkixw4LqC8NT8CsyfV4T7KYW/smsvtFQxqij X-Received: by 2002:a63:6945:: with SMTP id e66-v6mr13414448pgc.306.1527588400368; Tue, 29 May 2018 03:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527588400; cv=none; d=google.com; s=arc-20160816; b=op0jlJHhMokpS4FJ8hhwhDo6xegwc9XZ+p59+CjXo5nC3gWPEV6t+PbkP7WaQGWDzg f0MIarQCmMFjF4L+NGjCO/JnWZXP4oEgmEONmY8RTXVRubBXWf+a1KvPxIn9eBtuB+Kp qvaTA4FgmwAfwC1fszz4ccY19S/MJkWYjNdamlWOPsYD3Vmw6DdrK/wVK/EV8VesXYuC ZX62V+rngl3XdY+vfrdyPjFX5a0RSY2HaYulpUORFVNHA0R7xbmQ1y8VLbjNX4i+b7jl fpYTIG5+WQoUFH/SuxdrqpyUXVAZ+tPNUkus1oMDaZVKcj6YILtH7plZtw4ReeV+Awu0 DLaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Y1uWf3IR6TeX72175kSKMmcxc4JqnYS9BmY6Xhncu1w=; b=Ey4CLYYPjPyboyWzF5xxT4sJJuJzvJLNbZEa0r2JIFheISKoF0s4jtgfyU0YQnmLok IzcRDnTLZMh3YsjIboPyNNeib5URXOP6YzqFOHuHKluI0zTTBf4Am+ro7P/mf0Dtewz8 ZRjg1pVHLIwojutrzw3KpW/qlBpnUMAsgM8Jw/rPjM57G70Sj/BcH6B5xyDjAkht4Agv OtRDmFjznipYd8Zgc3jUjhK+tO3nnBMKVobQMrY9Rc6O7Iyh5rS/kUO/UYA16x6SPq1x lwfEf9qN0K5pUM88yAVi4s5OJq8kHulMVXGJ8BCj8bnzvjVwl84FYta539OjYYb3Ry5/ rPeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IfPceGFx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z124-v6si24992947pgb.241.2018.05.29.03.06.26; Tue, 29 May 2018 03:06:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IfPceGFx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933194AbeE2KEw (ORCPT + 99 others); Tue, 29 May 2018 06:04:52 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54773 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933157AbeE2KEh (ORCPT ); Tue, 29 May 2018 06:04:37 -0400 Received: by mail-wm0-f67.google.com with SMTP id f6-v6so38828753wmc.4 for ; Tue, 29 May 2018 03:04:36 -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=Y1uWf3IR6TeX72175kSKMmcxc4JqnYS9BmY6Xhncu1w=; b=IfPceGFxXcTVQGgdrcL9cl12ma8nIHSiNMIRjOOpby+mMIahSYyFnDPuO9EhLdiPEn EfWjXi7XYyrhl+hhMV857ula/5zN7NMSCw7Mv5cyT+8x69M6TBolhHOORER1ojAOUC9B Tf+z6QzzzwrlLkCoa3Iuh0IZssRGk76OjiTL8= 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=Y1uWf3IR6TeX72175kSKMmcxc4JqnYS9BmY6Xhncu1w=; b=hVZFsY9S6MP4wWeIeq3FrSBNbIYCj9V5/2X6miK7cLtewLOX0FdmK50pCtGJEvnOlD gaaqEABBYk+EyWkIRs/sKyXFHWaKkfLbdS3AjY7axxngy8L5mYGqTaxckE442gxHjhT+ BMmBta5G6rZzCF3VJ1OaYDKjxmn4RkDwO6ZevU8htMpkPfDNPdUqnfTMtUW4YpyfN6O1 hJWTbQdrxSUd71DtfOVqZMpmQBmZPgrKR9qFCc1KDgN9sS8AzZCUEPHH6YJbn4VQB+Dr a7Gtvv7Ey8/sSsEvyc5ZrdXnVEnGS4jAOFntTRad22qMRcUtficnt8fkycf5JW54PK32 mvNA== X-Gm-Message-State: ALKqPwdfqPTQR33ZJWcqSgD/wDzz/GwQK8XGYAMueHkxvfQKZ0mCQfDM 1f2sytW+QZyi1BV8oNyS7CdhXg== X-Received: by 2002:a2e:202:: with SMTP id 2-v6mr9304467ljc.117.1527588275928; Tue, 29 May 2018 03:04:35 -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 e21-v6sm2561718lfg.74.2018.05.29.03.04.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 03:04:35 -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 v2 5/9] PM / Domains: dt: Allow power-domain property to be a list of specifiers Date: Tue, 29 May 2018 12:04:17 +0200 Message-Id: <20180529100421.31022-6-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180529100421.31022-1-ulf.hansson@linaro.org> References: <20180529100421.31022-1-ulf.hansson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- Changes in v2: - Fixed comments from Geert. Re-worded to "PM domain specifiers" and clarified DT example. --- .../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 -- 2.17.0