From patchwork Tue May 29 10:04:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 137139 Delivered-To: patches@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3845448lji; Tue, 29 May 2018 03:04:36 -0700 (PDT) X-Received: by 2002:a2e:7f02:: with SMTP id a2-v6mr10422066ljd.14.1527588276163; Tue, 29 May 2018 03:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527588276; cv=none; d=google.com; s=arc-20160816; b=ZAaGaX789vGFKG5QekGoHqeWEsgL60qxhKrimqErq3mRsasgfm7oXfhQ/KyOcmfo7J Rz3b9oS9p+uCUJ6kuugmi73SYZK6Bg6xlyI2GDh3f845aChyH9Y5Pv22XuZioWoDaOo6 4y1mmEM4+g7CB/xD5HH2faQK/cyN0Pf7aFu3GyorLjMom97VZCzjZjv7Qn6Fe6r0J51r IkFjGOgean3A4xXACyfq4dj66RJO+1KwEZrfBGazPdpjCYHYat/T9gZAiZ+FtFEcf0Kq psYyoiVKWstNTbT3OjOon8mUCN9sKk2fTzGTMdEg+5DZh0GKsuVWSgg7p7fvHNKDsEM0 5VWQ== 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=Y1uWf3IR6TeX72175kSKMmcxc4JqnYS9BmY6Xhncu1w=; b=xo3J2tPhTDR6ICbSrTfGRTFfdvgYkHUb36FpHdial4f0a2Whjpr18ss2iIfAukbXW2 3L3cXUayO2p57ty2ngpJ8iGvDnSh23f+UfPt1oweEuJBbTGQBl+D2ruLiUHA2nyfLxSj ORmnY/9a+fdrgs5TLmL03BY7EKnMpe/X2IhHhhiJgFO1NN4AIPa3piUVokoKan9zyPXH l/f/cBaRQv+EzPuCixOnqYK6bjjQUS/+yuI7TZ0r8v6+cuqBw1GB5N1dis+jAeUbn1u0 qiKd5CtmCKpSGohXCUNubRwNmm0g/LCD4xjHH3rmzQH+odJj0xFrm9SSSHhERj0foc1P dibw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IfPceGFx; 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-v6sor7303117lji.74.2018.05.29.03.04.36 for (Google Transport Security); Tue, 29 May 2018 03:04:36 -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=IfPceGFx; 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=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=IKWsA28WYLD5sQDty0Yja73/pzWVtLZsjD2YM/q2PKTt2Kz1e37o4iKRFHBU5+aThs VimthUphDxvo2x5Ul1RUsQrcjaY8YT3DGT7GLN0Fl14yLqrkYw9lmwOim/s3jEm8g9lp 3h4BB2h8x26IQuJLNquAgW0/uEtNcvS6GXgI7Ep0liG7tj+tYncHX1FGZ/x+xnMuHDJx q6cqZvCP4zqn1GulBObxujbJIc3ylTUIwpmloDPqe7fxt8NrPJc0YIkLiKBS4HfupZPN Be9x0j9UKC3qbmWnES0EqrrGmgYHame+LcNq1vU3jkkK9ZN+znXqqmwdRTDRPk8sHa3F osHA== X-Gm-Message-State: ALKqPwc1uWp3GoFqBPJFysLh0yZ4eFedPOLbDINYzF9Un8k3ohExc3U/ vjxmIYEBE0tHZXCGmkNGgG6r95N2 X-Google-Smtp-Source: AB8JxZoUmLU2Qxs3zDSRshLWegb/wHhLEQDZKm9FgRfhKMHuXHEncGNVpvhTmO+4ay3TZw6CBHNLCQ== X-Received: by 2002:a2e:202:: with SMTP id 2-v6mr9304467ljc.117.1527588275928; Tue, 29 May 2018 03:04:35 -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 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> 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(-) -- 2.17.0 Reviewed-by: Rob Herring 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