Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp607541imu; Thu, 3 Jan 2019 04:01:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Kc9HNENLIoiCl1aoJqLxK7dbyOUd4gEJ1pZJqvd8o8fQL4kXM1XyfAQEH9bWuPcjBnnr1 X-Received: by 2002:a17:902:29ab:: with SMTP id h40mr46450602plb.238.1546516908575; Thu, 03 Jan 2019 04:01:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546516908; cv=none; d=google.com; s=arc-20160816; b=vIj6WSPDRxjuBwrmqs0kra0wHF4aJXCJ0AwqJ6zRdfrAkHSuTPi8dBJ70EuNFv2nYv eOKbjbM56muqNsQ2wk+N8djFgpSYMaZRV4m1QtMn34eG7Ce4oRu2sHkHiXHCXu4klgiy 7FzCY5HBEgmiE3Bppdl2hM08lBZ7+t34mfAWAhbxR2cEdepfdiozINr5hCXNA5HlUW5t 3BIDAYRU/o4IOTL5yNwqKzevoasO+T543DV5XaOnwj3NarBsNPcE6IodsVzn4IJc5+XR mRGj0xpCAr8emrIu7o6h58NLm5j6bLW50ZN60T95dw2Y0gXyZN0utK4WB4IR94Jd70th i94A== 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; bh=RArOkgJ6iozCqW4Amczd+Jty4/unLLqgawp7H0t8Irg=; b=LbHjIk4tUKdppoiG+dEnzm3clqS5wssEJY47KPip/Hkha0X+cyr0iGAfs0y7T4UNsc +c0HBTOs3xd48AZVLTvtE8efO5cFxsCoFbt+SCnyBWyb6sJdcmlGhMYGlXwkvKnmqe3H 1zKofGI1ZDMXAm0luykOHCMd16ciYpLFu9TR5DK8VOi608ajq/DM9BHnGuaL2fd47m0V epnZJsCqWmwCfpLtYfhbs8VPRY/XLXeXy48ZwweuFybdwENzUO0ebSB1At8eLWSdWc5U jsaUBX2vSOFHCV9xBEyWE+Cas5jmD6+adu8UShtwBwr0+JoCZqflgOclwfeQXuPsBiHb 2rKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=beqjtfXv; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si3656902pgf.54.2019.01.03.04.01.30; Thu, 03 Jan 2019 04:01:48 -0800 (PST) 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=@broadcom.com header.s=google header.b=beqjtfXv; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730391AbfACIzz (ORCPT + 99 others); Thu, 3 Jan 2019 03:55:55 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40690 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730378AbfACIzx (ORCPT ); Thu, 3 Jan 2019 03:55:53 -0500 Received: by mail-pf1-f195.google.com with SMTP id i12so16393691pfo.7 for ; Thu, 03 Jan 2019 00:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RArOkgJ6iozCqW4Amczd+Jty4/unLLqgawp7H0t8Irg=; b=beqjtfXvVp4z+It6JjvR6dpmy/72aZvQHGM5NQy9CSeUeyiRUgKUEeRHsfqVHkcRaN h5yIkI1bqHdjB6LPtZ1Ts6Peo55ysnEfYSYkkp8wuu7+KuyM2Yjw+ATQG2dYh+OihgPx 98Ob5hN93th27yOPBWgkdwwBy4nAfuLuR4j6Y= 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=RArOkgJ6iozCqW4Amczd+Jty4/unLLqgawp7H0t8Irg=; b=IvPaBQmQhLBR4IFNt9KpL6HLnDMzNfPHHJPiYo31exii5GAyzz78FnNyRpob95NX9v Bapo6cSxHMIDYwKPHV+WwfBjDbDXeDeO3YTspDCHSRKkUWxSA7wec9ffyddUy0cHUwpr PfaH0yU2+ccEPtNMH3NS0wkuXlLwOiQyqADWvJZp5x1zFCdiOlr/T7Dr+OBsGzXsjP9/ sPpTWHMtzlsaQ9agLTFtf4YDbnfEqNbswA+fmLMbT9v664ULyIIZ7A4bH2FANqliyGDY 0ai99M58zoAnfbI1pgFNjenkRUWHinOcVCJnjbIdlbz9H1nMygCJkDGTIUMSDg5oHGti hLUQ== X-Gm-Message-State: AJcUukej47728mC7P7IAtiYxtTyRRdBAOJmbBSHfN9t0npaA6bfkYAPK Yy50GpiHF0+BunGa7jsoRYm+Ng== X-Received: by 2002:a63:2d82:: with SMTP id t124mr16219443pgt.260.1546505752418; Thu, 03 Jan 2019 00:55:52 -0800 (PST) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id s190sm78189727pfb.103.2019.01.03.00.55.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Jan 2019 00:55:51 -0800 (PST) From: Srinath Mannam To: daniel.lezcano@linaro.org, Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Pramod Kumar , Srinath Mannam Subject: [PATCH v6 1/3] dt-bindings: thermal: Add binding document for SR thermal Date: Thu, 3 Jan 2019 14:25:32 +0530 Message-Id: <1546505734-24527-2-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546505734-24527-1-git-send-email-srinath.mannam@broadcom.com> References: <1546505734-24527-1-git-send-email-srinath.mannam@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pramod Kumar Add binding document for supported thermal implementation in Stingray. Signed-off-by: Pramod Kumar Signed-off-by: Srinath Mannam Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../bindings/thermal/brcm,sr-thermal.txt | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt diff --git a/Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt b/Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt new file mode 100644 index 0000000..3ab3302 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt @@ -0,0 +1,105 @@ +* Broadcom Stingray Thermal + +This binding describes thermal sensors that is part of Stingray SoCs. + +Required properties: +- compatible : Must be "brcm,sr-thermal" +- reg : Memory where tmon data will be available. +- brcm,tmon-mask: A one cell bit mask of valid TMON sources. + Each bit represents single TMON source. +- #thermal-sensor-cells : Thermal sensor phandler +- polling-delay: Max number of milliseconds to wait between polls. +- thermal-sensors: A list of thermal sensor phandles and specifier. + specifier value is tmon ID and it should be + in correspond with brcm,tmon-mask. +- temperature: trip temperature threshold in millicelsius. + +Example: + tmons { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x8f100000 0x100>; + + tmon: tmon@0 { + compatible = "brcm,sr-thermal"; + reg = <0x0 0x40>; + brcm,tmon-mask = <0x3f>; + #thermal-sensor-cells = <1>; + }; + }; + + thermal-zones { + ihost0_thermal: ihost0-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 0>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + ihost1_thermal: ihost1-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 1>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + ihost2_thermal: ihost2-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 2>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + ihost3_thermal: ihost3-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 3>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + crmu_thermal: crmu-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 4>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + nitro_thermal: nitro-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + thermal-sensors = <&tmon 5>; + trips { + cpu-crit { + temperature = <105000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; + }; -- 2.7.4