Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1922007imm; Sun, 15 Jul 2018 21:34:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfiEzhEOZQ2G03CO9uvl5SUVi6kAI9CtTvX1wb3pJYseTs6WAuapFd+lbqFk+kjau4HEpta X-Received: by 2002:a62:1089:: with SMTP id 9-v6mr16176073pfq.30.1531715694361; Sun, 15 Jul 2018 21:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531715694; cv=none; d=google.com; s=arc-20160816; b=HJZhynxw+gdzV0f6g5wpHyW+VbXEnfXTM460h5LSWBcF4gvlEzESNGQYSh4UDhZLmg KwhP8P8sRvmluWgDUielRYpMudI1PmJZ2KVMD6UxyMSksZptXjzIECCYBu5tX/l5+QL4 xkqTODbDFD1bb+Kch4bst8zA0nf4ld6blomTyR6nXL7aOBoj16gdjVJTaCgm0dGZl5qX l8wDR2fhF7J/eM+yJ6UXVMnXAf4X8LeDXgqudrojHdv7mh5eqk9I8cC94rQRe91Cexf4 SOddDwRKZndaHTH4wl0CB6uF1LseVUmaDN5Kakno0tqaOAT5L9jKSOwhRvAR2sukLJoG VfOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=gDpzzXirpndbHbcxcXi/zMd0z23itau6yYeIIs6We5U=; b=aN3e8aYCetd91zVEUr3+254S2nP2gF3HeGNae7CnD/aWCjFiCgCb7t2/uFhRoUINfm dgEd3YQHJylj5swju3LXXFWO7nSokh0VKN+wrX1CV0mzQf09KvA37An/dZkO5W2nyhi8 ul+Ep0mO6lhdjNMjhZzOlsHGE1IJx0fMSJQ09/Q2PSKGf6R56X6iExVJkDRTf1lu3CJD gYKOjk0528fy6CeVdUtqYjZy1+jWSMjAlm2EkKFmM0sdCvAPyU5Qpof09F4VpoBKR8NZ ApWxLhaev04ftkiOq/ZGiQqaZzzRrEbWZgLEyU+lluSt7kjJnlJKPiHsOjhVTvY+1Bc9 O1KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WbuhqSmf; 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 o20-v6si5831070pgh.319.2018.07.15.21.34.39; Sun, 15 Jul 2018 21:34:54 -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=WbuhqSmf; 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 S1727561AbeGPE7c (ORCPT + 99 others); Mon, 16 Jul 2018 00:59:32 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34914 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727127AbeGPE7c (ORCPT ); Mon, 16 Jul 2018 00:59:32 -0400 Received: by mail-pf0-f196.google.com with SMTP id q7-v6so24560323pff.2 for ; Sun, 15 Jul 2018 21:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=gDpzzXirpndbHbcxcXi/zMd0z23itau6yYeIIs6We5U=; b=WbuhqSmfRiP03ZIpOp1eXP4vpwSQjJeSPCnqw2S66cjCWje1xHvZMBTTWk35iEmAzB XPyaiPVOFg3cZP/Qg/anoiR3/T1z04YEc4tcnoPCsnXxsaVNGSmcK92UWTN7uNqWeE6M Nk9gUatzAqXkDvocvZZFkFU08HSTa3Pa8Q5os= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=gDpzzXirpndbHbcxcXi/zMd0z23itau6yYeIIs6We5U=; b=DdlreABCSHN6TTGuLXF4PCA17VWpHrf5STjjrq6j89v6wI3Y6Whf54XsuyqfzSRKGd UihIO9LI+pz3w1jOSOeJm9NcXwflJEO6bruGEWaJa7dNxWleDXlLeBAMYDLi7QnZLcRd m2rPaNjGZLPFhKVhAxwdDzFCaFBd3hSUSosOQ4iQsAWe/JRnKyFtfq66tICbMeltMMSL EmvqsJc9ij1bXP+vpyyIFQH581nzom8kaSil2a5Ars1Tqk29G3uVBjAo7KKIptISuCHR E5MuOiD6100MEz/hz4WFHVIj45pWzvFtwC0BieTkdhjwRMrCMIprtDEHQ2aSXqMJzRqV LCGw== X-Gm-Message-State: AOUpUlEdK2XV8TKpM+ybv8cATm9yyKNUt376hvtJlX8s7DsK2zuIZ72c yEhoP5uPhGrPIWLI2ICGGef6FA== X-Received: by 2002:a65:5581:: with SMTP id j1-v6mr14634894pgs.203.1531715644198; Sun, 15 Jul 2018 21:34:04 -0700 (PDT) Received: from localhost ([122.171.235.75]) by smtp.gmail.com with ESMTPSA id b66-v6sm23054882pgc.15.2018.07.15.21.34.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jul 2018 21:34:03 -0700 (PDT) Date: Mon, 16 Jul 2018 10:04:01 +0530 From: Viresh Kumar To: Zhang Rui , Eduardo Valentin , robh@kernel.org Cc: linux-pm@vger.kernel.org, Vincent Guittot , Daniel Lezcano , devicetree@vger.kernel.org, olof@lixom.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: thermal: Allow multiple devices to share cooling map Message-ID: <20180716043401.aew5yjmxjfamfqtn@vireshk-i7> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05-07-18, 10:39, Viresh Kumar wrote: > 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>; > }; > }; > }; Any objections to this ? Can you guys provide Acks ? -- viresh