From patchwork Tue Sep 8 11:20:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 53262 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 67B6022B11 for ; Tue, 8 Sep 2015 11:20:41 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf34274363wic.3 for ; Tue, 08 Sep 2015 04:20:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=P8GINxX4f6uMX9DsI5gjJBbPQOF7GJddIZBIv1Wh5pY=; b=Jnxmxjs5xEpsaccDPi5TiHJ1r08TG8LS7ijKW6twm+77deNn7wgTPLkRupAmcujhog UK8Z4D6wesg+RRb+kgJTy+KXVQLiAz2iDq8QacTLDudKvdbVchQ0CU3ka00Vd8cr3BjD dN8AmCx2I+Y86pJNSxdd9xqJ805hBoLkFp3mzEThB7Ik0qkC57AXzlDDBXRw9sQBvevt bnt6EfDxTLjRvO1R6HycyuUo+uhU+B5NcIqC0agi1GwHj3HsgAcaA5XN6WALtZD6t2j+ Ult9tvmR5UvYuO+YyM7/bKKJKHSk9O5oZ+/tHMKan2LCJyVuSUdhDpoof1Xi/nu1isgT 1Lnw== X-Gm-Message-State: ALoCoQnGVcICDjlfWmtXL3OPcvvKGmhsWFvT4HsjzMblHjy/Skl/Y7t6qt6wuCAmmNwHOB3V5MC/ X-Received: by 10.194.80.69 with SMTP id p5mr6372736wjx.2.1441711240723; Tue, 08 Sep 2015 04:20:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.242.163 with SMTP id wr3ls10417lac.105.gmail; Tue, 08 Sep 2015 04:20:40 -0700 (PDT) X-Received: by 10.152.207.65 with SMTP id lu1mr11870243lac.23.1441711240289; Tue, 08 Sep 2015 04:20:40 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id du6si2922199lbc.41.2015.09.08.04.20.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Sep 2015 04:20:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbcao8 with SMTP id ao8so51162755lbc.3 for ; Tue, 08 Sep 2015 04:20:40 -0700 (PDT) X-Received: by 10.152.22.133 with SMTP id d5mr21839146laf.112.1441711240114; Tue, 08 Sep 2015 04:20:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp905970lbq; Tue, 8 Sep 2015 04:20:39 -0700 (PDT) X-Received: by 10.202.215.8 with SMTP id o8mr18522523oig.47.1441711239078; Tue, 08 Sep 2015 04:20:39 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yk6si4913803pab.213.2015.09.08.04.20.38; Tue, 08 Sep 2015 04:20:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754287AbbIHLUG (ORCPT + 8 others); Tue, 8 Sep 2015 07:20:06 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:25871 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754146AbbIHLUF (ORCPT ); Tue, 8 Sep 2015 07:20:05 -0400 Received: from e105922-lin.cambridge.arm.com (e105922-lin.cambridge.arm.com [10.2.135.144]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with SMTP id t88BJtKa017866; Tue, 8 Sep 2015 12:19:55 +0100 Received: by e105922-lin.cambridge.arm.com (sSMTP sendmail emulation); Tue, 08 Sep 2015 12:21:22 +0100 From: Punit Agrawal To: edubezval@gmail.com Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Punit Agrawal , Rob Herring , Mark Rutland , Ian Campbell , Kumar Gala Subject: [PATCH 2/2] of: thermal: Mark cooling-*-level properties optional Date: Tue, 8 Sep 2015 12:20:49 +0100 Message-Id: <1441711249-11434-2-git-send-email-punit.agrawal@arm.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1441711013-11220-1-git-send-email-punit.agrawal@arm.com> References: <1441711013-11220-1-git-send-email-punit.agrawal@arm.com> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: punit.agrawal@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The cooling-{min,max}-level properties are marked as optional in Documentation/devicetree/bindings/cpufreq/cpufreq-dt.txt and the usage in various device tree matches this, i.e., some cooling device in the device trees provide these properties while others do not. Make the bindings in Documentation/devicetree/bindings/thermal/thermal.txt consistent with the cpufreq-dt bindings by marking the cooling-*-level properties as optional. Signed-off-by: Punit Agrawal Cc: Eduardo Valentin Cc: Rob Herring Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala --- Documentation/devicetree/bindings/thermal/thermal.txt | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/thermal.txt b/Documentation/devicetree/bindings/thermal/thermal.txt index 8320186..41b817f 100644 --- a/Documentation/devicetree/bindings/thermal/thermal.txt +++ b/Documentation/devicetree/bindings/thermal/thermal.txt @@ -60,14 +60,6 @@ properties) should be defined in a particular device's binding. For more examples of cooling devices, refer to the example sections below. Required properties: -- cooling-min-level: An integer indicating the smallest - Type: unsigned cooling state accepted. Typically 0. - Size: one cell - -- cooling-max-level: An integer indicating the largest - Type: unsigned cooling state accepted. - Size: one cell - - #cooling-cells: Used to provide cooling device specific information Type: unsigned while referring to it. Must be at least 2, in order Size: one cell to specify minimum and maximum cooling state used @@ -77,6 +69,15 @@ Required properties: See Cooling device maps section below for more details on how consumers refer to cooling devices. +Optional properties: +- cooling-min-level: An integer indicating the smallest + Type: unsigned cooling state accepted. Typically 0. + Size: one cell + +- cooling-max-level: An integer indicating the largest + Type: unsigned cooling state accepted. + Size: one cell + * Trip points The trip node is a node to describe a point in the temperature domain