Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp217949imm; Wed, 4 Jul 2018 22:10:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeyaoo55FyN5MqZiP5Jy7jPosKPu2wadSwhp5wgN0CWO2sbE1sfvUVS5e3OBJqIdGflGy51 X-Received: by 2002:a65:64c8:: with SMTP id t8-v6mr4166965pgv.110.1530767451097; Wed, 04 Jul 2018 22:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530767451; cv=none; d=google.com; s=arc-20160816; b=e0jq2XdSQ3sheJE7PN9G+keX/pNdwY7n82UYJ+DWM1KZlwx+mzbjipBd7/ZT7YZ7NJ xYc973gUgufBhEICkjKEc7a8uzXZAJ5/LTKiRpntIJ7ZC+ByOwiFJE+qgtMr0k62NFUU XPd8Nc4ne/v9kfDb39sk7ZhmrK7w1HKFup6oKQ1AXyE7C/3FKFOyKB5AdgSW54tXXHE9 qvAxCv8XVSAPvrDHBLy5xeKWdX/mNUOZkZ4KqP2TByw+cdonrhl5Lf6v29TiF0ZoxWrX MM5faFq4XDLlMIYHN1uH82m2FG8vCAbCzT2Ah96LPkycUxHLISdtzrM5uyrn+AnIzXgV s/HA== 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=KAJCBsemJlgT/QnylL6EQ0Yj1P5RRi51n+cG9dVKjek=; b=Wc3PAXcn5HaGf5maAitYjaALSSujm5l0qZQ2YIyXiPMYeJ7jhuupcDf0G/qhL8PUZ1 XTA3pE8kC7b7ocujdsgt4Yap0QmPs3606YLbbnurDhhqSN6qfWTAO3fCaT3rOXMd91jP e/uNycJXd7v8+g+nMeYj6jBY6a0ITtR8EJUqpOD1J+paGcejh+f4pnXb6BGRSZLCug0E E+LEsVI9AGnDjKMAFQiMqPA768rZSIuknztkmW2zVbk6kaHg3H4adn1sCdFO4dRRRQ+m V9gxhmjBT96GwMBKlwDpF//i4ZQzAGiwcr59odRi6uHmz5gFL4E7m+846om6Obv5Mr2p +BJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="RExt/q7+"; 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 j33-v6si5180288pld.151.2018.07.04.22.10.36; Wed, 04 Jul 2018 22:10:51 -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="RExt/q7+"; 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 S1753062AbeGEFJe (ORCPT + 99 others); Thu, 5 Jul 2018 01:09:34 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:37317 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752698AbeGEFJb (ORCPT ); Thu, 5 Jul 2018 01:09:31 -0400 Received: by mail-pl0-f67.google.com with SMTP id 31-v6so685807plc.4 for ; Wed, 04 Jul 2018 22:09:31 -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=KAJCBsemJlgT/QnylL6EQ0Yj1P5RRi51n+cG9dVKjek=; b=RExt/q7+50GEAh2eSQNniC/kUdsSxIgX2ckEL3pffN+bYZKOQcXRnD38H9Ym95taqo 4UdX62yu0ERwExbQmhOY7CGe/Rb5Af6uJAKMVryOn7nb65XhaQlo1iu4Wy6VJyDvsRYq FclNhtlIBSaisInjDjwT295tynMj2PYFJFiDM= 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=KAJCBsemJlgT/QnylL6EQ0Yj1P5RRi51n+cG9dVKjek=; b=NnbtkaI8H10Aa0SRSjqBOingq0+aGHWgyNF7k5pDTQL33rHQ7zgTUEzN8GlBR9sAjk rVx5171P8QgyFt+jZubQb7cy62t7RPdzjXUNqndgirRVND3olJNZHjB56gCyS0uOgYqS UJZSBNZrB6x3U4v7K58EfGtbwPL0uY+TLMsrfDCf42inH4aqVF9fZms7kMw9WPORgzTS R6Nb2QzOKfLZc+4iKmYSYIYZA1PccBH0LCRX60I3lpSom7It2zl0RMLe07dmWbdnKRMh 3LgWR4z5YlDfq4g2TBNxGwSFqF8tJpt1FcQCGfbcOg/xfN7Ng0cxHRbaLhCpauwiFTXB +OLw== X-Gm-Message-State: APt69E1OBQNQhbCtjqqQFYcjcWgHaVe+fdatW3XpMDmWcDyCMPdpfi31 1kcp7iVDOFmmu+CUntA3VI9MBg== X-Received: by 2002:a17:902:8486:: with SMTP id c6-v6mr4574483plo.283.1530767371158; Wed, 04 Jul 2018 22:09:31 -0700 (PDT) Received: from localhost ([122.172.117.17]) by smtp.gmail.com with ESMTPSA id 204-v6sm9391498pfc.131.2018.07.04.22.09.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 22:09:30 -0700 (PDT) From: Viresh Kumar To: Zhang Rui , Eduardo Valentin , robh@kernel.org Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Daniel Lezcano , devicetree@vger.kernel.org, olof@lixom.net, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: thermal: Allow multiple devices to share cooling map Date: Thu, 5 Jul 2018 10:39:23 +0530 Message-Id: X-Mailer: git-send-email 2.18.0.rc1.242.g61856ae69a2c In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allow cooling devices sharing same trip point with same contribution value to share the cooling map as well. Otherwise the same information will be duplicated for each device sharing the trip point. Signed-off-by: Viresh Kumar --- Documentation/devicetree/bindings/thermal/thermal.txt | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/thermal.txt b/Documentation/devicetree/bindings/thermal/thermal.txt index cc553f0952c5..eb7ee91556a5 100644 --- a/Documentation/devicetree/bindings/thermal/thermal.txt +++ b/Documentation/devicetree/bindings/thermal/thermal.txt @@ -97,8 +97,8 @@ get assigned to trip points of the zone. The cooling devices are expected to be loaded in the target system. Required properties: -- cooling-device: A phandle of a cooling device with its specifier, - Type: phandle + referring to which cooling device is used in this +- cooling-device: A list of phandles of cooling devices with their specifiers, + Type: phandle + referring to which cooling devices are used in this cooling specifier binding. In the cooling specifier, the first cell is the minimum cooling state and the second cell is the maximum cooling state used in this map. @@ -276,12 +276,7 @@ thermal-zones { }; map1 { trip = <&cpu_alert1>; - cooling-device = <&fan0 5 THERMAL_NO_LIMIT>; - }; - map2 { - trip = <&cpu_alert1>; - cooling-device = - <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + cooling-device = <&fan0 5 THERMAL_NO_LIMIT>, <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; -- 2.18.0.rc1.242.g61856ae69a2c