From patchwork Thu Jul 5 05:09:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 141106 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1501777ljj; Wed, 4 Jul 2018 22:09:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdh+2q3LudatPORzdAtyCRSSOnACylCg38923Nq38nCUzOWpGN3kf+NrfYCL2koyS6/0C74 X-Received: by 2002:a17:902:b20d:: with SMTP id t13-v6mr4694797plr.121.1530767377665; Wed, 04 Jul 2018 22:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530767377; cv=none; d=google.com; s=arc-20160816; b=og5+xbqKFE08omtawcHhKs6y16/q3hVDNKwAryNff5HFeIYc+gQL8ChA89CfW0XVQ8 lgvb5K4RdPKJLoZGzS3IZMT66p2OdCz49k3FquUwiQBj/cQ4/a+qhxwtbBTs917NXF0h lYC5qgc0Eam2Hx3eSYLVjzmOQiAUUj3gfEXyltCnucHWANxCHnmKDETtlTelqzTCf9kn 2j0sN0STimTXpuM6irsWT5syUUo8YG73fxGRoYnUGPUAc2oDng8V2xJNrm72BRkEc6Sy Ed00++QXmi6xcWe3kFViOH4TVS8bglByWDp16/G226ao2fwfrnB8FImNntHER2Jxy4UX AEpA== 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 w27-v6si4821507pgc.232.2018.07.04.22.09.37; Wed, 04 Jul 2018 22:09:37 -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 S1753074AbeGEFJe (ORCPT + 31 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(-) -- 2.18.0.rc1.242.g61856ae69a2c 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>; }; }; };