From patchwork Fri Jun 29 11:04:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 140540 Delivered-To: patches@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp694977ljj; Fri, 29 Jun 2018 04:04:47 -0700 (PDT) X-Received: by 2002:a2e:3101:: with SMTP id x1-v6mr10386374ljx.8.1530270287207; Fri, 29 Jun 2018 04:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530270287; cv=none; d=google.com; s=arc-20160816; b=OErB1xYpeLEIfvSMfrNyhKCoB65lz2TADtJZzAaKiWMgynWGxmYI22ixmw8iZvGc70 P5VupExIBmYkP+j+yutYzOH33sPoXJTsNfgd+SE4gFfzdQtBEKfjKTrT2FWrIkgePwZY ip1jr5Bkp+jBMyNBR8MPFK7chOVg+hJsDmaF2MfuxoaWzAZn0e4bAD4WHkPxt4ws7g/1 mjNBOqTwKH/TrkjMQnA8TH2hNrNw+qqi05ZLxRFyNE8ggMVGXYWpFxqLED9YeZK59FB2 PZICRFFdulNpFXBJw0bcxvo7B/L+nvzolEZ7tA9vhYAbErSN8mIIEvkDSX3whN5Zv/PA qJLw== 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=BuTTFPhc5eXmbh+i+z8Sz0MJW5cNW9ZK+b2mqoGMSxk=; b=0At/+CyMgnjrAPh1RH8k5JmzyxlDhJ5C04bsC/2OI94XLLm2mtbdu6BbMtKvcrDPbc JcSb7omm16o9D5ziW7cnJ4Qp671pTs0YtC0e0Xn6izwG9qbWxKZV5lZoT5xvuyxmTkk3 NPSwdhHuRcHUaqIyvb0DOXxvlTgzi/88skjH2EKIpX81vjlLJvqyT+kOPPbvCz7VSBJX i/BsFg8T+bgnXwj8eGyhNT72e4QIVldWyyeONo1eGa9GsU1qe0YuuOtCs2cXSv/TnL94 BbMRlDlm4Ygkcl/sz+kDoFw6O2v+As+SvcFAdTvfg5dLWKmn2HRTJabMfpuvk48lwICs gHUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xn2G7bpX; 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 c10-v6sor293169ljb.13.2018.06.29.04.04.47 for (Google Transport Security); Fri, 29 Jun 2018 04:04:47 -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=Xn2G7bpX; 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=BuTTFPhc5eXmbh+i+z8Sz0MJW5cNW9ZK+b2mqoGMSxk=; b=Xn2G7bpXZxMkpLKEi18So2C0NMEF8rHvpKSX+CW99PiN+YMgWrshsyKapZ2QvIqHE7 HxJsEXo+VKSXTwobzcxoNTIaeZkhLjuN5T15zmc4Q/HHmdT0ICra5o66w75k3JefYaMF lKJSMk0nquK4wQ3ANbQtfH0+A5vUtZ4obENNc= 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=BuTTFPhc5eXmbh+i+z8Sz0MJW5cNW9ZK+b2mqoGMSxk=; b=MJEg7PbmPrYrYDNfUDRNdzFQ1scgkDNnvYhn+HM/iFApv0bw2EzRxfz+HVcu0g2lPB tXE9MehBcSygHKCLHnhIuN6Wi1l6H3pJYRXYMxR4er5yXyhTpcNX12/+C2msKvnqaHml rbuS330Pgqn7EwNBHIP1OkvcpB2+Vxt9/4JHhnZ9u6kBVS18B0l4JEKv3myO13aui6rS mvZHyq+qKgMXPZY6sed/IKzY1hhbSOKSZo6mwLP719oKtz7Qy8cavacGS7n/0Ktbtxke VDA2AQ2DdBLHlTaCQeY/AIcA2kgyFyCXOv6Uk5EkScU1y5aCHbPuvUzDdNtl/lVhHfVm wg3g== X-Gm-Message-State: APt69E1MHoOWsQfdDjN6onX3GqMkcnztac6QG0UTXTSxr53PRA2SOpaZ 5WPGowbLa4IwzUK1Gnwy6ygcSNmE X-Google-Smtp-Source: ADUXVKJho0YZEZCoLxdWVRdTvlEe6/8x517WcjEo8/oesC/N58zy0wYNOH51G6FOSiosiWvRVFgzEA== X-Received: by 2002:a2e:2ac3:: with SMTP id q186-v6mr10180589ljq.44.1530270286829; Fri, 29 Jun 2018 04:04:46 -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 89-v6sm508359lfs.32.2018.06.29.04.04.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Jun 2018 04:04:46 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Ulf Hansson , Jon Hunter , Geert Uytterhoeven , Todor Tomov , Rajendra Nayak , Lucas Stach , Viresh Kumar , Kevin Hilman , linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 1/3] PM / Domains: dt: Add a power-domain-names property Date: Fri, 29 Jun 2018 13:04:30 +0200 Message-Id: <20180629110432.5179-2-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180629110432.5179-1-ulf.hansson@linaro.org> References: <20180629110432.5179-1-ulf.hansson@linaro.org> Let's add a power-domain-names property, to allow consumer drivers to match the power-domains specifiers via a list of power domain names. This follows the same concept as for other similar DT bindings. Signed-off-by: Ulf Hansson --- Documentation/devicetree/bindings/power/power_domain.txt | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/power/power_domain.txt b/Documentation/devicetree/bindings/power/power_domain.txt index 9b387f861aed..4d6bc8829468 100644 --- a/Documentation/devicetree/bindings/power/power_domain.txt +++ b/Documentation/devicetree/bindings/power/power_domain.txt @@ -114,18 +114,26 @@ Required properties: - power-domains : A list of PM domain specifiers, as defined by bindings of the power controller that is the PM domain provider. +Optional properties: + - power-domain-names : A list of power domain name strings sorted in the same + order as the power-domains property. Consumers drivers will use + power-domain-names to match power domains with power-domains + specifiers. + Example: leaky-device@12350000 { compatible = "foo,i-leak-current"; reg = <0x12350000 0x1000>; power-domains = <&power 0>; + power-domain-names = "io"; }; leaky-device@12351000 { compatible = "foo,i-leak-current"; reg = <0x12351000 0x1000>; power-domains = <&power 0>, <&power 1> ; + power-domain-names = "io", "clk"; }; The first example above defines a typical PM domain consumer device, which is